-
Notifications
You must be signed in to change notification settings - Fork 4
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
DiffDriveKinematics: Scale wheel velocity to stay below max speed #285
Conversation
dc61c63
to
f2d42a9
Compare
f2d42a9
to
29b99c6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good, just some quick fixes needed
Sometimes we want to scale the wheel velocity so that we focus more on rotational velocity or linear velocity. There are cases where the given theta velocity and linear velocity result in a wheel speed too great for the rover.
50d3a95
to
023b712
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there! Everything mostly looks good, just some notes about using std::abs
instead of abs
, and then some minor nitpicks beyond that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just I think a minor thing then should be good to go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, nice job on this!
* DiffDriveKinematics: Scale wheel velocity to stay below max speed Sometimes we want to scale the wheel velocity so that we focus more on rotational velocity or linear velocity. There are cases where the given theta velocity and linear velocity result in a wheel speed too great for the rover. * Make corrections to math + implement proportional + tests * remove trailing comma to maybe fix clang-format * add comma back * Correct proportional scaling + cleanup + some work on tests * Tests: Add tests for preferxvel diff drive kinematic scaling * Tests: Add tests for preferthetavel in diffdrive kinematics * Kinematics: Remove unnecessary include * DiffDriveKinematics: Clean up + add test for thetaVel being too large * Add missing break + make immutable values const
Sometimes we want to scale the wheel velocity so that we focus more on rotational velocity or linear velocity. There are cases where the given theta velocity and linear velocity result in a wheel speed too great for the rover.