0
$\begingroup$

Rosanswers logo

I have two frames, one is global frame, another is UAV frame. And i also have the transform between them.

how to get the yaw angle between global frame to UAV frame , So i can know the angle between global frame x_axis and UAV framex_axis.


Originally posted by crazymumu on ROS Answers with karma: 214 on 2015-05-02

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

You can find it using rotation matrix.

get rotation matrix from transform. Each column in matrix represent unit vector along new axis. First column represent unit vector of along new x-axis.

if m0, m1, m2 are elements of first column, angle between old and new x-axis is

image description


Originally posted by bvbdort with karma: 3034 on 2015-05-02

This answer was ACCEPTED on the original site

Post score: 1


Original comments

Comment by crazymumu on 2015-05-02:
thanks, it's right

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.