#include <searchEnergy.h>
Public Member Functions | |
void | analyzeState (bool &isLegal, double &stateEnergy, const GraspPlanningState *state, bool noChange=true) |
ClosureSearchEnergy () | |
void | setAvoidList (const std::list< GraspPlanningState * > *l) |
void | setThreshold (double t) |
Protected Attributes | |
const std::list < GraspPlanningState * > * | mAvoidList |
double | mThreshold |
This class is meant to be used with the GuidedPlanner that looks for force-closure. It adds one main thing:
Definition at line 132 of file searchEnergy.h.
ClosureSearchEnergy::ClosureSearchEnergy | ( | ) | [inline] |
Definition at line 138 of file searchEnergy.h.
void ClosureSearchEnergy::analyzeState | ( | bool & | isLegal, | |
double & | stateEnergy, | |||
const GraspPlanningState * | state, | |||
bool | noChange = true | |||
) | [virtual] |
This is the main interface to this class. It is passed a GraspPlanningState* and returns whether the HandObjectState is legal, and if so, it's energy. If noChange = true, it will re-set the world situation to what it was on entry. if not, it will leave the world in the state encapsulated in HandObjectState. if the HandObjectState is not legal, it will re-set the world before exiting regardless of the noChange flag.
Reimplemented from SearchEnergy.
Definition at line 716 of file searchEnergy.cpp.
void ClosureSearchEnergy::setAvoidList | ( | const std::list< GraspPlanningState * > * | l | ) | [inline] |
Definition at line 141 of file searchEnergy.h.
void ClosureSearchEnergy::setThreshold | ( | double | t | ) | [inline] |
Definition at line 140 of file searchEnergy.h.
const std::list<GraspPlanningState*>* ClosureSearchEnergy::mAvoidList [protected] |
Definition at line 135 of file searchEnergy.h.
double ClosureSearchEnergy::mThreshold [protected] |
Definition at line 136 of file searchEnergy.h.