51 namespace robot_status_message
54 RobotStatusMessage::RobotStatusMessage(
void)
59 RobotStatusMessage::~RobotStatusMessage(
void)
71 if (data.
unload(this->status_))
77 LOG_ERROR(
"Failed to unload robot status data");
85 this->status_.copyFrom(status);
88 void RobotStatusMessage::init()
97 LOG_COMM(
"Executing robot status message load");
98 if (buffer->
load(this->status_))
105 LOG_ERROR(
"Failed to load robot status data");
113 LOG_COMM(
"Executing robot status message unload");
115 if (buffer->
unload(this->status_))
122 LOG_ERROR(
"Failed to unload robot status data");
void init(const M_string &remappings)
Contains platform specific type definitions that guarantee the size of primitive data types...
This class defines a simple messaging protocol for communicating with an industrial robot controller...
#define LOG_COMM(format,...)
Class encapsulated robot status data. The robot status data is meant to mirror the industrial_msgs/Ro...
bool load(industrial::shared_types::shared_bool value)
loads a boolean into the byte array
#define LOG_ERROR(format,...)
The byte array wraps a dynamic array of bytes (i.e. char).
industrial::byte_array::ByteArray & getData()
Returns a reference to the internal data member.
bool unload(industrial::shared_types::shared_bool &value)
unloads a boolean value from the byte array
int getCommType()
Gets message type(see CommType)