From a9c0f51633ad5f262fe3cc87cae00f182de59b5b Mon Sep 17 00:00:00 2001 From: Marc Garcia Puig Date: Wed, 27 May 2020 14:48:27 +0200 Subject: [PATCH] Added `get_vehicles_light_states` into docs --- Docs/python_api.md | 3 +++ PythonAPI/docs/world.yml | 5 +++++ 2 files changed, 8 insertions(+) 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: >