#include <prismatic_joint_model.h>
Public Member Functions | |
virtual void | computeTransform (const double *joint_values, Eigen::Affine3d &transf) const |
Given the joint values for a joint, compute the corresponding transform. | |
virtual void | computeVariablePositions (const Eigen::Affine3d &transf, double *joint_values) const |
Given the transform generated by joint, compute the corresponding joint values. | |
virtual double | distance (const double *values1, const double *values2) const |
Compute the distance between two joint states of the same model (represented by the variable values) | |
virtual bool | enforcePositionBounds (double *values, const Bounds &other_bounds) const |
Force the specified values to be inside bounds and normalized. Quaternions are normalized, continuous joints are made between -Pi and Pi. Return true if changes were made. | |
const Eigen::Vector3d & | getAxis () const |
Get the axis of translation. | |
virtual double | getMaximumExtent (const Bounds &other_bounds) const |
Get the extent of the state space (the maximum value distance() can ever report) | |
virtual unsigned int | getStateSpaceDimension () const |
Get the dimension of the state space that corresponds to this joint. | |
virtual void | getVariableDefaultPositions (double *values, const Bounds &other_bounds) const |
Provide a default value for the joint given the joint variable bounds. Most joints will use the default implementation provided in this base class, but the quaternion for example needs a different implementation. Enough memory is assumed to be allocated. | |
virtual void | getVariableRandomPositions (random_numbers::RandomNumberGenerator &rng, double *values, const Bounds &other_bounds) const |
Provide random values for the joint variables (within specified bounds). Enough memory is assumed to be allocated. | |
virtual void | getVariableRandomPositionsNearBy (random_numbers::RandomNumberGenerator &rng, double *values, const Bounds &other_bounds, const double *near, const double distance) const |
Provide random values for the joint variables (within specified bounds). Enough memory is assumed to be allocated. | |
virtual void | interpolate (const double *from, const double *to, const double t, double *state) const |
Computes the state that lies at time t in [0, 1] on the segment that connects from state to to state. The memory location of state is not required to be different from the memory of either from or to. | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | PrismaticJointModel (const std::string &name) |
virtual bool | satisfiesPositionBounds (const double *values, const Bounds &other_bounds, double margin) const |
Check if the set of position values for the variables of this joint are within bounds, up to some margin. | |
void | setAxis (const Eigen::Vector3d &axis) |
Set the axis of translation. | |
Protected Attributes | |
Eigen::Vector3d | axis_ |
The axis of the joint. |
A prismatic joint.
Definition at line 47 of file prismatic_joint_model.h.
moveit::core::PrismaticJointModel::PrismaticJointModel | ( | const std::string & | name | ) |
Definition at line 40 of file prismatic_joint_model.cpp.
void moveit::core::PrismaticJointModel::computeTransform | ( | const double * | joint_values, |
Eigen::Affine3d & | transf | ||
) | const [virtual] |
Given the joint values for a joint, compute the corresponding transform.
Implements moveit::core::JointModel.
Definition at line 120 of file prismatic_joint_model.cpp.
void moveit::core::PrismaticJointModel::computeVariablePositions | ( | const Eigen::Affine3d & | transform, |
double * | joint_values | ||
) | const [virtual] |
Given the transform generated by joint, compute the corresponding joint values.
Implements moveit::core::JointModel.
Definition at line 147 of file prismatic_joint_model.cpp.
double moveit::core::PrismaticJointModel::distance | ( | const double * | value1, |
const double * | value2 | ||
) | const [virtual] |
Compute the distance between two joint states of the same model (represented by the variable values)
Implements moveit::core::JointModel.
Definition at line 109 of file prismatic_joint_model.cpp.
bool moveit::core::PrismaticJointModel::enforcePositionBounds | ( | double * | values, |
const Bounds & | other_bounds | ||
) | const [virtual] |
Force the specified values to be inside bounds and normalized. Quaternions are normalized, continuous joints are made between -Pi and Pi. Return true if changes were made.
Implements moveit::core::JointModel.
Definition at line 94 of file prismatic_joint_model.cpp.
const Eigen::Vector3d& moveit::core::PrismaticJointModel::getAxis | ( | ) | const [inline] |
Get the axis of translation.
Definition at line 72 of file prismatic_joint_model.h.
double moveit::core::PrismaticJointModel::getMaximumExtent | ( | const Bounds & | other_bounds | ) | const [virtual] |
Get the extent of the state space (the maximum value distance() can ever report)
Implements moveit::core::JointModel.
Definition at line 57 of file prismatic_joint_model.cpp.
unsigned int moveit::core::PrismaticJointModel::getStateSpaceDimension | ( | ) | const [virtual] |
Get the dimension of the state space that corresponds to this joint.
Implements moveit::core::JointModel.
Definition at line 52 of file prismatic_joint_model.cpp.
void moveit::core::PrismaticJointModel::getVariableDefaultPositions | ( | double * | values, |
const Bounds & | other_bounds | ||
) | const [virtual] |
Provide a default value for the joint given the joint variable bounds. Most joints will use the default implementation provided in this base class, but the quaternion for example needs a different implementation. Enough memory is assumed to be allocated.
Implements moveit::core::JointModel.
Definition at line 62 of file prismatic_joint_model.cpp.
void moveit::core::PrismaticJointModel::getVariableRandomPositions | ( | random_numbers::RandomNumberGenerator & | rng, |
double * | values, | ||
const Bounds & | other_bounds | ||
) | const [virtual] |
Provide random values for the joint variables (within specified bounds). Enough memory is assumed to be allocated.
Implements moveit::core::JointModel.
Definition at line 79 of file prismatic_joint_model.cpp.
void moveit::core::PrismaticJointModel::getVariableRandomPositionsNearBy | ( | random_numbers::RandomNumberGenerator & | rng, |
double * | values, | ||
const Bounds & | other_bounds, | ||
const double * | near, | ||
const double | distance | ||
) | const [virtual] |
Provide random values for the joint variables (within specified bounds). Enough memory is assumed to be allocated.
Implements moveit::core::JointModel.
Definition at line 85 of file prismatic_joint_model.cpp.
void moveit::core::PrismaticJointModel::interpolate | ( | const double * | from, |
const double * | to, | ||
const double | t, | ||
double * | state | ||
) | const [virtual] |
Computes the state that lies at time t in [0, 1] on the segment that connects from state to to state. The memory location of state is not required to be different from the memory of either from or to.
Implements moveit::core::JointModel.
Definition at line 114 of file prismatic_joint_model.cpp.
bool moveit::core::PrismaticJointModel::satisfiesPositionBounds | ( | const double * | values, |
const Bounds & | other_bounds, | ||
double | margin | ||
) | const [virtual] |
Check if the set of position values for the variables of this joint are within bounds, up to some margin.
Implements moveit::core::JointModel.
Definition at line 71 of file prismatic_joint_model.cpp.
void moveit::core::PrismaticJointModel::setAxis | ( | const Eigen::Vector3d & | axis | ) | [inline] |
Set the axis of translation.
Definition at line 78 of file prismatic_joint_model.h.
Eigen::Vector3d moveit::core::PrismaticJointModel::axis_ [protected] |
The axis of the joint.
Definition at line 85 of file prismatic_joint_model.h.