Control gimbal using OSDK-ROS
945 1 2022-6-6
Uploading and Loding Picture ...(0/1)
o(^-^)o
djiuser_5wMLhKv7Z4PB
lvl.2
Flight distance : 7848 ft

United States
Offline

Hi there,

We are trying to control the gimbal on M300RTK through OSDK-ROS. From the sample node (https://github.com/dji-sdk/Onboard-SDK-ROS/blob/master/src/dji_osdk_ros/samples/gimbal_camera_control_node.cpp), we saw we can control by using the ros service. However, it seems the service is not called fast enough for us to have the gimbal tracking a moving object. Is there any way that we can use rostopic to control the gimbal?

Thanks!


2022-6-6
Use props
Mats Bohlinsson
Second Officer
Flight distance : 1838077 ft
  • >>>
Sweden
Offline

And how fast do you need? Usually it runs on 10 or 20Hz, depending on drone. If you need faster, it's better to use the speed (angle/s) mode instead of absolute/relative degrees, which I guess you using. If you can calculate the speed of you object you tracking, you will be fine. It usually gets pretty smooth as well.
Edit: Add a pid-regulator to that, and I think it will track pretty fast.
2022-6-7
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules