DavidRother / cooking_zoo

CookingZoo: a gym-cooking derivative to simulate a complex cooking environment
MIT License
20 stars 9 forks source link

game play of demo_xxx always stucks when all recipes completed #29

Open hyy9810 opened 11 months ago

hyy9810 commented 11 months ago

When I run demo_gameplay.py in cooking_zoo/, and complete the recipe with manual policy, the program will stuck in the step of cooking_zoo\demo_gameplay.py:30:

observations, rewards, terminations, truncations, infos = env.step(action)

And I try to figure it out, it sames like the problem is in the pettingzoo's library, in Lib\site-packages\pettingzoo\utils\conversions.py:217-221:

        while self.aec_env.agents and (
            self.aec_env.terminations[self.aec_env.agent_selection]
            or self.aec_env.truncations[self.aec_env.agent_selection]
        ):
            self.aec_env.step(None)

So it will stuck in the while block. I want to know is it working normally or is there any solution to this problem.