CARLA
Loading...
Searching...
No Matches
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 ResetTickCues ()
 Drops the tick cues banked so far.
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 4084 of file CarlaServer.cpp.

References Pimpl.

◆ ~FCarlaServer()

FCarlaServer::~FCarlaServer ( )

Definition at line 4086 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 4134 of file CarlaServer.cpp.

References Pimpl.

Referenced by FCarlaEngine::NotifyInitGame().

◆ GetSecondaryServer()

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

Definition at line 4217 of file CarlaServer.cpp.

References Pimpl.

Referenced by FCarlaEngine::NotifyInitGame().

◆ GetStreamingServer()

◆ NotifyBeginEpisode()

void FCarlaServer::NotifyBeginEpisode ( UCarlaEpisode & Episode)

Definition at line 4121 of file CarlaServer.cpp.

References UCarlaEpisode::GetMapName(), and Pimpl.

Referenced by FCarlaEngine::NotifyBeginEpisode().

◆ NotifyEndEpisode()

void FCarlaServer::NotifyEndEpisode ( )

Definition at line 4128 of file CarlaServer.cpp.

References Pimpl.

Referenced by FCarlaEngine::NotifyEndEpisode().

◆ OpenStream()

FDataStream FCarlaServer::OpenStream ( ) const

Definition at line 4211 of file CarlaServer.cpp.

References Pimpl.

Referenced by ASensorFactory::SpawnActor().

◆ ResetTickCues()

void FCarlaServer::ResetTickCues ( )

Drops the tick cues banked so far.

A tick cue is counted whatever the mode but only consumed in synchronous mode, so cues sent while asynchronous would otherwise let the server run that many frames on its own once synchronous mode is turned on.

Definition at line 4194 of file CarlaServer.cpp.

References Pimpl.

Referenced by FCarlaEngine::OnEpisodeSettingsChanged().

◆ 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 4178 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 4090 of file CarlaServer.cpp.

References Pimpl, and carla::SetCloseOnExecForListeningPort().

Referenced by FCarlaEngine::NotifyInitGame().

◆ Stop()

void FCarlaServer::Stop ( )

Definition at line 4202 of file CarlaServer.cpp.

References Pimpl.

Referenced by ~FCarlaServer().

◆ Tick()

void FCarlaServer::Tick ( )

Definition at line 4172 of file CarlaServer.cpp.

References Pimpl, and Tick().

Referenced by Tick().

◆ TickCueReceived()

bool FCarlaServer::TickCueReceived ( )

Member Data Documentation

◆ Pimpl


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