Class SafetyModeMessage

Inheritance Relationships

Base Type

Class Documentation

class SafetyModeMessage : public urcl::primary_interface::RobotMessage

Representation of the primary interface’s safety mode message.

Public Functions

SafetyModeMessage() = delete
inline SafetyModeMessage(uint64_t timestamp, int8_t source)

Creates a new SafetyModeMessage object to be filled from a package.

Parameters:
  • timestamp – Timestamp of the package

  • source – The package’s source

SafetyModeMessage(const SafetyModeMessage &pkg)
virtual ~SafetyModeMessage() = default
virtual bool parseWith(comm::BinParser &bp)

Sets the attributes of the package by parsing a serialized representation of the package.

Parameters:

bp – A parser containing a serialized text of the package

Returns:

True, if the package was parsed successfully, false otherwise

virtual bool consumeWith(AbstractPrimaryConsumer &consumer)

Consume this package with a specific consumer.

Parameters:

consumer – Placeholder for the consumer calling this

Returns:

true on success

virtual std::string toString() const

Produces a human readable representation of the package object.

Returns:

A string representing the object

Public Members

int32_t message_code_
int32_t message_argument_
SafetyMode safety_mode_type_
uint32_t report_data_type_
std::variant<uint32_t, int32_t, float> report_data_