Flat Object Grasping Library (FOG)
0.2.1
|
Decides which of the available grasp strategies can be used for grasping the target object, given the current scene. More...
#include <fog/decision_maker.h>
Public Member Functions | |
DecisionMaker () | |
~DecisionMaker () | |
EnabledStrategies | enableStrategies (const Models &models) |
Enables the grasp strategies. Based on the given Models extracted from the scene, it sets the enabling conditions and implements the flow charts for enabling strategies. More... | |
std::vector< Eigen::Vector3d > | getFeasibleDirections () |
Returns the feasible directions (set ) calculated indirectly by fog::DecisionMaker::enableStrategies. Before calling this function make sure that you have called fog::DecisionMaker::enableStrategies before. More... | |
Public Attributes | |
EnablingConditions | enabling_conditions |
Private Member Functions | |
EnablingConditions | setEnablingConditions (const Models &input, const std::vector< Eigen::Vector3d > &feasible_directions) |
Based on the hand/object/surface models, sets the enable conditions, top reachability etc. More... | |
std::vector< Eigen::Vector3d > | generateFeasibleDirections (const Models &input) |
Generates feasible directions (set ) based on the usable directions and the spread. More... | |
Private Attributes | |
std::string | name |
std::vector< Eigen::Vector3d > | feasible_directions |
The feasible directions. Represents the set . More... | |
Decides which of the available grasp strategies can be used for grasping the target object, given the current scene.
It assumes that the FOG Models are known by the Model Extractor.
fog::DecisionMaker::DecisionMaker | ( | ) |
fog::DecisionMaker::~DecisionMaker | ( | ) |
EnabledStrategies fog::DecisionMaker::enableStrategies | ( | const Models & | models | ) |
Enables the grasp strategies. Based on the given Models extracted from the scene, it sets the enabling conditions and implements the flow charts for enabling strategies.
models | The FOG models extracted from the scene |
|
private |
Generates feasible directions (set ) based on the usable directions and the spread.
input | The models |
std::vector< Eigen::Vector3d > fog::DecisionMaker::getFeasibleDirections | ( | ) |
Returns the feasible directions (set ) calculated indirectly by fog::DecisionMaker::enableStrategies. Before calling this function make sure that you have called fog::DecisionMaker::enableStrategies before.
|
private |
Based on the hand/object/surface models, sets the enable conditions, top reachability etc.
input | The Models as the input |
feasible_directions | The set of the feasible directions |
EnablingConditions fog::DecisionMaker::enabling_conditions |
|
private |
The feasible directions. Represents the set .
|
private |