$darkmode
cloe::utility::ActuationState Struct Reference
Collaboration diagram for cloe::utility::ActuationState:

Public Member Functions

bool is_aeb_active () const
 Returns true if the AEB is reported active.
 
bool is_fct_active () const
 Returns true if the controller reports to have control.
 
bool is_active () const
 Returns true if either AEB or FCT is reported active.
 
bool is_consistent () const
 

Public Attributes

Duration time {0}
 The simulation time that the rest of the struct describes.
 
uint64_t step {0}
 The simulation step that the rest of the struct describes.
 
bool aeb_active {false}
 Whether AEB is currently triggered.
 
ActuationLevel fct_control {ActuationLevel::None}
 The official state of control that the actuator should have.
 
boost::optional< double > fct_set_speed
 The desired set speed of the controller [m/s].
 
boost::optional< double > fct_time_gap
 The desired time gap of the controller [s].
 
boost::optional< double > fct_speed_limiter_velocity
 The desired speed limiter velocity of the controller [m/s].
 
int fct_speed_limiter_state
 The desired speed limiter velocity of the controller [m/s].
 
boost::optional< double > acceleration
 The acceleration request of the controller in [m/s^2].
 
boost::optional< double > steering_angle
 The steering angle request of the controller in [rad].
 
boost::optional< double > steering_torque
 The steering torque request of the controller in [Nm].
 

Friends

void to_json (fable::Json &j, const ActuationState &s)
 

Member Function Documentation

◆ is_consistent()

bool cloe::utility::ActuationState::is_consistent ( ) const

Returns true if the controller state is consistent with the level of control it reports.

  • When control is NONE or STANDBY, then no actuation should occur.
  • steering_torque and steering_angle should not be set at the same time.
  • longitudinal and/or lateral movement only if control mode allows it
  • AEB functionality is always allowed, but only allows deceleration.

The documentation for this struct was generated from the following files: