Skip to content

Commit

Permalink
fix(goal_planner): set correct reference path (autowarefoundation#4809)
Browse files Browse the repository at this point in the history
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
  • Loading branch information
satoshi-ota authored and takayuki5168 committed Nov 27, 2023
1 parent 7f51bbc commit 944d5e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,9 @@ void GoalPlannerModule::generateGoalCandidates()

BehaviorModuleOutput GoalPlannerModule::plan()
{
resetPathCandidate();
resetPathReference();

generateGoalCandidates();

path_reference_ = getPreviousModuleOutput().reference_path;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ BehaviorModuleOutput DefaultFixedGoalPlanner::plan(
const PathWithLaneId smoothed_path =
modifyPathForSmoothGoalConnection(*(output.path), planner_data);
output.path = std::make_shared<PathWithLaneId>(smoothed_path);
output.reference_path = std::make_shared<PathWithLaneId>(smoothed_path);
output.reference_path = getPreviousModuleOutput().reference_path;
return output;
}

Expand Down

0 comments on commit 944d5e0

Please sign in to comment.