HOG2
SimpleHierarchicalAStar.h
Go to the documentation of this file.
1 /*
2  * SimpleHierarchicalAStar.h
3  * hog2
4  *
5  * Created by Nathan Sturtevant on 10/9/07.
6  * Copyright 2007 Nathan Sturtevant, University of Alberta. All rights reserved.
7  *
8  */
9 
10 #ifndef SIMPLEHIERARCHICALASTAR_H
11 #define SIMPLEHIERARCHICALASTAR_H
12 
13 #include "TemplateAStar.h"
14 #include "SearchEnvironment.h"
15 //
16 //class HierarchicalHeuristicEnvironment : public SearchEnvironment<unsigned long, unsigned long>
17 //{
18 // virtual ~HierarchicalHeuristicEnvironment() {}
19 // virtual void GetSuccessors(const unsigned long &nodeID, std::vector<unsigned long> &neighbors) const = 0;
20 // virtual void GetActions(const unsigned long &nodeID, std::vector<unsigned long> &actions) const = 0;
21 // virtual unsigned long GetAction(unsigned long &s1, unsigned long &s2) const = 0;
22 // virtual void ApplyAction(unsigned long &s, unsigned long a) const = 0;
23 //
24 // virtual void GetNextState(unsigned long &currents, unsigned long dir, unsigned long &news) const{};
25 //
26 // virtual bool InvertAction(unsigned long &a) const = 0;
27 //
28 // virtual double HCost(const unsigned long &node1, const unsigned long &node2) = 0;
29 //
30 // virtual double HCost(const unsigned long &state1){
31 // fprintf(stderr, "ERROR: Single State HCost not implemented for HierarchicalHeuristicEnvironment\n");
32 // exit(1); return -1.0;}
33 //
34 // virtual double GCost(const unsigned long &node1, const unsigned long &node2) = 0;
35 // virtual bool GoalTest(const unsigned long &node, const unsigned long &goal) = 0;
36 //
37 // virtual bool GoalTest(const unsigned long &s){
38 // fprintf(stderr, "ERROR: Single State Goal Test not implemented for HierarchicalHeuristicEnvironment\n");
39 // exit(1); return false;}
40 //
41 // virtual uint64_t GetStateHash(const unsigned long &node) const = 0;
42 // virtual uint64_t GetActionHash(unsigned long act) const = 0;
43 //
44 // virtual OccupancyInterface<unsigned long,unsigned long> *GetOccupancyInfo() = 0;
45 //
46 // virtual void OpenGLDraw() const = 0;
47 // virtual void OpenGLDraw(unsigned long&) const = 0;
48 // virtual void OpenGLDraw(unsigned long&, unsigned long&) const = 0;
49 //
50 // void StoreGoal(unsigned long &s){}
51 // void ClearGoal(){}
52 // bool IsGoalStored(){return false;}
53 //};
54 //
55 //class SimpleHierarchicalAStar : public SearchAlgorithm {
56 //public:
57 // SimpleHierarchicalAStar();
58 // virtual ~SimpleHierarchicalAStar();
59 // virtual const char *GetName() { return "SimpleHierarchicalAStar"; }
60 // virtual path *GetPath(GraphAbstraction *aMap, node *from, node *to, reservationProvider *rp = 0);
61 // path *DoOneSearchStep();
62 // bool InitializeSearch(GraphAbstraction *aMap, node *from, node *to);
63 // void OpenGLDraw() const;
64 //private:
65 //TemplateAStar<unsigned long, unsigned long,
66 //};
67 
68 #endif
TemplateAStar.h
SearchEnvironment.h