-
-
Notifications
You must be signed in to change notification settings - Fork 866
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
More control over offscreen dimensions and scene geometries #731
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@guyazran Thanks for the PR
@Kallinteris-Andreas This looks good to me, are you happy for me to merge?
also need to add Gymnasium/gymnasium/envs/mujoco/mujoco_env.py Lines 345 to 359 in 54d2ba7
and Gymnasium/gymnasium/envs/mujoco/mujoco_env.py Lines 377 to 379 in 54d2ba7
|
@Kallinteris-Andreas I have addressed all of your comments in my latest push (4 commits). all tests and pre-commits pass |
added another commit to use the actual |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary of the changes this PR adds:
max_geom
argument formujocoEnv
&MujocoRenderer
- a test for
MuJoCo
rendering - a few extra comments
Note: does not add "More control over offscreen dimensions" unlike what the title says, since that functionality was already present
TODO (after this PR): add support for multi-camera rendering to fix #730 (I will do that)
@guyazran thanks
@pseudo-rnd-thoughts merge
Could you also look at the ignored errors
|
like I said in a previous note, by removing the optional width and height we cannot create a |
the ignored exceptions mentioned by @pseudo-rnd-thoughts here are still present. I don't why they are occurring and I am not able to reproduce them on my local machine. I'm going to wildly guess that this is because I didn't close the viewers after usage. I address this in 89db1c3 |
according to the workflows running in my fork, the ignored exceptions are now gone. |
Is there a reason the change is not being merged? Are there any other issues I need to fix? |
Apologies, I completely forgot about it, merging now |
Description
Offscreen Renderers do not allow control of viewer dimensions or the maximum number of geometries in the scene. We fix this issue with minimal implementation to address #730. This is motivated by the need to have multiple renderers at different resolutions and to render cluttered scenes
Fixes #730
Type of change
Checklist:
pre-commit
checks withpre-commit run --all-files
(seeCONTRIBUTING.md
instructions to set it up)