It seems that in local_evaluation.py
the agentPos and grid are available because vector_state=True
passed into gridworld. However, these two keys are missed when I submitted my code to the aicrowd:
Traceback (most recent call last):
File "client_launcher.py", line 20, in <module>
start_test_client()
File "client_launcher.py", line 17, in start_test_client
client.run_agent()
File "/srv/conda/envs/notebook/lib/python3.7/site-packages/aicrowd_gym/clients/base_oracle_client.py", line 198, in run_agent
kwargs=kwargs,
File "/srv/conda/envs/notebook/lib/python3.7/site-packages/aicrowd_gym/clients/base_oracle_client.py", line 100, in process_request
action, target_attribute, instance_id, args, kwargs
File "/srv/conda/envs/notebook/lib/python3.7/site-packages/aicrowd_gym/clients/base_oracle_client.py", line 129, in route_agent_request
return self.execute(target_attribute, *args, **kwargs)
File "/srv/conda/envs/notebook/lib/python3.7/site-packages/aicrowd_gym/clients/base_oracle_client.py", line 142, in execute
return method(*args, **kwargs)
File "/home/aicrowd/agents/aicrowd_wrapper.py", line 39, in register_reset
return self.compute_action(observation)
File "/home/aicrowd/agents/aicrowd_wrapper.py", line 43, in compute_action
return self.agent.act(*observation,)
File "/home/aicrowd/agents/vector_agent.py", line 29, in act
action, early_termination = agent.act( obs, rew, done, info)
File "/home/aicrowd/agents/iglu_agent.py", line 327, in act
if (observation['agentPos'] == 0).all():
KeyError: 'agentPos'