Buran Motion Planning Framework
continuous_pf_server.h
1 #pragma once
2 
3 
4 #include "path_finding_server.h"
5 #include "continuous_path_finder.h"
6 #include "base/path_finder.h"
7 #include "scene.h"
8 
14 public:
15 
26  ContinuousPFServer(const std::shared_ptr<bmpf::Scene> &scene, bool showTrace,
27  unsigned int maxOpenSetSize, int gridSize, unsigned int maxNodeCnt, int checkCnt,
28  int threadCnt = 1) {
29  _scene = scene;
30  _showTrace = showTrace;
31  _maxOpenSetSize = maxOpenSetSize;
32  _gridSize = gridSize;
33  _maxNodeCnt = maxNodeCnt;
34  _checkCnt = checkCnt;
35  _threadCnt = threadCnt;
36  }
37 
43  std::shared_ptr<bmpf::PathFinder> createPathFinder(int clientSocket) override {
44  std::shared_ptr<bmpf::PathFinder> pf = std::make_shared<ContinuousPathFinder>(
45  _scene, _showTrace, _maxOpenSetSize, _gridSize,
46  _maxNodeCnt, _checkCnt, _threadCnt
47  );
48 
49  return pf;
50  }
51 
52 private:
56  std::shared_ptr<bmpf::Scene> _scene;
60  bool _showTrace;
64  unsigned int _maxOpenSetSize;
68  int _gridSize;
72  unsigned int _maxNodeCnt;
76  int _threadCnt;
80  int _checkCnt;
81 };
PathFindingServer
Базовый класс для всех серверов планирования для использования необходимо переопределить в потомке cr...
Definition: path_finding_server.h:9
ContinuousPFServer::ContinuousPFServer
ContinuousPFServer(const std::shared_ptr< bmpf::Scene > &scene, bool showTrace, unsigned int maxOpenSetSize, int gridSize, unsigned int maxNodeCnt, int checkCnt, int threadCnt=1)
Definition: continuous_pf_server.h:26
ContinuousPFServer
Definition: continuous_pf_server.h:13
ContinuousPFServer::createPathFinder
std::shared_ptr< bmpf::PathFinder > createPathFinder(int clientSocket) override
Definition: continuous_pf_server.h:43