Questions tagged [mujoco]
54 questions
3
votes
0 answers
AttributeError: 'NoneType' object has no attribute 'glfwGetCurrentContext'
I'm trying a tutorial on Reinforcement learning wherein I'm currently trying to use gymnasium, mujoco, to train agents. I've installed mujoco and when I try to run the program, the sim window opens for a second and throws this error. Idk what I'm…

Vaikruta
- 141
- 8
3
votes
1 answer
How to install mujoco-py on windows?
I tried running the following code to test the HalfCheetah-v2 environment:
import gym
env = gym.make('HalfCheetah-v2')
But this gives me the following error:
ModuleNotFoundError: No module named 'mujoco_py'
During handling of the above exception,…

mac179
- 1,540
- 1
- 14
- 24
2
votes
2 answers
Why is semi-implicit Euler used in almost every physics engine instead of a Taylor expansion?
When studying the literature on physics engines, I've noticed that almost every physics engine uses semi-implicit Euler. The basic implementation of this uses the following two equations:
However since we have the second order derivative…

Timo Stienstra
- 56
- 5
2
votes
1 answer
Getting `Exec format error` when trying to patch MuJoCo binaries with patchelf
I'm trying to patch the MuJoCo binaries using patchelf.
I've ran patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) ./bin/basic. And running patchelf --print-interpreter bin/basic gives me…

Elias Fyksen
- 879
- 9
- 12
2
votes
0 answers
Mujoco dependency throwing a lot of errors
So I am trying to use the d4rl datasets (which require mjoco as dependency). After installing mojoco and 3 hours of dealing with visual studio errors, I got the output as seen at the end of the post (when running the program below).
import…

bobthesnob
- 83
- 5
2
votes
1 answer
ERROR: C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit
I was trying to install Mujoco and run a simple script which is :
import gym # openAi gym
from gym import envs
env_name = 'InvertedDoublePendulum-v2'
env = gym.make(env_name)
env.reset()
for _ in range(1000):
env.render()
…

Yeo Wei jie
- 81
- 1
- 3
1
vote
1 answer
UnResolvedPackage: Anaconda conda Environment O2MConverter
I have been attempting many ways to install this github repository by creating conda environment and installing dependencies and pip packages that are specified in the project O2MConverter (https://github.com/aikkala/O2MConverter.git) with…

mau
- 39
- 1
- 6
1
vote
1 answer
Mujoco. Meshes are too big
I made small models in FreeCAD and Rhinoceros 3D (cm to m), when I import them to Mujoco, they are giants with giant masses, and I have to multiply gravity by 100 (and probably other options) to make them act normal. Is there a better way of doing…

Melanol
- 43
- 5
1
vote
0 answers
Failed building wheel for mujoco-py
I have tried to install mujoco-py 2.1. But there is an error:command 'gcc' failed with exit status 1. It also says failed building wheel for mujoco-py. I have tried to change gcc version to gcc7, but it doesn't work. Could someone help me?
Looking…

Chi Chu
- 11
- 2
1
vote
1 answer
Install mujoco for C++
I was trying to install Mujoco as a library to be used in my own Cpp programs, but I don¡t know if I should build it, although it does not have any CMakeLists file. I do not have much experience using precompiled libraries, so there might be the…

pdaranda661
- 39
- 6
1
vote
0 answers
How to use actuators to control a free joint in mujoco_py?
I am using mujoco_py to build a simulation for a hand. I have some some floating fingers that I want to control using actuators. How do I control a free joint that has 7 DOF (x,y,z, rotation quaternion) with acuators?
Thanks for the help!

Tob
- 985
- 1
- 10
- 26
1
vote
0 answers
Mujoco fatal error, How can I set Xlib.h to my PATH?
I'm very new in Linux Terminal
As I know if I edit (nano ~/.bashrc) bashrc and do export path
then all files will connect with exported PATH
So I did
enter image description here
My bashrc
and did source ~/.bashrc
after that I write the Mujoco
my…

Want-Learn-Robot
- 11
- 1
1
vote
1 answer
Issue setting up Environment Variables with SAME NAME on PyCharm Configuration for Mujoco_py on Ubunutu
I am trying to get my OpenAI Gym w/ MuJoCo Python files running from a PyCharm configuration but I am getting "missing path to your environment variable" exception related to mujoco_py.
These are the Env Vars I can't seem to add to PyCharm because…

jp-ai
- 11
- 1
1
vote
2 answers
How to Use MuJoCo on Windows
This is a very easy question, but I'm struggling unreasonably hard to find answers online.
DeepMind just made MuJoCo free, so I decided to download it on my Windows computer and test it out. When I install, however, all I get is a folder.
I've…

Pro Q
- 4,391
- 4
- 43
- 92
1
vote
1 answer
Convert Mujoco Depth Image to Open3D Point Cloud
I'm trying to generate an Open3D point cloud from a depth image rendered in MuJoCo. My code is below, with the MuJoCo dependency commented out and rendered depth images linked below:
import math
import numpy as np
import open3d as o3d
def…