Skip to content

[MJX] how to get body.id given body.name  #1400

Closed
@Kallinteris-Andreas

Description

@Kallinteris-Andreas

Hi,

I'm a maintainer of Gymnasium & the project manager of Gymnasium-Robotics, and I'm trying to use MuJoCo-MJX for "prototyping MJX-based RL environments in Gymnasium, Gymnasium-Robotics, Metaworld, MO-Gymnasium".

I want the ID of a body part while knowing its name

with mujoco you can get the ID of a body part with:

data.body("torso").id

how can I do the same thing with MJX

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionRequest for help or information

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions