Skip to content

Commit f7f0fdf

Browse files
jwallace42pepisgSteveMacenski
committed
Allow path end pose deviation revive (#4065)
* Support stitching paths in compute path to poses * Update nav2_planner/src/planner_server.cpp Co-authored-by: Steve Macenski <stevenmacenski@gmail.com> * Rename parameter to allow_path_through_poses_goal_deviation * Fix description * restore nav2_params * missing whitespace * lint fix * removed parameter Signed-off-by: gg <josho.wallace@gmail.com> * Update planner_server.hpp * Update planner_server.cpp --------- Signed-off-by: gg <josho.wallace@gmail.com> Co-authored-by: pepisg <pedro.gonzalez@eia.edu.co> Co-authored-by: Pedro Alejandro González <71234974+pepisg@users.noreply.github.com> Co-authored-by: Steve Macenski <stevenmacenski@gmail.com>
1 parent 1dea56b commit f7f0fdf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nav2_planner/src/planner_server.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,10 @@ PlannerServer::computePlanThroughPoses()
408408
if (i == 0) {
409409
curr_start = start;
410410
} else {
411-
curr_start = goal->goals[i - 1];
411+
// pick the end of the last planning task as the start for the next one
412+
// to allow for path tolerance deviations
413+
curr_start = concat_path.poses.back();
414+
curr_start.header = concat_path.header;
412415
}
413416
curr_goal = goal->goals[i];
414417

0 commit comments

Comments
 (0)