Buran Motion Planning Framework
|
6 #include "grid_path_finder.h"
61 unsigned int maxNodeCnt,
80 bool findTick(std::vector<double> &state)
override;
92 std::shared_ptr<PathNode> currentNode, std::vector<int> &endCoords
103 std::shared_ptr<PathNode>
104 tryToGetNeighborPtr(std::vector<int> newCoords,
const std::shared_ptr<PathNode> &parentNode,
double sum);
116 void prepare(
const std::vector<double> &startState,
const std::vector<double> &endState)
override;
123 void prepare(std::vector<int> &startState, std::vector<int> &endState)
override;
std::shared_ptr< PathNode > tryToGetNeighborPtr(std::vector< int > newCoords, const std::shared_ptr< PathNode > &parentNode, double sum)
Definition: node_grid_path_finder.cpp:93
std::set< PathNodePtr > _openSet
Definition: node_grid_path_finder.h:197
Базовый класс для всех планировщиков на сетке с нодами Базовый класс для всех планировщиков на сетке ...
Definition: node_grid_path_finder.h:40
unsigned int _maxNodeCnt
Definition: node_grid_path_finder.h:201
bool findTick(std::vector< double > &state) override
Definition: node_grid_path_finder.cpp:126
double _getPathNodeWeight(std::vector< int > curCoords, std::vector< int > &endCoords)
Definition: node_grid_path_finder.cpp:244
unsigned int _kD
Definition: node_grid_path_finder.h:181
std::vector< double > getCurrentState()
Definition: node_grid_path_finder.cpp:111
virtual std::shared_ptr< PathNode > _forEachNeighbor(std::shared_ptr< PathNode > currentNode, std::vector< int > &endCoords)=0
void nextNode()
Definition: node_grid_path_finder.h:134
NodeGridPathFinder(const std::shared_ptr< bmpf::Scene > &scene, bool showTrace, int gridSize, unsigned int maxNodeCnt, unsigned int kG=1, unsigned int kD=0, int threadCnt=1)
Definition: node_grid_path_finder.h:58
std::shared_ptr< PathNode > _endNode
Definition: node_grid_path_finder.h:185
unsigned int _kG
Definition: node_grid_path_finder.h:177
bool _findCoordsInOpenedList(std::vector< int > &coords)
Definition: node_grid_path_finder.cpp:39
double _findLinkDistance(std::vector< int > &a, std::vector< int > &b)
Definition: node_grid_path_finder.cpp:268
bool _findCoordsInClosedList(std::vector< int > &coords)
Definition: node_grid_path_finder.cpp:29
void buildPath() override
Definition: node_grid_path_finder.cpp:49
Базовый класс для всех планировщиков на сетке Базовый класс для всех планировщиков на сетке....
Definition: grid_path_finder.h:40
std::unordered_set< long > _closedStateConvCodeSet
Definition: node_grid_path_finder.h:193
static const int ERROR_REACHED_MAX_NODE_CNT
Definition: node_grid_path_finder.h:45
void _moveNodeFromOpenedToClosed(const std::shared_ptr< PathNode > &node)
Definition: node_grid_path_finder.cpp:9
void prepare(const std::vector< double > &startState, const std::vector< double > &endState) override
Definition: node_grid_path_finder.cpp:188
std::vector< std::shared_ptr< PathNode > > _closedNodes
Definition: node_grid_path_finder.h:189
std::vector< std::vector< double > > getAllProcessedStates()
Definition: node_grid_path_finder.cpp:175