When I execute it in the terminal : $python3 train.py -e configs/empty.yaml -a dqn -c agents/DQN.py -t mlp
It shows the error:
/home/jylong/.local/lib/python3.8/site-packages/gym/utils/passive_env_checker.py:64: UserWarning: WARN: A Box action space maximum and minimum values are equal.
logger.warn("A Box action space maximum and minimum values are equal.")
Traceback (most recent call last):
File "train.py", line 47, in
input_layer_size = env.observation_space["goal"].shape[0] + env.observation_space["humans"].shape[0] + env.observation_space["laptops"].shape[0] + env.observation_space["tables"].shape[0] + env.observation_space["plants"].shape[0]
File "/home/jylong/.local/lib/python3.8/site-packages/gym/spaces/dict.py", line 194, in getitem
return self.spaces[key]
KeyError: 'goal'
Do I run the program in the wrong way?
Here's my system information:
Ubuntu 18.04
ROS melodic
python 3.8.0
gym 0.26.2
gymnasium 0.28.1
socnavgym 0.1.0
When I execute it in the terminal : $python3 train.py -e configs/empty.yaml -a dqn -c agents/DQN.py -t mlp
It shows the error:
/home/jylong/.local/lib/python3.8/site-packages/gym/utils/passive_env_checker.py:64: UserWarning: WARN: A Box action space maximum and minimum values are equal. logger.warn("A Box action space maximum and minimum values are equal.") Traceback (most recent call last): File "train.py", line 47, in
input_layer_size = env.observation_space["goal"].shape[0] + env.observation_space["humans"].shape[0] + env.observation_space["laptops"].shape[0] + env.observation_space["tables"].shape[0] + env.observation_space["plants"].shape[0]
File "/home/jylong/.local/lib/python3.8/site-packages/gym/spaces/dict.py", line 194, in getitem
return self.spaces[key]
KeyError: 'goal'
Do I run the program in the wrong way?
Here's my system information: Ubuntu 18.04 ROS melodic python 3.8.0 gym 0.26.2 gymnasium 0.28.1 socnavgym 0.1.0
Thank you for your effort.