Skip to content

Commit

Permalink
fix(avoidance): unintentional path cut (autowarefoundation#5887)
Browse files Browse the repository at this point in the history
* fix(avoidance): unintentional path cut

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

* fix(bpp): nouse pointer

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

* fix(bpp_common): nouse pointer

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

* fix(bpp_side_shift): nouse pointer

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

* fix(bpp_avoidance): nouse pointer

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

* fix(bpp_lane_change): nouse pointer

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

* fix(bpp_goal_planner): nouse pointer

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

* fix(bpp_start_planner): nouse pointer

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

---------

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
  • Loading branch information
satoshi-ota authored Dec 18, 2023
1 parent 6be72d6 commit 4f26a02
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ struct BehaviorModuleOutput
BehaviorModuleOutput() = default;

// path planed by module
PlanResult path{};
PathWithLaneId path{};

// reference path planed by module
PlanResult reference_path{};
PathWithLaneId reference_path{};

TurnSignalInfo turn_signal_info{};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ class SceneModuleInterface
virtual BehaviorModuleOutput planWaitingApproval()
{
path_candidate_ = std::make_shared<PathWithLaneId>(planCandidate().path_candidate);
path_reference_ = getPreviousModuleOutput().reference_path;
path_reference_ = std::make_shared<PathWithLaneId>(getPreviousModuleOutput().reference_path);

return getPreviousModuleOutput();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,8 @@ BehaviorModuleOutput getReferencePath(
dp.drivable_area_types_to_skip);

BehaviorModuleOutput output;
output.path = std::make_shared<PathWithLaneId>(reference_path);
output.reference_path = std::make_shared<PathWithLaneId>(reference_path);
output.path = reference_path;
output.reference_path = reference_path;
output.drivable_area_info.drivable_lanes = drivable_lanes;

return output;
Expand Down Expand Up @@ -692,8 +692,8 @@ BehaviorModuleOutput createGoalAroundPath(const std::shared_ptr<const PlannerDat
point.point.longitudinal_velocity_mps = 0.0;
}

output.path = std::make_shared<PathWithLaneId>(reference_path);
output.reference_path = std::make_shared<PathWithLaneId>(reference_path);
output.path = reference_path;
output.reference_path = reference_path;
output.drivable_area_info.drivable_lanes = drivable_lanes;

return output;
Expand Down

0 comments on commit 4f26a02

Please sign in to comment.