Go to the documentation of this file.
31 printf(
"Single State HCost Failure: method not implemented for ConfigEnvironment\n");
32 exit(0);
return -1.0;}
40 printf(
"Single State Goal Test Failure: method not implemented for ConfigEnvironment\n");
41 exit(0);
return false;}
void DrawLine(line2d l) const
A generic vector (essentially the same as a point, but offers normalization)
virtual double HCost(const recVec &) const
Heuristic value between node and the stored goal.
uint64_t GetStateHash(const recVec &node) const
void AddObstacle(line2d obs)
std::vector< line2d > obstacles
void GetSuccessors(const recVec &nodeID, std::vector< recVec > &neighbors) const
virtual double GCost(const recVec &node1, const recVec &node2) const
virtual ~ConfigEnvironment()
bool GoalTest(const recVec &node, const recVec &goal) const
virtual void ApplyAction(recVec &s, line2d dir) const
bool GoalTest(const recVec &) const
Goal Test if the goal is stored.
void ClearGoal()
Clears the goal from memory.
void StoreGoal(recVec &g)
Stores the goal for use by single-state HCost.
uint64_t GetActionHash(line2d act) const
virtual void OpenGLDraw() const
bool IsGoalStored() const
void GetActions(const recVec &nodeID, std::vector< line2d > &actions) const
bool Legal(const recVec &a, const recVec &b) const
virtual bool InvertAction(line2d &a) const
line2d GetAction(const recVec &s1, const recVec &s2) const
virtual void OpenGLDraw(const recVec &, const recVec &, float) const
Draw the transition at some percentage 0...1 between two states.
Nodes to be stored within a Graph.
virtual void GetNextState(const recVec ¤ts, line2d dir, recVec &news) const