A registered collision. 更多...
#include <CollisionEvent.h>
Public 成员函数 | |
SharedPtr< client::Actor > | GetActor () const |
Get "self" actor. Actor that measured the collision. | |
const geom::Vector3D & | GetNormalImpulse () const |
Normal impulse result of the collision. | |
SharedPtr< client::Actor > | GetOtherActor () const |
Get the actor to which we collided. | |
Public 成员函数 继承自 carla::sensor::SensorData | |
size_t | GetFrame () const |
Frame count when the data was generated. | |
const rpc::Transform & | GetSensorTransform () const |
Sensor's transform when the data was generated. | |
double | GetTimestamp () const |
Simulation-time when the data was generated. | |
virtual | ~SensorData ()=default |
Protected 类型 | |
using | Serializer = s11n::CollisionEventSerializer |
Protected 成员函数 | |
CollisionEvent (const RawData &data) | |
Protected 成员函数 继承自 carla::sensor::SensorData | |
const auto & | GetEpisode () const |
SensorData (const RawData &data) | |
SensorData (size_t frame, double timestamp, const rpc::Transform &sensor_transform) | |
Protected 属性 | |
friend | Serializer |
Private 类型 | |
using | Super = SensorData |
Private 属性 | |
geom::Vector3D | _normal_impulse |
client::detail::ActorVariant | _other_actor |
client::detail::ActorVariant | _self_actor |
A registered collision.
在文件 CollisionEvent.h 第 20 行定义.
在文件 CollisionEvent.h 第 24 行定义.
|
private |
在文件 CollisionEvent.h 第 21 行定义.
|
inlineexplicitprotected |
在文件 CollisionEvent.h 第 28 行定义.
|
inline |
Get "self" actor. Actor that measured the collision.
在文件 CollisionEvent.h 第 37 行定义.
引用了 _self_actor, carla::client::detail::ActorVariant::Get() , 以及 carla::sensor::SensorData::GetEpisode().
|
inline |
|
inline |
Get the actor to which we collided.
在文件 CollisionEvent.h 第 42 行定义.
引用了 _other_actor, carla::client::detail::ActorVariant::Get() , 以及 carla::sensor::SensorData::GetEpisode().
|
private |
在文件 CollisionEvent.h 第 57 行定义.
被这些函数引用 GetNormalImpulse().
|
private |
在文件 CollisionEvent.h 第 55 行定义.
被这些函数引用 GetOtherActor().
|
private |
在文件 CollisionEvent.h 第 53 行定义.
被这些函数引用 GetActor().
|
protected |
在文件 CollisionEvent.h 第 26 行定义.