Ask Your Question
0

Combining Header and Pose to make Posestamped

asked 2015-01-17 12:57:25 -0500

MDXLukeBennett gravatar image

Hi there,

I am trying to a node that publishes posestampted messages to a topic when a float is the value of 1.0 on a different topic.

Could any of you kind people help me with where I am going wrong? Please find a picture on the link below..

https://www.dropbox.com/s/vn3gcg6ixij...

I believe the problem is wrong syntax on line 16, causing frame_id: odom, position:

rather than causing frame_id: odom position:

Please forgive me for being such a python newbie.

Thanks in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-01-19 03:28:22 -0500

Girts L gravatar image

To publish it needs an object of the message type. Try something like

PS = PoseStamped()

and

PS = PoseStamped(msg.header, msg.pose.pose)
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: 2015-01-17 12:57:25 -0500

Seen: 887 times

Last updated: Jan 19 '15