-
Notifications
You must be signed in to change notification settings - Fork 528
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
Remove the margin
argument when checking bounds
#2097
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2097 +/- ##
=========================================
+ Coverage 0 50.90% +50.90%
=========================================
Files 0 391 +391
Lines 0 32126 +32126
=========================================
+ Hits 0 16350 +16350
- Misses 0 15776 +15776
... and 390 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
Unfortunately the |
I'm confused about what the usefulness of this change is. |
Don't you think the margin should be subtracted from I suspect it was a hack back when time parameterization wasn't very good and it occasionally gave output that exceeded vel/accel limits. |
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.
The reasoning makes sense to me, a safety margin should define a range "before" the limit and not an additional tolerance. Please fix the min_velocity case as well. Also, appropriate documentation of the result seems needed as well.
@henningkayser what about removing this |
margin
argument to satisfiesVelocityBounds() is reversed
we might certainly break some things by fixing the margin behavior. If you think the currently implemented use cases are hacks, I would agree with removing support for it. |
Hi @AndyZe and @henningkayser , I did a quick search for
I am assuming I need to make changes in all these lines for removing |
Please remove it everywhere, not just |
I have made the changes as per the list given by you. Except for these 2 lines moveit_core/kinematic_constraints/test/test_constraints.cpp --> contains word |
margin
argument to satisfiesVelocityBounds() is reversedmargin
argument when checking bounds
@SuyashSapkal can I have write access to your fork of |
I have provided you the access. Can you check. |
If you click /home/runner/work/moveit2/moveit2/.work/target_ws/src/moveit2/moveit_ros/planning/planning_request_adapter_plugins/src/fix_start_state_bounds.cpp:136:40: error: no matching function for call to ‘moveit::core::RobotState::satisfiesBounds(const moveit::core::JointModel*&, const double&)’ That particular error is self-explanatory, just remove |
@SuyashSapkal I'm sorry but I screwed something up while trying to rebase your PR on main. I think it's because both branches are named If you can, please do this:
|
It would also be wise to create a backup branch of your changes, with a name other than
|
do you want me to create a backup branch? and push the changes back to my forked |
How about push a backup branch with a decent name, then open a new PR with that branch? We can leave this PR closed. |
ok sure. I have created a branch with name |
Description
Fixes #2090
Updated moveit_core/robot_model/src/joint_model.cpp at line 121.
changes done as mentioned in the screenshots below
Checklist