Motorcortex Core  version: 2.7.6
mcx::state_machine::ErrorHandle< SUPER_STATE > Class Template Reference
Inheritance diagram for mcx::state_machine::ErrorHandle< SUPER_STATE >:
Collaboration diagram for mcx::state_machine::ErrorHandle< SUPER_STATE >:

Public Member Functions

 ErrorHandle (StateMachine< SUPER_STATE > *state_machine)
 
 ErrorHandle (ErrorHandle &orig)=delete
 
ErrorHandleoperator= (ErrorHandle &orig)=delete
 
void setStateMachine (StateMachine< SUPER_STATE > *state_machine)
 
void addParameters (const std::string &param_name, parameter_server::Parameter *parent)
 
void setName (const std::string &name)
 
const std::string & getName () const
 
void create (const std::string &name, const char *error_name_prefix, parameter_server::Parameter *parent)
 
const std::map< Error, MotorcortexError > & getActiveErrors () const
 
MotorcortexError getActiveError () const
 
bool empty () override
 
bool hasError (const Error &error) override
 
bool hasErrorLevel (MotorcortexErrorLevel error_level) override
 
bool acknowledgeAll ()
 
bool acknowledgeWarnings ()
 
bool acknowledge (bool warnings_only=false) override
 
bool warning (const Error &error) override
 
bool forcedDisengaged (const Error &error) override
 
bool shutdown (const Error &error) override
 
bool emergencyStop (const Error &error) override
 
void iterate (double dt_sec)
 
const ErrorPublishergetErrorPublisher () const
 
signal_monitor::SignalMonitorBasegetSignalMonitor () override
 
void enableErrors (const ErrorGroup &error_group)
 
template<class STATE , typename... STATES>
void enableErrors (const ErrorGroup &error_group)
 
void disableErrors (const ErrorGroup &error_group)
 
template<class STATE , typename... STATES>
void disableErrors (const ErrorGroup &error_group)
 
void resetErrors (const ErrorGroup &error_group)
 
template<class STATE , typename... STATES>
void resetErrors (const ErrorGroup &error_group)
 
void addEmergencyStop (const Error &error_id, bool *input_ptr, bool objective_val, TriggerType trigger_type=TriggerType::TRIGGER_ALWAYS, double start_time_s=0, double stop_time_s=std::numeric_limits< double >::max())
 
void addEmergencyStop (const Error &error_id, const bool &&input_val, bool objective_val, TriggerType trigger_type=TriggerType::TRIGGER_ALWAYS, double start_time_s=0, double stop_time_s=std::numeric_limits< double >::max())
 
void addShutdown (const Error &error_id, bool *input_ptr, bool objective_val, TriggerType trigger_type=TriggerType::TRIGGER_ALWAYS, double start_time_s=0, double stop_time_s=std::numeric_limits< double >::max())
 
void addShutdown (const Error &error_id, const bool &&input_val, bool objective_val, TriggerType trigger_type=TriggerType::TRIGGER_ALWAYS, double start_time_s=0, double stop_time_s=std::numeric_limits< double >::max())
 
void addForceDisengage (const Error &error_id, bool *input_ptr, bool objective_val, TriggerType trigger_type=TriggerType::TRIGGER_ALWAYS, double start_time_s=0, double stop_time_s=std::numeric_limits< double >::max())
 
void addForceDisengage (const Error &error_id, const bool &&input_val, bool objective_val, TriggerType trigger_type=TriggerType::TRIGGER_ALWAYS, double start_time_s=0, double stop_time_s=std::numeric_limits< double >::max())
 
void addWarning (const Error &error_id, bool *input_ptr, bool objective_val, TriggerType trigger_type=TriggerType::TRIGGER_ALWAYS, double start_time_s=0, double stop_time_s=std::numeric_limits< double >::max())
 
void addWarning (const Error &error_id, const bool &&input_val, bool objective_val, TriggerType trigger_type=TriggerType::TRIGGER_ALWAYS, double start_time_s=0, double stop_time_s=std::numeric_limits< double >::max())
 
void addSignal (const Error &error_id, bool *input_val, bool objective_val, const std::function< bool(const Error &signal_id)> &callback, TriggerType trigger_type=TriggerType::TRIGGER_ALWAYS, double start_time_s=0, double stop_time_s=std::numeric_limits< double >::max())
 

The documentation for this class was generated from the following file: