Home | Tutorials | Wiki | Issues
Ask Your Question

4 wheel robot differential controller

asked 2018-01-21 00:17:33 -0500

kallileo gravatar image

I have designed simple a 4-wheel robot and I want to make it move. The controller below is located in "myrobot.gazebo" file and it works with 2 wheels and a caster. Is it possible to modify the controller so it can control 2 wheels on each side?

<plugin name="differential_drive_controller" filename="libgazebo_ros_diff_drive.so">
edit retag flag offensive close merge delete


hi @VEGETA did you find the answer to this question? I have found some examples for this problem. However, they are all made using 2 wheels. And I think it's very difficult to make a 4 or 6-wheel robot using these examples. I have a robot with 6 wheels right now and I want to make it move. https://goo.gl/9wknlrhttps://goo.gl/JtEWFChttps://goo.gl/UUVdzA

tooght gravatar imagetooght ( 2018-01-21 12:52:59 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2018-01-31 04:13:50 -0500

moshimojo gravatar image

For a 4-wheel robot you better use the Skid Steer plugin in here. Differential drive doesn't control both 2 wheels on each side.

edit flag offensive delete link more

answered 2018-01-23 01:44:17 -0500

Raskkii gravatar image

You would have to modify the source code of the diffdrive controller (better to make a new plugin yourself and use diffdrive as a base).

It shouldn't be much work, you'd just need to obviously add the rear wheels to the plugin and apply the velocity the same way as it is applied to the front wheels.

If you're not familiar on how to make your own plugin then I suggest you read this tutorial: http://gazebosim.org/tutorials/?tut=p...

Good luck!

edit flag offensive delete link more


Thankyou so much.

tooght gravatar imagetooght ( 2018-01-27 13:53:16 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-01-21 00:17:04 -0500

Seen: 189 times

Last updated: Jan 31