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
[Servo] Move enforcePositionLimits
and enforceVelocityLimits
to utilities
#2180
Conversation
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. |
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.
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 |
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.
Just one comment here
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.
Thanks for this! Found a few typos and suggestions.
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! I found a bug in the log message printing.
I think the remaining CI failure might just require updating your branch to main since SonarCloud was just added in a little while earlier.
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.
Awesome!
@AndyZe Do you mind giving a final review? |
Still looks good to me. Let's merge it |
Description
This PR moves the functions
enforcePositionLimits
andenforceVelocityLimits
into utilities fromservo_calcs.cpp
andenforce_limits.cpp
respectively.The dependency of some of the utility functions on
rclcpp:Clock
has also been removed.Checklist