Ask Your Question
0

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
0

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 710 times

Last updated: Feb 03 '16