A change of lane event. More...
#include <LaneInvasionEvent.h>
Public Types | |
using | LaneMarking = road::element::LaneMarking |
Public Member Functions | |
SharedPtr< client::Actor > | GetActor () const |
Get "self" actor. Actor that invaded another lane. More... | |
const std::vector< LaneMarking > & | GetCrossedLaneMarkings () const |
List of lane markings that have been crossed. More... | |
LaneInvasionEvent (size_t frame, double timestamp, const rpc::Transform &sensor_transform, ActorId parent, std::vector< LaneMarking > crossed_lane_markings) | |
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 |
Private Attributes | |
std::vector< LaneMarking > | _crossed_lane_markings |
ActorId | _parent |
Additional Inherited Members | |
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) | |
A change of lane event.
Definition at line 22 of file LaneInvasionEvent.h.
Definition at line 25 of file LaneInvasionEvent.h.
|
inlineexplicit |
Definition at line 27 of file LaneInvasionEvent.h.
References GetActor().
SharedPtr< client::Actor > carla::sensor::data::LaneInvasionEvent::GetActor | ( | ) | const |
Get "self" actor. Actor that invaded another lane.
Definition at line 16 of file LaneInvasionEvent.cpp.
References _parent, carla::sensor::SensorData::GetEpisode(), and carla::throw_exception().
Referenced by LaneInvasionEvent().
|
inline |
List of lane markings that have been crossed.
Definition at line 41 of file LaneInvasionEvent.h.
References _crossed_lane_markings.
|
private |
Definition at line 49 of file LaneInvasionEvent.h.
Referenced by GetCrossedLaneMarkings().
|
private |
Definition at line 47 of file LaneInvasionEvent.h.
Referenced by GetActor().