Skip to content

Commit 68df2a3

Browse files
jwallace42pepisgSteveMacenski
authored andcommitted
Allow path end pose deviation revive (ros-navigation#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> Signed-off-by: enricosutera <enricosutera@outlook.com>
1 parent 7f905de commit 68df2a3

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
@@ -400,7 +400,10 @@ void PlannerServer::computePlanThroughPoses()
400400
if (i == 0) {
401401
curr_start = start;
402402
} else {
403-
curr_start = goal->goals[i - 1];
403+
// pick the end of the last planning task as the start for the next one
404+
// to allow for path tolerance deviations
405+
curr_start = concat_path.poses.back();
406+
curr_start.header = concat_path.header;
404407
}
405408
curr_goal = goal->goals[i];
406409

0 commit comments

Comments
 (0)