libmove3d-planners
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
Give Class Reference
Inheritance diagram for Give:
CooperativeTask ManipulationTask PrivateTask Task

Public Member Functions

bool initAll ()
 
bool initialize ()
 
bool finalize ()
 
bool findCandidateSolutions ()
 
bool getRandomSol ()
 
bool findConfigurations ()
 
bool findTrajectories ()
 
bool computeSolutionTrajectories (TaskSolution *TS)
 overides computeSolutionTrajectories(int solutionId)
 
virtual TaskSolutioncreateSolution (bool computeMP)
 
bool setAgents (std::multimap< std::string, std::string > agents_name)
 
bool setObjects (std::multimap< std::string, std::string > objects_name)
 
bool setPoints (std::multimap< std::string, p3d_point > points)
 
bool setdata (std::multimap< std::string, std::string > additionalData)
 
bool setSupportObject (std::multimap< std::string, std::string > objects_name)
 
void smoothSolution (int alternativeId)
 
std::string getDescr ()
 
std::string getTextFromValues ()
 
bool setTargetPoint (std::multimap< std::string, p3d_point > points)
 
bool findCurrentTestPoint ()
 
configPt findObjectConf ()
 
bool checkTargetReach ()
 
- Public Member Functions inherited from CooperativeTask
bool setTargetAgent (std::multimap< std::string, std::string > agents_name)
 
bool computeConf (confPtr_t &approachC, p3d_matrix4 objectPosMat, gpGrasp grasp)
 compute the mainAgent conf based on a grasp and the object position More...
 
RobotgetTargetAgent ()
 
- Public Member Functions inherited from ManipulationTask
virtual bool setToSolution (int solutionId, bool computeMP)
 
virtual bool computeSolutionTrajectories (int alternativeId)
 
virtual bool run (std::multimap< std::string, std::string > agents_name, std::multimap< std::string, std::string > objects_name, std::multimap< std::string, p3d_point > point3d, std::multimap< std::string, std::string > additionalData, WorldState *WS, bool computeMP)
 
TaskSolutionfindAlternative (bool computeMP)
 get an alternative created by createAlternative and add it to results, or create a new one if no more are presents. More...
 
TaskSolutioncreateAlternative (bool computeMP)
 randomly create a solution More...
 
std::vector< confPtr_t > compute_manipulation_data (int armId, Robot *object, gpGrasp grasp)
 
bool setMainObject (std::multimap< std::string, std::string > objects_name)
 
RobotgetMainObject ()
 
virtual void showMainObjectRandomTransform ()
 
bool attachObject ()
 
bool detachObject ()
 
bool checkHRIAgent (Robot *r)
 
bool setMainAgentHand ()
 
bool isObjectInCollision (Robot *supportObject)
 
bool isHandInCollision ()
 
void removeVirtualObjects ()
 
void moveBackVirtualObjects ()
 
bool checkAttachement ()
 check the attachements More...
 
bool checkAndSetArmAndObj ()
 check if the arm and objects coresponds More...
 
RobotgetMainObjectFromAtt ()
 use the arm to find the object attached More...
 
int getArmIdFromAtt ()
 use the attachement to find the object More...
 
bool checkArmAtt ()
 check if there is an attachement in _WS of the main object in the good hand More...
 
- Public Member Functions inherited from PrivateTask
virtual bool testConstraints (int alternativeId)
 
virtual bool testConstraints (TaskSolution *TS)
 
bool isPathStraight (Robot *r, p3d_traj *t)
 
virtual double computeCost (int altId)
 
armLabel getArmLabelFromId (int armId)
 
bool setArmToUse (armLabel arm_t)
 
bool setArmToUse (int armId)
 
bool initMotionPlaner (Robot *rob)
 
p3d_traj * compute_traj (confPtr_t q_init, confPtr_t q_goal, Robot *object, int &status)
 
p3d_traj * compute_traj_using_localPath (confPtr_t q_init, confPtr_t q_goal, Robot *object, int &status, bool testingStraightPath=true)
 
virtual bool attachObject (Robot *rob, Robot *obj, bool attach)
 
virtual bool attachObject (Robot *rob, Robot *obj, bool attach, int armId)
 
bool computeInverseKinematic (Robot *ag, p3d_matrix4 target_pos, confPtr_t &solution, int armId, bool fromCurPos)
 
bool computeManipulationConfs (confPtr_t &approachC, confPtr_t &graspC, confPtr_t &graspOC, confPtr_t &escapeC, p3d_matrix4 objectPosMat, gpGrasp grasp, p3d_vector3 approachDir, double approachDist, p3d_vector3 escapeDir, double escapeDist)
 
int getArmId ()
 
bool setMainAgent (std::multimap< std::string, std::string > agents_name)
 
RobotgetMainAgent ()
 
virtual bool isPossibleMainAgent (Robot *r)
 
void openGripper (confPtr_t &q, bool open, int armId)
 
void activateFingertipCol (bool val, Robot *robi, Robot *object, Robot *supportObj)
 
virtual std::pair
< Sem::PlanningPart, bool > 
getPlanPartToUse ()
 
- Public Member Functions inherited from Task
virtual double heuristic (std::multimap< std::string, std::string > agents_name, std::multimap< std::string, std::string > objects_name, std::multimap< std::string, p3d_point > point3d, std::multimap< std::string, std::string > additionalData, WorldState *WS, bool computeMP)
 
virtual double computeHeuristicCost ()
 
p3d_traj * compute_traj (confPtr_t q_init, confPtr_t q_goal, int &status)
 
p3d_traj * compute_traj_using_localPath (confPtr_t q_init, confPtr_t q_goal, int &status)
 
int getId ()
 
void setId (int id)
 
std::string getType ()
 
TasksId getTypeId ()
 
TaskSubSolutiongetSubSolAt (int alternativeId, int id)
 
int getSubSolNumberOfTrajs (int alternativeId)
 
virtual double getSSSizeLeft ()
 
TaskAllSolutionsgetResult ()
 
void setResult (TaskAllSolutions *r)
 
void setConstraints (TaskConstraints *c)
 
TaskConstraintsgetCurrConstraint ()
 
virtual std::vector< int > getJointsIdsToUse ()
 getJointsIdsToUse More...
 
void setGraph (Graph *g)
 
GraphgetGraph ()
 
void setPlanTree (PlanTree *pt)
 
PlanTreegetPlanTree ()
 
void setCurrentDataType (type_data pt)
 
type_data getCurrentDataType ()
 
std::vector< SurfaceAttachementcreateRecursiveAttachements (Robot *r)
 
std::vector< SurfaceAttachementcreateAndLoadSurfaceAttachements (Robot *r)
 
void removeSurfaceAttachements (std::vector< SurfaceAttachement > s)
 

Protected Attributes

gpGrasp _curGrasp
 
p3d_traj * approachTraj
 
confPtr_t _objectFinalConf
 
confPtr_t _agentFinalConf
 
bool _hasTargedPoint
 
p3d_point _targetPoint
 
p3d_point _currentTest
 
std::vector< std::pair< int,
p3d_point > > 
_targetShoulder
 
double _mainAgentReach
 
double _targetAgentReach
 
p3d_point _mainAgentShoulder
 
int _currTargetHandId
 
int maxTests
 
WorldStateFacts_WSF
 
- Protected Attributes inherited from CooperativeTask
RobottargetAgent
 
- Protected Attributes inherited from ManipulationTask
RobotmainObject
 
confPtr_t graspConfClosed
 
confPtr_t graspConfOpen
 
confPtr_t approachConf
 
confPtr_t escapeConf
 
int currentTransfo
 
std::map< int, Robot * > _hands
 
gpGrasp _curGrasp
 
std::vector< std::pair< Robot
*, configPt > > 
virtualObjs
 
std::vector< std::pair< double,
TaskSolution * > > 
exploredSolutions
 
bool _noArm
 
- Protected Attributes inherited from PrivateTask
std::vector< GTPCellcandidatePoints
 
RobotmainAgent
 
armLabel m_arm
 
gpHand_type handType
 
int _armId
 
std::map< std::string,
ManipulationPlanner * > 
ManipPlMap
 
std::vector< HRI_AGENT_TYPE > _possibleMainAgentType
 
- Protected Attributes inherited from Task
int task_id
 
std::string type
 
TasksId typeId
 
TaskAllSolutionsresult
 
WorldState_WS
 
int nbMaxLoops
 
TaskConstraints_currConstraints
 
int _returnReportcount
 
int _returnReportcountMax
 
Graph_taskGraph
 
PlanTree_planTree
 
type_data currentDataType
 

Additional Inherited Members

- Public Attributes inherited from Task
SolutionDataSD
 

The documentation for this class was generated from the following files: