gym-lgsvl icon indicating copy to clipboard operation
gym-lgsvl copied to clipboard

AttributeError: 'LgsvlEnv' object has no attribute 'camera'

Open Malathi15 opened this issue 4 years ago • 2 comments

Hi, I have tried to execute gym-lgsvl. When I have execute the following command python -m baselines.run --alg=a2c --env=gym_lgsvl:lgsvl-v0 --num_timesteps=1e5 I got an Attribute Error AttributeError: 'LgsvlEnv' object has no attribute 'camera' (check the screenshot) Day8_4 Please help me to solve this

Thanks in Advance Malathi K

Malathi15 avatar Jun 10 '20 04:06 Malathi15

I haven't try it with OpenAI baselines yet, but using SAC Stable Baselines, everything works fine after i changed the code a bit in line 83 and 84 - typo and wrong argument respectively. Maybe try using stable baselines instead?

bobbyhaliwela avatar Aug 10 '20 11:08 bobbyhaliwela

I don't think the error is related to OpenAI baselines. I am facing the same problem after creating the environment using env = gym.make('gym_lgsvl:lgsvl-v0'): AttributeError: 'LgsvlEnv' object has no attribute 'camera' . It seems you can't use the name "Lexus2016RXHybrid (Autoware)" in lgsvl_env.py/def _setup_ego as it does not exist. If you change the name to "Jaguar2015XE", the vehicle exists but doesn't have any sensors. My understanding is that with the template "API Only" the name of the vehicle is not enough, you also have to specify the configuration ID. When, I am using the configuration ID, it is working.

NicMaq avatar Apr 29 '21 20:04 NicMaq