Skip to content

Instantly share code, notes, and snippets.

@bricerebsamen
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bricerebsamen/25a419f36a76c7fc524a to your computer and use it in GitHub Desktop.
Save bricerebsamen/25a419f36a76c7fc524a to your computer and use it in GitHub Desktop.
roll pitch yaw from tf2 transform using KDL
#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