Skip to content

Commit

Permalink
feat(start_planner): add offset to not finish before engage (autoware…
Browse files Browse the repository at this point in the history
…foundation#4121)

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 authored and kyoichi-sugahara committed Aug 28, 2023
1 parent 70ee8bc commit 0ac8690
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,9 @@ bool StartPlannerModule::hasFinishedPullOut() const
const auto arclength_pull_out_end =
lanelet::utils::getArcCoordinates(status_.current_lanes, status_.pull_out_path.end_pose);

const bool has_finished = arclength_current.length - arclength_pull_out_end.length > 0.0;
// offset to not finish the module before engage
constexpr double offset = 0.1;
const bool has_finished = arclength_current.length - arclength_pull_out_end.length > offset;

#ifdef USE_OLD_ARCHITECTURE
is_executed_ = !has_finished;
Expand Down

0 comments on commit 0ac8690

Please sign in to comment.