Skip to content

Commit

Permalink
fix(behavior_path_planner): use odometry
Browse files Browse the repository at this point in the history
Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com>
  • Loading branch information
rej55 committed Jan 31, 2023
1 parent 158776b commit 8f9311f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ bool AvoidanceModule::isExecutionRequested() const
const auto current_lanes = util::getCurrentLanes(planner_data_);
lanelet::ConstLanelet current_lane;
lanelet::utils::query::getClosestLanelet(
current_lanes, planner_data_->self_pose->pose, &current_lane);
current_lanes, planner_data_->self_odometry->pose.pose, &current_lane);
const auto num = planner_data_->route_handler->getNumLaneToPreferredLane(current_lane);

if (num != 0) {
Expand Down

0 comments on commit 8f9311f

Please sign in to comment.