whoenig / crazyflie_ros

ROS Driver for Bitcraze Crazyflie
MIT License
192 stars 205 forks source link

transfer quaternion into Euler angles in topic /tf #160

Closed Allenhanbo closed 4 years ago

Allenhanbo commented 4 years ago

Hi all, I use the launch file external_position_vicon.launch to do the autonomous flying. I echo the topic /tf using the rostopic echo /tf. The sample looks like:


transforms:

I can get the position and orientation of drone relative to the world frame.

For rotation(quaternion, I have one question: How can I transfer the quaternion into the rotation matrix R composed of three euler angles.