序列化并发送当前 UCarlaEpisode 中的所有 Actor。 更多...
#include <WorldObserver.h>
Public 类型 | |
using | not_spawnable = void |
Prevent this sensor to be spawned by users. 更多... | |
Public 成员函数 | |
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. 更多... | |
FTransform | GetActorTransform () const |
Dummy. Required for compatibility with other sensors only. 更多... | |
auto | GetToken () const |
Return the token that allows subscribing to this sensor's stream. 更多... | |
void | SetStream (FDataMultiStream InStream) |
Replace the Stream associated with this sensor. 更多... | |
Private 属性 | |
FDataMultiStream | Stream |
序列化并发送当前 UCarlaEpisode 中的所有 Actor。
在文件 WorldObserver.h 第 14 行定义.
using FWorldObserver::not_spawnable = void |
Prevent this sensor to be spawned by users.
在文件 WorldObserver.h 第 19 行定义.
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.
在文件 WorldObserver.cpp 第 367 行定义.
引用了 FWorldObserver_Serialize(), FDataStreamTmpl< T >::IsStreamReady(), FDataStreamTmpl< T >::MakeAsyncDataStream() , 以及 Stream.
被这些函数引用 FCarlaEngine::OnPostTick().
|
inline |
Dummy. Required for compatibility with other sensors only.
在文件 WorldObserver.h 第 42 行定义.
|
inline |
Return the token that allows subscribing to this sensor's stream.
在文件 WorldObserver.h 第 28 行定义.
引用了 FDataStreamTmpl< T >::GetToken() , 以及 Stream.
|
inline |
Replace the Stream associated with this sensor.
在文件 WorldObserver.h 第 22 行定义.
引用了 Stream.
被这些函数引用 FCarlaEngine::NotifyInitGame().
|
private |
在文件 WorldObserver.h 第 49 行定义.
被这些函数引用 BroadcastTick(), GetToken() , 以及 SetStream().