Buran Motion Planning Framework
multirobot_pf_server.h
1 #pragma once
2 
3 
4 #include "path_finding_server.h"
5 #include "scene.h"
6 #include "continuous_path_finder.h"
7 #include "base/path_finder.h"
8 
14 public:
24  MultiRobotPFServer(const std::shared_ptr<bmpf::Scene> &scene, bool showTrace,
25  unsigned int maxOpenSetSize, int gridSize, unsigned int maxNodeCnt,
26  int threadCnt = 1) {
27  _scene = scene;
28  _showTrace = showTrace;
29  _maxOpenSetSize = maxOpenSetSize;
30  _gridSize = gridSize;
31  _maxNodeCnt = maxNodeCnt;
32  _threadCnt = threadCnt;
33  }
34 
40  std::shared_ptr<bmpf::PathFinder> createPathFinder(int clientSocket) override {
41  std::shared_ptr<bmpf::PathFinder> pf = std::make_shared<MultiRobotPathFinder>(
42  _scene, _showTrace, _maxOpenSetSize, _gridSize,
43  _maxNodeCnt, _threadCnt
44  );
45 
46  return pf;
47  }
48 
49 
50 private:
54  std::shared_ptr<bmpf::Scene> _scene;
58  bool _showTrace;
62  unsigned int _maxOpenSetSize;
66  int _gridSize;
70  unsigned int _maxNodeCnt;
74  int _threadCnt;
75 };
PathFindingServer
Базовый класс для всех серверов планирования для использования необходимо переопределить в потомке cr...
Definition: path_finding_server.h:9
MultiRobotPFServer::createPathFinder
std::shared_ptr< bmpf::PathFinder > createPathFinder(int clientSocket) override
Definition: multirobot_pf_server.h:40
MultiRobotPFServer::MultiRobotPFServer
MultiRobotPFServer(const std::shared_ptr< bmpf::Scene > &scene, bool showTrace, unsigned int maxOpenSetSize, int gridSize, unsigned int maxNodeCnt, int threadCnt=1)
Definition: multirobot_pf_server.h:24
MultiRobotPFServer
Definition: multirobot_pf_server.h:13