A registered collision. More...
#include <CollisionEvent.h>
Public Member Functions | |
SharedPtr< client::Actor > | GetActor () const |
Get "self" actor. Actor that measured the collision. More... | |
const geom::Vector3D & | GetNormalImpulse () const |
Normal impulse result of the collision. 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::CollisionEventSerializer |
Protected Member Functions | |
CollisionEvent (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 | |
geom::Vector3D | _normal_impulse |
client::detail::ActorVariant | _other_actor |
client::detail::ActorVariant | _self_actor |
A registered collision.
Definition at line 20 of file CollisionEvent.h.
Definition at line 24 of file CollisionEvent.h.
|
private |
Definition at line 21 of file CollisionEvent.h.
|
inlineexplicitprotected |
Definition at line 28 of file CollisionEvent.h.
|
inline |
Get "self" actor. Actor that measured the collision.
Definition at line 37 of file CollisionEvent.h.
References _self_actor, carla::client::detail::ActorVariant::Get(), and carla::sensor::SensorData::GetEpisode().
|
inline |
Normal impulse result of the collision.
Definition at line 47 of file CollisionEvent.h.
References _normal_impulse.
|
inline |
Get the actor to which we collided.
Definition at line 42 of file CollisionEvent.h.
References _other_actor, carla::client::detail::ActorVariant::Get(), and carla::sensor::SensorData::GetEpisode().
|
private |
Definition at line 57 of file CollisionEvent.h.
Referenced by GetNormalImpulse().
|
private |
Definition at line 55 of file CollisionEvent.h.
Referenced by GetOtherActor().
|
private |
Definition at line 53 of file CollisionEvent.h.
Referenced by GetActor().
|
protected |
Definition at line 26 of file CollisionEvent.h.