I am having gladLoadGL error when I trying to use offscreen = mujoco.MjrContext(self.model, mujoco.mjtFontScale.mjFONTSCALE_150) #2033
Unanswered
ppyakksa
asked this question in
Asking for Help
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How to ask for help
First, read our quick guide to
asking good questions.
Below is a template for you to use:
Hi,
I'm a student and I'm trying to use MuJoCo for crane automation simulation with reinforcement learnging
I'm looking for some help with gladLoadGL error occuring on mujoco.MjrContext().
I implemented four camearas on my object and I am trying to get images from the camera.
it works when I directly use
model = mujoco.MjModel.from_xml_path(file_path)
offscreen = mujoco.MjrContext(model, mujoco.mjtFontScale.mjFONTSCALE_151)
I get images and can put the input into a cnn model
but the error occurs when I am trying to call it in class like below
CustomMjocoEnv(gym.Env):
def reset(self):
def _get_obs():
...
offscreen = mujoco.MjrContext(self.model, mujoco.mjtFontScale.mjFONTSCALE_151)
...
Defining model inside the _get_obs doesnt fix the error. I typed os.environ['MUJOCO_GL] = 'elg'
below is my nvidia version
NVIDIA-SMI 535.183.01 Driver Version: 535.183.01 CUDA Version: 12.2
Thank you for reading and I am looking forward to your kind help
Beta Was this translation helpful? Give feedback.
All reactions