Skip to content

Commit

Permalink
fix(intersection): fixed bad optional access (autowarefoundation#3712) (
Browse files Browse the repository at this point in the history
autowarefoundation#477)

Signed-off-by: Mamoru Sobue <[email protected]>
  • Loading branch information
soblin committed Jun 13, 2023
1 parent d29cf55 commit 2e0ae2a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ bool IntersectionModule::modifyPathVelocity(PathWithLaneId * path, StopReason *
if (
!intersection_lanelets_ ||
intersection_lanelets_.value().tl_arrow_solid_on != tl_arrow_solid_on) {
const auto lanelets_on_path = planning_utils::getLaneletsOnPath(
*path, lanelet_map_ptr, planner_data_->current_odometry->pose);
const auto lanelets_on_path =
planning_utils::getLaneletsOnPath(*path, lanelet_map_ptr, planner_data_->current_pose.pose);
intersection_lanelets_ = util::getObjectiveLanelets(
lanelet_map_ptr, routing_graph_ptr, lane_id_, lanelets_on_path, assoc_ids_, path_ip,
lane_interval_ip, planner_param_.common.detection_area_length, tl_arrow_solid_on);
Expand Down

0 comments on commit 2e0ae2a

Please sign in to comment.