wuxiyang1996 / iPLAN

iPLAN: Intent-Aware Planning in Heterogeneous Traffic via Distributed Multi-Agent Reinforcement Learning
https://arxiv.org/abs/2306.06236
MIT License
32 stars 3 forks source link

gym.error.NameNotFound: Environment highway-hetero-H doesn't exist. #6

Open kunhongwu opened 1 month ago

kunhongwu commented 1 month ago

gym.error.NameNotFound: Environment highway-hetero-H doesn't exist.

wuxiyang1996 commented 1 month ago

One easy way to solve this: Install the highway-env as it is, then cover the installed highway-env file with the heterogeneous highway-env package here: https://github.com/wuxiyang1996/Heterogeneous_Highway_Env

kunhongwu commented 1 month ago

屏幕截图 2024-10-28 163026 I'm sorry, but I don't quite understand what you mean. I tried to follow my understanding, but it still doesn't work. I'm new to Highway and not very familiar with it, so I hope the author can provide further guidance. Thank you! image

wuxiyang1996 commented 4 weeks ago

Try to add the following lines to run.py

from gym.envs.registration import register register( id='highway-hetero-v0', entry_point='highway_env.envs:HighwayEnvHetero', )

register( id='highway-hetero-H-v0', entry_point='highway_env.envs:HighwayEnvHetero_H', )

See if it works

wuxiyang1996 commented 4 weeks ago

If it still does not work, try to install highway-env first and download the hetero-highway packages from GitHub. Cover the initial highway-env file located at the Anaconda with the downloaded hetero-highway files.