Skip to content

Commit

Permalink
refactor(goal_planner): refactoring plan flow and add post process
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <[email protected]>
  • Loading branch information
kosuke55 committed Nov 10, 2023
1 parent 504d1ae commit 5b18bf3
Show file tree
Hide file tree
Showing 2 changed files with 125 additions and 149 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,18 +287,19 @@ class GoalPlannerModule : public SceneModuleInterface
}
}

CandidateOutput planCandidate() const override;
BehaviorModuleOutput plan() override;
BehaviorModuleOutput planWaitingApproval() override;
bool isExecutionRequested() const override;
bool isExecutionReady() const override;
void processOnExit() override;
void updateData() override;
void postProcess() override;
void setParameters(const std::shared_ptr<GoalPlannerParameters> & parameters);
void acceptVisitor(
[[maybe_unused]] const std::shared_ptr<SceneModuleVisitor> & visitor) const override
{
}
CandidateOutput planCandidate() const override { return CandidateOutput{}; }

Check warning on line 302 in planning/behavior_path_planner/include/behavior_path_planner/scene_module/goal_planner/goal_planner_module.hpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/include/behavior_path_planner/scene_module/goal_planner/goal_planner_module.hpp#L302

Added line #L302 was not covered by tests

private:
// The start_planner activates when it receives a new route,
Expand Down Expand Up @@ -411,8 +412,9 @@ class GoalPlannerModule : public SceneModuleInterface
void returnToLaneParking();

// plan pull over path
BehaviorModuleOutput planWithGoalModification();
BehaviorModuleOutput planWaitingApprovalWithGoalModification();
BehaviorModuleOutput planRunning();
BehaviorModuleOutput planPullOver();
BehaviorModuleOutput planPullOverAsCandidate();
void selectSafePullOverPath();
std::vector<PullOverPath> sortPullOverPathCandidatesByGoalPriority(
const std::vector<PullOverPath> & pull_over_path_candidates,
Expand Down
Loading

0 comments on commit 5b18bf3

Please sign in to comment.