|
CARLA
|
A streaming channel for sending sensor data to clients. More...
#include <DataStream.h>
Public Types | |
| using | StreamType = T |
Public Member Functions | |
| bool | AreClientsListening () |
| FDataStreamTmpl ()=default | |
| FDataStreamTmpl (StreamType InStream) | |
| uint64_t | GetSensorType () |
| auto | GetToken () const |
| Return the token that allows subscribing to this stream. | |
| bool | IsStreamReady () |
| template<typename SensorT > | |
| FAsyncDataStreamTmpl< T > | MakeAsyncDataStream (const SensorT &Sensor, double Timestamp) |
| Create a FAsyncDataStream object. | |
Private Attributes | |
| std::optional< StreamType > | Stream |
A streaming channel for sending sensor data to clients.
Each sensor has its own FDataStream. Note however that this class does not provide a send function. In order to send data, a FAsyncDataStream needs to be created using "MakeAsyncDataStream" function. FAsyncDataStream allows sending data from any thread.
Definition at line 27 of file DataStream.h.
| using FDataStreamTmpl< T >::StreamType = T |
Definition at line 31 of file DataStream.h.
|
default |
|
inline |
Definition at line 35 of file DataStream.h.
|
inline |
Definition at line 65 of file DataStream.h.
References FDataStreamTmpl< T >::Stream.
Referenced by ASensor::Tick().
|
inline |
Definition at line 59 of file DataStream.h.
References FDataStreamTmpl< T >::Stream.
|
inline |
Return the token that allows subscribing to this stream.
Definition at line 53 of file DataStream.h.
References FDataStreamTmpl< T >::Stream.
Referenced by ASensor::EndPlay(), FCameraGBufferUint8::GetToken(), FCameraGBufferFloat::GetToken(), and FWorldObserver::GetToken().
|
inline |
Definition at line 47 of file DataStream.h.
References FDataStreamTmpl< T >::Stream.
Referenced by FWorldObserver::BroadcastTick().
|
inline |
Create a FAsyncDataStream object.
Definition at line 41 of file DataStream.h.
References FDataStreamTmpl< T >::Stream.
Referenced by FWorldObserver::BroadcastTick(), FCameraGBufferUint8::GetDataStream(), and FCameraGBufferFloat::GetDataStream().
|
private |
Definition at line 73 of file DataStream.h.
Referenced by FDataStreamTmpl< T >::AreClientsListening(), FDataStreamTmpl< T >::GetSensorType(), FDataStreamTmpl< T >::GetToken(), FDataStreamTmpl< T >::IsStreamReady(), FDataStreamTmpl< T >::MakeAsyncDataStream(), FAsyncDataStreamTmpl< T >::Send(), and FAsyncDataStreamTmpl< T >::SerializeAndSend().