ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

Easy way to transform a geometry_msgs::Pose by a 4x4 Rotation Matrix

asked 2012-12-06 14:59:39 -0500

Muadibz gravatar image

updated 2014-01-28 17:14:29 -0500

ngrennan gravatar image

Hello All,

I feel as if there should be a way for me to easily translate and rotate a geometry_msgs::Pose by a 4x4 rotation matrix given to me as the final transformation from a registration in the Point Cloud Library.

I'm not sure of how I should go about performing this operation.

Thanks,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-12-06 21:30:35 -0500

Lorenz gravatar image

You can use tf's poseMsgToTF method. It will generate a tf::Pose instance which is essentially similar to Bullet's Transform class. You can use the methods getBasis and getOrigin to construct the matrix.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-12-06 14:59:39 -0500

Seen: 1,617 times

Last updated: Dec 06 '12