diff --git a/Docs/python_api.md b/Docs/python_api.md index ab4c96e58..36fc1c769 100644 --- a/Docs/python_api.md +++ b/Docs/python_api.md @@ -2816,6 +2816,23 @@ If physics should be activated or not. --- +## command.SetVehicleLightState +Command adaptation of **set_light_state()** in [carla.Vehicle](#carla.Vehicle). Sets the light state of a vehicle. + +

Instance Variables

+- **actor_id** (_int_) +Actor that is affected by the command. +- **light_state** (_[carla.VehicleLightState](#carla.VehicleLightState)_) +Defines the light state of a vehicle. + +

Methods

+- **\__init__**(**self**, **actor**, **light_state**) + - **Parameters:** + - `actor` (_[carla.Actor](#carla.Actor) or int_) – Actor or its ID to whom the command will be applied to. + - `light_state` (_[carla.VehicleLightState](#carla.VehicleLightState)_) – Recaps the state of the lights of a vehicle, these can be used as a flags. + +--- + ## command.SpawnActor Command adaptation of **spawn_actor()** in [carla.World](#carla.World). Spawns an actor into the world based on the blueprint provided and the transform. If a parent is provided, the actor is attached to it. diff --git a/PythonAPI/docs/commands.yml b/PythonAPI/docs/commands.yml index 4e466d016..78a606f66 100644 --- a/PythonAPI/docs/commands.yml +++ b/PythonAPI/docs/commands.yml @@ -364,4 +364,32 @@ doc: > The Traffic Manager port where the vehicle is to be registered or unlisted. If __None__ is passed, it will consider a TM at default port `8000`. # -------------------------------------- + + - class_name: SetVehicleLightState + # - DESCRIPTION ------------------------ + doc: > + Command adaptation of **set_light_state()** in carla.Vehicle. Sets the light state of a vehicle. + # - PROPERTIES ------------------------- + instance_variables: + - var_name: actor_id + type: int + doc: > + Actor that is affected by the command. + - var_name: light_state + type: carla.VehicleLightState + doc: > + Defines the light state of a vehicle. + # - METHODS ---------------------------- + methods: + - def_name: __init__ + params: + - param_name: actor + type: carla.Actor or int + doc: > + Actor or its ID to whom the command will be applied to. + - param_name: light_state + type: carla.VehicleLightState + doc: > + Recaps the state of the lights of a vehicle, these can be used as a flags. + # -------------------------------------- ...