classes.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.carla_originals.CollisionSensor(parent_actor: carla.Actor, hud: HUD)
Bases: CustomSensorInterface
Wrapper class for CARLA collision sensors
- Parameters:
-
-
sensor: carla.Sensor
-
get_collision_history()
Gets the history of collisions
-
destroy() → bool | None | Literal['Actor was probably destroyed by the CarlaDataProvider']
Stops and destroys the actor of the sensor
- Return type:
bool | None | Literal[“Actor was probably destroyed by the CarlaDataProvider”]
-
stop() → None
Stop the sensor if its in listening mode.
If it is a carla.Sensor, calls the simulator.
- Return type:
None
-
class classes.carla_originals.GnssSensor(parent_actor: carla.Actor)
Bases: CustomSensorInterface
Wrapper class for CARLA GNSS sensors
- Parameters:
parent_actor (carla.Actor)
-
sensor: carla.Sensor
-
destroy() → bool | None | Literal['Actor was probably destroyed by the CarlaDataProvider']
Stops and destroys the actor of the sensor
- Return type:
bool | None | Literal[“Actor was probably destroyed by the CarlaDataProvider”]
-
stop() → None
Stop the sensor if its in listening mode.
If it is a carla.Sensor, calls the simulator.
- Return type:
None
-
class classes.carla_originals.IMUSensor(parent_actor: carla.Actor)
Bases: CustomSensorInterface
Wrapper class for CARLA IMU sensors
- Parameters:
parent_actor (carla.Actor)
-
sensor: carla.Sensor
-
destroy() → bool | None | Literal['Actor was probably destroyed by the CarlaDataProvider']
Stops and destroys the actor of the sensor
- Return type:
bool | None | Literal[“Actor was probably destroyed by the CarlaDataProvider”]
-
stop() → None
Stop the sensor if its in listening mode.
If it is a carla.Sensor, calls the simulator.
- Return type:
None
-
class classes.carla_originals.LaneInvasionSensor(parent_actor: carla.Actor, hud: HUD)
Bases: CustomSensorInterface
Wrapper class for CARLA lane invasion sensors
- Parameters:
-
-
sensor: carla.Sensor
-
destroy() → bool | None | Literal['Actor was probably destroyed by the CarlaDataProvider']
Stops and destroys the actor of the sensor
- Return type:
bool | None | Literal[“Actor was probably destroyed by the CarlaDataProvider”]
-
stop() → None
Stop the sensor if its in listening mode.
If it is a carla.Sensor, calls the simulator.
- Return type:
None
-
class classes.carla_originals.RadarSensor(parent_actor: carla.Actor)
Bases: CustomSensorInterface
Wrapper class for CARLA radar sensors
- Parameters:
parent_actor (carla.Actor)
-
sensor: carla.Sensor
-
destroy() → bool | None | Literal['Actor was probably destroyed by the CarlaDataProvider']
Stops and destroys the actor of the sensor
- Return type:
bool | None | Literal[“Actor was probably destroyed by the CarlaDataProvider”]
-
stop() → None
Stop the sensor if its in listening mode.
If it is a carla.Sensor, calls the simulator.
- Return type:
None