5 #include "API/Device/robot.hpp"
6 #include "API/scene.hpp"
7 #include "lightPlanner/proto/ManipulationPlanner.hpp"
9 #include "../../planner/plannerFunctions.hpp"
10 #include "../lightPlanner/proto/lightPlanner.h"
11 #include "../lightPlanner/proto/lightPlannerApi.h"
13 #include "API/facts.hpp"
15 #include "graspPlanning/include/gpGrasp.h"
16 #include "taskConstraints.hpp"
18 #include "mightabilitiesGrids.hpp"
20 #include "solutionTools/structTools.hpp"
22 #include "jsoncpp/json/value.h"
40 void loadConf(confPtr_t q);
42 void saveRobot(
Robot* rob);
43 void saveConf(confPtr_t q);
44 bool replaceConf(confPtr_t q);
50 void addAttachement(
Robot* rob,
Robot* obj, gpGrasp gr,
int armId);
53 std::vector<Attachement> getAttachements() {
return attachements_list;}
54 void setAttachements(std::vector<Attachement> va) {attachements_list = va;}
56 void clearAttachement();
57 void removeAttachements(
Robot* rob,
Robot* obj);
58 bool hasAttachement(
Robot* rob);
61 void saveCurrentAttachement();
62 void resetCurrentAttachements();
63 void loadAttachements();
66 std::vector<SurfaceAttachement> getSurfaceAttachements() {
return surfaceAttachements_list;}
67 void setSurfaceAttachements(std::vector<SurfaceAttachement> va) {surfaceAttachements_list = va;}
68 void loadSurfaceAttachements();
69 void clearSurfaceAttachements();
71 std::vector<confPtr_t > getRobotConfs() {
return _robotsConfs;}
72 confPtr_t getRobotConf(
Robot* rob);
74 int getId() {
return _id;}
77 Scene* getScene() {
return _sce;}
79 std::vector<Fact> getFacts();
80 std::vector<Fact> getAllFacts();
84 TaskSolution* getTSThatEndWithThisWS() {
return endingStateOf;}
85 std::pair<int,int> getTSIndexThatEndWithThisWS() {
return endingStateOfIndex;}
86 bool setTSThatEndWithThisWS(
TaskSolution* TS,
bool forceSetting =
true);
90 void clearTCForNextTask();
92 void saveToDisk(FILE *file, std::string text);
94 void initMightabilities();
99 void updateRobotVirtualObj(
Robot* r);
101 gpGrasp getGraspFromId(
int graspId,
Robot*
object,
int armId,
Robot *rob);
103 Json::Value toJson();
104 void fromJson(Json::Value root);
110 std::vector<confPtr_t > _robotsConfs;
111 std::vector<Attachement> attachements_list;
112 std::vector<SurfaceAttachement> surfaceAttachements_list;
120 bool areFactsComputed;
123 std::pair<int,int> endingStateOfIndex;
133 #endif // WORLDSTATE_HPP
Definition: taskSolution.hpp:9
Definition: facts.hpp:106
Definition: taskConstraints.hpp:34
This class holds a the robot represented by a kinematic chain.
Definition: robot.hpp:42
Definition: mightabilitiesGrids.hpp:52
Class that represents a Scene, Described by a p3d file.
Definition: scene.hpp:22
Definition: worldState.hpp:30
Definition: facts.hpp:160
Definition: structTools.hpp:38