-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DiffDriveKinematics: Scale wheel velocity to stay below max speed (#285)
* 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
- Loading branch information
1 parent
21cea1d
commit ee131a9
Showing
3 changed files
with
148 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters