The problem i noticed in crazyflie.py Library inside is that the Current Crazyswarm2 API from IMCRC is that it does not subscribe to Pose/PoseStamped and therefore cannot provide live pose data to client scripts.Even though an inbuilt function was seen,It wasnt publishing the position data as expected.So i have come up with a solution which contains PoseStamped import, a subscriber to f’{prefix}/pose’, a callback to update internal state, and public get_pose()/get_position() accessors.details can be seen in the file that Ive added along.
The benifits include Standard ROS 2 pose interface for downstream nodes, simpler integration with planners/visualizers, and parity with status exposure.It is also backward compatible.
Thank you and hope this will help those who are developing and testing algorithms using crazyswarm.
Link for the updated repo:GitHub - IMRCLab/crazyswarm2: A Large Quadcopter Swarm