heleidsn / UAV_Navigation_DRL_AirSim

This is a new repo used for training UAV navigation (local path planning) policy using DRL methods.
219 stars 31 forks source link

AssertionError: The environment must specify an action space. #45

Open SuperheroZLP opened 1 month ago

SuperheroZLP commented 1 month ago

D:\software\Anaconda\Anaconda\envs\DRL\python.exe D:\software\AirSim\UAV_Navigation_DRL_AirSim\scripts\start_evaluate_with_plot.py init training thread Traceback (most recent call last): File "D:\software\AirSim\UAV_Navigation_DRL_AirSim\scripts\start_evaluate_with_plot.py", line 64, in main() File "D:\software\AirSim\UAV_Navigation_DRL_AirSim\scripts\start_evaluate_with_plot.py", line 42, in main evaluate_thread = EvaluateThread( File "D:\software\AirSim\UAV_Navigation_DRL_AirSim\scripts\utils\thread_evaluation.py", line 65, in init self.env = gym.make('airsim-env-v0') File "D:\software\Anaconda\Anaconda\envs\DRL\lib\site-packages\gym\envs\registration.py", line 669, in make env = PassiveEnvChecker(env) File "D:\software\Anaconda\Anaconda\envs\DRL\lib\site-packages\gym\wrappers\env_checker.py", line 20, in init assert hasattr( AssertionError: The environment must specify an action space. https://www.gymlibrary.dev/content/environment_creation/ init airsim-gym-env.

大佬帮帮我,这是怎么回事啊

SuperheroZLP commented 1 month ago

D:\software\Anaconda\Anaconda\envs\DRL\python.exe D:\software\AirSim\UAV_Navigation_DRL_AirSim\scripts\start_evaluate_with_plot.py init training thread init airsim-gym-env. Traceback (most recent call last): File "D:\software\AirSim\UAV_Navigation_DRL_AirSim\scripts\start_evaluate_with_plot.py", line 64, in main() File "D:\software\AirSim\UAV_Navigation_DRL_AirSim\scripts\start_evaluate_with_plot.py", line 42, in main evaluate_thread = EvaluateThread( File "D:\software\AirSim\UAV_Navigation_DRL_AirSim\scripts\utils\thread_evaluation.py", line 65, in init self.env = gym.make('airsim-env-v0') File "D:\software\Anaconda\Anaconda\envs\DRL\lib\site-packages\gym\envs\registration.py", line 669, in make env = PassiveEnvChecker(env) File "D:\software\Anaconda\Anaconda\envs\DRL\lib\site-packages\gym\wrappers\env_checker.py", line 20, in init assert hasattr( AssertionError: The environment must specify an action space.

怎么回事啊这个

kongbinGH commented 3 weeks ago

D:\anaconda3\envs\pytorch_gpu\python.exe D:\UAV_Navigation_DRL_AirSim\tools\env_test\env_test.py Traceback (most recent call last): File "D:\UAV_Navigation_DRL_AirSim\tools\env_test\env_test.py", line 5, in env = gym.make("airsim-env") File "D:\anaconda3\envs\pytorch_gpu\lib\site-packages\gym\envs\registration.py", line 569, in make _check_version_exists(ns, name, version) File "D:\anaconda3\envs\pytorch_gpu\lib\site-packages\gym\envs\registration.py", line 219, in _check_version_exists _check_name_exists(ns, name) File "D:\anaconda3\envs\pytorch_gpu\lib\site-packages\gym\envs\registration.py", line 197, in _check_name_exists raise error.NameNotFound( gym.error.NameNotFound: Environment airsim-env doesn't exist.

Process finished with exit code 1

我遇到了这样的问题“Environment airsim-env doesn't exist”,能否与你交流一下项目复现呢?