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 problem #14

Closed
isk03276 opened this issue Jan 6, 2019 · 5 comments
Closed

Rendering problem #14

isk03276 opened this issue Jan 6, 2019 · 5 comments
Assignees

Comments

@isk03276
Copy link

isk03276 commented Jan 6, 2019

Hi,
Thank you for providing this benchmarking framework.

I have a couple of inconveniences with using this framework.

First, when rendering via "env.render ()", the rendering screen is turned back on whenever the environment is reset. Is there a solution for this?

Second, a GLFW missing error occurs if the "has_offscreen_render" option is set to true when the "has_render" option is false. If both options are true, the rendering screen will blink.

Thank you.

@isk03276 isk03276 changed the title A Question about Human demonstraions Rendering problem Jan 8, 2019
@amandlek
Copy link
Member

amandlek commented Jan 11, 2019

What exactly do you mean by the rendering screen being turned back on when resetting?

I've seen the GLFW missing error when trying to use on-screen rendering on its own (the fix is to run export LD_PRELOAD=$LD_PRELOAD:/usr/lib/x86_64-linux-gnu/libGLEW.so:/usr/lib/nvidia-410/libGL.so, assuming you're on Ubuntu with the nvidia-410 driver) but not when using off-screen rendering. Can you post a more detailed example (code and stacktrace)?

As a note, in my experience, on Ubuntu, the LD_PRELOAD fix enables on-screen rendering but stops off-screen rendering from working. This might be an issue with mujoco-py. So you should only export this variable when you need on-screen rendering, but not when you want to use off-screen rendering. As a result, we currently don't have support for using both the has_renderer option and has_offscreen_renderer option.

@isk03276
Copy link
Author

Thanks,

"rendering screen being turned back on when resetting" means that the mujoco_py (rendering process) is turned off every episode (whenever env.reset () is executed).

@amandlek
Copy link
Member

Right, this is intentional behavior. We destroy the renderer and create a new one on every environment reset.

@isk03276
Copy link
Author

If the renderer is turned off and on for every episode, it is difficult to do anything else.
Is there a way not to destroy the renderer?

@amandlek
Copy link
Member

I don't know what you mean by "it is difficult to do anything else" but you can try modifying the behavior here to avoid destroying the viewer on every reset and see if that is suitable for your use case.

anchit pushed a commit that referenced this issue Apr 15, 2019
…randomization+returnimg

Cleanup+objectplacement+objectrandomization+returnimg
yukezhu added a commit that referenced this issue Oct 19, 2021
added cube and sphere to the robosuite assets and modified ig bridge …
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants