Skip to content

Commit

Permalink
fix(behavior_velocity_planner): fix distance for traffic light module (
Browse files Browse the repository at this point in the history
…autowarefoundation#1455)

Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com>
  • Loading branch information
rej55 authored and yukke42 committed Oct 14, 2022
1 parent 3927d7d commit 8d20514
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ bool TrafficLightModule::modifyPathVelocity(
planner_param_.stop_margin + planner_data_->vehicle_info_.max_longitudinal_offset_m,
planner_data_->stop_line_extend_length, stop_line_point, stop_line_point_idx)) {
RCLCPP_WARN_THROTTLE(logger_, *clock_, 5000, "Failed to calculate stop point and insert index");
setSafe(true);
setDistance(std::numeric_limits<double>::lowest());
return false;
}

Expand Down

0 comments on commit 8d20514

Please sign in to comment.