diff --git a/Docs/python_api.md b/Docs/python_api.md index baa6b7656..ab4c96e58 100644 --- a/Docs/python_api.md +++ b/Docs/python_api.md @@ -2490,6 +2490,9 @@ Retrieves a list of [carla.Actor](#carla.Actor) elements, either using a list of - **get_blueprint_library**(**self**) Returns a list of actor blueprints available to ease the spawn of these into the world. - **Return:** _[carla.BlueprintLibrary](#carla.BlueprintLibrary)_ +- **get_vehicles_light_states**(**self**) +Returns a dict where the keys are [carla.Actor](#carla.Actor) IDs and the values are [carla.VehicleLightState](#carla.VehicleLightState) of that vehicle. + - **Return:** _dict_ - **get_light_manager**(**self**) Returns an instance of [carla.LightManager](#carla.LightManager) that can be used to handle the lights in the scene. - **Return:** _[carla.LightManager](#carla.LightManager)_ diff --git a/PythonAPI/docs/world.yml b/PythonAPI/docs/world.yml index 9da3cc827..89b146f9e 100644 --- a/PythonAPI/docs/world.yml +++ b/PythonAPI/docs/world.yml @@ -308,6 +308,11 @@ doc: > Returns a list of actor blueprints available to ease the spawn of these into the world. # -------------------------------------- + - def_name: get_vehicles_light_states + return: dict + doc: > + Returns a dict where the keys are carla.Actor IDs and the values are carla.VehicleLightState of that vehicle. + # -------------------------------------- - def_name: get_light_manager return: carla.LightManager doc: >