[Servo] Move enforcePositionLimits and enforceVelocityLimits to utilities#2180
[Servo] Move enforcePositionLimits and enforceVelocityLimits to utilities#2180AndyZe merged 10 commits intomoveit:mainfrom
enforcePositionLimits and enforceVelocityLimits to utilities#2180Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2180 +/- ##
==========================================
- Coverage 50.55% 50.51% -0.03%
==========================================
Files 387 386 -1
Lines 31740 31735 -5
==========================================
- Hits 16044 16029 -15
- Misses 15696 15706 +10
☔ View full report in Codecov by Sentry. |
henningkayser
left a comment
There was a problem hiding this comment.
Is there a reason to not use RobotState::enforceBounds() or the alternatives for position/velocities?
Probably because of this (from PR #451 )
Maybe @AndyZe can clarify more on this ? Also @sea-bass , did you have any cases where you needed to use the |
|
We are currently using |
|
@AndyZe |
|
I agree with your comment there |
|
This PR is a cleanup PR, mostly to keep things cleaner in the current |
sea-bass
left a comment
There was a problem hiding this comment.
Thanks for this! Found a few typos and suggestions.
|
@AndyZe Do you mind giving a final review? |
|
Still looks good to me. Let's merge it |
Description
This PR moves the functions
enforcePositionLimitsandenforceVelocityLimitsinto utilities fromservo_calcs.cppandenforce_limits.cpprespectively.The dependency of some of the utility functions on
rclcpp:Clockhas also been removed.Checklist