Skip to content

Commit

Permalink
Allow path end pose deviation revive (#4065)
Browse files Browse the repository at this point in the history
* Support stitching paths in compute path to poses

* Update nav2_planner/src/planner_server.cpp

Co-authored-by: Steve Macenski <[email protected]>

* Rename parameter to allow_path_through_poses_goal_deviation

* Fix description

* restore nav2_params

* missing whitespace

* lint fix

* removed parameter

Signed-off-by: gg <[email protected]>

* Update planner_server.hpp

* Update planner_server.cpp

---------

Signed-off-by: gg <[email protected]>
Co-authored-by: pepisg <[email protected]>
Co-authored-by: Pedro Alejandro González <[email protected]>
Co-authored-by: Steve Macenski <[email protected]>
  • Loading branch information
4 people committed Apr 4, 2024
1 parent 1dea56b commit f7f0fdf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nav2_planner/src/planner_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,10 @@ 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

0 comments on commit f7f0fdf

Please sign in to comment.