How to actuate a joint with MjSpec? #2636
Unanswered
tonitonitonitoni
asked this question in
Asking for Help
Replies: 1 comment
-
Hi, we don't have actuator shortcuts ( |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Intro
Hi!
I am a graduate student at TMU, I use MuJoCo for my research on space robotics.
My setup
Python Mujoco version 3.3.0 in Windows 10 WSL2 Ubuntu 22.04 coding in VSCode Jupyter notebooks
My question
I am trying to actuate the free joint in my model using the MjSpec model editing API.
I can add the free joint and add the actuator but I cannot add the actuator to the free joint.
I am trying to replicate this XML:
I tried to add it via mujoco.MjSpec.from_file but got ValueError: Error: free joint can only be used on top level.
When I omit the
<worldbody>
tag the model compiles, but no actuators show up when I inputspec.actuators
.Minimal model and/or code that explain my question
Confirmations
Beta Was this translation helpful? Give feedback.
All reactions