#include <kinematic_state_constraint_evaluator.h>
Public Member Functions | |
virtual void | clear (void) |
Clear the stored constraint. | |
virtual bool | decide (const planning_models::KinematicState *state, bool verbose=false) const |
Decide whether the constraint is satisfied in the indicated state or group, if specified. | |
bool | decide (double dPos, bool verbose=false) const |
Decide whether the constraint is satisfied. The distances to the position and to the orientation are given. | |
void | evaluate (const planning_models::KinematicState *state, double &distPos, bool verbose=false) const |
Evaluate the distances to the position and to the orientation are given. | |
const arm_navigation_msgs::PositionConstraint & | getConstraintMessage (void) const |
Get the constraint message. | |
PositionConstraintEvaluator (void) | |
void | print (std::ostream &out=std::cout) const |
Print the constraint data. | |
bool | use (const arm_navigation_msgs::PositionConstraint &pc) |
This function assumes the constraint has been transformed into the proper frame, if such a transform is needed. | |
Protected Attributes | |
boost::scoped_ptr< bodies::Body > | m_constraint_region |
tf::Vector3 | m_offset |
arm_navigation_msgs::PositionConstraint | m_pc |
double | m_x |
double | m_y |
double | m_z |
Definition at line 182 of file kinematic_state_constraint_evaluator.h.
Definition at line 186 of file kinematic_state_constraint_evaluator.h.
void planning_environment::PositionConstraintEvaluator::clear | ( | void | ) | [virtual] |
Clear the stored constraint.
Implements planning_environment::KinematicConstraintEvaluator.
Definition at line 203 of file kinematic_state_constraint_evaluator.cpp.
bool planning_environment::PositionConstraintEvaluator::decide | ( | const planning_models::KinematicState * | state, |
bool | verbose = false |
||
) | const [virtual] |
Decide whether the constraint is satisfied in the indicated state or group, if specified.
Implements planning_environment::KinematicConstraintEvaluator.
Definition at line 211 of file kinematic_state_constraint_evaluator.cpp.
bool planning_environment::PositionConstraintEvaluator::decide | ( | double | dPos, |
bool | verbose = false |
||
) | const |
Decide whether the constraint is satisfied. The distances to the position and to the orientation are given.
Definition at line 339 of file kinematic_state_constraint_evaluator.cpp.
void planning_environment::PositionConstraintEvaluator::evaluate | ( | const planning_models::KinematicState * | state, |
double & | distPos, | ||
bool | verbose = false |
||
) | const |
Evaluate the distances to the position and to the orientation are given.
Definition at line 292 of file kinematic_state_constraint_evaluator.cpp.
const arm_navigation_msgs::PositionConstraint & planning_environment::PositionConstraintEvaluator::getConstraintMessage | ( | void | ) | const |
Get the constraint message.
Definition at line 349 of file kinematic_state_constraint_evaluator.cpp.
void planning_environment::PositionConstraintEvaluator::print | ( | std::ostream & | out = std::cout | ) | const [virtual] |
Print the constraint data.
Reimplemented from planning_environment::KinematicConstraintEvaluator.
Definition at line 359 of file kinematic_state_constraint_evaluator.cpp.
bool planning_environment::PositionConstraintEvaluator::use | ( | const arm_navigation_msgs::PositionConstraint & | pc | ) |
This function assumes the constraint has been transformed into the proper frame, if such a transform is needed.
Definition at line 167 of file kinematic_state_constraint_evaluator.cpp.
boost::scoped_ptr<bodies::Body> planning_environment::PositionConstraintEvaluator::m_constraint_region [protected] |
Definition at line 217 of file kinematic_state_constraint_evaluator.h.
tf::Vector3 planning_environment::PositionConstraintEvaluator::m_offset [protected] |
Definition at line 216 of file kinematic_state_constraint_evaluator.h.
arm_navigation_msgs::PositionConstraint planning_environment::PositionConstraintEvaluator::m_pc [protected] |
Definition at line 214 of file kinematic_state_constraint_evaluator.h.
double planning_environment::PositionConstraintEvaluator::m_x [protected] |
Definition at line 215 of file kinematic_state_constraint_evaluator.h.
double planning_environment::PositionConstraintEvaluator::m_y [protected] |
Definition at line 215 of file kinematic_state_constraint_evaluator.h.
double planning_environment::PositionConstraintEvaluator::m_z [protected] |
Definition at line 215 of file kinematic_state_constraint_evaluator.h.