dm_control
dm_control copied to clipboard
(soccer) explore.py gives a stationary frame of the pitch?
Hi, thank you for releasing the code of this fantastic project!
I tried to run the explore.py given in the repo (dm_control/locomotion/soccer/explore.py). However, it seems that the GUI that pops up only renders one stationary frame and nothing is moving. Should I interact with the players using keyboard inputs or load some pretrained policies? What should I do?
I have recorded a 15-second short video of what happened when I run the explore.py in the command line.
Thanks a lot for any suggestions!!!
The physics says "running" but time isn't advancing... hmmm 🤔
What happens when you press the spacebar?
Hi, Yuval! Thank you for such a quick response. I pressed the spacebar multiple times but still the scene is not changing. However, the "paused" label on the left-buttom corner does swapped from true to false back and forth. What else should I do?
For context, the players are not supposed to move because there isn't a policy that controls them. However, you should see that the ball falls to the ground when the physics engine is stepping. Could you confirm that you don't see that either?
Hi, Siqi!
Yes, I saw the ball falling to the ground. How can I apply some policies to control the agents, no matter pretrained or random?
I believe you would need to supply a policy instance here that produce actions for all players that respect the action specs of the environment: https://github.com/google-deepmind/dm_control/blob/main/dm_control/viewer/init.py#L30
On Wed, Oct 25, 2023 at 5:36 PM X. Li @.***> wrote:
Hi, Siqi!
Yes, I saw the ball falling to the ground. How can I apply some policies to control the agents, no matter pretrained or random?
— Reply to this email directly, view it on GitHub https://github.com/google-deepmind/dm_control/issues/432#issuecomment-1779655662, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI4RHAAUSRIT3D3YMLH4UTYBE5XLAVCNFSM6AAAAAA6MWJK2WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZZGY2TKNRWGI . You are receiving this because you commented.Message ID: @.***>
--
Regards, Siqi LIU
OK, I see. I'll give it a try. Thanks again!