Base class for all the objects containing data generated by a sensor. More...
#include <SensorData.h>
Public Member Functions | |
size_t | GetFrame () const |
Frame count when the data was generated. More... | |
const rpc::Transform & | GetSensorTransform () const |
Sensor's transform when the data was generated. More... | |
double | GetTimestamp () const |
Simulation-time when the data was generated. More... | |
virtual | ~SensorData ()=default |
Protected Member Functions | |
const auto & | GetEpisode () const |
SensorData (size_t frame, double timestamp, const rpc::Transform &sensor_transform) | |
SensorData (const RawData &data) | |
Private Attributes | |
client::detail::WeakEpisodeProxy | _episode |
const size_t | _frame |
const rpc::Transform | _sensor_transform |
const double | _timestamp |
Friends | |
class | client::detail::Simulator |
Additional Inherited Members | |
Private Member Functions inherited from carla::NonCopyable | |
NonCopyable ()=default | |
NonCopyable (const NonCopyable &)=delete | |
NonCopyable (NonCopyable &&)=delete | |
NonCopyable & | operator= (const NonCopyable &)=delete |
NonCopyable & | operator= (NonCopyable &&)=delete |
Base class for all the objects containing data generated by a sensor.
Definition at line 20 of file SensorData.h.
|
inlineprotected |
Definition at line 25 of file SensorData.h.
|
inlineexplicitprotected |
Definition at line 30 of file SensorData.h.
References ~SensorData().
|
virtualdefault |
|
inlineprotected |
Definition at line 54 of file SensorData.h.
References _episode.
Referenced by carla::sensor::data::CollisionEvent::GetActor(), carla::sensor::data::LaneInvasionEvent::GetActor(), carla::sensor::data::ObstacleDetectionEvent::GetActor(), carla::sensor::data::CollisionEvent::GetOtherActor(), and carla::sensor::data::ObstacleDetectionEvent::GetOtherActor().
|
inline |
Frame count when the data was generated.
Definition at line 38 of file SensorData.h.
References _frame.
|
inline |
Sensor's transform when the data was generated.
Definition at line 48 of file SensorData.h.
References _sensor_transform.
|
inline |
Simulation-time when the data was generated.
Definition at line 43 of file SensorData.h.
References _timestamp.
Referenced by carla::sensor::data::RawEpisodeState::GetGameTimeStamp().
|
friend |
Definition at line 61 of file SensorData.h.
|
private |
Definition at line 62 of file SensorData.h.
Referenced by GetEpisode().
|
private |
Definition at line 64 of file SensorData.h.
Referenced by GetFrame().
|
private |
Definition at line 68 of file SensorData.h.
Referenced by GetSensorTransform().
|
private |
Definition at line 66 of file SensorData.h.
Referenced by GetTimestamp().