51 namespace joint_message
54 JointMessage::JointMessage(
void)
60 JointMessage::~JointMessage(
void)
72 if (data.
unload(this->joints_))
74 if (data.
unload(this->sequence_))
81 LOG_ERROR(
"Failed to unload sequence data");
93 this->sequence_ = sequence;
98 this->setSequence(seq);
99 this->joints_.copyFrom(joints);
102 void JointMessage::init()
104 this->setSequence(0);
105 this->joints_.init();
111 LOG_COMM(
"Executing joint message load");
112 if (buffer->
load(this->getSequence()))
115 if (buffer->
load(this->joints_))
122 LOG_ERROR(
"Failed to load sequence data");
128 LOG_ERROR(
"Failed to load sequence data");
136 LOG_COMM(
"Executing joint message unload");
138 if (buffer->
unload(this->joints_))
141 if (buffer->
unload(this->sequence_))
148 LOG_ERROR(
"Failed to unload sequence data");
154 LOG_ERROR(
"Failed to unload joint 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,...)
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).
Class encapsulated joint data (positions, accelerations, velocity, torque, and/or effort)...
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