Interactive viewer for Python bindings #576
Replies: 5 comments 6 replies
-
Hi! I just got to test the version on Two issues of general interest that I found are:
Possible solution: Add an optional argument to One issue specific to my use case is:
Possible solution: I believe the problem is that I am happy to implement these changes if the team thinks they make sense. |
Beta Was this translation helpful? Give feedback.
-
I was able to get it to work on my pop!-os 20.04 with a small workaround - |
Beta Was this translation helpful? Give feedback.
-
Following gives me an empty visualization with staring screen prompt (Drag and drop to load model).
mujoco==2.3.1.post1 |
Beta Was this translation helpful? Give feedback.
-
`launch_repl` at 2.3.1.post1 is buggy. We've fixed it at head but probably
won't get around to releasing a prebuilt for another couple of weeks.
…On Wed, 11 Jan 2023 at 14:05, Vikash Kumar ***@***.***> wrote:
Following gives me an empty visualization with staring screen prompt (Drag
and drop to load model).
Am I using it the correct way? @yuvaltassa <https://github.com/yuvaltassa>
@saran-t <https://github.com/saran-t> ?
import mujoco
from mujoco import viewer
sim_path = 'model/humanoid/humanoid.xml'
m = mujoco.MjModel.from_xml_path(sim_path)
d = mujoco.MjData(m)
viewer.launch_repl(m, d)
mujoco==2.3.1.post1
dm-control==1.0.9
mac-os | Monterey | v12.6.1
—
Reply to this email directly, view it on GitHub
<#576 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQZFGK2C2S3LN374JJZG53WR24ZFANCNFSM6AAAAAAR4V726Y>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi, I am trying to move a robotic arm in Mujoco using the keyboard keys like what has been implemented in |
Beta Was this translation helpful? Give feedback.
-
MuJoCo Python bindings now have a built-in interactive viewer
simulate
library, was developed by @aftersomemath. Thanks Levi!pip
until the next official release of MuJoCo.Call for testers
If you you are reasonably confident in your building and packaging skills, you can build the latest version from source and help us test the new viewer. To do so, please follow the build/install instructions and report any issues you encounter on this thread.
git clone https://github.com/deepmind/mujoco && cd mujoco
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INTERPROCEDURAL_OPTIMIZATION:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=${PWD}/install ..
cmake --build .
cmake --install .
cd ../python
python -m venv /tmp/mujoco_venv
source /tmp/mujoco_venv/bin/activate
./make_sdist.sh
pip install wheel
MUJOCO_PATH=${PWD}/../build/install MUJOCO_PLUGIN_PATH=${PWD}/../build/install pip wheel -v dist/mujoco-2.3.0.tar.gz
pip install --force-reinstall mujoco-2.3.0-*.whl
cd ..
The above is for Mac and Linux. We have not tested on Windows (input welcome).
Beta Was this translation helpful? Give feedback.
All reactions