Buran Motion Planning Framework
|
3 #include "base_server.h"
4 #include "optimize_path_median.h"
30 void processCommand(
int clientSocket,
int command, Json::Value jsonData)
override;
41 std::vector<std::vector<double>> path
64 const std::shared_ptr<bmpf::Scene> &scene,
bool showTrace,
65 unsigned int maxOpenSetSize,
int gridSize,
unsigned int maxNodeCnt,
67 int filterDivideCnt,
int optimizeLoopCnt,
int threadCnt = 1
85 std::unordered_map<int, std::vector<std::vector<double>>>
paths;
93 std::unordered_map<int, std::shared_ptr<bmpf::MedianPathOptimizer>>
pfs;
Базовый класс для всех серверов Для реализации сервера, необходимо переопределить две чисто виртуальн...
Definition: base_server.h:26
int _filterDivideCnt
Definition: path_optimising_server.h:125
int _checkCnt
Definition: path_optimising_server.h:121
int _gridSize
Definition: path_optimising_server.h:109
static const int COMMAND_OPTIMIZE_PATH
Definition: path_optimising_server.h:22
std::unordered_map< int, bool > pathOptimisingReady
Definition: path_optimising_server.h:89
static const int COMMAND_IS_READY
Definition: path_optimising_server.h:14
PathOptimisingServer(const std::shared_ptr< bmpf::Scene > &scene, bool showTrace, unsigned int maxOpenSetSize, int gridSize, unsigned int maxNodeCnt, int checkCnt, int filterDivideCnt, int optimizeLoopCnt, int threadCnt=1)
Definition: path_optimising_server.h:63
unsigned int _maxOpenSetSize
Definition: path_optimising_server.h:105
void onSocketConnected(int clientSocket) override
Definition: path_optimising_server.cpp:34
std::shared_ptr< bmpf::Scene > _scene
Definition: path_optimising_server.h:97
bool _showTrace
Definition: path_optimising_server.h:101
void processCommand(int clientSocket, int command, Json::Value jsonData) override
Definition: path_optimising_server.cpp:61
static const int COMMAND_START_OPTIMIZE_PATH
Definition: path_optimising_server.h:18
int _threadCnt
Definition: path_optimising_server.h:117
unsigned int _maxNodeCnt
Definition: path_optimising_server.h:113
int _optimizeLoopCnt
Definition: path_optimising_server.h:129
std::unordered_map< int, std::vector< std::vector< double > > > paths
Definition: path_optimising_server.h:85
std::unordered_map< int, std::shared_ptr< bmpf::MedianPathOptimizer > > pfs
Definition: path_optimising_server.h:93
static void startOptimisePath(PathOptimisingServer *pos, std::shared_ptr< bmpf::MedianPathOptimizer > po, int clientSocket, std::vector< std::vector< double >> path)
Definition: path_optimising_server.cpp:12
Сервер оптимизации пути
Definition: path_optimising_server.h:9