scenic.simulators.carla.actions
Actions for dynamic agents in CARLA scenarios.
Summary of Module Members
Classes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Set the traffic light to desired color. |
|
|
|
Set the vehicle lights' states. |
|
|
|
|
|
|
Member Details
- class SetTrafficLightAction(color, distance=100, group=False)[source]
Bases:
VehicleAction
Set 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