Onboard-SDK-ROS icon indicating copy to clipboard operation
Onboard-SDK-ROS copied to clipboard

WaypointsV2 Error

Open lueninb opened this issue 5 years ago • 1 comments

hello,

I am getting an error when I run the included sample waypointV2_node. It works successfully one time, but when I try to run it again, it gives an error.

My flight is: takeoff run waypointv2_node land takeoff run waypoinv2_node again

Below is the log:

started roslaunch server http://tegra-ubuntu:35345/

SUMMARY

PARAMETERS

  • /rosdistro: kinetic
  • /rosversion: 1.12.14
  • /user_config_path: /home/nvidia/ws_l...
  • /vehicle_node/acm_name: /dev/ttyACM0
  • /vehicle_node/align_time: False
  • /vehicle_node/app_id: 1084639
  • /vehicle_node/app_version: 1
  • /vehicle_node/baud_rate: 921600
  • /vehicle_node/enc_key: 36dfb43c74c3dbc1b...
  • /vehicle_node/serial_name: /dev/ttyUSB0
  • /vehicle_node/use_broadcast: False

NODES / vehicle_node (dji_osdk_ros/dji_vehicle_node)

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

setting /run_id to c176c8d6-e1be-11ea-910f-00044bf735f4 process[rosout-1]: started with pid [7931] started core service [/rosout] process[vehicle_node-2]: started with pid [7948] EnableAd: 1 [74167.011]STATUS/1 @ parseDroneVersionInfo, L1122: Device Serial No. = 1ZNDH5G00A73M4 [74167.011]STATUS/1 @ parseDroneVersionInfo, L1124: Firmware = 3.4.8.44 [74167.011]STATUS/1 @ functionalSetUp, L279: Shake hand with drone successfully by getting drone version. [74167.011]STATUS/1 @ legacyX5SEnableTask, L56: Legacy X5S Enable task created. [74168.011]STATUS/1 @ sendHeartbeatToFCTask, L1546: OSDK send heart beat to fc task created. [74168.213]STATUS/1 @ FileMgrImpl, L253: register download file callback handler successfully. [74168.218]STATUS/1 @ RegisterOSDInfoCallback, L535: register result of geting FC ground station status pushing : 1

[74168.219]STATUS/1 @ Firewall, L46: Firewall is initializing ... [74168.230]STATUS/1 @ parseDroneVersionInfo, L1122: Device Serial No. = 1ZNDH5G00A73M4 [74168.231]STATUS/1 @ parseDroneVersionInfo, L1124: Firmware = 3.4.8.44 [74168.261]STATUS/1 @ AdvancedSensing, L110: Start bulk channel for M300's liveview! [74168.261]STATUS/1 @ AdvancedSensing, L117: Create task for M300's liveview! [74168.263]STATUS/1 @ AdvancedSensing, L125: Start bulk channel for M300's perception [74168.263]STATUS/1 @ AdvancedSensing, L132: Create task for M300's advanced sensing! [74168.263]STATUS/1 @ AdvancedSensing, L135: Advanced Sensing init for the M300 drone [74168.263]STATUS/1 @ LiveViewImpl, L89: Finding if liveview stream is available now. [74169.064]STATUS/1 @ init, L254: Start advanced sensing initalization [74169.064]STATUS/1 @ activate, L1309: osdk policy file updating(1) ...... [74170.065]STATUS/1 @ activate, L1317: osdk policy file updating(2) ...... [74170.070]STATUS/1 @ RequestUploadPolicyFileHandle, L146: request upload policy file type:0 [74170.070]STATUS/1 @ RequestUploadPolicyFileHandle, L163: Upload policy file info md5 checksum and version [74170.073]STATUS/1 @ RequestUploadPolicyFileHandle, L146: request upload policy file type:1 [74170.073]STATUS/1 @ RequestUploadPolicyFileHandle, L183: request upload policy file data: 0 0 200 [74170.076]STATUS/1 @ RequestUploadPolicyFileHandle, L146: request upload policy file type:1 [74170.076]STATUS/1 @ RequestUploadPolicyFileHandle, L183: request upload policy file data: 1 200 169 [74170.078]STATUS/1 @ RequestUploadPolicyFileHandle, L146: request upload policy file type:2 [74170.078]STATUS/1 @ RequestUploadPolicyFileHandle, L211: request upload policy file success [74171.065]STATUS/1 @ activate, L1329: version 0x304082C

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

[ INFO] [1597802006.240062461]: VehicleNode Start [ INFO] [1597802006.240593211]: Topic startup! [ INFO] [1597802007.012221439]: Services startup! [ INFO] [1597802007.301762783]: Use data subscription to get telemetry data! [ INFO] [1597802007.302612028]: align_time_with_FC set to false. We will use ros time to time stamp messages! [74173.249]STATUS/1 @ verify, L244: Verify subscription successful. [74173.269]STATUS/1 @ startPackage, L345: Start package 3 result: 0. [74173.270]STATUS/1 @ startPackage, L347: Package 3 info: freq=100, nTopics=3.

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

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

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

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

[ INFO] [1597802009.712570169]: call takeoff service Motors spinning... Ascending... Successful takeoff! [ INFO] [1597802019.475190724]: called waypointV2GenerateActionsCallback [ INFO] [1597802019.484124035]: called waypointV2InitSettingCallback [74185.378]STATUS/1 @ initWaypointV2, L1984: Init mission setting successfully!

[ INFO] [1597802020.519589161]: called waypointV2UploadMissionCallback [74186.423]STATUS/1 @ uploadWaypointV2, L2005: Upload waypoint v2 mission successfully!

[ INFO] [1597802021.546679785]: called waypointV2DownloadMissionCallback [74187.443]STATUS/1 @ downloadWaypointV2, L2027: Download waypoint v2 mission successfully!

[ INFO] [1597802022.596308528]: called waypointV2UploadActionCallback [74188.488]STATUS/1 @ uploadWaypointV2Actions, L2048: Upload waypoint v2 actions successfully!

[ INFO] [1597802023.656292141]: called waypointV2StartMissionCallback [74189.553]STATUS/1 @ startWaypointV2Mission, L2069: Start waypoint v2 mission successfully!

[ INFO] [1597802043.698602186]: called waypointV2SetGlobalCruisespeedCallback [74209.596]STATUS/1 @ setGlobalCruiseSpeed, L2153: Current cruise speed is: 1.500000 m/s

[ INFO] [1597802044.749802252]: called waypointV2GetGlobalCruisespeedCallback [74210.650]STATUS/1 @ getGlobalCruiseSpeed, L2172: Current cruise speed is: 1.500000 m/s

[ INFO] [1597802045.774326576]: called waypointV2PauseMissionCallback [74211.668]STATUS/1 @ pauseWaypointV2Mission, L2112: pause waypoint v2 mission successfully!

[ INFO] [1597802050.803653741]: called waypointV2ResumeMissionCallback [74216.698]STATUS/1 @ resumeWaypointV2Mission, L2133: resume waypoint v2 mission successfully!

[ INFO] [1597802123.686573986]: call takeoff service Motors spinning... Ascending... Successful takeoff! [ INFO] [1597802142.118693450]: called waypointV2GenerateActionsCallback [ INFO] [1597802142.129441406]: called waypointV2InitSettingCallback [74308.025]STATUS/1 @ initWaypointV2, L1984: Init mission setting successfully!

[ INFO] [1597802143.171233176]: called waypointV2UploadMissionCallback [74309.063]ERRORLOG/1 @ uploadWaypointV2, L1999: Upload waypoint v2 mission ErrorCode:0x110000010004

[74309.066]ERRORLOG/1 @ printErrorCodeMsg, L931: >>>>Error module : WaypointV2 [74309.066]ERRORLOG/1 @ printErrorCodeMsg, L932: >>>>Error message : the start index is greater than end index of upload wps [74309.066]ERRORLOG/1 @ printErrorCodeMsg, L933: >>>>Error solution : none

Please advise me on how to fix this. I would like to run more than one waypointv2 mission, but it gives errors.

lueninb avatar Aug 19 '20 02:08 lueninb

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

Dear developer ,

Thank you for contacting DJI.

This issue has updated in the GitHub master branch, suggest that you download OSDK again from the master branch and testing and validation.

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

Best Regards, DJI SDK Support Team
inline-2139427752.png

dji-dev avatar Aug 19 '20 04:08 dji-dev