crazyflie_ros icon indicating copy to clipboard operation
crazyflie_ros copied to clipboard

Delay with the optitrack estimated position

Open mandelyoni opened this issue 5 years ago • 4 comments

Dear Dr. Whoenig,

We're working with an Optitrack and crazy flies (with your library crazyflie_ros). While observing the optitrack's pose estimation, through ''rostopic echo /crazyflie8/vrpn_client_node/crazyflie8/pose'', we definitely identify a delay. This delay makes the position loop very unstable. Any advice on this issue?

Thank you, Yoni.

mandelyoni avatar Jun 24 '19 11:06 mandelyoni

How is your optitrack computer connected to the machine that is running crazyflie_ros? I highly recommend using a wired connection and not WiFi.

Additionally, I recommend using NatNet instead of VRPN for (slightly) lower latency. For example, you can use https://github.com/whoenig/motioncapture_ros instead of vrpn_client_ros.

whoenig avatar Jun 25 '19 03:06 whoenig

Dear Dr. Whoenig,

Thank you for your prompt answer. I will try it asap.

Another issue that we're having is with the latest version of the crazyflie. We've just purchased a crazyflie 2.1 and tried to operate it with crazyflie_ros. For some reason, the motors are moving slowly and the drone doesn't take off. Do we need to do a firmware update? To which version?

Thank you, Yoni.

mandelyoni avatar Jun 25 '19 04:06 mandelyoni

Any newer official firmware should be fine. Which "operation mode" are you using? I don't recommend using the external position controller in crazyflie_controller (neither for CF2.0 nor CF2.1) - this might need re-tuning for CF2.1. Instead, use one of the on-board position controllers (PID or mellinger).

whoenig avatar Jun 25 '19 05:06 whoenig

Ok, thank you very much.

mandelyoni avatar Jun 26 '19 15:06 mandelyoni