ARISE-Initiative / robosuite

robosuite: A Modular Simulation Framework and Benchmark for Robot Learning
https://robosuite.ai
Other
1.23k stars 394 forks source link

Failed to get image observation #20

Closed yuchen93 closed 5 years ago

yuchen93 commented 5 years ago

Hi,

I think this is related to issue #17 and probably has to do with environment configuration. I am on Ubuntu 18.04 and followed all the installation instructions. I was able to run the demo successfully. However, in the tutorial, whenever use_camera_obs is set to true, I got the following error message:

File "/home/robosuite/robosuite/environments/base.py", line 149, in reset return self._get_observation() File "/home/robosuite/robosuite/environments/sawyer_lift.py", line 274, in _get_observation depth=self.camera_depth, File "mjsim.pyx", line 149, in mujoco_py.cymj.MjSim.render File "mjsim.pyx", line 151, in mujoco_py.cymj.MjSim.render File "mjrendercontext.pyx", line 43, in mujoco_py.cymj.MjRenderContext.init File "mjrendercontext.pyx", line 108, in mujoco_py.cymj.MjRenderContext._setup_opengl_context File "opengl_context.pyx", line 128, in mujoco_py.cymj.OffscreenOpenGLContext.init RuntimeError: Failed to initialize OpenGL

I am just wondering if you know what is causing this problem.

Thanks!

yuchen93 commented 5 years ago

Hmmm, I think I know what the problem is. I have only one GPU for rendering.....