5 #include "move3d-headless.h"
6 #include "Planner-pkg.h"
8 #include "Device/robot.hpp"
21 std::string factSubType;
43 bool disableFacts(std::string s);
44 bool enableFacts(std::string s);
45 bool isFactEnabled(std::string s);
66 bool computeAllReachabilities(
WorldStateFacts* WS,
bool forceRecompute);
74 bool computeFacts(
int WSid,
bool forceRecompute);
75 int computeFacts(
bool forceRecompute);
80 int findCurWorldStateFacts();
87 std::vector<Fact> computeAndGetFact(std::string fact,
Robot *mainEntity);
88 Fact computeAndGetFact(std::string fact, std::string factSubType,
Robot *mainEntity,
Robot* targetEntity);
92 std::vector<fact_id> getFactList() {
return factList;}
95 static std::vector<fact_id> factList;
96 std::vector<std::pair<int, WorldStateFacts*> > WSlist;
100 std::vector<std::string> disabledFacts;
108 MOVE3D_STATIC_LOGGER;
113 bool compareFactsDescr(
Fact f);
115 bool compareFactsValue(
Fact f);
119 Robot* getMainEntity();
120 Robot* getTargetEntity();
122 void setMainEntity(
Robot* r);
123 void setTargetEntity(
Robot* r);
126 void setIsComputed(
bool t);
129 void setValueType(
int v);
132 void setBoolValue(
bool v);
134 double getSpecValue();
135 void setSpecValue(
double v);
139 std::string getFactDescr();
153 double specificValue;
162 MOVE3D_STATIC_LOGGER;
170 void printAllFacts();
171 void printAllComputedFacts();
172 void printFacts(std::vector<Fact> fp);
174 bool initFacts(std::vector<fact_id> factList);
177 std::vector<Fact> getFacts();
178 std::vector<Fact> getMeaningfulFacts();
180 void setFacts(std::vector<Fact> Facts);
182 std::vector<Fact> getFactFromMain(std::string factType, std::string main);
183 std::vector<Fact> getFactFromTarget(std::string factType, std::string target);
186 Fact getFact(std::string factType, std::string main, std::string target);
187 void setFact(
Fact fact);
189 std::vector<confPtr_t> getRobotsConfs();
191 confPtr_t getRobotConf(
Robot* robot);
193 confPtr_t getRobotConfById(
int robot_id);
195 void setConfigurations(std::vector<confPtr_t> robVect) { robotsConfs = robVect;}
196 void setConfiguration(confPtr_t conf);
199 std::vector<confPtr_t> robotsConfs;
200 std::vector<Fact> facts;
bool computeReachability(WorldStateFacts *WS, Robot *mainEntity, Robot *targetEntity, bool forceRecompute)
the hand will be stocked in the sepecific value 2 hand considered
Definition: facts.cpp:416
Definition: facts.hpp:106
bool computeVisibility(WorldStateFacts *WS, Robot *mainEntity, Robot *targetEntity, bool forceRecompute)
computing visibility fact for now, it is done roughly a first loop check if the center of mass of the...
Definition: facts.cpp:252
This class holds a the robot represented by a kinematic chain.
Definition: robot.hpp:42
bool computeIsOn(WorldStateFacts *WS, Robot *mainEntity, Robot *targetEntity, bool forceRecompute)
computation of is On fact an object A is On another one B in the next conditions: The center of A is ...
Definition: facts.cpp:676
Class that represents a Scene, Described by a p3d file.
Definition: scene.hpp:22
bool computeIsIn(WorldStateFacts *WS, Robot *mainEntity, Robot *targetEntity, bool forceRecompute)
Compute is insinde fact is in means at least half of the mainobject is in the OBB of the target objec...
Definition: facts.cpp:789
Definition: facts.hpp:160
bool computeIsNextTo(WorldStateFacts *WS, Robot *mainEntity, Robot *targetEntity, bool forceRecompute)
computation of is next to fact an object is next to another if the closest distance between those two...
Definition: facts.cpp:1064