Commit fdfe33c 1 parent cf552f6 commit fdfe33c Copy full SHA for fdfe33c
File tree 2 files changed +4
-1
lines changed
autoware_mpc_lateral_controller/src
autoware_pid_longitudinal_controller/src
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -765,7 +765,7 @@ VectorXd MPC::calcSteerRateLimitOnTrajectory(
765
765
return reference.back ();
766
766
};
767
767
768
- // when the vehicle is stopped, no steering rate limit.
768
+ // When the vehicle is stopped, a large steer rate limit is used for the dry steering .
769
769
constexpr double steer_rate_lim = 100.0 ;
770
770
const bool is_vehicle_stopped = std::fabs (current_velocity) < 0.01 ;
771
771
if (is_vehicle_stopped) {
Original file line number Diff line number Diff line change @@ -721,6 +721,9 @@ void PidLongitudinalController::updateControlState(const ControlData & control_d
721
721
const bool current_keep_stopped_condition = std::fabs (current_vel) < vel_epsilon &&
722
722
m_enable_keep_stopped_until_steer_convergence &&
723
723
!lateral_sync_data_.is_steer_converged ;
724
+ // NOTE: Dry steering is considered unnecessary when the steering is converged twice in a
725
+ // row. This is because lateral_sync_data_.is_steer_converged is not the current but
726
+ // the previous value due to the order controllers' run and sync functions.
724
727
const bool keep_stopped_condition =
725
728
!m_prev_keep_stopped_condition ||
726
729
(current_keep_stopped_condition || *m_prev_keep_stopped_condition);
You can’t perform that action at this time.
0 commit comments