Home | Tutorials | Wiki | Issues
Ask Your Question

Publishing to a Gazebo Topic by Terminal

asked 2017-08-11 22:08:46 -0500

ItzMeJP gravatar image

Can I pub a test message to a specific Gazebo topic using a terminal line command?

I am looking for something like the command rostopic pub for ROS, but for Gazebo.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-08-14 19:26:47 -0500

iche033 gravatar image

there is a command line tool but it's not exactly the same as rostopic pub. You can send commands like modifying model/camera/joint properties, etc but you can't publish commands to arbitrary gazebo topics.

type gz help for more info

edit flag offensive delete link more


I already did it and no options help me. Is there any code example (in C++) of a simple publish (to a exist random topic) for gazebo?

ItzMeJP gravatar imageItzMeJP ( 2017-08-15 16:53:12 -0500 )edit
iche033 gravatar imageiche033 ( 2017-08-16 11:48:44 -0500 )edit

This link is broken =/

ItzMeJP gravatar imageItzMeJP ( 2017-08-16 12:24:10 -0500 )edit

Now it works, thank you. It is what I am looking for.

ItzMeJP gravatar imageItzMeJP ( 2017-08-16 13:19:22 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-08-11 22:08:46 -0500

Seen: 64 times

Last updated: Aug 14