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
planner_cspace: replan immediately when path is blocked by new obstacles #446
Conversation
[#1275] FAILED on kineticTest failed
[#1275] FAILED on melodicTest failed
|
Codecov Report
@@ Coverage Diff @@
## master #446 +/- ##
==========================================
- Coverage 80.18% 80.18% -0.01%
==========================================
Files 64 64
Lines 4522 4516 -6
==========================================
- Hits 3626 3621 -5
+ Misses 896 895 -1
Continue to review full report at Codecov.
|
@at-wat PTAL. |
[#1277] PASSED on kineticAll tests passed
[#1277] PASSED on melodicAll tests passed
|
[#1276] PASSED on kineticAll tests passed
[#1276] PASSED on melodicAll tests passed
|
planner_cspace/src/planner_3d.cpp
Outdated
for (size_t i = 1; i < previous_path.poses.size(); ++i) | ||
{ | ||
const GridAstarModel3D::Vec cur_grid = pathPose2Grid(previous_path.poses[i]); | ||
if (model_->cost(prev_grid, cur_grid, {start_grid}, last_grid) < 0) // NOLINT(whitespace/braces) |
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.
Do we need previous grid?
previous_path
is already interpolated with the resolution higher than grid.
cm_[cur_grid] == 100
would be enough.
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.
Done
[#1278] PASSED on kineticAll tests passed
[#1278] PASSED on melodicAll tests passed
|
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
By this PR, robot can stop immediately when path is blocked by moving objects even during sw_wait.