Code Monkey home page Code Monkey logo

Comments (5)

amandlek avatar amandlek commented on May 31, 2024

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.

from robosuite.

isk03276 avatar isk03276 commented on May 31, 2024

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).

from robosuite.

amandlek avatar amandlek commented on May 31, 2024

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

from robosuite.

isk03276 avatar isk03276 commented on May 31, 2024

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?

from robosuite.

amandlek avatar amandlek commented on May 31, 2024

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.

from robosuite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.