Buran Motion Planning Framework
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
PathOptimizingClient Class Reference

#include <path_optimizing_client.h>

Inheritance diagram for PathOptimizingClient:
Inheritance graph
[legend]
Collaboration diagram for PathOptimizingClient:
Collaboration graph
[legend]

Public Member Functions

 PathOptimizingClient (const char *savePath)
 
void requestReady ()
 
void startOptimizePath ()
 
void getResult ()
 
void mainLoop () override
 
virtual void init (int port, const char *addr, std::vector< std::vector< double >> path, int delay)
 
- Public Member Functions inherited from BaseClient
 BaseClient (const char *savePath)
 
virtual void init (int port, const char *addr, int delay)
 
int getClientFd () const
 

Static Public Attributes

static const int COMMAND_IS_READY = 0
 
static const int COMMAND_START_OPTIMIZE_PATH = 1
 
static const int COMMAND_OPTIMIZE_PATH = 2
 

Protected Attributes

std::vector< std::vector< double > > _path
 
- Protected Attributes inherited from BaseClient
std::string _commandBuf
 
int clientFD {}
 
const char * _savePath
 
const char * _addr {}
 
int _delay {}
 
int _port {}
 

Detailed Description

Клиент оптимизатора пути

Constructor & Destructor Documentation

◆ PathOptimizingClient()

PathOptimizingClient::PathOptimizingClient ( const char *  savePath)
inlineexplicit

конструктор

Parameters
savePathпуть к файлу сохранения

Member Function Documentation

◆ getResult()

void PathOptimizingClient::getResult ( )

Запрос результата

◆ init()

void PathOptimizingClient::init ( int  port,
const char *  addr,
std::vector< std::vector< double >>  path,
int  delay 
)
virtual

Инициализация клиента

Parameters
portпорт
addrадрес сервера
pathпуть, который нужно оптимизировать
delayпауза в микросекундах между итерациями цикла

◆ mainLoop()

void PathOptimizingClient::mainLoop ( )
overridevirtual

главный цикл оптимизации

Implements BaseClient.

◆ requestReady()

void PathOptimizingClient::requestReady ( )

Запрос, готов ли оптимизатор

◆ startOptimizePath()

void PathOptimizingClient::startOptimizePath ( )

Запуск оптимизации

Member Data Documentation

◆ _path

std::vector<std::vector<double> > PathOptimizingClient::_path
protected

Путь

◆ COMMAND_IS_READY

const int PathOptimizingClient::COMMAND_IS_READY = 0
static

Проверка, готов ли планировщик

◆ COMMAND_OPTIMIZE_PATH

const int PathOptimizingClient::COMMAND_OPTIMIZE_PATH = 2
static

команда оптимизации пути

◆ COMMAND_START_OPTIMIZE_PATH

const int PathOptimizingClient::COMMAND_START_OPTIMIZE_PATH = 1
static

Запуск оптимизации


The documentation for this class was generated from the following files: