A registered detection. More...
#include <ObstacleDetectionEvent.h>
Public Member Functions | |
SharedPtr< client::Actor > | GetActor () const |
Get "self" actor. Actor that measured the collision. More... | |
float | GetDistance () const |
Get obstacle distance. More... | |
SharedPtr< client::Actor > | GetOtherActor () const |
Get the actor to which we collided. More... | |
Public Member Functions inherited from carla::sensor::SensorData | |
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 Types | |
using | Serializer = s11n::ObstacleDetectionEventSerializer |
Protected Member Functions | |
ObstacleDetectionEvent (const RawData &data) | |
Protected Member Functions inherited from carla::sensor::SensorData | |
const auto & | GetEpisode () const |
SensorData (size_t frame, double timestamp, const rpc::Transform &sensor_transform) | |
SensorData (const RawData &data) | |
Protected Attributes | |
friend | Serializer |
Private Types | |
using | Super = SensorData |
Private Attributes | |
float | _distance |
client::detail::ActorVariant | _other_actor |
client::detail::ActorVariant | _self_actor |
A registered detection.
Definition at line 20 of file ObstacleDetectionEvent.h.
|
protected |
Definition at line 24 of file ObstacleDetectionEvent.h.
|
private |
Definition at line 21 of file ObstacleDetectionEvent.h.
|
inlineexplicitprotected |
Definition at line 28 of file ObstacleDetectionEvent.h.
References _distance, _other_actor, _self_actor, and carla::sensor::s11n::ObstacleDetectionEventSerializer::DeserializeRawData().
|
inline |
Get "self" actor. Actor that measured the collision.
Definition at line 41 of file ObstacleDetectionEvent.h.
References _self_actor, carla::client::detail::ActorVariant::Get(), and carla::sensor::SensorData::GetEpisode().
|
inline |
Get obstacle distance.
Definition at line 51 of file ObstacleDetectionEvent.h.
References _distance.
|
inline |
Get the actor to which we collided.
Definition at line 46 of file ObstacleDetectionEvent.h.
References _other_actor, carla::client::detail::ActorVariant::Get(), and carla::sensor::SensorData::GetEpisode().
|
private |
Definition at line 61 of file ObstacleDetectionEvent.h.
Referenced by GetDistance(), and ObstacleDetectionEvent().
|
private |
Definition at line 59 of file ObstacleDetectionEvent.h.
Referenced by GetOtherActor(), and ObstacleDetectionEvent().
|
private |
Definition at line 57 of file ObstacleDetectionEvent.h.
Referenced by GetActor(), and ObstacleDetectionEvent().
|
protected |
Definition at line 26 of file ObstacleDetectionEvent.h.