classes.sensors.carla_originals package
This package provides classes from the original CARLA PythonAPI/examples, included as is or
with slight modifications.
The sensor classes are wrappers for different carla.Sensor types
which used to provide data for the HUD on the pygame
interface.
-
class classes.sensors.carla_originals.CollisionSensor(parent_actor: carla.Actor, hud: HUD)[source]
Bases: CustomSensorInterface
Wrapper class for CARLA collision sensors
- Parameters:
-
-
sensor: carla.Sensor
-
get_collision_history()[source]
Gets the history of collisions
-
destroy() → bool | Literal['Actor was probably destroyed by the CarlaDataProvider'] | None
Stops and destroys the actor of the sensor
- Return type:
bool | Literal[“Actor was probably destroyed by the CarlaDataProvider”] | None
-
stop() → None
Stop the sensor if its in listening mode.
If it is a carla.Sensor, calls the simulator.
- Return type:
None
-
class classes.sensors.carla_originals.GnssSensor(parent_actor: carla.Actor)[source]
Bases: CustomSensorInterface
Wrapper class for CARLA GNSS sensors
- Parameters:
parent_actor (carla.Actor)
-
sensor: carla.Sensor
-
destroy() → bool | Literal['Actor was probably destroyed by the CarlaDataProvider'] | None
Stops and destroys the actor of the sensor
- Return type:
bool | Literal[“Actor was probably destroyed by the CarlaDataProvider”] | None
-
stop() → None
Stop the sensor if its in listening mode.
If it is a carla.Sensor, calls the simulator.
- Return type:
None
-
class classes.sensors.carla_originals.IMUSensor(parent_actor: carla.Actor)[source]
Bases: CustomSensorInterface
Wrapper class for CARLA IMU sensors
- Parameters:
parent_actor (carla.Actor)
-
sensor: carla.Sensor
-
destroy() → bool | Literal['Actor was probably destroyed by the CarlaDataProvider'] | None
Stops and destroys the actor of the sensor
- Return type:
bool | Literal[“Actor was probably destroyed by the CarlaDataProvider”] | None
-
stop() → None
Stop the sensor if its in listening mode.
If it is a carla.Sensor, calls the simulator.
- Return type:
None
-
class classes.sensors.carla_originals.LaneInvasionSensor(parent_actor: carla.Actor, hud: HUD)[source]
Bases: CustomSensorInterface
Wrapper class for CARLA lane invasion sensors
- Parameters:
-
-
sensor: carla.Sensor
-
destroy() → bool | Literal['Actor was probably destroyed by the CarlaDataProvider'] | None
Stops and destroys the actor of the sensor
- Return type:
bool | Literal[“Actor was probably destroyed by the CarlaDataProvider”] | None
-
stop() → None
Stop the sensor if its in listening mode.
If it is a carla.Sensor, calls the simulator.
- Return type:
None
-
class classes.sensors.carla_originals.RadarSensor(parent_actor: carla.Actor)[source]
Bases: CustomSensorInterface
Wrapper class for CARLA radar sensors
- Parameters:
parent_actor (carla.Actor)
-
sensor: carla.Sensor
-
destroy() → bool | Literal['Actor was probably destroyed by the CarlaDataProvider'] | None
Stops and destroys the actor of the sensor
- Return type:
bool | Literal[“Actor was probably destroyed by the CarlaDataProvider”] | None
-
stop() → None
Stop the sensor if its in listening mode.
If it is a carla.Sensor, calls the simulator.
- Return type:
None