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

Rendering control environments #16

Closed
neale opened this issue Nov 21, 2019 · 2 comments
Closed

Rendering control environments #16

neale opened this issue Nov 21, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@neale
Copy link

neale commented Nov 21, 2019

In dm_control there was the ability to render control tasks like cartpole swingup, even though the environment only had a dynamics-based observation space. It would be nice to have that ability here, especially since the environment is from dm_control.
It looks like the rendering function in the Gym wrapper just returns the last observation (in both human and rgb_array mode), which doesn't really work for a lot of tasks in bsuite when the observation is not an rgb_array.

Is there some way to see grab RGB output for bsuite environments?

For now, I hacked in the cartpole specific viewer from Gym to cartpole.py and cartpole_swingup.py. It works and it doesn't look horrible, but it's not exactly ideal.

@aslanides aslanides added the enhancement New feature or request label Mar 13, 2020
@aslanides
Copy link
Member

Thanks for the bug report. Yes, this would be a nice-to-have.

@iosband
Copy link
Contributor

iosband commented Apr 1, 2020

+1 - this would be nice!

However, I don't think this is our plan for now.
We want to keep the barrier-to-entry for new experiments to be low, and don't want to force experiments to implement RBG output.

That said, it might be nice to build a generic "Numpy Visualizer" which we could offer to people who want to inspect the output.

@iosband iosband closed this as completed Apr 1, 2020
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