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

How to properly navigate using the RTK Data

Open Avistadrone opened this issue 4 years ago • 3 comments

Hello,

We are currently trying to perform an autonomous flight using the MoveByPositionOffset method, however we have noticed that the globalPosition does not use the RTK data, so that the pose estimation is not that accurate. In order to achieve a better accuracy, we modified the method MoveByPositionOffset so that it takes the gps location from the topic RTK_POSITION, but its frequency it's just 5Hz what it's quite poor. What would be the best approach to achieve a gps autonomous flight using the rtk information? Using the mission control? As far as we know, the mission control doesn't let you control camera's pan, that's why we tried with the MoveByPositionOffset method.

Thanks.

Best regards.

Avistadrone avatar Jul 14 '21 13:07 Avistadrone

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

Dear developer ,

Thank you for contacting DJI.

For mission control, waypoint actions can be set to control gimbal while reaching the waypoint. Unfortunately, if you use MoveByPositionOffset and get RTK_POSITION through FC, the highest frequency of 5HZ can't be improved.

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

Best Regards, DJI SDK Support Team

°°°

dji-dev avatar Jul 15 '21 03:07 dji-dev

Thank you for the answer.

Could you let us know how to control the yaw of the gimbal using the waypoint action because there is no such attribute in the struct WayPointSettings? To make everything clear, if the RTK is connected, the waypoints mission will automatically fuse the RTK data and obtain a global Position, right? In case it does, there is no way to just subscribe to the fused estimated pose using ROS topics?

Thanks.

Best regards.

Avistadrone avatar Jul 15 '21 06:07 Avistadrone

@Avistadrone WayPointSettings does seem to have a yaw attribute https://github.com/dji-sdk/Onboard-SDK/blob/dc4b77d48fbc8af47ab95e05cc237e0212e9413f/osdk-core/api/inc/dji_mission_type.hpp#L133

ahmed-elsaharti avatar Aug 11 '21 16:08 ahmed-elsaharti