~JointData(void)
Destructor.
bool unload(industrial::byte_array::ByteArray *buffer)
Virtual method for unloading an object from a ByteArray.
JointData(void)
Default constructor.
unsigned int byteLength()
Virtual method returns the object size when packed into a ByteArray.
static const industrial::shared_types::shared_int MAX_NUM_JOINTS
maximum number of joints positions that can be held in the message.
Interface for loading and unloading a class to/from a ByteArray.
bool getJoint(industrial::shared_types::shared_int index, industrial::shared_types::shared_real &value) const
Gets a joint value within the buffer.
void copyFrom(JointData &src)
Copies the passed in value.
The byte array wraps a dynamic array of bytes (i.e. char).
bool setJoint(industrial::shared_types::shared_int index, industrial::shared_types::shared_real value)
Sets a joint value within the buffer.
Class encapsulated joint data (positions, accelerations, velocity, torque, and/or effort)...
void init()
Initializes a empty joint data.
industrial::shared_types::shared_real joints_[MAX_NUM_JOINTS]
internal data buffer
int getMaxNumJoints() const
returns the maximum number of joints the message holds
bool load(industrial::byte_array::ByteArray *buffer)
Virtual method for loading an object into a ByteArray.
bool operator==(JointData &rhs)
== operator implementation