dm_control icon indicating copy to clipboard operation
dm_control copied to clipboard

(soccer) explore.py gives a stationary frame of the pitch?

Open Gariscat opened this issue 2 years ago • 6 comments

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!!!

Gariscat avatar Oct 23 '23 21:10 Gariscat

The physics says "running" but time isn't advancing... hmmm 🤔

What happens when you press the spacebar?

yuvaltassa avatar Oct 24 '23 16:10 yuvaltassa

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?

Gariscat avatar Oct 25 '23 15:10 Gariscat

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?

liusiqi43 avatar Oct 25 '23 15:10 liusiqi43

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?

Gariscat avatar Oct 25 '23 16:10 Gariscat

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

liusiqi43 avatar Oct 25 '23 17:10 liusiqi43

OK, I see. I'll give it a try. Thanks again!

Gariscat avatar Oct 25 '23 17:10 Gariscat