Do I need to use the Natnet and vrpn when using optitrack? #304
Replies: 8 comments
-
The Crazyswarm already comes with the NatNetSDK, so you only need to adjust the launch file. The code is 'hidden' in a submodule, see https://github.com/USC-ACTLab/libmotioncapture/. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your advise! Now I get get the message given by the motive and see them in the rostopic |
Beta Was this translation helpful? Give feedback.
-
This is usually an indication of the coordinate system not matching. Did you follow the settings here: https://crazyswarm.readthedocs.io/en/latest/usage.html#optitrack? Also make sure that when you just manually walk around with the drone, that the state estimate ( |
Beta Was this translation helpful? Give feedback.
-
Thank you for your advise ! |
Beta Was this translation helpful? Give feedback.
-
Crazyradio I believe the update procedure requires Python 2, which is not shipped by default in Ubuntu 20.04. If you bought your Crazyradio recently, you likely do not need to update your radio firmware. Otherwise, please open a new issues with the details on how the radio firmware upgrade failed. Logging Could you provide some more details on how enabling logging did not work? The logging is crucial for debugging your issue, to avoid (or at least minimize) the crashes Tracking On the PC-side the pointcloud is analyzed every frame with an optimal assignment algorithm to track the position of each Crazyflie. This is similar to GPS on a bigger drone flying outdoors. The EKF runs onboard the firmware and fuses additional sensor information from the IMU to estimate the orientation. You may find the code at https://github.com/bitcraze/crazyflie-firmware/blob/master/src/modules/src/kalman_core.c. |
Beta Was this translation helpful? Give feedback.
-
Thank you for you advice! ` |
Beta Was this translation helpful? Give feedback.
-
Now I suspect that the place position from optitrack was not sended to the crazyflie. And the EKF algorithm may has some error ? |
Beta Was this translation helpful? Give feedback.
-
From your description it sounds like you can see the state estimate in ROS topic/rviz, but it does not get transmitted correctly to the Crazyflie. The most common reason for that is i) you didn't update the Crazyradio firmware, or ii) you didn't update the NRF51 firmware. Both firmwares need to support broadcast communication. The best way to test this is by logging the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I want to use the Optitrack as the mocap of crazyflies. but I get really comfused that the instructions said that i only need to modify the hover_swarm.launch while others always mentioned I need to use the vrpn and natnet to keep a connection. What's more, I didn't see the in the code of .cpp
So What should I do to connect the crazyflie to the Optitrack?
Do I need to install both the vrpn and natnetSDK or just modify the hover_swarm.launch?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions