46 namespace joint_traj_pt
49 JointTrajPt::JointTrajPt(
void)
53 JointTrajPt::~JointTrajPt(
void)
58 void JointTrajPt::init()
60 this->joint_position_.init();
62 this->velocity_ = 0.0;
63 this->duration_ = 0.0;
68 this->setJointPosition(position);
69 this->setSequence(sequence);
70 this->setVelocity(velocity);
71 this->setDuration(duration);
93 LOG_COMM(
"Executing joint trajectory point load");
95 if (buffer->
load(this->sequence_))
97 if (this->joint_position_.load(buffer))
99 if (buffer->
load(this->velocity_))
101 if (buffer->
load(this->duration_))
103 LOG_COMM(
"Trajectory point successfully loaded");
109 LOG_ERROR(
"Failed to load joint traj pt. duration");
115 LOG_ERROR(
"Failed to load joint traj pt. velocity");
122 LOG_ERROR(
"Failed to load joint traj. pt. position data");
128 LOG_ERROR(
"Failed to load joint traj. pt. sequence number");
138 LOG_COMM(
"Executing joint traj. pt. unload");
139 if (buffer->
unload(this->duration_))
141 if (buffer->
unload(this->velocity_))
143 if (this->joint_position_.unload(buffer))
145 if (buffer->
unload(this->sequence_))
148 LOG_COMM(
"Joint traj. pt successfully unloaded");
152 LOG_ERROR(
"Failed to unload joint traj. pt. sequence number");
158 LOG_ERROR(
"Failed to unload joint traj. pt. position data");
165 LOG_ERROR(
"Failed to unload joint traj. pt. velocity");
171 LOG_ERROR(
"Failed to unload joint traj. pt. duration");
industrial::shared_types::shared_int sequence_
trajectory sequence number
void init(const M_string &remappings)
Contains platform specific type definitions that guarantee the size of primitive data types...
#define LOG_COMM(format,...)
bool load(industrial::shared_types::shared_bool value)
loads a boolean into the byte array
#define LOG_ERROR(format,...)
Class encapsulated joint trajectory point data. The point data serves as a waypoint along a trajector...
industrial::shared_types::shared_real velocity_
joint point velocity
The byte array wraps a dynamic array of bytes (i.e. char).
industrial::shared_types::shared_real getVelocity()
Returns joint trajectory point velocity.
Class encapsulated joint data (positions, accelerations, velocity, torque, and/or effort)...
industrial::shared_types::shared_real getDuration()
Returns joint trajectory point duration.
industrial::joint_data::JointData joint_position_
joint point positional data
bool unload(industrial::shared_types::shared_bool &value)
unloads a boolean value from the byte array
void getJointPosition(industrial::joint_data::JointData &dest)
Returns a copy of the position data.
industrial::shared_types::shared_int getSequence()
Returns joint trajectory point sequence number.
industrial::shared_types::shared_real duration_
joint move duration