Hi, it looks like the /gazebo node (rosnode info /gazebo) has subscribed to a topic (/cmd_vel) that any node publishes (yet) ...

Questions :

  • How do you know how the /gazebo node is created ?
  • In my local install (roslaunch turtlebot_gazebo turtlebot_world.launch) the /gazebo node doesn't subscribe to any /cmd_vel topic , how do you do that ?

Thank you very much,

asked 09 Jan '18, 13:32

mscavazzin's gravatar image

mscavazzin
0
accept rate: 0%


Hi @mscavazzin,

if you check "turtlebot_world.launch" you can see that this launch file probably includes another launch files. Following the includes you will see that at some point the "empty_world.launch" from the "gazebo_ros" package will be included.

If you check the content of empty_world.launch, you will see that the "gazebo" node is launched.

You can see the content of that file using the command below:

roscat gazebo_ros empty_world.launch

Regarding to the "/cmd_vel" topic, "gazebo" itself doesn't subscribe to that topic. But in Gazebo you can load plugins. These plugins can do anything. In this case, the ".world" that is loaded in gazebo is telling gazebo to load a specific plugin.

More details about Gazebo Plugins can be found on this page: http://gazebosim.org/tutorials?tut=ros_gzplugins

Cheers.

permanent link

answered 09 Jan '18, 21:37

ralves%40theconstructsim.com's gravatar image

ralves@theco... ♦♦
453
accept rate: 48%

1

I think I figured that out, the cmd_vel topic is defined in kobuki_gazebo.urdf.xacro Thanks.

(10 Jan '18, 10:30) mscavazzin
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×3
×2

question asked: 09 Jan '18, 13:32

question was seen: 329 times

last updated: 10 Jan '18, 10:30

powered by OSQA