scenic.simulators.carla.actions

Actions for dynamic agents in CARLA scenarios.

Summary of Module Members

Classes

PedestrianAction

SetAngularVelocityAction

SetAutopilotAction

SetGearAction

SetJumpAction

SetManualFirstGearShiftAction

SetManualGearShiftAction

SetTrafficLightAction

Set the traffic light to desired color.

SetTransformAction

SetVehicleLightStateAction

Set the vehicle lights' states.

SetWalkAction

TrackWaypointsAction

VehicleAction

Member Details

class SetTrafficLightAction(color, distance=100, group=False)[source]

Bases: scenic.simulators.carla.actions.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

class SetVehicleLightStateAction(vehicleLightState)[source]

Bases: scenic.simulators.carla.actions.VehicleAction

Set the vehicle lights’ states.

Parameters

vehicleLightState – Which lights are on.