32 #ifndef JOINT_TRAJ_PT_FULL_H 33 #define JOINT_TRAJ_PT_FULL_H 49 namespace joint_traj_pt_full
52 namespace SpecialSeqValues
65 namespace ValidFieldTypes
143 this->robot_id_ = robot_id;
154 return this->robot_id_;
164 this->sequence_ = sequence;
174 return this->sequence_;
206 this->valid_fields_ &= ~ValidFieldTypes
::TIME;
216 this->positions_.copyFrom(positions);
237 this->positions_.init();
238 this->valid_fields_ &= ~ValidFieldTypes
::POSITION;
248 this->velocities_.copyFrom(velocities);
269 this->velocities_.init();
270 this->valid_fields_ &= ~ValidFieldTypes
::VELOCITY;
279 this->accelerations_.copyFrom(accelerations);
291 dest.
copyFrom(this->accelerations_);
300 this->accelerations_.init();
326 return valid_fields_ & field;
335 + 3*this->positions_.byteLength();
industrial::shared_types::shared_int robot_id_
robot group # (0-based) for controllers that support multiple axis-groups
Downloading drivers only: signal start of trajectory.
void setSequence(industrial::shared_types::shared_int sequence)
Sets joint trajectory point sequence number.
bool getTime(industrial::shared_types::shared_real &time)
Returns joint trajectory point timestamp.
void init(const M_string &remappings)
void setTime(industrial::shared_types::shared_real time)
Sets joint trajectory point timestamp.
void clearAccelerations()
Clears the acceleration data.
industrial::joint_data::JointData accelerations_
joint trajectory point acceleration data
void clearVelocities()
Clears the velocity data.
bool is_valid(ValidFieldType field)
check the validity state for a given field
void setVelocities(industrial::joint_data::JointData &velocities)
Sets joint velocity data.
industrial::shared_types::shared_int valid_fields_
bit-mask of (optional) fields that have been initialized with valid data
Interface for loading and unloading a class to/from a ByteArray.
Server should stop the current motion (if any) as soon as possible.
industrial::shared_types::shared_int getRobotID()
Gets robot_id. Robot group # (0-based), for controllers with multiple axis-groups.
bool getPositions(industrial::joint_data::JointData &dest)
Returns a copy of the position data.
industrial::joint_data::JointData velocities_
joint trajectory point velocity data
deprecated, please use START_TRAJECTORY_STREAMING instead
Downloading drivers only: signal end of trajectory.
void copyFrom(JointData &src)
Copies the passed in value.
The byte array wraps a dynamic array of bytes (i.e. char).
unsigned int byteLength()
Virtual method returns the object size when packed into a ByteArray.
void clearPositions()
Clears the position data.
Class encapsulated joint data (positions, accelerations, velocity, torque, and/or effort)...
void setRobotID(industrial::shared_types::shared_int robot_id)
Sets robot_id. Robot group # (0-based), for controllers with multiple axis-groups.
void setPositions(industrial::joint_data::JointData &positions)
Sets joint position data.
Class encapsulated joint trajectory point data. The point data serves as a waypoint along a trajector...
Streaming drivers only: signal start of trajectory.
bool getAccelerations(industrial::joint_data::JointData &dest)
Returns a copy of the acceleration data.
industrial::shared_types::shared_int sequence_
trajectory sequence number
ValidFieldTypes::ValidFieldType ValidFieldType
void setAccelerations(industrial::joint_data::JointData &accelerations)
Sets joint acceleration data.
industrial::shared_types::shared_int getSequence()
Returns joint trajectory point sequence number.
industrial::shared_types::shared_real time_
joint trajectory point timestamp Typically, time_from_start of this trajectory (in seconds) ...
industrial::joint_data::JointData positions_
joint trajectory point positional data
void clearTime()
Clears the joint trajectory point timestamp.
bool getVelocities(industrial::joint_data::JointData &dest)
Returns a copy of the velocity data.