Classes | |
struct | Bounds |
Public Member Functions | |
LaneInvasionCallback (const Vehicle &vehicle, SharedPtr< Map > &&map, Sensor::CallbackFunctionType &&user_callback) | |
void | Tick (const WorldSnapshot &snapshot) const |
Private Member Functions | |
std::shared_ptr< const Bounds > | MakeBounds (size_t frame, const geom::Transform &vehicle_transform) const |
Private Attributes | |
AtomicSharedPtr< const Bounds > | _bounds |
Sensor::CallbackFunctionType | _callback |
SharedPtr< const Map > | _map |
ActorId | _parent |
geom::BoundingBox | _parent_bounding_box |
Definition at line 40 of file LibCarla/source/carla/client/LaneInvasionSensor.cpp.
|
inline |
Definition at line 43 of file LibCarla/source/carla/client/LaneInvasionSensor.cpp.
References _map, DEBUG_ASSERT, and Tick().
|
private |
Definition at line 125 of file LibCarla/source/carla/client/LaneInvasionSensor.cpp.
References _parent_bounding_box, carla::client::LaneInvasionCallback::Bounds::frame, carla::geom::Transform::location, carla::client::Rotate(), carla::geom::Transform::rotation, and carla::geom::Rotation::yaw.
Referenced by Tick().
void carla::client::LaneInvasionCallback::Tick | ( | const WorldSnapshot & | snapshot | ) | const |
Definition at line 78 of file LibCarla/source/carla/client/LaneInvasionSensor.cpp.
References _bounds, _callback, _map, _parent, carla::client::Timestamp::elapsed_seconds, carla::client::WorldSnapshot::Find(), carla::client::Timestamp::frame, carla::client::WorldSnapshot::GetFrame(), carla::client::WorldSnapshot::GetTimestamp(), and MakeBounds().
Referenced by LaneInvasionCallback().
|
mutableprivate |
Definition at line 75 of file LibCarla/source/carla/client/LaneInvasionSensor.cpp.
Referenced by Tick().
|
private |
Definition at line 73 of file LibCarla/source/carla/client/LaneInvasionSensor.cpp.
Referenced by Tick().
Definition at line 71 of file LibCarla/source/carla/client/LaneInvasionSensor.cpp.
Referenced by LaneInvasionCallback(), and Tick().
|
private |
Definition at line 67 of file LibCarla/source/carla/client/LaneInvasionSensor.cpp.
Referenced by Tick().
|
private |
Definition at line 69 of file LibCarla/source/carla/client/LaneInvasionSensor.cpp.
Referenced by MakeBounds().