A change of lane event. 更多...
#include <LaneInvasionEvent.h>
Public 类型 | |
using | LaneMarking = road::element::LaneMarking |
Public 成员函数 | |
SharedPtr< client::Actor > | GetActor () const |
Get "self" actor. Actor that invaded another lane. | |
const std::vector< LaneMarking > & | GetCrossedLaneMarkings () const |
List of lane markings that have been crossed. | |
LaneInvasionEvent (size_t frame, double timestamp, const rpc::Transform &sensor_transform, ActorId parent, std::vector< LaneMarking > crossed_lane_markings) | |
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 |
Private 属性 | |
std::vector< LaneMarking > | _crossed_lane_markings |
ActorId | _parent |
额外继承的成员函数 | |
Protected 成员函数 继承自 carla::sensor::SensorData | |
const auto & | GetEpisode () const |
SensorData (const RawData &data) | |
SensorData (size_t frame, double timestamp, const rpc::Transform &sensor_transform) | |
A change of lane event.
在文件 LaneInvasionEvent.h 第 22 行定义.
在文件 LaneInvasionEvent.h 第 25 行定义.
|
inlineexplicit |
在文件 LaneInvasionEvent.h 第 27 行定义.
SharedPtr< client::Actor > carla::sensor::data::LaneInvasionEvent::GetActor | ( | ) | const |
Get "self" actor. Actor that invaded another lane.
在文件 LaneInvasionEvent.cpp 第 16 行定义.
引用了 _parent, carla::sensor::SensorData::GetEpisode() , 以及 carla::throw_exception().
|
inline |
List of lane markings that have been crossed.
在文件 LaneInvasionEvent.h 第 41 行定义.
|
private |
在文件 LaneInvasionEvent.h 第 49 行定义.
被这些函数引用 GetCrossedLaneMarkings().
|
private |
在文件 LaneInvasionEvent.h 第 47 行定义.
被这些函数引用 GetActor().