How to use odometry and cmd_full_state at the same time #347
Replies: 2 comments 5 replies
-
That is indeed a bit of a dillema! You are correct on that for sure. The full state command wasn't available in the crazyflie python library yet until recently with this pull request: bitcraze/crazyflie-lib-python#382. An example script in python can be found here: https://github.com/bitcraze/crazyflie-lib-python/blob/master/examples/autonomy/full_state_setpoint_demo.py You can implement it yourself perhaps easier in python but I'll give a go on a quick PR that I'll hopefully be able to finish this afternoon. |
Beta Was this translation helpful? Give feedback.
-
You can also try to implement it through the cpp route, but the problem there is that I'm not sure if the crazyflie logging type of FP16 (16 bit float ) has been implemented in the logging block initialization of the cpp backend. @whoenig, would you know about that by any chance? |
Beta Was this translation helpful? Give feedback.
-
I'm currently trying to integrate a planner that subscribes to odometry and publishes cmd_full_state, into crazyswarm2 .
However, the document says that cmd_full_state and odom functions are independent in cpp and python respectively, and I cannot use both at the same time.
Please provide current information regarding this issue.
If it is not currently available, I would like to customize crazyflie_server. Is it technically possible to use both cmd_full_state and odom?
If possible, please let me know which is easier to modify, cpp or cflib.
I'm also considering using crazyswarm1 in some cases. However, when I checked, it seems that odometry is not provided by default in crazyswarm1.
Thank you for your answer in advance.
Beta Was this translation helpful? Give feedback.
All reactions