dji-sdk / Onboard-SDK-ROS

Official ROS packages for DJI onboard SDK.
443 stars 309 forks source link

Waypoint Upload Error #367

Open lueninb opened 4 years ago

lueninb commented 4 years ago

hello,

I am having problems running the Waypoint Mission in the included mission_node sample program. We purchased a new M300 and are running 16.04 on a TX2.

I am doing rosrun dji_osdk_ros mission_node and get the following:

nvidia@tegra-ubuntu:~/catkin_ws$ rosrun dji_osdk_ros mission_node | Available commands: | | [a] Waypoint Mission | | [b] Hotpoint Mission | a [ INFO] [1596665280.014648976]: Creating Waypoints..

[ INFO] [1596665280.016398716]: Waypoint created at (LLA): 48.009042 -97.931172 10.000000

[ INFO] [1596665280.017149263]: Uploading Waypoints..

[ INFO] [1596665280.017490135]: Waypoint created at (LLA): 48.009042 -97.931172 10.000000

[ INFO] [1596665280.018297580]: Waypoint created at (LLA): 48.009071 -97.931122 11.000000

[ INFO] [1596665280.019149505]: Waypoint created at (LLA): 48.009042 -97.931073 12.000000

[ INFO] [1596665280.019434984]: Waypoint created at (LLA): 48.009042 -97.931172 10.000000

[ INFO] [1596665280.020129113]: Initializing Waypoint Mission..

[ WARN] [1596665350.154133753]: ack.info: set = 255 id = 255 [ WARN] [1596665350.154552516]: ack.data: 65535 [ WARN] [1596665350.154781771]: Failed sending waypoint upload command

The output from the rosrun dji_osdk_ros dji_vehicle_node.launch is:

[ INFO] [1596665417.311933981]: initialized waypoint mission [3232564.021]STATUS/1 @ getErrorCodeMessage, L744: missionWpUploadCallback [3232564.022]ERRORLOG/1 @ getCommonErrorCodeMessage, L811: NO_RESPONSE_ERROR

[ INFO] [1596665430.838696960]: uploaded the 1th waypoint

[3232577.547]STATUS/1 @ getErrorCodeMessage, L744: missionWpUploadCallback [3232577.548]ERRORLOG/1 @ getCommonErrorCodeMessage, L811: NO_RESPONSE_ERROR

[ INFO] [1596665444.365141524]: uploaded the 2th waypoint

^C[vehicle_node-2] killing on exit [3232591.071]STATUS/1 @ getErrorCodeMessage, L744: missionWpUploadCallback [3232591.072]ERRORLOG/1 @ getCommonErrorCodeMessage, L811: NO_RESPONSE_ERROR

Can someone please help me with this?

dji-dev commented 4 years ago

Agent comment from kyle.cai in Zendesk ticket #37747:

Dear developer ,

Thank you for contacting DJI.

Have you try to test the sample flight control? or there is only the waypoint mission failed ? could you please provide the complet terminal log of the rosrun dji_osdk_ros dji_vehicle_node.launch ?

Thank you for your understanding and support, hope you have a nice day.

Best Regards, DJI SDK Support Team

lueninb commented 4 years ago

Thank you for your help.

Yes, I have tried the other sample codes and they seem to all work EXCEPT WayPoint Mission. Even the Hotpoint Mission works 100%. Below is the log for HotPoint which works.

SUMMARY

PARAMETERS

NODES / vehicle_node (dji_osdk_ros/dji_vehicle_node)

auto-starting new master process[master]: started with pid [6529] ROS_MASTER_URI=http://localhost:11311

setting /run_id to 0d8f5384-d812-11ea-a6b7-00044bf25eeb process[rosout-1]: started with pid [6542] started core service [/rosout] process[vehicle_node-2]: started with pid [6555] EnableAd: 1 [3305398.909]ERRORLOG/1 @ initVehicle, L165: Failed to initialize ACM Linker channel! [3305398.919]STATUS/1 @ parseDroneVersionInfo, L1122: Device Serial No. = 1ZNDH5G00A73M4 [3305398.919]STATUS/1 @ parseDroneVersionInfo, L1124: Firmware = 3.4.8.44 [3305398.919]STATUS/1 @ functionalSetUp, L279: Shake hand with drone successfully by getting drone version. [3305398.919]STATUS/1 @ legacyX5SEnableTask, L56: Legacy X5S Enable task created. [3305399.919]STATUS/1 @ sendHeartbeatToFCTask, L1546: OSDK send heart beat to fc task created. [3305400.120]STATUS/1 @ FileMgrImpl, L253: register download file callback handler successfully. [3305400.120]STATUS/1 @ MopPipelineManagerBase, L48: MOP background task now is created . [3305401.147]STATUS/1 @ MopPipelineManagerBase, L51: MOP background task is already created . [3305401.147]STATUS/1 @ MopPipelineManagerBase, L51: MOP background task is already created . [3305401.148]STATUS/1 @ RegisterOSDInfoCallback, L535: register result of geting FC ground station status pushing : 1

[3305401.148]STATUS/1 @ Firewall, L46: Firewall is initializing ... [3305401.149]STATUS/1 @ init, L247: USB is not plugged or initialized successfully. Advacned-Sensing will not run. [3305401.149]STATUS/1 @ MopPipelineManagerBase, L51: MOP background task is already created . [3305401.149]STATUS/1 @ activate, L1329: version 0x304082C

[3305401.160]STATUS/1 @ activate, L1353: Activation successful

[ INFO] [1596738269.017612958]: VehicleNode Start [ INFO] [1596738269.018345540]: Topic startup! [ INFO] [1596738269.305507743]: Services startup! [ INFO] [1596738269.516044194]: Use data subscription to get telemetry data! [ INFO] [1596738269.516368289]: align_time_with_FC set to false. We will use ros time to time stamp messages! [3305402.740]STATUS/1 @ verify, L244: Verify subscription successful. [3305402.760]STATUS/1 @ startPackage, L345: Start package 3 result: 0. [3305402.760]STATUS/1 @ startPackage, L347: Package 3 info: freq=100, nTopics=3.

[3305402.800]STATUS/1 @ startPackage, L345: Start package 2 result: 0. [3305402.800]STATUS/1 @ startPackage, L347: Package 2 info: freq=50, nTopics=14.

[3305402.821]STATUS/1 @ startPackage, L345: Start package 1 result: 0. [3305402.821]STATUS/1 @ startPackage, L347: Package 1 info: freq=5, nTopics=1.

[3305402.841]STATUS/1 @ removePackage, L457: Remove package 1 successful. [3305402.903]STATUS/1 @ startPackage, L345: Start package 1 result: 0. [3305402.903]STATUS/1 @ startPackage, L347: Package 1 info: freq=5, nTopics=12.

[3305402.921]STATUS/1 @ startPackage, L345: Start package 4 result: 0. [3305402.921]STATUS/1 @ startPackage, L347: Package 4 info: freq=400, nTopics=1.

[ INFO] [1596738281.184018778]: call takeoff service Motors spinning... Ascending... Successful takeoff! [ INFO] [1596738361.564406495]: call land service Landing...

nvidia@tegra-ubuntu:~/catkin_ws$ rosrun dji_osdk_ros mission_node | Available commands: | | [a] Waypoint Mission | | [b] Hotpoint Mission | b [ INFO] [1596738286.401434880]: Takeoff command sent successfully [ INFO] [1596738301.402202465]: Start with default rotation rate: 15 deg/s [ INFO] [1596738301.430753388]: Mission start command sent successfully [ INFO] [1596738326.431294472]: Pause for 5s [ INFO] [1596738326.463454868]: Mission pause command sent successfully

[ INFO] [1596738331.503639751]: Mission resume command sent successfully [ INFO] [1596738341.504247040]: Update radius to 1.5x: new radius = 10.500000 [ INFO] [1596738341.518779729]: Hotpoint update radius command sent successfully [ INFO] [1596738351.519267929]: Update hotpoint rotation rate: new rate = 5 deg/s [ INFO] [1596738351.531132986]: Hotpoint update yaw rate command sent successfully

[ INFO] [1596738361.553386496]: Mission stop command sent successfully

[ INFO] [1596738367.675258897]: Land command sent successfully


BUT the WayPoint Mission does NOT work. Here is the full log you requested.

SUMMARY

PARAMETERS

NODES / vehicle_node (dji_osdk_ros/dji_vehicle_node)

auto-starting new master process[master]: started with pid [5094] ROS_MASTER_URI=http://localhost:11311

setting /run_id to 07bf6d0a-d811-11ea-a6b7-00044bf25eeb process[rosout-1]: started with pid [5107] started core service [/rosout] process[vehicle_node-2]: started with pid [5121] EnableAd: 1 [3304959.521]ERRORLOG/1 @ initVehicle, L165: Failed to initialize ACM Linker channel! [3304959.544]STATUS/1 @ parseDroneVersionInfo, L1122: Device Serial No. = 1ZNDH5G00A73M4 [3304959.544]STATUS/1 @ parseDroneVersionInfo, L1124: Firmware = 3.4.8.44 [3304959.544]STATUS/1 @ functionalSetUp, L279: Shake hand with drone successfully by getting drone version. [3304959.545]STATUS/1 @ legacyX5SEnableTask, L56: Legacy X5S Enable task created. [3304960.545]STATUS/1 @ sendHeartbeatToFCTask, L1546: OSDK send heart beat to fc task created. [3304960.764]STATUS/1 @ removePackage, L457: Remove package 2 successful. [3304960.783]STATUS/1 @ removePackage, L457: Remove package 3 successful. [3304960.783]STATUS/1 @ FileMgrImpl, L253: register download file callback handler successfully. [3304960.783]STATUS/1 @ MopPipelineManagerBase, L48: MOP background task now is created . [3304961.807]STATUS/1 @ MopPipelineManagerBase, L51: MOP background task is already created . [3304961.807]STATUS/1 @ MopPipelineManagerBase, L51: MOP background task is already created . [3304961.808]STATUS/1 @ RegisterOSDInfoCallback, L535: register result of geting FC ground station status pushing : 1

[3304961.808]STATUS/1 @ Firewall, L46: Firewall is initializing ... [3304961.808]STATUS/1 @ init, L247: USB is not plugged or initialized successfully. Advacned-Sensing will not run. [3304961.808]STATUS/1 @ MopPipelineManagerBase, L51: MOP background task is already created . [3304961.808]STATUS/1 @ activate, L1329: version 0x304082C

[3304961.822]STATUS/1 @ activate, L1353: Activation successful

[ INFO] [1596737829.678884864]: VehicleNode Start [ INFO] [1596737829.679567008]: Topic startup! [ INFO] [1596737829.965790856]: Services startup! [ INFO] [1596737830.152669819]: Use data subscription to get telemetry data! [ INFO] [1596737830.153144683]: align_time_with_FC set to false. We will use ros time to time stamp messages! [3304963.382]STATUS/1 @ verify, L244: Verify subscription successful. [3304963.402]STATUS/1 @ startPackage, L345: Start package 3 result: 0. [3304963.402]STATUS/1 @ startPackage, L347: Package 3 info: freq=100, nTopics=3.

[3304963.442]STATUS/1 @ startPackage, L345: Start package 2 result: 0. [3304963.442]STATUS/1 @ startPackage, L347: Package 2 info: freq=50, nTopics=14.

[3304963.465]STATUS/1 @ startPackage, L345: Start package 1 result: 0. [3304963.465]STATUS/1 @ startPackage, L347: Package 1 info: freq=5, nTopics=1.

[3304963.484]STATUS/1 @ removePackage, L457: Remove package 1 successful. [3304963.542]STATUS/1 @ startPackage, L345: Start package 1 result: 0. [3304963.543]STATUS/1 @ startPackage, L347: Package 1 info: freq=5, nTopics=12.

[3304963.562]STATUS/1 @ startPackage, L345: Start package 4 result: 0. [3304963.562]STATUS/1 @ startPackage, L347: Package 4 info: freq=400, nTopics=1.

[ INFO] [1596737836.019546443]: call takeoff service Motors spinning... Ascending... Successful takeoff! [3304999.996]STATUS/1 @ getErrorCodeMessage, L744: missionWpUploadCallback [3304999.997]ERRORLOG/1 @ getCommonErrorCodeMessage, L811: NO_RESPONSE_ERROR

[ INFO] [1596737866.814081597]: initialized waypoint mission [3305013.524]STATUS/1 @ getErrorCodeMessage, L744: missionWpUploadCallback [3305013.525]ERRORLOG/1 @ getCommonErrorCodeMessage, L811: NO_RESPONSE_ERROR

[ INFO] [1596737880.342012177]: uploaded the 1th waypoint

[3305027.050]STATUS/1 @ getErrorCodeMessage, L744: missionWpUploadCallback [3305027.051]ERRORLOG/1 @ getCommonErrorCodeMessage, L811: NO_RESPONSE_ERROR

[ INFO] [1596737893.867733096]: uploaded the 2th waypoint

[3305040.575]STATUS/1 @ getErrorCodeMessage, L744: missionWpUploadCallback [3305040.576]ERRORLOG/1 @ getCommonErrorCodeMessage, L811: NO_RESPONSE_ERROR

[ INFO] [1596737907.393195569]: uploaded the 3th waypoint

[3305054.101]STATUS/1 @ getErrorCodeMessage, L744: missionWpUploadCallback [3305054.102]ERRORLOG/1 @ getCommonErrorCodeMessage, L811: NO_RESPONSE_ERROR

[ INFO] [1596737920.919195111]: uploaded the 4th waypoint

[3305067.628]STATUS/1 @ getErrorCodeMessage, L744: missionWpUploadCallback [3305067.628]ERRORLOG/1 @ getCommonErrorCodeMessage, L811: NO_RESPONSE_ERROR

[ INFO] [1596737934.445398358]: uploaded the 5th waypoint

[3305081.154]STATUS/1 @ getErrorCodeMessage, L744: missionWpUploadCallback [3305081.155]ERRORLOG/1 @ getCommonErrorCodeMessage, L811: NO_RESPONSE_ERROR

[ INFO] [1596737947.971573292]: uploaded the 6th waypoint

[3305094.681]STATUS/1 @ getErrorCodeMessage, L744: missionWpUploadCallback [3305094.682]ERRORLOG/1 @ getCommonErrorCodeMessage, L811: NO_RESPONSE_ERROR

[ INFO] [1596737961.498467167]: uploaded the 7th waypoint

[ INFO] [1596737962.499072387]: waypoint mission initialized and uploaded

nvidia@tegra-ubuntu:~/catkin_ws$ rosrun dji_osdk_ros mission_node | Available commands: | | [a] Waypoint Mission | | [b] Hotpoint Mission | a [ INFO] [1596737851.783710980]: Creating Waypoints..

[ INFO] [1596737851.784370868]: Waypoint created at (LLA): 47.873839 -97.058204 10.000000

[ INFO] [1596737851.784727655]: Uploading Waypoints..

[ INFO] [1596737851.785015336]: Waypoint created at (LLA): 47.873839 -97.058204 10.000000

[ INFO] [1596737851.785343936]: Waypoint created at (LLA): 47.873868 -97.058154 11.000000

[ INFO] [1596737851.785615109]: Waypoint created at (LLA): 47.873839 -97.058104 12.000000

[ INFO] [1596737851.785840564]: Waypoint created at (LLA): 47.873782 -97.058104 13.000000

[ INFO] [1596737851.786062243]: Waypoint created at (LLA): 47.873753 -97.058154 14.000000

[ INFO] [1596737851.786278964]: Waypoint created at (LLA): 47.873782 -97.058204 15.000000

[ INFO] [1596737851.786504643]: Waypoint created at (LLA): 47.873839 -97.058204 10.000000

[ INFO] [1596737851.786698585]: Initializing Waypoint Mission..

[ WARN] [1596737962.500960327]: ack.info: set = 255 id = 255 [ WARN] [1596737962.501359799]: ack.data: 65535 [ WARN] [1596737962.501603974]: Failed sending waypoint upload command

I appreciate any help you can give me. I would like to use waypoints with the M300. thanks

dji-dev commented 4 years ago

Agent comment from kyle.cai in Zendesk ticket #37747:

Dear developer ,

Thank you for contacting DJI.

This issue we have noticed , and submit it to comfirm. if there are any result ,we will contact you soon. Sorry for any inconvience to you.

Thank you for your understanding and support, hope you have a nice day.

Best Regards, DJI SDK Support Team

dji-dev commented 4 years ago

Agent comment from kyle.cai in Zendesk ticket #37747:

Dear developer ,

Thank you for contacting DJI.

Sorry for the late reply,we have comfirmed that the WayPoint Mission (sample: mission_node, option: a) ,not support the drone M300. And this note has been added in the code: https://github.com/dji-sdk/Onboard-SDK-ROS/blob/master/src/dji_osdk_ros/samples/mission_node.cpp

Thank you for your understanding and support, hope you have a nice day.

Best Regards, DJI SDK Support Team
inline1224402337.png

jsampat2 commented 3 years ago

Is the mission waypoint service also unavailable for M300? I am trying to use the mission_waypoint_upload service but it returns False. When would this feature be available for the M300?