Repository navigation
Disables copying of attached collision objects when updating start state - #3590
Conversation
moveit#3569 describes propagation of error from updating collision objects with each update of the start state during a sequence motion plan. moveit#3589 attempts to speed up plans by updating only joints positions when updating the start state, though this may cause the RobotState to ignore collision objects entirely if the state being updated has no knowledge of them. This PR attempts to fix both issues by only updating the joints of a sequence motion, without copying across attached collision objects, in the hope that the start state being updated is already populated with attached collision object information.
|
Thanks for helping in improving MoveIt and open source robotics! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3590 +/- ##
==========================================
+ Coverage 47.15% 47.18% +0.04%
==========================================
Files 603 603
Lines 58999 59144 +145
Branches 6969 6993 +24
==========================================
+ Hits 27814 27901 +87
- Misses 30773 30825 +52
- Partials 412 418 +6 ☔ View full report in Codecov by Sentry. |
|
I'm unsure if this method will be loading the entire robot state (objects and all) at the start of the sequence. If not, it might face the same issue as #3589 with missing attached bodies. If this is the case, perhaps it would make sense to add an |
|
If desired, I can try to write some tests which demonstrate the issue described in #3569, which should hopefully pass with this PR |
rhaschke
left a comment
There was a problem hiding this comment.
This might be a reasonable change. I need to verify in which contexts CommandListManager::setStartState is called.
rhaschke
left a comment
There was a problem hiding this comment.
setStartState is only called to set the next request's start_state from the previously reached end point:
https://github.com/ros-planning/moveit/blob/0f90db67a45a0a69d871fc46ba0efba3e51a32b7/moveit_planners/pilz_industrial_motion_planner/src/command_list_manager.cpp#L235
Thus, ignoring attached collision objects is fine - they do not change throughout a sequence. The start_state should be marked as a diff, though.
Yes, the initial
Yes, tests are always welcome to ensure behavior is not changed with future mods to the code. |
|
Thanks for taking a look. Submitted this via my personal account, so will try to make those changes & get a test reproducing the issue tonight |
Co-authored-by: Robert Haschke <[email protected]>
|
Some findings: I tried to reproduce the pose error issue on master. Many paths planned fine (no deviation at all), but I was able to reproduce the error consistently with some paths. @rr-mark suspects it may be occurring as a result of performing matrix inversions as part of the msg <-> object conversion process near robot singularities. I logged the poses of every attached collision object associated with the Some observations:
I ran the same process over the same path using the changes proposed in this branch, which appear to fix the issue. The pose shows no deviation, and all 425 points plan successfully: I'm not familiar with with the robots available to the pilz unit tests. Given the hard-to-reproduce nature of the issue, which may be somewhat dependent on knowledge of where the singularities lie, I'm not confident I can easily write an automated test for this error case (at least it'd be a big time sink). I'm pretty confident the issue is fixed, given both that the changes imply the attached collision objects of will never be updated within a sequence motion, and the experimental evidence. Would you be happy to merge this PR without tests, given the above? |
|
Congrats on getting your first MoveIt pull request merged and improving open source robotics! |
* Ports moveit/moveit1#3592 * Ports moveit/moveit1#3590 * Fixes compile errors --------- Co-authored-by: Sebastian Jahr <[email protected]>
* Ports moveit/moveit1#3592 * Ports moveit/moveit1#3590 * Fixes compile errors --------- Co-authored-by: Sebastian Jahr <[email protected]> (cherry picked from commit 02ebcba) # Conflicts: # moveit_ros/planning_interface/move_group_interface/src/move_group_interface.cpp
* Enhancement/moveit ros1 ports (#3041) * Ports moveit/moveit1#3592 * Ports moveit/moveit1#3590 * Fixes compile errors --------- Co-authored-by: Sebastian Jahr <[email protected]> (cherry picked from commit 02ebcba) # Conflicts: # moveit_ros/planning_interface/move_group_interface/src/move_group_interface.cpp * Accepts all incoming changes. (#3120) * Fixes member names (#3121) --------- Co-authored-by: Tom Noble <[email protected]> Co-authored-by: Mark Johnson <[email protected]> Co-authored-by: Tom Noble <[email protected]>
* Ports moveit/moveit1#3592 * Ports moveit/moveit1#3590 * Fixes compile errors --------- Co-authored-by: Sebastian Jahr <[email protected]>




Description
#3569 describes propagation of error from updating collision objects with each update of the start state during a sequence motion plan.
#3589 attempts to speed up plans by updating only joints positions when updating the start state, though this may cause the RobotState to ignore collision objects entirely if the state being updated has no knowledge of them.
This PR attempts to fix both issues by only updating the joints of a sequence motion, without copying across attached collision objects, in the hope that the start state being updated is already populated with attached collision object information.
Checklist