Go to the documentation of this file.
32 #ifndef JOINT_FEEDBACK_H
33 #define JOINT_FEEDBACK_H
49 namespace joint_feedback
52 namespace ValidFieldTypes
Class encapsulated joint feedback data. This data represents the current state of each robot joint,...
JointFeedback(void)
Default constructor.
void setVelocities(industrial::joint_data::JointData &velocities)
Sets joint velocity data.
bool getAccelerations(industrial::joint_data::JointData &dest)
Returns a copy of the acceleration data.
Class encapsulated joint data (positions, accelerations, velocity, torque, and/or effort).
ValidFieldTypes::ValidFieldType ValidFieldType
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.
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.
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.
bool operator==(JointFeedback &rhs)
== operator implementation
industrial::shared_types::shared_real time_
joint data timestamp Typically, time since controller booted (in seconds)
void clearTime()
Clears the joint feedback timestamp.
~JointFeedback(void)
Destructor.
void clearAccelerations()
Clears the acceleration data.
bool getTime(industrial::shared_types::shared_real &time)
Returns joint feedback timestamp.
unsigned int byteLength()
Virtual method returns the object size when packed into a ByteArray.
The byte array wraps a dynamic array of bytes (i.e. char).
void setRobotID(industrial::shared_types::shared_int robot_id)
Sets robot_id. Robot group # (0-based), for controllers with multiple axis-groups.
unsigned int byteLength()
Virtual method returns the object size when packed into a ByteArray.
bool unload(industrial::byte_array::ByteArray *buffer)
Virtual method for unloading an object from a ByteArray.
void clearPositions()
Clears the position data.
bool getPositions(industrial::joint_data::JointData &dest)
Returns a copy of the position data.
void init()
Initializes a empty joint data.
void copyFrom(JointFeedback &src)
Copies the passed in value.
Interface for loading and unloading a class to/from a ByteArray.
industrial::shared_types::shared_int robot_id_
robot group # (0-based) for controllers that support multiple axis-groups
industrial::joint_data::JointData accelerations_
joint feedback acceleration data
industrial::joint_data::JointData positions_
joint feedback positional data
void copyFrom(JointData &src)
Copies the passed in value.
industrial::joint_data::JointData velocities_
joint feedback velocity data
void init()
Initializes a empty joint feedback.
void setAccelerations(industrial::joint_data::JointData &accelerations)
Sets joint acceleration data.
bool load(industrial::byte_array::ByteArray *buffer)
Virtual method for loading an object into a ByteArray.
simple_message
Author(s): Shaun Edwards
autogenerated on Wed Mar 2 2022 00:24:53