Quaternion to Euler

많이 쓴닀…

ν•˜μ§€λ§Œ 잘 μ•ˆ μ™Έμ›Œμ Έμ„œ 일단 λΈ”λ‘œκ·Έμ— 남긴닀


quat to euler

μ½”λ“œλŠ” μ•„λž˜μ™€ 같이 μ‚¬μš©ν•˜λ©΄ 됨

\(ax+by+cz=1\)

#include <tf/tf.h>

tf::Quaternion q(
        msg->pose.pose.orientation.x,
        msg->pose.pose.orientation.y,
        msg->pose.pose.orientation.z,
        msg->pose.pose.orientation.w);
tf::Matrix3x3 m(q);
double roll, pitch, yaw;
m.getRPY(roll, pitch, yaw);

Leave a comment