HOG2
|
#include <AbstractionSearchEnvironment.h>
Public Member Functions | |
AbstractionSearchEnvironment (GraphAbstraction *_ga, int _level) | |
~AbstractionSearchEnvironment () | |
void | getNeighbors (uint32_t nodeID, std::vector< uint32_t > &neighbors) |
double | heuristic (uint32_t node1, uint32_t node2) |
double | gcost (uint32_t node1, uint32_t node2) |
Public Member Functions inherited from SearchEnvironment< state, action > | |
virtual | ~SearchEnvironment () |
virtual void | GetSuccessors (const state &nodeID, std::vector< state > &neighbors) const =0 |
virtual void | GetActions (const state &nodeID, std::vector< action > &actions) const =0 |
virtual int | GetNumSuccessors (const state &stateID) const |
virtual action | GetAction (const state &s1, const state &s2) const |
virtual void | ApplyAction (state &s, action a) const =0 |
virtual void | UndoAction (state &s, action a) const |
virtual void | GetNextState (const state &s1, action a, state &s2) const |
virtual bool | InvertAction (action &a) const =0 |
virtual void | StoreGoal (state &s) |
Stores the goal for use by single-state HCost. More... | |
virtual void | ClearGoal () |
Clears the goal from memory. More... | |
virtual bool | IsGoalStored () const |
Returns true if the goal is stored and false otherwise. More... | |
virtual double | HCost (const state &node1, const state &node2) const =0 |
Heuristic value between two arbitrary nodes. More... | |
virtual double | HCost (const state &node1, const state &node2, double parentHCost) const |
virtual double | HCost (const state &node) const |
Heuristic value between node and the stored goal. More... | |
virtual double | GCost (const state &node1, const state &node2) const =0 |
virtual double | GCost (const state &node, const action &act) const =0 |
virtual bool | GoalTest (const state &node, const state &goal) const =0 |
virtual bool | GoalTest (const state &node) const |
Goal Test if the goal is stored. More... | |
virtual uint64_t | GetMaxHash () const |
virtual uint64_t | GetStateHash (const state &node) const =0 |
virtual void | GetStateFromHash (uint64_t parent, state &s) const |
virtual uint64_t | GetActionHash (action act) const =0 |
virtual double | GetPathLength (std::vector< state > &neighbors) |
virtual double | GetPathLength (const state &start, std::vector< action > &neighbors) |
virtual OccupancyInterface< state, action > * | GetOccupancyInfo () |
virtual void | SetOccupancyInfo (OccupancyInterface< state, action > *) |
virtual void | OpenGLDraw () const |
virtual void | OpenGLDraw (const state &) const |
virtual void | OpenGLDraw (const state &, const state &, float) const |
Draw the transition at some percentage 0...1 between two states. More... | |
virtual void | OpenGLDraw (const state &, const action &) const |
virtual void | GLLabelState (const state &, const char *) const |
virtual void | GLDrawLine (const state &x, const state &y) const |
virtual void | GLDrawPath (const std::vector< state > &x) const |
virtual void | SetColor (const rgbColor &r) const |
virtual void | SetColor (GLfloat rr, GLfloat g, GLfloat b, GLfloat t=1.0) const |
virtual void | GetColor (GLfloat &rr, GLfloat &g, GLfloat &b, GLfloat &t) const |
virtual rgbColor | GetColor () const |
virtual void | Draw (Graphics::Display &display) const |
virtual void | Draw (Graphics::Display &display, const state &) const |
virtual void | DrawLine (Graphics::Display &display, const state &x, const state &y, float width=1.0) const |
Public Member Functions inherited from Heuristic< state > | |
Heuristic () | |
virtual | ~Heuristic () |
Private Attributes | |
GraphAbstraction * | ga |
int | level |
Additional Inherited Members | |
Public Attributes inherited from Heuristic< state > | |
std::vector< HeuristicTreeNode > | lookups |
std::vector< Heuristic * > | heuristics |
uint64_t | histogram [256] |
Protected Attributes inherited from SearchEnvironment< state, action > | |
bool | bValidSearchGoal |
state | searchGoal |
rgbColor | color |
GLfloat | transparency |
Definition at line 16 of file AbstractionSearchEnvironment.h.
|
inline |
Definition at line 19 of file AbstractionSearchEnvironment.h.
|
inline |
Definition at line 21 of file AbstractionSearchEnvironment.h.
double AbstractionSearchEnvironment::gcost | ( | uint32_t | node1, |
uint32_t | node2 | ||
) |
Definition at line 35 of file AbstractionSearchEnvironment.cpp.
References heuristic().
void AbstractionSearchEnvironment::getNeighbors | ( | uint32_t | nodeID, |
std::vector< uint32_t > & | neighbors | ||
) |
Definition at line 13 of file AbstractionSearchEnvironment.cpp.
References ga, GraphAbstraction::GetAbstractGraph(), node::getNeighborIter(), Graph::GetNode(), level, and node::nodeNeighborNext().
double AbstractionSearchEnvironment::heuristic | ( | uint32_t | node1, |
uint32_t | node2 | ||
) |
Definition at line 24 of file AbstractionSearchEnvironment.cpp.
References Graph::FindEdge(), ga, GraphAbstraction::GetAbstractGraph(), Graph::GetNode(), edge::GetWeight(), GraphAbstraction::h(), and level.
Referenced by gcost().
|
private |
Definition at line 26 of file AbstractionSearchEnvironment.h.
Referenced by getNeighbors(), and heuristic().
|
private |
Definition at line 27 of file AbstractionSearchEnvironment.h.
Referenced by getNeighbors(), and heuristic().