Skip to content

Commit

Permalink
refactor(goal_planner): remove unncecessary variable (autowarefoundat…
Browse files Browse the repository at this point in the history
…ion#4810)

rafactor(goal_planner): remove unncecessary variable

Signed-off-by: kosuke55 <[email protected]>
  • Loading branch information
kosuke55 authored Aug 31, 2023
1 parent 8f71125 commit 053d31f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ class GoalPlannerModule : public SceneModuleInterface

// for parking policy
bool left_side_parking_{true};
mutable bool allow_goal_modification_{false}; // need to be set in isExecutionRequested

// pre-generate lane parking paths in a separate thread
rclcpp::TimerBase::SharedPtr lane_parking_timer_;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,6 @@ bool GoalPlannerModule::isExecutionRequested() const
const Pose & current_pose = planner_data_->self_odometry->pose.pose;
const Pose & goal_pose = route_handler->getGoalPose();

// if goal is shoulder lane, allow goal modification
allow_goal_modification_ =
route_handler->isAllowedGoalModification() || checkOriginalGoalIsInShoulder();

// check if goal_pose is in current_lanes.
lanelet::ConstLanelet current_lane{};
const lanelet::ConstLanelets current_lanes = utils::getCurrentLanes(planner_data_);
Expand Down

0 comments on commit 053d31f

Please sign in to comment.