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

How to convert geometry_msgs/Pose to geometry_msgs/PoseStamped

asked 2016-02-03 01:32:03 -0500

mayank_m gravatar image

I need to convert a message from geometry_msgs/Pose to geometry_msgs/PoseStamped. Is there ay functionality in ROS to do the same ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-02-03 02:39:58 -0500

BennyRe gravatar image

geometry_msgs/PoseStamped contains two fields. header and pose.

You can create an empty PoseStamped and set pose to your geometry_msgs/Pose. If you want you can also set some fields in the header.

No black magic.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-02-03 01:32:03 -0500

Seen: 2,032 times

Last updated: Feb 03 '16