Fix Pilz blending times (backport #2961)#3000
Merged
Conversation
* Fix Pilz blending times... the right way * Remove more debugs * Format (cherry picked from commit 4fad0d0) # Conflicts: # moveit_planners/pilz_industrial_motion_planner/src/command_list_manager.cpp # moveit_planners/pilz_industrial_motion_planner/src/trajectory_blender_transition_window.cpp
Author
|
Cherry-pick of 4fad0d0 has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## humble #3000 +/- ##
==========================================
- Coverage 51.20% 51.15% -0.04%
==========================================
Files 382 382
Lines 31910 31902 -8
==========================================
- Hits 16335 16317 -18
- Misses 15575 15585 +10 ☔ View full report in Codecov by Sentry. |
stephanie-eng
approved these changes
Sep 14, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Found the issue!
Turns out that Pilz's
appendWithStrictTimeIncrease()function had a single if-statement that encompassed two conditions:In both cases, the whole trajectory segment was appended with a
dt=0.The problem is that in case 1, it's appropriate to add a
dt=0(as the trajectory is empty, the first point should be att=0). In case 2, we needed to apply a non-zero sample time offset dictated by the actualdtof that trajectory's first waypoint.Closes #2945
Checklist
This is an automatic backport of pull request #2961 done by [Mergify](https://mergify.com).