Serializes and sends all the actors in the current UCarlaEpisode. More...
#include <WorldObserver.h>
Public Types | |
using | not_spawnable = void |
Prevent this sensor to be spawned by users. More... | |
Public Member Functions | |
void | BroadcastTick (const UCarlaEpisode &Episode, float DeltaSeconds, bool MapChange, bool PendingLightUpdate) |
Send a message to every connected client with the info about the given Episode. More... | |
FTransform | GetActorTransform () const |
Dummy. Required for compatibility with other sensors only. More... | |
auto | GetToken () const |
Return the token that allows subscribing to this sensor's stream. More... | |
void | SetStream (FDataMultiStream InStream) |
Replace the Stream associated with this sensor. More... | |
Private Attributes | |
FDataMultiStream | Stream |
Serializes and sends all the actors in the current UCarlaEpisode.
Definition at line 14 of file WorldObserver.h.
using FWorldObserver::not_spawnable = void |
Prevent this sensor to be spawned by users.
Definition at line 19 of file WorldObserver.h.
void FWorldObserver::BroadcastTick | ( | const UCarlaEpisode & | Episode, |
float | DeltaSeconds, | ||
bool | MapChange, | ||
bool | PendingLightUpdate | ||
) |
Send a message to every connected client with the info about the given Episode.
Definition at line 367 of file WorldObserver.cpp.
References FWorldObserver_Serialize(), UCarlaEpisode::GetElapsedGameTime(), FDataStreamTmpl< T >::IsStreamReady(), FDataStreamTmpl< T >::MakeAsyncDataStream(), and Stream.
Referenced by GetToken(), and FCarlaEngine::OnPostTick().
|
inline |
Dummy. Required for compatibility with other sensors only.
Definition at line 42 of file WorldObserver.h.
|
inline |
Return the token that allows subscribing to this sensor's stream.
Definition at line 28 of file WorldObserver.h.
References BroadcastTick(), FDataStreamTmpl< T >::GetToken(), and Stream.
|
inline |
Replace the Stream associated with this sensor.
Definition at line 22 of file WorldObserver.h.
References Stream.
Referenced by FCarlaEngine::NotifyInitGame().
|
private |
Definition at line 49 of file WorldObserver.h.
Referenced by BroadcastTick(), GetToken(), and SetStream().