32 #ifndef JOINT_FEEDBACK_H 33 #define JOINT_FEEDBACK_H 49 namespace joint_feedback
52 namespace ValidFieldTypes
125 this->robot_id_ = robot_id;
136 return this->robot_id_;
168 this->valid_fields_ &= ~ValidFieldTypes
::TIME;
178 this->positions_.copyFrom(positions);
199 this->positions_.init();
200 this->valid_fields_ &= ~ValidFieldTypes
::POSITION;
210 this->velocities_.copyFrom(velocities);
231 this->velocities_.init();
232 this->valid_fields_ &= ~ValidFieldTypes
::VELOCITY;
241 this->accelerations_.copyFrom(accelerations);
253 dest.
copyFrom(this->accelerations_);
262 this->accelerations_.init();
288 return valid_fields_ & field;
297 + 3*this->positions_.byteLength();
unsigned int byteLength()
Virtual method returns the object size when packed into a ByteArray.
bool getTime(industrial::shared_types::shared_real &time)
Returns joint feedback timestamp.
bool getPositions(industrial::joint_data::JointData &dest)
Returns a copy of the position data.
void setRobotID(industrial::shared_types::shared_int robot_id)
Sets robot_id. Robot group # (0-based), for controllers with multiple axis-groups.
void clearPositions()
Clears the position data.
void init(const M_string &remappings)
industrial::shared_types::shared_int robot_id_
robot group # (0-based) for controllers that support multiple axis-groups
industrial::joint_data::JointData positions_
joint feedback positional data
industrial::joint_data::JointData accelerations_
joint feedback acceleration data
Interface for loading and unloading a class to/from a ByteArray.
industrial::joint_data::JointData velocities_
joint feedback velocity data
void setAccelerations(industrial::joint_data::JointData &accelerations)
Sets joint acceleration data.
bool getAccelerations(industrial::joint_data::JointData &dest)
Returns a copy of the acceleration data.
void copyFrom(JointData &src)
Copies the passed in value.
The byte array wraps a dynamic array of bytes (i.e. char).
void setVelocities(industrial::joint_data::JointData &velocities)
Sets joint velocity data.
Class encapsulated joint data (positions, accelerations, velocity, torque, and/or effort)...
void setTime(industrial::shared_types::shared_real time)
Sets joint feedback timestamp.
bool is_valid(ValidFieldType field)
check the validity state for a given field
void clearVelocities()
Clears the velocity data.
industrial::shared_types::shared_int valid_fields_
bit-mask of (optional) fields that have been initialized with valid data
bool getVelocities(industrial::joint_data::JointData &dest)
Returns a copy of the velocity data.
Class encapsulated joint feedback data. This data represents the current state of each robot joint...
void setPositions(industrial::joint_data::JointData &positions)
Sets joint position data.
industrial::shared_types::shared_int getRobotID()
Gets robot_id. Robot group # (0-based), for controllers with multiple axis-groups.
industrial::shared_types::shared_real time_
joint data timestamp Typically, time since controller booted (in seconds)
void clearTime()
Clears the joint feedback timestamp.
void clearAccelerations()
Clears the acceleration data.