scenic.simulators.carla.actions
Actions for dynamic agents in CARLA scenarios.
Summary of Module Members
Classes
|
|
|
|
Enable or disable CARLA autopilot with optional Traffic Manager settings. |
|
|
|
|
|
|
|
|
|
Set the traffic light to desired color. |
|
|
|
Set the vehicle lights' states. |
|
|
|
Track (x, y) waypoints in Scenic coordinates at a target speed. |
|
|
Member Details
- class SetTrafficLightAction(color, distance=100, group=False)[source]
Bases:
VehicleActionSet the traffic light to desired color. It will only take effect if the car is within a given distance of the traffic light.
- Parameters:
color – the string red/yellow/green/off/unknown
distance – the maximum distance to search for traffic lights from the current position
- class SetAutopilotAction(enabled, **kwargs)[source]
Bases:
VehicleActionEnable or disable CARLA autopilot with optional Traffic Manager settings.
- Parameters:
enabled – Enable or disable autopilot (bool)
kwargs –
Additional autopilot options such as:
speed: Target speed of the car in m/s (default: None). Mutually exclusive withvehicle_percentage_speed_difference.vehicle_percentage_speed_difference: Percentage difference between intended speed and the current speed limit. Can be negative to exceed the speed limit.path: Route for the vehicle to follow (default: None)ignore_signs_percentage: Percentage of ignored traffic signs (default: 0)ignore_lights_percentage: Percentage of ignored traffic lights (default: 0)ignore_walkers_percentage: Percentage of ignored pedestrians (default: 0)auto_lane_change: Whether to allow automatic lane changes (default: False)