Skip to content
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

Allow path end pose deviation revive #4065

9 changes: 6 additions & 3 deletions nav2_planner/src/planner_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,10 @@ void PlannerServer::computePlanThroughPoses()
if (i == 0) {
curr_start = start;
} else {
curr_start = goal->goals[i - 1];
// pick the end of the last planning task as the start for the next one
// to allow for path tolerance deviations
curr_start = concat_path.poses.back();
curr_start.header = concat_path.header;
}
curr_goal = goal->goals[i];

Expand Down Expand Up @@ -644,8 +647,8 @@ void PlannerServer::isPathValid(

/**
* The lethal check starts at the closest point to avoid points that have already been passed
* and may have become occupied. The method for collision detection is based on the shape of
* the footprint.
* and may have become occupied. The method for collision detection is based on the shape of
* the footprint.
*/
std::unique_lock<nav2_costmap_2d::Costmap2D::mutex_t> lock(*(costmap_->getMutex()));
unsigned int mx = 0;
Expand Down