mcx::state_machine::ErrorPublisher
2 minute read
mcx::state_machine::ErrorPublisher
Public Functions
Name | |
---|---|
ErrorPublisher() =default | |
void | addParameters(const std::string & param_name, parameter_server::Parameter * parent) |
bool | clear(bool warnings_only) |
void | update(const std::vector< std::reference_wrapper< const ErrorPublisher » & error_pub) |
bool | empty() const |
bool | hasError(const Error & error) const |
bool | hasErrorLevel(MotorcortexErrorLevel error_level) const |
const std::map< Error, MotorcortexError > & | getActiveErrors() const |
MotorcortexError | getActiveError() const |
unsigned long | getUpdateCounter() const |
bool | compare(unsigned long & counter) const |
bool | addError(const Error & error, MotorcortexErrorLevel error_level) |
void | publish() |
void | encode(size_t counter) |
void | setName(const std::string & name) |
const std::string & | getName() const |
Public Functions Documentation
function ErrorPublisher
ErrorPublisher() =default
function addParameters
void addParameters(
const std::string & param_name,
parameter_server::Parameter * parent
)
function clear
bool clear(
bool warnings_only
)
function update
void update(
const std::vector< std::reference_wrapper< const ErrorPublisher >> & error_pub
)
function empty
bool empty() const
function hasError
bool hasError(
const Error & error
) const
function hasErrorLevel
bool hasErrorLevel(
MotorcortexErrorLevel error_level
) const
function getActiveErrors
const std::map< Error, MotorcortexError > & getActiveErrors() const
function getActiveError
MotorcortexError getActiveError() const
function getUpdateCounter
unsigned long getUpdateCounter() const
function compare
bool compare(
unsigned long & counter
) const
function addError
bool addError(
const Error & error,
MotorcortexErrorLevel error_level
)
function publish
void publish()
function encode
void encode(
size_t counter
)
function setName
inline void setName(
const std::string & name
)
function getName
inline const std::string & getName() const
Updated on 2022-04-05 at 16:21:27 +0200