ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Simulation with a simple car model in Gazebo

asked 2011-07-04 00:20:53 -0600

mangoya gravatar image


I'm currently planning to set up a gazebo simulation for an default gazebo simple car model .I haven't had any luck understanding how to go about making the robot move via external commands (keyboard presses, etc.).

The documentation seems to gloss over this, or at least I can't find where it's described. How would I go about making a robot move in the a Gazebo simulation?


edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2011-07-04 06:23:02 -0600

gazkune gravatar image

If I am not wrong, you need to implement a gazebo plugin that basically converts the velocity commands of the keyboard teleop to gazebo joint torques or speeds. For that purpose, I would recommend to have a look at:

You will find some gazebo plugins available. I think that GazeboRosDiffdrive is specially interesting for you. It implements a gazebo plugin for a differential robot. You would have to do something similar but for a car-like steering model.

Finally, to add Gazebo extensions to urdf files (where I guess you have modeled your robot), have a look at:

I hope this helps.

edit flag offensive delete link more


Hi @gazkune, first of all, Thanks for your rapid answer. I've been finding in the gazebo_plugins and I've found gazebo_ros_diffdrive.cpp but I don't understand it. Then Where could i find more documentation or examples about it, because I'm novice Thanks.
mangoya gravatar image mangoya  ( 2011-07-06 23:03:11 -0600 )edit

answered 2011-07-08 07:23:25 -0600

Aidan1488 gravatar image

Hey! I used this two tutorials of the pr2 and they helped me a lot. Check them out. Hope it helps you:

Good luck. I'm also stuck with making a sad car just to move in gazebo so I understand your pain XD.

edit flag offensive delete link more


thanks, you're vey kind
mangoya gravatar image mangoya  ( 2011-07-12 20:29:13 -0600 )edit

answered 2011-07-07 06:36:04 -0600

hsu gravatar image

updated 2011-07-07 06:47:10 -0600

please see this post for a similar discussion.

edit flag offensive delete link more

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: 2011-07-04 00:20:53 -0600

Seen: 5,402 times

Last updated: Jul 08 '11