AttributeError: 'World' object has no attribute 'light_manager'

Hi!

I’ve got an issue with the LightManager. I would like to use it, but i am getting an error.

client = carla.Client(“localhost”, 2000)
client.set_timeout(5.0)
self.world = client.get_world()
manager = self.world.get_light_manager()

According to the error message: ‘World’ object has no attribute ‘light_manager’

Did something change in the use of lightmanager without updating documentation or it’s my fault?

Thanks!

1 Like

Hi,

I am very new to CARLA, and i am trying some commands from the tutorial and facing the same issue.

Error:
Traceback (most recent call last):
File “C:/A/CARLA/carla/PythonAPI/examples/SAmple2.py”, line 24, in
lmanager = world.get_light_manager()
AttributeError: ‘World’ object has no attribute ‘get_light_manager’

Process finished with exit code 1

Are u still facing the Issue ?

Hi,

I raised this issue on github https://github.com/carla-simulator/carla/issues/3138.

The function name is get_lightmanager()