Buran Motion Planning Framework
Public Member Functions | List of all members
ContinuousPFServer Class Reference

#include <continuous_pf_server.h>

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

Public Member Functions

 ContinuousPFServer (const std::shared_ptr< bmpf::Scene > &scene, bool showTrace, unsigned int maxOpenSetSize, int gridSize, unsigned int maxNodeCnt, int checkCnt, int threadCnt=1)
 
std::shared_ptr< bmpf::PathFindercreatePathFinder (int clientSocket) override
 
- Public Member Functions inherited from PathFindingServer
void processCommand (int clientSocket, int command, Json::Value jsonData) override
 
void onSocketConnected (int clientSocket) override
 
- Public Member Functions inherited from BaseServer
void mainLoop ()
 
virtual void init (int port, int maxClients, int delay)
 
void processRequests (int clientSocket)
 
void stop ()
 
int acceptNewSocket ()
 
int getServerFd () const
 
const sockaddr_in & getAddress () const
 

Additional Inherited Members

- Static Public Member Functions inherited from PathFindingServer
static void startFindPath (PathFindingServer *pfs, std::shared_ptr< bmpf::PathFinder > pf, int clientSocket, std::vector< double > start, std::vector< double > end)
 
- Static Public Member Functions inherited from BaseServer
static void initLinuxServerSocket ()
 
- Static Public Attributes inherited from PathFindingServer
static const int COMMAND_IS_READY = 0
 
static const int COMMAND_START_FIND_PATH = 1
 
static const int COMMAND_FIND_PATH_RESULT = 2
 
- Protected Attributes inherited from PathFindingServer
std::unordered_map< int, std::vector< std::vector< double > > > paths
 
std::unordered_map< int, bool > pathFindingReady
 
std::unordered_map< int, std::shared_ptr< bmpf::PathFinder > > pfs
 
- Protected Attributes inherited from BaseServer
sem_t _sem
 

Detailed Description

Сервер непрерывного планирования для использования необходимо переопределить в потомке createPathFinder()

Constructor & Destructor Documentation

◆ ContinuousPFServer()

ContinuousPFServer::ContinuousPFServer ( const std::shared_ptr< bmpf::Scene > &  scene,
bool  showTrace,
unsigned int  maxOpenSetSize,
int  gridSize,
unsigned int  maxNodeCnt,
int  checkCnt,
int  threadCnt = 1 
)
inline

конструктор

Parameters
sceneсцена
showTraceфлаг, нужно ли выводить информацию во время поиска пути
maxOpenSetSizeмаксимальный размер открытом множества
gridSizeразмер сетки планирования
maxNodeCntмаксимальное кол-во нод в закрытом множестве
threadCntколичество потоков планировщика
checkCntколичество промежуточных проверок каждого этапа пути

Member Function Documentation

◆ createPathFinder()

std::shared_ptr<bmpf::PathFinder> ContinuousPFServer::createPathFinder ( int  clientSocket)
inlineoverridevirtual

создать планировщик

Parameters
clientSocketfd клиента
Returns
новый планировщик

Implements PathFindingServer.


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