Last active
August 29, 2015 14:19
-
-
Save bricerebsamen/25a419f36a76c7fc524a to your computer and use it in GitHub Desktop.
roll pitch yaw from tf2 transform using KDL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <tf2_geometry_msgs/tf2_geometry_msgs.h> | |
#include <tf2_kdl/tf2_kdl.h> | |
geometry_msgs::TransformStamped trans; | |
double roll, pitch, yaw; | |
tf2::transformToKDL(trans).M.GetRPY(roll, pitch, yaw); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment