Ask Your Question

Sync Gazebo and Rviz

asked 2014-06-11 22:10:20 -0600

JJ gravatar image

updated 2014-10-24 13:52:58 -0600

ahendrix gravatar image

Hi, I'm very new to ROS. I just want to know, in this tutorial, for hydro turtlebot,, where we have the 3D view in Gazebo while having the robot's view, how can I achieve that? Can someone tell me how can I have this kind of synchronization please?

In addition, can I also have a synchronized 2D overlooking map of the building of the world we have in Gazebo, such that the location of the robot changes accordingly while we move the robot in Gazebo?

Thanks so much.

edit retag flag offensive close merge delete


My Karma is not enough to add links. The link above should have http:// before it =) thanks!

JJ gravatar image JJ  ( 2014-06-11 22:11:54 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-06-12 20:57:05 -0600

al-dev gravatar image

updated 2014-06-12 21:04:07 -0600

Hi JJ, not sure if I understand your question, it sounds like you managed to launch Gazebo and Rviz simultaneously but you couldn't get Rviz to display what you wanted. If you simply launched rviz with the default configuration and nothing is shown except for the grid, you need to add display items in Rviz and link them to the appropriate topics/transforms which contain what you want to display.

I strongly suggest you go through the first rviz tutorial here, or at the very least through section 5 "viewing the markers" :

As for the 2d overlooking map, once you have set up your display items, you can always change the view type in the rviz Views pane to "TopDownOrtho".

edit flag offensive delete link more


Thanks for answering my questions. It's very helpful. In addition, um, how do I make the robot model in Rviz move?

JJ gravatar image JJ  ( 2014-06-12 23:47:04 -0600 )edit

If you have added a 'RobotModel' display in the Displays pane, I guess you only need to edit its "Robot Description" parameter. Not sure what is the specific name for the turtlebot though, try "robot_description" maybe? It should be listed among the parameters when you type "rosparam list".

al-dev gravatar image al-dev  ( 2014-06-13 00:48:31 -0600 )edit

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


Asked: 2014-06-11 22:10:20 -0600

Seen: 1,125 times

Last updated: Jun 12 '14