Closed ZHMA1996 closed 4 years ago
Especially when the agent take the action 3
It seems the program stops in the function advance_game_time, could anyone explain in detail and how to solve it.
Hi,
Did this happen when running:
python eval.py --agent-config baselines/config/random-agent.yaml --episode-config config/check-ground-truth.yaml
or are there other cases where you've observed that behavior?
Hi
when running the command you provided, this behavior didn't happen.
Good to know. Is there a command we can use to replicate the issue?
When testing my own agent, the behavior happened. I tried to figure out why and use a for loop to
iterate over every step and found that the simulator would stop when fetching fruits. In this setting, I
created a Vector Env using the library, stable-baselines. After I commented out the function
advance_game_time in the source code and then the simulator could work again.
Thanks for the description. If you're still having issues, could you try setting the step_rate
argument in GoseekFullPerception
to 20 (doesn't have to be 20 specifically, but in that range would be good).
In the baseline notebook, this would look like:
env = GoSeekFullPerception(
str(filename),
step_rate=20,
network_config=get_network_config(worker_id=rank),
n_targets=n_targets,
episode_length=episode_length,
scene_id=scene_id[rank],
target_found_reward=target_found_reward,
)
Thanks for your reply. This problem could be solved after setting the step_rate
argument !
Good to know! I'll update the baseline notebook to suggest that!
Faced same issue in v0.1.4. Adding step_rate=20 solved the issue.
Is is possible that the simulator would suddenly stop ?
when testing the simulator with an agent taking random action, the simulator just go forward several
steps and just stop. And no similar phenomenon was observed in version 0.1.0.