-
Notifications
You must be signed in to change notification settings - Fork 581
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
Do not overwrite the error code with OMPL interface #2725
Do not overwrite the error code with OMPL interface #2725
Conversation
Should I document the changes in |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2725 +/- ##
==========================================
- Coverage 50.74% 42.61% -8.13%
==========================================
Files 392 692 +300
Lines 32553 56331 +23778
Branches 0 7273 +7273
==========================================
+ Hits 16517 24001 +7484
- Misses 16036 32167 +16131
- Partials 0 163 +163 ☔ View full report in Codecov by Sentry. |
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.
Thanks! I think this can be simplified even further. How about
void ModelBasedPlanningContext::solve(planning_interface::MotionPlanDetailedResponse& res)
{
res.error_code = solve(request_.allowed_planning_time, request_.num_planning_attempts);
}
My understanding is that the whole if statement is not necessary or am I missing something 🤔?
Simplification done. By the way, what uses |
This pull request is in conflict. Could you fix it @galou? |
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.
Thanks!
Good question 🤔 Looks like it is by the benchmarking code. Theoretically, you could implement a custom planning pipeline that uses the detailed response. We considered removing or unifying it but that was never fleshed out. Do you have thoughts? |
@galou Looks like the PR needs to be rebased on the latest version of main but otherwise it is good to go 👍 |
In case of failure, set the error code to the one returned by the planning pipeline's `solve` method rather than overwriting it with `PLANNING_FAILED`. Signed-off-by: Gaël Écorchard <gael@km-robotics.cz>
6fb20ee
to
02ec743
Compare
I rebased and squashed. I hope that it's ok that the conversation may lose context. |
To really see the effects of this PR, we have to wait for ompl/ompl#1147 to be merged. |
Description
In case of failure, set the error code to the one returned by the planning pipeline's
solve
method rather than overwriting it withPLANNING_FAILED
.Checklist