Use motion capture with crazyflie-lib-python #240
-
Hi, Bitcraze! I'm sorry to bother you but I have some problems when I use motion caputure(VICON) with crazyflie-lib-python. I'm also confused if this is available. Meanwhile, I also encounter a strange thing that when I do step(2) both with and without step(1), the x value and y value equals to 0 all the time, even if I change the position of crazyflie in the real world manually. So my question is:
Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
It sounds like you are on the right track I don't think crazyflie.extpose.send_extpose() pushes your data to the kalman estimator, pretty much like any other sensor data and if you do it repeatedly it should work as you expect.
Yes. We don't have a Vicon example, but we have one for Qualisys. Lines 228-245 is where the pose data is sent to the Crazyflie. Also note that you can use
The two things I can think about is that you perhaps did not activate the kalman estimator, or that you do not call
If you only log (not pushing anything to |
Beta Was this translation helpful? Give feedback.
-
I just wanted to add that I recently found a bug in the qualisys_hl_commander.py that has been fixed now. I also added functionality to tune down the sensitivity of the orientation information that is pushed to the estimator. |
Beta Was this translation helpful? Give feedback.
-
We recently published the open source Qualisys Drone SDK for controlling the Crazyflie (and soon, hopefully, the Robomaster TT) with Qualisys motion capture systems: https://github.com/qualisys/qualisys_drone_sdk The SDK is not designed to be universal, it is specific to Qualisys systems. However, you might find inspiration in our code, and adapt it to your own application @cc299792458. |
Beta Was this translation helpful? Give feedback.
It sounds like you are on the right track
I don't think
crazyflie.extpose.send_pose()
exists but you probably meancf.extpos.send_extpose()
:-)crazyflie.extpose.send_extpose() pushes your data to the kalman estimator, pretty much like any other sensor data and if you do it repeatedly it should work as you expect.
Yes. We don't have a Vicon example, but we have one for Qualisys. Lines 228-245 is where the pose data is sent to the Crazyflie. Also note that you can use
cf.extpos.send_extpos()
if you only want to send position data and not full pose.The two things I can think about is tha…