Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment Animation #2

Closed
yzexeter opened this issue Sep 28, 2020 · 6 comments
Closed

Environment Animation #2

yzexeter opened this issue Sep 28, 2020 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@yzexeter
Copy link

Hi,

Is it possible to make the running in an animation mode. The environment I am trying only renders one image a time, and I have to close the window to push the experiment forward. I notice that the implemented rendering method is with matplotlib.

I am not sure if this environmet works in windows, as I am trying in windows 10. Perhaps, either the OS or the matplotlib prevents animation.

Do you have a plan to make it work as convensional gym rendering style.

@MehdiZouitine
Copy link
Owner

MehdiZouitine commented Sep 28, 2020 via email

@AdilZouitine AdilZouitine added the enhancement New feature or request label Sep 28, 2020
@yzexeter
Copy link
Author

Hi,

Thank you very much for your reply and help.

@AdilZouitine
Copy link
Collaborator

AdilZouitine commented Sep 28, 2020

Hi @yzexeter ,
Thank you for your interest in this young project.
I changed the rendering to " à la gym " style, could you test it to tell me if it satisfies you?

import gym
import gym_ma_toy

env = env = gym.make('team_catcher-v0')

obs = env.reset()
done = False
while not done:
    env.render()
    action = env.action_space.sample()
    obs, reward, done, info = env.step(action)
env.close()

For rendering I use that : gym classic control rendering

@yzexeter
Copy link
Author

Hi @AdilZouitine ,

Thank you very much. It works fine to me.
I will try something new later.
I think the environment is a good start for multi-agent and swarm experiments.

@AdilZouitine
Copy link
Collaborator

Hi @yzexeter ,
That's great news!
What a trailer if you get nice results don't hesitate to let us know.
Also we'll be interested to have your baseline results to add to it at #5.

If everything is OK, I'll wait for your agreement to close this issue.

@yzexeter
Copy link
Author

@AdilZouitine
Thank you for your help. It seems everything is good. Please close this issue.
Also, I will try my best to see if there are any intriguing results I can have.
I will let you know if there is progress in baseline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants