Class encapsulated joint trajectory point data. The point data serves as a waypoint along a trajectory. This point differs from the ROS trajectory point in that is specifies the joint velocity in an industrial robot standard way (as a single value). More...
#include <joint_traj_pt.h>
Public Member Functions | |
unsigned int | byteLength () |
Virtual method returns the object size when packed into a ByteArray. | |
void | copyFrom (JointTrajPt &src) |
Copies the passed in value. | |
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 | getVelocity () |
Returns joint trajectory point velocity. | |
void | init () |
Initializes a empty joint trajectory point. | |
void | init (industrial::shared_types::shared_int sequence, industrial::joint_data::JointData &position, industrial::shared_types::shared_real velocity) |
Initializes a complete trajectory point. | |
JointTrajPt (void) | |
Default constructor. | |
bool | load (industrial::byte_array::ByteArray *buffer) |
Virtual method for loading an object into a ByteArray. | |
bool | operator== (JointTrajPt &rhs) |
== operator implementation | |
void | setJointPosition (industrial::joint_data::JointData &position) |
Sets joint position data. | |
void | setSequence (industrial::shared_types::shared_int sequence) |
Sets joint trajectory point sequence number. | |
void | setVelocity (industrial::shared_types::shared_real velocity) |
Sets joint trajectory point velocity. | |
bool | unload (industrial::byte_array::ByteArray *buffer) |
Virtual method for unloading an object from a ByteArray. | |
~JointTrajPt (void) | |
Destructor. | |
Private Attributes | |
industrial::joint_data::JointData | joint_position_ |
joint point positional data | |
industrial::shared_types::shared_int | sequence_ |
trajectory sequence number | |
industrial::shared_types::shared_real | velocity_ |
joint point velocity |
Class encapsulated joint trajectory point data. The point data serves as a waypoint along a trajectory. This point differs from the ROS trajectory point in that is specifies the joint velocity in an industrial robot standard way (as a single value).
THIS CLASS IS NOT THREAD-SAFE
Definition at line 83 of file joint_traj_pt.h.
Default constructor.
This method creates empty data.
Definition at line 51 of file joint_traj_pt.cpp.
Destructor.
Definition at line 55 of file joint_traj_pt.cpp.
unsigned int industrial::joint_traj_pt::JointTrajPt::byteLength | ( | ) | [inline, virtual] |
Virtual method returns the object size when packed into a ByteArray.
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 192 of file joint_traj_pt.h.
void industrial::joint_traj_pt::JointTrajPt::copyFrom | ( | JointTrajPt & | src | ) |
Copies the passed in value.
src | (value to copy) |
Definition at line 75 of file joint_traj_pt.cpp.
void industrial::joint_traj_pt::JointTrajPt::getJointPosition | ( | industrial::joint_data::JointData & | dest | ) | [inline] |
Returns a copy of the position data.
joint | position dest |
Definition at line 128 of file joint_traj_pt.h.
industrial::shared_types::shared_int industrial::joint_traj_pt::JointTrajPt::getSequence | ( | ) | [inline] |
Returns joint trajectory point sequence number.
Definition at line 148 of file joint_traj_pt.h.
industrial::shared_types::shared_real industrial::joint_traj_pt::JointTrajPt::getVelocity | ( | ) | [inline] |
Returns joint trajectory point velocity.
Definition at line 168 of file joint_traj_pt.h.
Initializes a empty joint trajectory point.
Definition at line 60 of file joint_traj_pt.cpp.
void industrial::joint_traj_pt::JointTrajPt::init | ( | industrial::shared_types::shared_int | sequence, |
industrial::joint_data::JointData & | position, | ||
industrial::shared_types::shared_real | velocity | ||
) |
Initializes a complete trajectory point.
bool industrial::joint_traj_pt::JointTrajPt::load | ( | industrial::byte_array::ByteArray * | buffer | ) | [virtual] |
Virtual method for loading an object into a ByteArray.
This method should load all the required data to reconstruct the class object into the buffer
buffer | pointer to ByteArray |
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 90 of file joint_traj_pt.cpp.
bool industrial::joint_traj_pt::JointTrajPt::operator== | ( | JointTrajPt & | rhs | ) |
void industrial::joint_traj_pt::JointTrajPt::setJointPosition | ( | industrial::joint_data::JointData & | position | ) | [inline] |
Sets joint position data.
joint | position data |
Definition at line 118 of file joint_traj_pt.h.
void industrial::joint_traj_pt::JointTrajPt::setSequence | ( | industrial::shared_types::shared_int | sequence | ) | [inline] |
Sets joint trajectory point sequence number.
sequence | value |
Definition at line 138 of file joint_traj_pt.h.
void industrial::joint_traj_pt::JointTrajPt::setVelocity | ( | industrial::shared_types::shared_real | velocity | ) | [inline] |
Sets joint trajectory point velocity.
velocity | value |
Definition at line 158 of file joint_traj_pt.h.
bool industrial::joint_traj_pt::JointTrajPt::unload | ( | industrial::byte_array::ByteArray * | buffer | ) | [virtual] |
Virtual method for unloading an object from a ByteArray.
This method should unload all the required data to reconstruct the class object (in place)
buffer | pointer to ByteArray |
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 127 of file joint_traj_pt.cpp.
joint point positional data
Definition at line 204 of file joint_traj_pt.h.
industrial::shared_types::shared_int industrial::joint_traj_pt::JointTrajPt::sequence_ [private] |
trajectory sequence number
Definition at line 212 of file joint_traj_pt.h.
industrial::shared_types::shared_real industrial::joint_traj_pt::JointTrajPt::velocity_ [private] |
joint point velocity
Definition at line 208 of file joint_traj_pt.h.