Skip to content

Commit

Permalink
feat(behavior_path_planner): add steering factor status for lane chan…
Browse files Browse the repository at this point in the history
…ge abort

Signed-off-by: Fumiya Watanabe <[email protected]>
  • Loading branch information
rej55 committed Dec 26, 2023
1 parent dafecd1 commit 2fda827
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion planning/behavior_path_lane_change_module/src/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,12 @@ void LaneChangeInterface::updateSteeringFactorPtr(const BehaviorModuleOutput & o
const auto finish_distance = motion_utils::calcSignedArcLength(
output.path.points, current_position, status.lane_change_path.info.shift_line.end.position);

const auto factor_status = module_type_->isAbortState() ? uint16_t(100) : SteeringFactor::TURNING;

steering_factor_interface_ptr_->updateSteeringFactor(
{status.lane_change_path.info.shift_line.start, status.lane_change_path.info.shift_line.end},
{start_distance, finish_distance}, PlanningBehavior::LANE_CHANGE, steering_factor_direction,
SteeringFactor::TURNING, "");
factor_status, "");
}

void LaneChangeInterface::updateSteeringFactorPtr(
Expand Down

0 comments on commit 2fda827

Please sign in to comment.