Buran Motion Planning Framework
trajectory_finding_client.h
1 #pragma once
2 
3 
4 #include "base_client.h"
5 
10 public:
14  static const int COMMAND_IS_READY = 0;
18  static const int COMMAND_START_FIND_TRAJECTORY = 1;
22  static const int COMMAND_GET_POSITIONS = 2;
26  static const int COMMAND_GET_SPEED = 3;
30  static const int COMMAND_GET_ACCELERATIONS = 4;
31 
38  TrajectoryFindingClient(const char *savePath, int lvl) : BaseClient(savePath), _lvl(lvl) {}
39 
43  void requestReady();
44 
48  void startFindTrajectory();
49 
53  void getResult();
54 
58  void mainLoop() override;
59 
68  virtual void init(int port, const char *addr, std::vector<double> start, std::vector<double> end, int delay);
69 
70 protected:
71 
75  std::vector<double> _start;
79  std::vector<double> _end;
84  int _lvl;
85 };
86 
87 
TrajectoryFindingClient::_start
std::vector< double > _start
Definition: trajectory_finding_client.h:75
TrajectoryFindingClient::COMMAND_IS_READY
static const int COMMAND_IS_READY
Definition: trajectory_finding_client.h:14
TrajectoryFindingClient::getResult
void getResult()
Definition: trajectory_finding_client.cpp:95
TrajectoryFindingClient::_lvl
int _lvl
Definition: trajectory_finding_client.h:84
TrajectoryFindingClient::COMMAND_GET_SPEED
static const int COMMAND_GET_SPEED
Definition: trajectory_finding_client.h:26
TrajectoryFindingClient::COMMAND_GET_POSITIONS
static const int COMMAND_GET_POSITIONS
Definition: trajectory_finding_client.h:22
TrajectoryFindingClient::startFindTrajectory
void startFindTrajectory()
Definition: trajectory_finding_client.cpp:76
TrajectoryFindingClient::COMMAND_START_FIND_TRAJECTORY
static const int COMMAND_START_FIND_TRAJECTORY
Definition: trajectory_finding_client.h:18
TrajectoryFindingClient::mainLoop
void mainLoop() override
Definition: trajectory_finding_client.cpp:25
TrajectoryFindingClient
Definition: trajectory_finding_client.h:9
TrajectoryFindingClient::TrajectoryFindingClient
TrajectoryFindingClient(const char *savePath, int lvl)
Definition: trajectory_finding_client.h:38
BaseClient
Базовый класс для всех клиентов необходимо реализовать метод mainLoop()
Definition: base_client.h:23
TrajectoryFindingClient::_end
std::vector< double > _end
Definition: trajectory_finding_client.h:79
TrajectoryFindingClient::init
virtual void init(int port, const char *addr, std::vector< double > start, std::vector< double > end, int delay)
Definition: trajectory_finding_client.cpp:13
TrajectoryFindingClient::COMMAND_GET_ACCELERATIONS
static const int COMMAND_GET_ACCELERATIONS
Definition: trajectory_finding_client.h:30
TrajectoryFindingClient::requestReady
void requestReady()
Definition: trajectory_finding_client.cpp:42