Ask Your Question

Connect ROS with Gazebo beginner tutorial

asked 2018-05-16 11:00:30 -0600

Elric gravatar image

updated 2018-05-16 12:45:23 -0600

I'm new in ROS and Gazebo.

I'm studying robotics at the university and I need to move a robot in Gazebo using ROS. I will control the robot with the keyboard.

My problem is that I have no idea about ROS or Gazebo. I did the ROS' beginner tutorials and also some tutorials from Gazebo (the ones that talk about gazebo plugins).

I've stated reading the Gazebo: connect to ROS tutorials, but it is a mess. They talk a lot of things that I don't understand. To be more specific (the tutorials are here, ):

  1. In Using a URDF in Gazebo, they talk to convert URDF files to Gazebo. Do I need to do that?
  2. In Using Gazebo plugins with ROS, I found a question about writing a Gazebo plugin to handle a robot in Gazebo, and someone answered that we can do that using ROS. Do I need to write Gazebo plugins to connect ROS with Gazebo?
  3. In ROS Control, they explain how to add transmission elements to a URDF. If I modify the URDF to use it with Gazebo, will I still using it in a ROS package?
  4. I get tired to read and don't understand anything. I decided to ask here.

Reading that I think that those tutorials are for advanced users because they do thinks that I haven't do yet. I haven't modify a SDF file, I use the Gazebo's editor to modify the robot or the world.

I just need a tutorial to follow that talks about how to connect gazebo with ROS, add a robot and control it with a keyboard from ROS.

Do you know if there is something like that?

edit retag flag offensive close merge delete



What exactly is it that you're having trouble with?

They talk a lot of things that I don't understand.

Can you please be specific?

jayess gravatar image jayess  ( 2018-05-16 12:28:02 -0600 )edit

@jayess I have modified the question to be more specific. Thanks.

Elric gravatar image Elric  ( 2018-05-16 12:36:42 -0600 )edit

Thanks. Can you also please update your question with a link to the tutorials?

jayess gravatar image jayess  ( 2018-05-16 12:43:50 -0600 )edit

Link added.

Elric gravatar image Elric  ( 2018-05-16 12:45:34 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-05-16 11:48:48 -0600

raequin gravatar image

updated 2018-05-23 09:20:25 -0600

If you have time to buy a book, chapter eight of Programming Robots with ROS has exactly what you are looking for.


Here are responses to your specific questions.

  1. You do not need to convert from URDF since ROS can spawn models in Gazebo.

  2. You do not need to write Gazebo plugins since there are already some available, like gazebo_ros_pkgs

  3. Yes, you will still be using ROS. The joints are controlled by publishing on the appropriate topics.

  4. I often come here for help, too :)

edit flag offensive delete link more


Thanks. I've read the chapter and it is very helpful, but it doen't tell how to create my own robot in Gazebo.

Elric gravatar image Elric  ( 2018-05-23 09:09:57 -0600 )edit

Check out this link and also Chapter 16.

raequin gravatar image raequin  ( 2018-05-23 09:23:53 -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



Asked: 2018-05-16 11:00:30 -0600

Seen: 1,850 times

Last updated: May 23 '18