Skip to content

Commit

Permalink
rename planPullOver
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <[email protected]>
  • Loading branch information
kosuke55 committed Nov 13, 2023
1 parent 7794e3d commit b37aee2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,8 @@ class GoalPlannerModule : public SceneModuleInterface
bool canReturnToLaneParking();

// plan pull over path
BehaviorModuleOutput planRunning();
BehaviorModuleOutput planPullOver();
BehaviorModuleOutput planPullOverAsOutput();
BehaviorModuleOutput planPullOverAsCandidate();
std::optional<std::pair<PullOverPath, GoalCandidate>> selectPullOverPath(
const std::vector<PullOverPath> & pull_over_path_candidates,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ void GoalPlannerModule::generateGoalCandidates()
BehaviorModuleOutput GoalPlannerModule::plan()
{
if (goal_planner_utils::isAllowedGoalModification(planner_data_->route_handler)) {
return planRunning();
return planPullOver();
}

fixed_goal_planner_->setPreviousModuleOutput(getPreviousModuleOutput());
Expand Down Expand Up @@ -833,13 +833,13 @@ void GoalPlannerModule::decideVelocity()
}
}

BehaviorModuleOutput GoalPlannerModule::planRunning()
BehaviorModuleOutput GoalPlannerModule::planPullOver()
{
if (!hasDecidedPath()) {
return planPullOverAsCandidate();
}

return planPullOver();
return planPullOverAsOutput();
}

BehaviorModuleOutput GoalPlannerModule::planPullOverAsCandidate()
Expand All @@ -850,7 +850,7 @@ BehaviorModuleOutput GoalPlannerModule::planPullOverAsCandidate()
}

BehaviorModuleOutput output{};
const BehaviorModuleOutput pull_over_output = planPullOver();
const BehaviorModuleOutput pull_over_output = planPullOverAsOutput();
output.modified_goal = pull_over_output.modified_goal;
output.path = std::make_shared<PathWithLaneId>(generateStopPath());

Expand All @@ -871,7 +871,7 @@ BehaviorModuleOutput GoalPlannerModule::planPullOverAsCandidate()
return output;
}

BehaviorModuleOutput GoalPlannerModule::planPullOver()
BehaviorModuleOutput GoalPlannerModule::planPullOverAsOutput()
{
// if pull over path candidates generation is not finished, use previous module output
if (thread_safe_data_.get_pull_over_path_candidates().empty()) {
Expand Down

0 comments on commit b37aee2

Please sign in to comment.