Skip to content

Commit

Permalink
fix(crosswalk): return if the stop point with factor is boost::none (a…
Browse files Browse the repository at this point in the history
…utowarefoundation#4071)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
  • Loading branch information
satoshi-ota authored and takayuki5168 committed Jul 19, 2023
1 parent 778190b commit a1f7950
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ bool CrosswalkModule::modifyPathVelocity(PathWithLaneId * path, StopReason * sto
return {};
}();

if (!stop_point_with_factor) {
return false;
}

const auto & stop_factor = stop_point_with_factor->second;
insertDecelPointWithDebugInfo(stop_point_with_factor->first, 0.0, *path);
planning_utils::appendStopReason(stop_factor, stop_reason);
Expand Down

0 comments on commit a1f7950

Please sign in to comment.