Buran Motion Planning Framework
path_optimizing_client.h
1 #pragma once
2 
3 
4 #include "base_client.h"
5 
10 public:
11 
15  static const int COMMAND_IS_READY = 0;
19  static const int COMMAND_START_OPTIMIZE_PATH = 1;
23  static const int COMMAND_OPTIMIZE_PATH = 2;
24 
29  explicit PathOptimizingClient(const char *savePath) : BaseClient(savePath) {}
33  void requestReady();
37  void startOptimizePath();
41  void getResult();
45  void mainLoop() override;
46 
54  virtual void init(int port, const char *addr, std::vector<std::vector<double>> path, int delay);
55 
56 protected:
60  std::vector<std::vector<double>> _path;
61 };
62 
63 
PathOptimizingClient::init
virtual void init(int port, const char *addr, std::vector< std::vector< double >> path, int delay)
Definition: path_optimizing_client.cpp:12
PathOptimizingClient
Definition: path_optimizing_client.h:9
PathOptimizingClient::startOptimizePath
void startOptimizePath()
Definition: path_optimizing_client.cpp:73
PathOptimizingClient::mainLoop
void mainLoop() override
Definition: path_optimizing_client.cpp:22
PathOptimizingClient::PathOptimizingClient
PathOptimizingClient(const char *savePath)
Definition: path_optimizing_client.h:29
BaseClient
Базовый класс для всех клиентов необходимо реализовать метод mainLoop()
Definition: base_client.h:23
PathOptimizingClient::COMMAND_START_OPTIMIZE_PATH
static const int COMMAND_START_OPTIMIZE_PATH
Definition: path_optimizing_client.h:19
PathOptimizingClient::_path
std::vector< std::vector< double > > _path
Definition: path_optimizing_client.h:60
PathOptimizingClient::requestReady
void requestReady()
Definition: path_optimizing_client.cpp:39
PathOptimizingClient::COMMAND_IS_READY
static const int COMMAND_IS_READY
Definition: path_optimizing_client.h:15
PathOptimizingClient::COMMAND_OPTIMIZE_PATH
static const int COMMAND_OPTIMIZE_PATH
Definition: path_optimizing_client.h:23
PathOptimizingClient::getResult
void getResult()
Definition: path_optimizing_client.cpp:98