1 #ifndef MANIPULATIONTASK_HPP
2 #define MANIPULATIONTASK_HPP
4 #include "GTP/Tasks/privateTask.hpp"
12 virtual bool findCandidateSolutions() = 0;
13 virtual bool getRandomSol() = 0;
14 virtual bool setToSolution(
int solutionId,
bool computeMP);
15 virtual TaskSolution *createSolution(
bool computeMP) = 0;
17 virtual bool computeSolutionTrajectories(
int alternativeId);
19 virtual bool computeSolutionTrajectories(
TaskSolution *ts) = 0;
21 virtual bool run(std::multimap<std::string,std::string> agents_name,
22 std::multimap<std::string,std::string> objects_name,
23 std::multimap<std::string,p3d_point> point3d,
24 std::multimap<std::string,std::string> additionalData,
40 std::vector<confPtr_t> compute_manipulation_data(
int armId,
Robot *
object, gpGrasp grasp);
42 bool setMainObject(std::multimap<std::string,std::string> objects_name);
44 Robot* getMainObject(){
return mainObject;}
46 virtual void showMainObjectRandomTransform();
50 bool checkHRIAgent(
Robot* r);
51 bool setMainAgentHand();
52 bool isObjectInCollision(
Robot *supportObject);
53 bool isHandInCollision();
55 void removeVirtualObjects();
56 void moveBackVirtualObjects();
95 confPtr_t graspConfClosed;
96 confPtr_t graspConfOpen;
97 confPtr_t approachConf;
101 std::map<int, Robot*> _hands;
104 std::vector<std::pair<Robot*,configPt> > virtualObjs;
106 std::vector<std::pair<double,TaskSolution*> > exploredSolutions;
113 #endif // MANIPULATIONTASK_HPP
Definition: taskSolution.hpp:9
int getArmIdFromAtt()
use the attachement to find the object
Definition: manipulationTask.cpp:608
Definition: manipulationTask.hpp:6
bool checkArmAtt()
check if there is an attachement in _WS of the main object in the good hand
Definition: manipulationTask.cpp:631
This class holds a the robot represented by a kinematic chain.
Definition: robot.hpp:42
TaskSolution * findAlternative(bool computeMP)
get an alternative created by createAlternative and add it to results, or create a new one if no more...
Definition: manipulationTask.cpp:207
Definition: worldState.hpp:30
Robot * getMainObjectFromAtt()
use the arm to find the object attached
Definition: manipulationTask.cpp:586
bool checkAndSetArmAndObj()
check if the arm and objects coresponds
Definition: manipulationTask.cpp:544
Definition: privateTask.hpp:6
TaskSolution * createAlternative(bool computeMP)
randomly create a solution
Definition: manipulationTask.cpp:270
bool checkAttachement()
check the attachements
Definition: manipulationTask.cpp:529