Robotics StackExchange | Archived questions

gazebo libgazebo_ros_diff_drive.so veers

I have been through several very similar basic tutorials for building a simulated mobile robot in Gazebo. They all consist of a pair of wheels, a chassis and a caster. In each case the vehicle is connected to the libgazebo_ros_diff_drive.so plugin.

I am trying to understand the behaviour. When I send a new speed demand (using teleoptwistkeyboard) the vehicle moves. I start the vehicle pointing along the x-axis. The speed demand that I apply is forwards. My expectation is that the vehicle should move exactly along the x-axis, since there should be no forces to rotate the vehicle. However, within 10m the vehicle has rotated by about 45deg.

Does the gazebo simulator add noise to the simulation/control? Is there some other explanation for this behaviour?

Asked by Dave Barnett on 2019-09-18 10:04:10 UTC

Comments

In each case the vehicle is connected to the differential_drive_controller plugin.

please always link to the exact plugin/package you are using. There are several plugins that do similar things, but they are not identical.

Also: questions about the dynamics simulation of Gazebo would best be asked over at answers.gazebosim.org. Here we can discuss the ROS integration/plugins.

Asked by gvdhoorn on 2019-09-18 10:12:41 UTC

Plugin is libgazebo_ros_diff_drive.so

I'll post this over at gazebosim too.

Asked by Dave Barnett on 2019-09-18 10:20:09 UTC

Then please post a link here in a comment to that question, so we can keep things connected.

Asked by gvdhoorn on 2019-09-18 10:24:01 UTC

Post on Gazebo Answers: differential_drive_controller veers.

Asked by gvdhoorn on 2019-09-19 01:59:00 UTC

Answers