-
-
Notifications
You must be signed in to change notification settings - Fork 808
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 of CartPoleVectorEnv is broken #1007
Comments
Thanks, for the issue. My proposal was to actually not contain "human" rendering in the custom vector environment as this is difficult to maintain. Thoughts @TimSchneider42 and maybe @Kallinteris-Andreas or @RedTachyon |
I like the idea of solving human rendering with a wrapper. At least in this case, I expect it to be easier to implement and maintain, since the rgb_array image simply gets rendered by pygame. |
Agreed. I have been thinking about how to implement the vector human rendering but I haven't come to a satisfactory general solution. |
I think for most environments we could simply render in "rgb_array" mode and then have the wrapper you proposed render all of them side by side in a single window with pygame. For more sophisticated environments, like this one, though, there should still be an option for custom rendering solutions, like just showing the simulator interface without having to render RGB images. In general, I think that human rendering should be detached from RGB rendering in the API. I just wrote a small proposal about that in #1010. |
Can this be closed now? |
Yes, it is fixed |
Describe the bug
Hi,
the rendering of
CartPoleVectorEnv
is broken in two places:self.clock
is assigned instead ofself.clocks
self.state
is used instead ofstate
Because of these two bugs,
CartPoleVectorEnv.render()
throws exceptions. I will create a PR in a moment.Best,
Tim
Code example
No response
System info
No response
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: