Onboard-SDK-ROS
Onboard-SDK-ROS copied to clipboard
I can't execute the sample : waypointV2_node twice
Hi again A error occurred when i execute the waypointV2_node twice in DJISimulator. the log are as follow: [ INFO] [1613707761.415688859]: called waypointV2UploadActionCallback [3095025.415]STATUS/1 @ ActionsEncode, L374: upload_action_ID:0 [3095025.415]STATUS/1 @ ActionsEncode, L374: upload_action_ID:1 [3095025.415]STATUS/1 @ ActionsEncode, L374: upload_action_ID:2 [3095025.415]STATUS/1 @ ActionsEncode, L374: upload_action_ID:3 [3095025.415]STATUS/1 @ ActionsEncode, L374: upload_action_ID:4 [3095025.415]STATUS/1 @ ActionsEncode, L374: upload_action_ID:0 [3095025.415]STATUS/1 @ ActionsEncode, L374: upload_action_ID:1 [3095025.415]STATUS/1 @ ActionsEncode, L374: upload_action_ID:2 [3095025.415]STATUS/1 @ ActionsEncode, L374: upload_action_ID:3 [3095025.415]STATUS/1 @ ActionsEncode, L376: total_len:108 [3095025.417]ERRORLOG/1 @ uploadWaypointV2Actions, L2166: Upload waypoint v2 actions ErrorCode:0x110000400001
[3095025.418]ERRORLOG/1 @ printErrorCodeMsg, L938: >>>>Error module : WaypointV2 [3095025.418]ERRORLOG/1 @ printErrorCodeMsg, L939: >>>>Error message : the ID of Action is duplicated. [3095025.418]ERRORLOG/1 @ printErrorCodeMsg, L940: >>>>Error solution : none
So Must I relaunch the dji_vehicle_node before uploading a new wp mission?
Agent comment from kyle.cai in Zendesk ticket #44031:
Dear developer ,
Thank you for contacting DJI.
This is because action ID is stored in the vehicle node and uploaded repeatedly. If you use the demo directly, you may need to modify the code, and you need to re-initialize the action variable when re-uploading.
Thank you for your understanding and support, hope you have a nice day.
Best Regards,
DJI SDK Support Team
inline-1511241689.png
OK, thanks for your comment.