ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Connect ROS with Gazebo beginner tutorial

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

Elric gravatar image

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

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, http://gazebosim.org/tutorials?cat=co... ):

  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

Comments

1

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 -0500 )edit
1

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

Elric gravatar image Elric  ( 2018-05-16 12:36:42 -0500 )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 -0500 )edit

Link added.

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

1 Answer

Sort by ยป oldest newest most voted
4

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

raequin gravatar image

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

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

edit:

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

Comments

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 -0500 )edit
1

Check out this link and also Chapter 16.

raequin gravatar image raequin  ( 2018-05-23 09:23:53 -0500 )edit

Question Tools

2 followers

Stats

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

Seen: 2,241 times

Last updated: May 23 '18