Go to the documentation of this file.
16 #define __STDC_CONSTANT_MACROS
22 #define UINT32_MAX 4294967295U
29 #include <unordered_map>
35 SearchNode(
double _fCost=0,
double _gCost=0, uint32_t curr=0, uint32_t prev=0)
69 typedef std::unordered_map<uint32_t, GenericAStarUtil::SearchNode >
NodeLookupTable;
71 typedef std::unordered_map<uint32_t, bool >
Corridor;
82 std::vector<uint32_t> &thePath);
85 std::vector<uint32_t> &thePath);
bool DoSingleSearchStep(std::vector< uint32_t > &thePath)
GenericAStarUtil::Corridor eligibleNodes
size_t operator()(const SearchNode &x) const
void ExtractPathToStart(uint32_t n, std::vector< uint32_t > &thePath)
void UpdateWeight(uint32_t currOpenNode, uint32_t neighbor)
uint64_t GetNodesTouched()
void GetPath(OldSearchCode::SearchEnvironment *env, uint32_t from, uint32_t to, std::vector< uint32_t > &thePath)
std::unordered_map< uint32_t, GenericAStarUtil::SearchNode > NodeLookupTable
SearchNode(double _fCost=0, double _gCost=0, uint32_t curr=0, uint32_t prev=0)
void AddToOpenList(uint32_t currOpenNode, uint32_t neighbor)
virtual const char * GetName()
uint32_t ClosedListIterNext(closedList_iterator &) const
bool fless(double a, double b)
SearchNode(uint32_t curr)
bool InitializeSearch(OldSearchCode::SearchEnvironment *env, uint32_t from, uint32_t to, std::vector< uint32_t > &thePath)
bool operator()(const SearchNode &i1, const SearchNode &i2) const
bool fgreater(double a, double b)
OldSearchCode::SearchEnvironment * env
GenericAStarUtil::PQueue openQueue
std::vector< uint32_t > neighbors
std::unordered_map< uint32_t, bool > Corridor
GenericAStarUtil::NodeLookupTable closedList
OpenClosedList< GenericAStarUtil::SearchNode, GenericAStarUtil::SearchNodeHash, GenericAStarUtil::SearchNodeEqual, GenericAStarUtil::SearchNodeCompare > PQueue
GenericAStarUtil::NodeLookupTable::const_iterator closedList_iterator
uint64_t GetNodesExpanded()
bool fequal(double a, double b, double tolerance=TOLERANCE)
bool operator()(const SearchNode &i1, const SearchNode &i2) const
closedList_iterator GetClosedListIter() const