-
Notifications
You must be signed in to change notification settings - Fork 543
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
Allow RobotState::setFromIK to work with subframes #3077
Allow RobotState::setFromIK to work with subframes #3077
Conversation
…demonstrating failure with subframes
@sjahr I believe this is ready for review (just the usual tutorial image failures) |
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 is great! Especially appreciate the tests.
Mostly small comments from my side.
...lanners/pilz_industrial_motion_planner/test/unit_tests/src/unittest_trajectory_functions.cpp
Show resolved
Hide resolved
...lanners/pilz_industrial_motion_planner/test/unit_tests/src/unittest_trajectory_functions.cpp
Show resolved
Hide resolved
...lanners/pilz_industrial_motion_planner/test/unit_tests/src/unittest_trajectory_functions.cpp
Show resolved
Hide resolved
...lanners/pilz_industrial_motion_planner/test/unit_tests/src/unittest_trajectory_functions.cpp
Outdated
Show resolved
Hide resolved
@sea-bass Should be ready for review again. Additionally, I'm always a little unsure of what types of changes require extending the tutorials & api notes. In theory the interface hasn't changed (the |
Ah, also if this could be marked for backport that'd be much appreciated. I'll get on fixing those PRs ASAP |
Thank you! Your assessment is right; API wise, you're fine. That said, i think subframes as a whole are not generally super well documented in the tutorials. So if you're a big user of this feature, you should in futire consider contributing a tutorial! That would be great. |
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.
LGTM, will await a 2nd review from someone else as well.
@sjahr Would you mind providing a second review when you have time? |
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.
Looks good thanks!
* Adds regression tests for setFromIK with objects. Adds failing tests demonstrating failure with subframes * Modifies RobotState::setFromIK to account for subframes * Fixes formatting * Fixes formatting * Fixes formatting * Applies PR suggestions * Applies PR comments --------- Co-authored-by: Tom Noble <tom@rivelinrobotics.com> Co-authored-by: Sebastian Jahr <sebastian.jahr@picknik.ai> (cherry picked from commit ab34495) # Conflicts: # moveit_core/robot_state/src/robot_state.cpp
* Adds regression tests for setFromIK with objects. Adds failing tests demonstrating failure with subframes * Modifies RobotState::setFromIK to account for subframes * Fixes formatting * Fixes formatting * Fixes formatting * Applies PR suggestions * Applies PR comments --------- Co-authored-by: Tom Noble <tom@rivelinrobotics.com> Co-authored-by: Sebastian Jahr <sebastian.jahr@picknik.ai> (cherry picked from commit ab34495) # Conflicts: # moveit_core/robot_state/src/robot_state.cpp
…3085) * Allow RobotState::setFromIK to work with subframes (#3077) * Adds regression tests for setFromIK with objects. Adds failing tests demonstrating failure with subframes * Modifies RobotState::setFromIK to account for subframes * Fixes formatting * Fixes formatting * Fixes formatting * Applies PR suggestions * Applies PR comments --------- Co-authored-by: Tom Noble <tom@rivelinrobotics.com> Co-authored-by: Sebastian Jahr <sebastian.jahr@picknik.ai> (cherry picked from commit ab34495) # Conflicts: # moveit_core/robot_state/src/robot_state.cpp * Fixes merge conflicts (humble backport 3077) (#3087) Co-authored-by: Tom Noble <tom@rivelinrobotics.com> --------- Co-authored-by: Tom Noble <53005340+TSNoble@users.noreply.github.com> Co-authored-by: Tom Noble <tom@rivelinrobotics.com> Co-authored-by: Sebastian Castro <4603398+sea-bass@users.noreply.github.com>
Description
Fixes #3072
RobotState
cansetFromIK
with a collision objectRobotState
cannotsetFromIK
with a subframeRobotState::setFromIK
to consider subframesI tried adding the tests directly to the robot state tests, however, I was getting issues with no kinematic solver being associated with the planning group of the
OneRobot
fixture.Pilz already had a test which was checking
setFromIK
, and appears to be setup with a kinematic solver, so I've added the tests there.Checklist