Buran Motion Planning Framework
path_finding_client.h
1 #pragma once
2 
3 
4 #include "base_client.h"
5 
9 class PathFindingClient : public BaseClient {
10 public:
14  static const int COMMAND_IS_READY = 0;
18  static const int COMMAND_START_FIND_PATH = 1;
22  static const int COMMAND_FIND_PATH_RESULT = 2;
23 
28  explicit PathFindingClient(const char *savePath) : BaseClient(savePath) {}
29 
33  void requestReady();
34 
38  void startFindPath();
39 
43  void getResult();
44 
48  void mainLoop() override;
49 
58  virtual void init(int port, const char *addr, std::vector<double> start, std::vector<double> end, int delay);
59 
60 protected:
64  std::vector<double> _start;
68  std::vector<double> _end;
69 };
70 
71 
PathFindingClient::_start
std::vector< double > _start
Definition: path_finding_client.h:64
PathFindingClient::getResult
void getResult()
Definition: path_finding_client.cpp:92
PathFindingClient::COMMAND_FIND_PATH_RESULT
static const int COMMAND_FIND_PATH_RESULT
Definition: path_finding_client.h:22
PathFindingClient
Definition: path_finding_client.h:9
PathFindingClient::mainLoop
void mainLoop() override
Definition: path_finding_client.cpp:24
PathFindingClient::COMMAND_START_FIND_PATH
static const int COMMAND_START_FIND_PATH
Definition: path_finding_client.h:18
PathFindingClient::PathFindingClient
PathFindingClient(const char *savePath)
Definition: path_finding_client.h:28
PathFindingClient::_end
std::vector< double > _end
Definition: path_finding_client.h:68
PathFindingClient::init
virtual void init(int port, const char *addr, std::vector< double > start, std::vector< double > end, int delay)
Definition: path_finding_client.cpp:13
PathFindingClient::requestReady
void requestReady()
Definition: path_finding_client.cpp:41
BaseClient
Базовый класс для всех клиентов необходимо реализовать метод mainLoop()
Definition: base_client.h:23
PathFindingClient::startFindPath
void startFindPath()
Definition: path_finding_client.cpp:74
PathFindingClient::COMMAND_IS_READY
static const int COMMAND_IS_READY
Definition: path_finding_client.h:14