Base class for a RobotState data packages will be used directly. More...
#include <robot_state.h>
Public Member Functions | |
virtual bool | consumeWith (AbstractPrimaryConsumer &consumer) |
Consume this specific package with a specific consumer. More... | |
virtual bool | parseWith (comm::BinParser &bp) |
Sets the attributes of the package by parsing a serialized representation of the package. More... | |
RobotState ()=delete | |
RobotState (const RobotStateType type) | |
Creates a new RobotState object, setting the type of state message. More... | |
virtual std::string | toString () const |
Produces a human readable representation of the package object. More... | |
virtual | ~RobotState ()=default |
Public Member Functions inherited from urcl::primary_interface::PrimaryPackage | |
PrimaryPackage () | |
Creates a new PrimaryPackage 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 |
Private Attributes | |
RobotStateType | state_type_ |
Additional Inherited Members | |
Public Types inherited from urcl::comm::URPackage< PackageHeader > | |
using | HeaderType = PackageHeader |
Protected Attributes inherited from urcl::primary_interface::PrimaryPackage | |
std::unique_ptr< uint8_t > | buffer_ |
size_t | buffer_length_ |
Base class for a RobotState data packages will be used directly.
Definition at line 58 of file robot_state.h.
|
delete |
|
inline |
Creates a new RobotState object, setting the type of state message.
type | The type of state message |
Definition at line 67 of file robot_state.h.
|
virtualdefault |
|
virtual |
Consume this specific package with a specific consumer.
consumer | Placeholder for the consumer calling this |
Implements urcl::primary_interface::PrimaryPackage.
Reimplemented in urcl::primary_interface::KinematicsInfo.
Definition at line 41 of file robot_state.cpp.
|
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 |
Reimplemented from urcl::primary_interface::PrimaryPackage.
Reimplemented in urcl::primary_interface::KinematicsInfo.
Definition at line 36 of file robot_state.cpp.
|
virtual |
Produces a human readable representation of the package object.
Reimplemented from urcl::primary_interface::PrimaryPackage.
Reimplemented in urcl::primary_interface::KinematicsInfo.
Definition at line 46 of file robot_state.cpp.
|
private |
Definition at line 99 of file robot_state.h.