Gazebo | Ignition | Community
Ask Your Question

How to build a publisher to pass a string

asked 2013-10-06 22:25:26 -0600

EdwardC gravatar image

Does anybody know how to pass string between different nodes? msgs seems to only contain limited number of types, which a string is not included. So when I do

transport::PublisherPtr statePub = node->Advertise<msgs::string>("~/sentence");

,it doesn't work.

Many thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-10-07 02:06:43 -0600


there is a gzstring i guess this is suppossed to be used for pure String messages...

here is a list of message types provided by Gazebo

Here's a tutorial about using cutom messages...

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2013-10-06 22:25:26 -0600

Seen: 121 times

Last updated: Oct 07 '13