Go to the documentation of this file.
43 for (
unsigned int x = 0; x < neighbors.size(); x++)
51 neighbors[x] = neighbors.back();
72 return (state == goal);
79 for (
unsigned int x = start; x < corridor.size(); x++)
A generic class for basic operations on Graph abstractions.
Graph * GetAbstractGraph(int level)
return the abstract Graph at the given level
double HCost(const graphState &state1, const graphState &state2) const
Heuristic value between two arbitrary nodes.
GraphRefinementEnvironment(GraphAbstraction *ga, int planLevel, GraphHeuristic *gh, Map *m=0)
virtual void GetSuccessors(const graphState &stateID, std::vector< graphState > &neighbors) const
virtual void GetSuccessors(const graphState &stateID, std::vector< graphState > &neighbors) const
node * GetNode(unsigned long num)
CorridorCheck corridorTable
virtual double h(node *a, node *b)=0
heuristic cost between any two nodes
virtual void GetActions(const graphState &stateID, std::vector< graphMove > &actions) const
~GraphRefinementEnvironment()
void SetPlanningCorridor(std::vector< graphState > &corridor, int level, int start=0)
unsigned int GetNum() const
virtual bool GoalTest(const graphState &state, const graphState &goal) const
virtual void GetActions(const graphState &stateID, std::vector< graphMove > &actions) const
virtual double HCost(const graphState &state1, const graphState &state2) const =0
node * GetNthParent(node *which, int n)
return nth level parent of which or null if it doesn't exist
A tile-based representation of the world.