-
Notifications
You must be signed in to change notification settings - Fork 569
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
Add allowed_start_tolerance_joints parameter (Port moveit#3287) #3309
base: main
Are you sure you want to change the base?
Conversation
... for joint-specific start tolerances for TrajectoryExecutionManager Co-authored-by: Robert Haschke <[email protected]>
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #3309 +/- ##
==========================================
- Coverage 45.60% 45.55% -0.04%
==========================================
Files 716 716
Lines 62388 62431 +43
Branches 7547 7553 +6
==========================================
- Hits 28446 28435 -11
- Misses 33776 33829 +53
- Partials 166 167 +1 ☔ View full report in Codecov by Sentry. |
There are so many parameter changes between ROS 1 and ROS 2 MoveIt that I wouldn't put very high value on "continuity with the original PR" - "allowed_start_tolerance_joints" does seem to be a much better name for this - I would further suggest that "allowed_start_tolerance" should actually be "allowed_start_tolerance_default" - to distinguish more clearly how it differs from the "_joints" parameter |
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.
This looks good to me as is!
Agree with @mikeferguson that you can pick whatever name you like for the new parameter, but would be nice to keep the name of the existing one to prevent people from having to update their configs.
That being said, comments in the parameter YAMLs and in the code go a long way in explaining these things!
Also, don't worry about the tutorial images failures. A bunch of packages got booted off Rolling because of a deprecated ros2 control header that needs to be updated, so nothing to do with these changes.
Based on your feedback, I added a commit renaming the parameter to "allowed_start_tolerance_joints". I think renaming "allowed_start_tolerance" to "allowed_start_tolerance_default" is a bit more controversial. On one hand, I agree that it better reflects its purpose; but on the other hand, as @sea-bass pointed out, this parameter is already used in most of the robot configs. I don’t think it's worth updating for such a minor improvement in clarity. |
Description
Allow to specify a per joint allowed start tolerance for the TrajectoryExecutionManager. Port from moveit/moveit#3287 with some changes to be able to dynamically update its values at runtime.
Example of usage
In
moveit_controllers.yaml
:Joints that are not declared in
allowed_start_tolerance_joints
will useallowed_start_tolerance
as the default.Some remarks
I would personally have named this parameter "allowed_start_tolerance_joints" to be next to "allowed_start_tolerance" when sorted alphabetically. However, to maintain continuity with the original PR, I kept it as is.test_execution_manager.cpp
is not used at the moment, right?allowed_start_tolerance
, it would be more intuitive to use the absolute value in that case.Checklist