CARLA
Loading...
Searching...
No Matches
Classes | Public Member Functions | Private Attributes | List of all members
FCarlaServer Class Reference

#include <CarlaServer.h>

Classes

class  FPimpl
 

Public Member Functions

void AsyncRun (uint32 NumberOfWorkerThreads)
 
 FCarlaServer ()
 
std::shared_ptr< carla::multigpu::Router > GetSecondaryServer ()
 
carla::streaming::Server & GetStreamingServer ()
 
void NotifyBeginEpisode (UCarlaEpisode &Episode)
 
void NotifyEndEpisode ()
 
FDataStream OpenStream () const
 
void RunSome (uint32 Milliseconds)
 
void SetIsSecondaryServer (bool bIsSecondary)
 A Multi-GPU secondary refuses every call that would change its world.
 
FDataMultiStream Start (uint16_t RPCPort, uint16_t StreamingPort, uint16_t SecondaryPort)
 
void Stop ()
 
void Tick ()
 
bool TickCueReceived ()
 
 ~FCarlaServer ()
 

Private Attributes

TUniquePtr< FPimpl > Pimpl
 

Detailed Description

Definition at line 24 of file CarlaServer.h.

Constructor & Destructor Documentation

◆ FCarlaServer()

FCarlaServer::FCarlaServer ( )

Definition at line 4034 of file CarlaServer.cpp.

◆ ~FCarlaServer()

FCarlaServer::~FCarlaServer ( )

Definition at line 4036 of file CarlaServer.cpp.

References Stop().

Member Function Documentation

◆ AsyncRun()

void FCarlaServer::AsyncRun ( uint32  NumberOfWorkerThreads)
Todo:
Define better the number of threads each server gets.

Definition at line 4084 of file CarlaServer.cpp.

References Pimpl.

Referenced by FCarlaEngine::NotifyInitGame().

◆ GetSecondaryServer()

std::shared_ptr< carla::multigpu::Router > FCarlaServer::GetSecondaryServer ( )

Definition at line 4159 of file CarlaServer.cpp.

References Pimpl.

Referenced by FCarlaEngine::NotifyInitGame().

◆ GetStreamingServer()

carla::streaming::Server & FCarlaServer::GetStreamingServer ( )

◆ NotifyBeginEpisode()

void FCarlaServer::NotifyBeginEpisode ( UCarlaEpisode &  Episode)

Definition at line 4071 of file CarlaServer.cpp.

References UCarlaEpisode::GetMapName(), and Pimpl.

Referenced by FCarlaEngine::NotifyBeginEpisode().

◆ NotifyEndEpisode()

void FCarlaServer::NotifyEndEpisode ( )

Definition at line 4078 of file CarlaServer.cpp.

References Pimpl.

Referenced by FCarlaEngine::NotifyEndEpisode().

◆ OpenStream()

FDataStream FCarlaServer::OpenStream ( ) const

Definition at line 4153 of file CarlaServer.cpp.

References Pimpl.

Referenced by ASensorFactory::SpawnActor().

◆ RunSome()

void FCarlaServer::RunSome ( uint32  Milliseconds)

◆ SetIsSecondaryServer()

void FCarlaServer::SetIsSecondaryServer ( bool  bIsSecondary)

A Multi-GPU secondary refuses every call that would change its world.

Definition at line 4128 of file CarlaServer.cpp.

References Pimpl.

Referenced by FCarlaEngine::NotifyInitGame().

◆ Start()

FDataMultiStream FCarlaServer::Start ( uint16_t  RPCPort,
uint16_t  StreamingPort,
uint16_t  SecondaryPort 
)

Definition at line 4040 of file CarlaServer.cpp.

References Pimpl, and carla::SetCloseOnExecForListeningPort().

Referenced by FCarlaEngine::NotifyInitGame().

◆ Stop()

void FCarlaServer::Stop ( )

Definition at line 4144 of file CarlaServer.cpp.

References Pimpl.

Referenced by ~FCarlaServer().

◆ Tick()

void FCarlaServer::Tick ( )

Definition at line 4122 of file CarlaServer.cpp.

References Pimpl, and Tick().

Referenced by Tick().

◆ TickCueReceived()

bool FCarlaServer::TickCueReceived ( )

Member Data Documentation

◆ Pimpl

TUniquePtr<FPimpl> FCarlaServer::Pimpl
private

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