Skip to content

MyoSuite methods not accessible without env.unwrapped under new Gymnasium versions #378

@Vittorio-Caggiano

Description

@Vittorio-Caggiano

Problem

When using MyoSuite environments through Gymnasium, custom MyoSuite methods
(e.g. mj_render) are no longer accessible directly on the environment object.

Example:

from myosuite.utils import gym

env = gym.make('myoElbowPose1D6MRandom-v0')
env.reset()
env.mj_render()   # AttributeError

This only works via:

env.unwrapped.mj_render()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions