question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Which Bodies does MuJoCo.Humanoid have

See original GitHub issue

Question

Mujoco.Humanoid’s documentation says it has 14 bodies (nbody=14) https://gymnasium.farama.org/environments/mujoco/humanoid/ but I can only count 13 in the xml file https://github.com/Farama-Foundation/Gymnasium/blob/main/gymnasium/envs/mujoco/assets/humanoid.xml

        # bodies
        torso = 0
        lwaist = 1
        pelvis = 2
        right_thigh = 3
        right_sin = 4
        right_foot = 5
        left_thigh = 6
        left_sin = 7
        left_foot = 8
        right_upper_arm = 9
        right_lower_arm = 10
        left_upper_arm = 11
        left_lower_arm = 12

am I missing something, which is the 14th body

Thanks!

Issue Analytics

  • State:open
  • Created 9 months ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Kallinteris-Andreascommented, Dec 16, 2022

Damn it, Was really hoping the answer, would not be worldbody

0reactions
rodrigodelazcanocommented, Dec 17, 2022

Yes, this is another redundant observation. Reading the MuJoCo docs I found an explanation (https://mujoco.readthedocs.io/en/latest/computation.html?highlight=moment arms#actuation-model)

qfrc_actuator is the actuator force in joint coordinates, joint_moment_arm * actuator_force (including joints without actuators, nv size). This means that the free joint of the head is also included in the qfrc_actuator vector and will always be 0. Then there is this other attribute data.actuator_force which returns the actuator output torques (size nu) and is equal to the Gymnasium action since Humanoid uses motor actuators.

My suggestion is to keep qfrc_actuator in the observation space since the joint moment arms is relevant for extracting information about the bodies inertia but removing the elements related to the un-actuated free joint.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Humanoid - Gym Documentation
The 3D bipedal robot is designed to simulate a human. It has a torso (abdomen) with a pair of legs and arms. The...
Read more >
MuJoCo Documentation: Overview
MuJoCo can model the 3D geometry of tendons - which are minimum-path-length strings obeying wrapping and via-point constraints. The mechanism is similar to...
Read more >
MuJoCo Overview
We compared MuJoCo and SD/FAST on four model systems: isolated bodies, a chain, a hand, and a humanoid model.
Read more >
mujoco/humanoid.xml at main · deepmind/mujoco - GitHub
A general purpose physics simulator. - mujoco/humanoid.xml at main · deepmind/mujoco. ... distributed under the License is distributed on an "AS IS" BASIS,....
Read more >
MuJoCo Environments - endtoend.ai
MuJoCo (Multi-Joint dynamics with Contact) is a proprietary physics engine for detailed, efficient rigid body simulations with contacts. MuJoCo can be used ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found