Using Crazyswarm with Qualisys #181
-
Hello! I'm currently trying to use crazyswarm2 with the Qualisys positioning system, as I previously have done with crazyswarm1. I am, however, running in to problems when the drone takes off. When running the hello world script, the crazyflie almost immediately flips over. I can see in rviz that the drone has correct orientation and position, so I have a hard time figuring out where the problem comes from. I can fly with the drone using the cfclient together with qualisys without problem. I am using the cpp backend. I suspect I must have done something wrong in the config files, but I just can't figure out what. I'm very thankful for any input I can get on this. crazyflies.yaml
motion_capture.yaml
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
I suggest that you enable logging and then look with Does your config intentionally use the Qualisys software for rigid body tracking? If so, you don't need to define the custom_frames and you can even set motion_capture/enabled to false (the name is misleading, it just enables the custom rigid-body tracking, not the motion capture itself, which is done in a separate package). If you want to use our custom tracker, you should switch the tracking mode to |
Beta Was this translation helpful? Give feedback.
-
FYI, I did find many issues with the communication when having 3+ drones in Crazyswarm2. I have fixes for it, but it will take a few weeks before it gets cleaned up and merged. |
Beta Was this translation helpful? Give feedback.
-
The issue was solved by lowering the output frequency to 50 Hz, as the problem was that the update of the crazyflie's position was lagging behind, trying to send a radio packet for every time frame received from qualisys. |
Beta Was this translation helpful? Give feedback.
The issue was solved by lowering the output frequency to 50 Hz, as the problem was that the update of the crazyflie's position was lagging behind, trying to send a radio packet for every time frame received from qualisys.