Please select Into the mobile phone version | Continue to access the computer ver.
Close
You need to log in before you can reply       Login | Register now

[Help] Subscriber in dji_drone.h not subscribing

Author: sddan1 2017-3-28 23:27
1 171
I created my own flight program, and included the header file dji_drone.h, which contains subscribers to the data published by the dji_sdk node. I am unable to subcribe any data when running my flight program in the DJI Assistant 2 simulator. When I try to access the drone global position using 'drone->global_position', I get no data. However, when I use rostopic echo to monitor the dji_sdk/global_position topic, the data is being published correctly. Is there anything I am doing wrong when using dji_drone.h in my program?
Reply
Replies
uastechlab
When that happned for me I had forgotten to have a thread that do "ros::spin()".
2017-5-4 23:14
You need to log in before you can reply Login | Register now

Quick Reply Back to top Back to list
Quick Reply Back to top Back to list