Go to the documentation of this file.
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");
Class encapsulated joint data (positions, accelerations, velocity, torque, and/or effort).
Contains platform specific type definitions that guarantee the size of primitive data types.
bool unload(industrial::shared_types::shared_bool &value)
unloads a boolean value from the byte array
industrial::byte_array::ByteArray & getData()
Returns a reference to the internal data member.
#define LOG_ERROR(format,...)
This class defines a simple messaging protocol for communicating with an industrial robot controller.
The byte array wraps a dynamic array of bytes (i.e. char).
#define LOG_COMM(format,...)
bool load(industrial::shared_types::shared_bool value)
loads a boolean into the byte array
void init(const M_string &remappings)
simple_message
Author(s): Shaun Edwards
autogenerated on Wed Mar 2 2022 00:24:53