heleidsn / UAV_Navigation_DRL_AirSim

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

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

Open SuperheroZLP opened 1 day ago

SuperheroZLP commented 1 day 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 day 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.

怎么回事啊这个