Buran Motion Planning Framework
|
4 #include <unordered_map>
7 #include <unordered_set>
9 #include "path_finder.h"
62 const std::shared_ptr<bmpf::Scene> &scene,
bool showTrace,
int gridSize,
int threadCnt = 1
70 std::vector<double>
coordsToState(std::vector<int> &coords)
const;
78 std::vector<double>
coordsToState(std::vector<int> coords,
unsigned long robotNum);
95 std::vector<std::vector<double>>
96 findGridPath(std::vector<int> &startCoords, std::vector<int> &endCoords,
int &errorCode);
104 bool checkCoords(
const std::vector<int> &coords,
unsigned int robotNum);
112 virtual std::vector<int>
stateToCoords(std::vector<double> state);
119 void prepare(
const std::vector<double> &startState,
const std::vector<double> &endState)
override;
126 virtual void prepare(std::vector<int> &startCoords, std::vector<int> &endCoords);
139 std::vector<std::vector<double>>
checkTask(
140 const std::vector<double> &startState,
const std::vector<double> &endState,
159 std::vector<int> coords,
unsigned long pos,
unsigned long maxPos,
160 const std::vector<double> &state
bool _coordsUsed
Definition: grid_path_finder.h:199
virtual std::vector< int > stateToCoords(std::vector< double > state)
Definition: grid_path_finder.cpp:325
std::vector< std::vector< double > > findGridPath(std::vector< int > &startCoords, std::vector< int > &endCoords, int &errorCode)
Definition: grid_path_finder.cpp:221
double _maxDist
Definition: grid_path_finder.h:195
bool checkCoords(std::vector< int > coords)
Definition: grid_path_finder.cpp:284
std::vector< double > coordsToState(std::vector< int > &coords) const
Definition: grid_path_finder.cpp:259
void prepare(const std::vector< double > &startState, const std::vector< double > &endState) override
Definition: grid_path_finder.cpp:99
const double & getMaxDist() const
Definition: grid_path_finder.h:237
std::vector< int > _startCoords
Definition: grid_path_finder.h:179
const std::vector< double > & getStartStateFromCoords() const
Definition: grid_path_finder.h:219
std::vector< std::vector< double > > _groupedGridSteps
Definition: grid_path_finder.h:171
const std::vector< std::vector< int > > & getBuildedGridPath() const
Definition: grid_path_finder.h:213
static const int ERROR_CAN_NOT_FIND_FREE_END_POINT
Definition: grid_path_finder.h:52
virtual std::vector< int > _findFreePoint(std::vector< int > coords, unsigned long pos, unsigned long maxPos, const std::vector< double > &state)
поиск координат соседней свободной точки Это - рекуррентный метод, он пробует прибавить -1,...
Definition: grid_path_finder.cpp:391
const std::vector< double > & getGridSteps() const
Definition: grid_path_finder.h:231
static const int ERROR_CAN_NOT_FIND_FREE_START_POINT
Definition: grid_path_finder.h:47
std::vector< std::vector< int > > _buildedGridPath
Definition: grid_path_finder.h:205
Базовый класс для всех планировщиков
Definition: path_finder.h:28
std::vector< double > _endStateFromCoords
Definition: grid_path_finder.h:191
Базовый класс для всех планировщиков на сетке Базовый класс для всех планировщиков на сетке....
Definition: grid_path_finder.h:40
int _gridSize
Definition: grid_path_finder.h:175
std::vector< double > _gridSteps
Definition: grid_path_finder.h:166
std::vector< double > _startStateFromCoords
Definition: grid_path_finder.h:187
std::vector< int > _endCoords
Definition: grid_path_finder.h:183
GridPathFinder(const std::shared_ptr< bmpf::Scene > &scene, bool showTrace, int gridSize, int threadCnt=1)
Definition: grid_path_finder.cpp:12
const std::vector< double > & getEndStateFromCoords() const
Definition: grid_path_finder.h:225
const std::vector< std::vector< double > > & getGroupedGridSteps() const
Definition: grid_path_finder.h:244
std::vector< std::vector< double > > checkTask(const std::vector< double > &startState, const std::vector< double > &endState, double opacity)
проверка задания проверка задания, возвращает пустой вектор, если маршрут можно строить штатным образ...
Definition: grid_path_finder.cpp:53