The PrimaryPackage is solely an abstraction level. It inherits form the URPackage and is also a parent class for primary_interface::RobotMessage, primary_interface::RobotState. More...
#include <primary_package.h>
Public Member Functions | |
virtual bool | consumeWith (AbstractPrimaryConsumer &consumer)=0 |
Consume this package with a specific consumer. This should be overwritten in inherited packages. More... | |
virtual bool | parseWith (comm::BinParser &bp) |
Sets the attributes of the package by parsing a serialized representation of the package. More... | |
PrimaryPackage () | |
Creates a new PrimaryPackage object. More... | |
virtual std::string | toString () const |
Produces a human readable representation of the package object. More... | |
virtual | ~PrimaryPackage ()=default |
Public Member Functions inherited from urcl::comm::URPackage< PackageHeader > | |
URPackage ()=default | |
Creates a new URPackage object. More... | |
virtual | ~URPackage ()=default |
Protected Attributes | |
std::unique_ptr< uint8_t > | buffer_ |
size_t | buffer_length_ |
Additional Inherited Members | |
Public Types inherited from urcl::comm::URPackage< PackageHeader > | |
using | HeaderType = PackageHeader |
The PrimaryPackage is solely an abstraction level. It inherits form the URPackage and is also a parent class for primary_interface::RobotMessage, primary_interface::RobotState.
Definition at line 45 of file primary_package.h.
|
inline |
Creates a new PrimaryPackage object.
Definition at line 51 of file primary_package.h.
|
virtualdefault |
|
pure virtual |
Consume this package with a specific consumer. This should be overwritten in inherited packages.
consumer | Placeholder for the consumer calling this |
Implemented in urcl::primary_interface::RobotState, urcl::primary_interface::RobotMessage, urcl::primary_interface::KinematicsInfo, and urcl::primary_interface::VersionMessage.
|
virtual |
Sets the attributes of the package by parsing a serialized representation of the package.
bp | A parser containing a serialized version of the package |
Implements urcl::comm::URPackage< PackageHeader >.
Reimplemented in urcl::primary_interface::RobotState, urcl::primary_interface::RobotMessage, urcl::primary_interface::KinematicsInfo, and urcl::primary_interface::VersionMessage.
Definition at line 35 of file primary_package.cpp.
|
virtual |
Produces a human readable representation of the package object.
Implements urcl::comm::URPackage< PackageHeader >.
Reimplemented in urcl::primary_interface::RobotState, urcl::primary_interface::RobotMessage, urcl::primary_interface::KinematicsInfo, and urcl::primary_interface::VersionMessage.
Definition at line 41 of file primary_package.cpp.
|
protected |
Definition at line 84 of file primary_package.h.
|
protected |
Definition at line 85 of file primary_package.h.