Home | Tutorials | Wiki | Issues
Ask Your Question
0

How to build a publisher to pass a string

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

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
1

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

Hi,

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

Stats

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

Seen: 100 times

Last updated: Oct 07 '13