Class VersionMessage

Inheritance Relationships

Base Type

Class Documentation

class VersionMessage : public urcl::primary_interface::RobotMessage

The VersionMessage class handles the version messages sent via the primary UR interface.

Public Functions

VersionMessage() = delete
inline VersionMessage(uint64_t timestamp, uint8_t source)

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

Parameters:
  • timestamp – Timestamp of the package

  • source – The package’s source

virtual ~VersionMessage() = 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 version 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

int8_t project_name_length_
std::string project_name_
uint8_t major_version_
uint8_t minor_version_
int32_t svn_version_
int32_t build_number_
std::string build_date_