Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
Signed-off-by: Takayuki Murooka <[email protected]>
  • Loading branch information
takayuki5168 authored and saka1-s committed Sep 10, 2024
1 parent bc94358 commit ec8e6df
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,8 @@ bool CrosswalkModule::checkRestartSuppression(
const double dist_to_stop =
calcSignedArcLength(ego_path.points, ego_pos, stop_factor->stop_pose.position);

// NOTE: min_dist_to_stop_for_restart_suppression is supposed to be the same as
// the pid_longitudinal_controller's drive_state_stop_dist.
return planner_param_.min_dist_to_stop_for_restart_suppression < dist_to_stop &&
dist_to_stop < planner_param_.max_dist_to_stop_for_restart_suppression;
}
Expand Down

0 comments on commit ec8e6df

Please sign in to comment.