Buran Motion Planning Framework
one_direction_ordered_path_finder.h
1 #pragma once
2 
3 #include <memory>
4 #include <unordered_map>
5 #include <set>
6 #include <utility>
7 #include <unordered_set>
8 #include <base/grid_path_finder.h>
9 #include <future>
10 #include "scene.h"
11 #include "one_direction_path_finder.h"
12 
13 
14 namespace bmpf {
50  public:
62  OneDirectionOrderedPathFinder(const std::shared_ptr<bmpf::Scene> &scene,
63  bool showTrace,
64  unsigned int maxOpenSetSize,
65  int gridSize,
66  unsigned int maxNodeCnt,
67  unsigned int kG = 1,
68  unsigned int kD = 0,
69  int threadCnt = 1)
70  : OneDirectionPathFinder(scene,
71  showTrace,
72  maxOpenSetSize,
73  gridSize,
74  maxNodeCnt,
75  kG, kD, threadCnt) {};
76 
77 
78  protected:
79 
85  std::vector<unsigned long> _getSizeOrderedOffsetIndexesSingleRobot(std::vector<int> &deltas);
86 
92  std::vector<unsigned long> _getOrderedOffsetIndexesMultiRobot(std::vector<int> &deltas);
93 
99  std::vector<unsigned long> _getOrderedOffsetIndexes(std::vector<int> &deltas);
100 
110  std::shared_ptr<PathNode> _forEachNeighbor(
111  std::shared_ptr<PathNode> currentNode,
112  std::vector<int> &endCoords
113  ) override;
114 
115  };
116 
117 }
bmpf::OneDirectionOrderedPathFinder::_getOrderedOffsetIndexesMultiRobot
std::vector< unsigned long > _getOrderedOffsetIndexesMultiRobot(std::vector< int > &deltas)
Definition: one_direction_ordered_path_finder.cpp:57
bmpf::OneDirectionOrderedPathFinder::OneDirectionOrderedPathFinder
OneDirectionOrderedPathFinder(const std::shared_ptr< bmpf::Scene > &scene, bool showTrace, unsigned int maxOpenSetSize, int gridSize, unsigned int maxNodeCnt, unsigned int kG=1, unsigned int kD=0, int threadCnt=1)
Definition: one_direction_ordered_path_finder.h:62
bmpf::OneDirectionPathFinder
Definition: one_direction_path_finder.h:44
bmpf::OneDirectionOrderedPathFinder::_getOrderedOffsetIndexes
std::vector< unsigned long > _getOrderedOffsetIndexes(std::vector< int > &deltas)
Definition: one_direction_ordered_path_finder.cpp:172
bmpf::OneDirectionOrderedPathFinder::_forEachNeighbor
std::shared_ptr< PathNode > _forEachNeighbor(std::shared_ptr< PathNode > currentNode, std::vector< int > &endCoords) override
Definition: one_direction_ordered_path_finder.cpp:15
bmpf::OneDirectionOrderedPathFinder::_getSizeOrderedOffsetIndexesSingleRobot
std::vector< unsigned long > _getSizeOrderedOffsetIndexesSingleRobot(std::vector< int > &deltas)
Definition: one_direction_ordered_path_finder.cpp:121
bmpf::OneDirectionOrderedPathFinder
Упорядоченный планировщик со смещениями вдоль одной из координат
Definition: one_direction_ordered_path_finder.h:49