Test PlanningRequestAdapterChain call sequence#2234
Closed
henningkayser wants to merge 1 commit intomoveit:mainfrom
Closed
Test PlanningRequestAdapterChain call sequence#2234henningkayser wants to merge 1 commit intomoveit:mainfrom
henningkayser wants to merge 1 commit intomoveit:mainfrom
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2234 +/- ##
==========================================
- Coverage 50.53% 50.47% -0.05%
==========================================
Files 386 391 +5
Lines 31736 31874 +138
==========================================
+ Hits 16034 16085 +51
- Misses 15702 15789 +87
☔ View full report in Codecov by Sentry. |
6 tasks
|
This PR is stale because it has been open for 45 days with no activity. Please tag a maintainer for help on completing this PR, or close it if you think it has become obsolete. |
|
This PR is stale because it has been open for 45 days with no activity. Please tag a maintainer for help on completing this PR, or close it if you think it has become obsolete. |
9 tasks
|
This pull request is in conflict. Could you fix it @henningkayser? |
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.
Motivation
I'm currently debugging a confusing issue where failing adapters are being called in the wrong sequence. In particular, it's the FixStartStateBounds adapter failing right AFTER TimeOptimalTrajectoryGeneration complains about path tolerance. Both failures/warnings have their own reason and need to be addressed in the setup, however the planning pipeline should never put FixStartStateBounds (which should be called before the planner) after TOTG (which should always be called after the planner).
With this test I wanted to figure out what's really going on in an AdapterChain, and was already surprised multiple times. The sequence of adapters is not respected correctly, and failing adapters or plans don't result in an aborted chain (why should we trigger a motion plan if there are already fixup adapters failing before it?). To me this seems pretty serious, already the happy path.
Problem
Let's build a chain with OMPL + STOMP + TOTG in that order, according to the happy path (as implemented in my test case) the AdapterChain already switches up STOMP and TOTG, producing {OMPL + TOTG + STOMP}? (I'll test that exact use case next)
Maybe I'm getting something really wrong here, but to me the implementation of the adapter chain and the adapters themselves just ask for a reimplementation, where:
With the current implementation it's almost impossible to know what's going on.
Test log from original commit