Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

diff drive plugin has left and right backward #317

Closed
gerkey opened this issue Apr 17, 2015 · 1 comment
Closed

diff drive plugin has left and right backward #317

gerkey opened this issue Apr 17, 2015 · 1 comment

Comments

@gerkey
Copy link

gerkey commented Apr 17, 2015

I'm pretty sure that the diff drive plugin is getting the desired left and right wheel velocities backward when converting from vr and va. Here's the code:

wheel_speed_[LEFT] = vr + va * wheel_separation_ / 2.0;
wheel_speed_[RIGHT] = vr - va * wheel_separation_ / 2.0;

A positive va should induce counter-clockwise rotation, which requires the right wheel velocity to be larger than the left wheel velocity. With the above code, we'll get the opposite.

Anecdotal support for this being a bug is provided by the Gazebo tutorial example, in which the left and right joints are swapped, presumably in an effort to work around the problem.

@maxbader
Copy link
Contributor

Hello Gerkey

Have a look at the pull request #272 this plug-in has multiple enhancements and the joints are defined as supposed.
Have a look on the multi_robot_scenario which can be launched out of the box.
gazebo_ros_pkgs/gazebo_plugins/test/multi_robot_scenario/xacro/p3dx/pioneer3dx_plugins.xacro

Greetings
Markus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants