CARLA
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
carla::client::LaneInvasionCallback Class Reference
+ Collaboration diagram for carla::client::LaneInvasionCallback:

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 BoundsMakeBounds (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
 

Detailed Description

Definition at line 40 of file LibCarla/source/carla/client/LaneInvasionSensor.cpp.

Constructor & Destructor Documentation

◆ LaneInvasionCallback()

carla::client::LaneInvasionCallback::LaneInvasionCallback ( const Vehicle vehicle,
SharedPtr< Map > &&  map,
Sensor::CallbackFunctionType &&  user_callback 
)
inline

Definition at line 43 of file LibCarla/source/carla/client/LaneInvasionSensor.cpp.

References _map, DEBUG_ASSERT, and Tick().

+ Here is the call graph for this function:

Member Function Documentation

◆ MakeBounds()

std::shared_ptr< const LaneInvasionCallback::Bounds > carla::client::LaneInvasionCallback::MakeBounds ( size_t  frame,
const geom::Transform vehicle_transform 
) const
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _bounds

AtomicSharedPtr<const Bounds> carla::client::LaneInvasionCallback::_bounds
mutableprivate

Definition at line 75 of file LibCarla/source/carla/client/LaneInvasionSensor.cpp.

Referenced by Tick().

◆ _callback

Sensor::CallbackFunctionType carla::client::LaneInvasionCallback::_callback
private

Definition at line 73 of file LibCarla/source/carla/client/LaneInvasionSensor.cpp.

Referenced by Tick().

◆ _map

SharedPtr<const Map> carla::client::LaneInvasionCallback::_map
private

◆ _parent

ActorId carla::client::LaneInvasionCallback::_parent
private

Definition at line 67 of file LibCarla/source/carla/client/LaneInvasionSensor.cpp.

Referenced by Tick().

◆ _parent_bounding_box

geom::BoundingBox carla::client::LaneInvasionCallback::_parent_bounding_box
private

Definition at line 69 of file LibCarla/source/carla/client/LaneInvasionSensor.cpp.

Referenced by MakeBounds().


The documentation for this class was generated from the following file: