Simox
2.3.74.0
|
Public Member Functions | |
GenericGraspPlanner (VirtualRobot::GraspSetPtr graspSet, GraspStudio::GraspQualityMeasurePtr graspQuality, GraspStudio::ApproachMovementGeneratorPtr approach, float minQuality=0.0f, bool forceClosure=true) | |
virtual | ~GenericGraspPlanner () override |
int | plan (int nrGrasps, int timeOutDuration=0, VirtualRobot::SceneObjectSetPtr obstacles={}) override |
VirtualRobot::GraspPtr | planGrasp (VirtualRobot::SceneObjectSetPtr obstacles={}) |
VirtualRobot::EndEffector::ContactInfoVector | getContacts () const |
void | setParameters (float minQuality, bool forceClosure) |
void | setRetreatOnLowContacts (bool enable) |
Public Member Functions inherited from GraspStudio::GraspPlanner | |
GraspPlanner (VirtualRobot::GraspSetPtr graspSet) | |
virtual | ~GraspPlanner () |
destructor More... | |
void | setVerbose (bool enable) |
std::vector< VirtualRobot::GraspPtr > | getPlannedGrasps () |
GraspPlannerEvaluation | getEvaluation () const |
getEvaluation More... | |
void | clearEvaluation () |
Clear the evaluation. More... | |
Protected Member Functions | |
bool | moveEEFAway (const Eigen::Vector3f &approachDir, float step, int maxLoops) |
bool | timeout () |
Protected Attributes | |
VirtualRobot::SceneObjectPtr | object |
VirtualRobot::EndEffectorPtr | eef |
std::chrono::system_clock::time_point | startTime |
std::chrono::milliseconds | timeOutDuration |
VirtualRobot::EndEffector::ContactInfoVector | contacts |
GraspStudio::GraspQualityMeasurePtr | graspQuality |
GraspStudio::ApproachMovementGeneratorPtr | approach |
float | minQuality |
bool | forceClosure |
bool | retreatOnLowContacts |
Protected Attributes inherited from GraspStudio::GraspPlanner | |
bool | verbose |
VirtualRobot::GraspSetPtr | graspSet |
std::vector< VirtualRobot::GraspPtr > | plannedGrasps |
GraspPlannerEvaluation | eval |
A general grasp planning class that utilizes ApprachMovementGenerator for generating grasp hypothesis and GraspQualityMeasure to score them.
GraspStudio::GenericGraspPlanner::GenericGraspPlanner | ( | VirtualRobot::GraspSetPtr | graspSet, |
GraspStudio::GraspQualityMeasurePtr | graspQuality, | ||
GraspStudio::ApproachMovementGeneratorPtr | approach, | ||
float | minQuality = 0.0f , |
||
bool | forceClosure = true |
||
) |
Constructor
graspSet | All planned grasps are added to this GraspSet. |
graspQuality | The quality of generated grasps is evaluated with this object |
approach | Approach movements are generated by this object. |
minQuality | The quality that must be achieved at minimum by the GraspQualityMesurement module |
forceClosure | When true, only force closure grasps are generated. |
|
overridevirtualdefault |
VirtualRobot::EndEffector::ContactInfoVector GraspStudio::GenericGraspPlanner::getContacts | ( | ) | const |
|
protected |
|
overridevirtual |
Creates new grasps.
nrGrasps | The number of grasps to be planned. |
timeOutMS | The time out in milliseconds. Planning is stopped when this time is exceeded. Disabled when zero. |
Implements GraspStudio::GraspPlanner.
VirtualRobot::GraspPtr GraspStudio::GenericGraspPlanner::planGrasp | ( | VirtualRobot::SceneObjectSetPtr | obstacles = {} | ) |
void GraspStudio::GenericGraspPlanner::setParameters | ( | float | minQuality, |
bool | forceClosure | ||
) |
void GraspStudio::GenericGraspPlanner::setRetreatOnLowContacts | ( | bool | enable | ) |
if enabled (default), the planner retreates the hand if the number of contacts is <2. During retreat, the contacts are checked if a better situation can be achieved. This procedure helps in case the object is small.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |