25 #ifndef _ASTAR_ABSTRACT_STATE_H_ 26 #define _ASTAR_ABSTRACT_STATE_H_ 61 virtual size_t key() = 0;
76 virtual std::vector<AStarState *>
children() = 0;
This is the abstract(!) class for an A* State.
AStarState * parent
Predecessor.
virtual size_t key()=0
Generates a unique key for this state.
Fawkes library namespace.
float path_cost
Cost of path leading to this search state.
virtual bool is_goal()=0
Check, wether we reached a goal or not.
virtual std::vector< AStarState * > children()=0
Generate all successors and put them to this vector.
virtual float estimate()=0
Estimate the heuristic cost to the goal.
float total_estimated_cost
Total estimated cost.
virtual ~AStarState()
Destructor.
AStarState(float cost_sofar, AStarState *parent)
Constructor.