Skip to content

Reset the environment to a specific state in Mujoco tasks. #1617

Closed
@bluecontra

Description

@bluecontra

Hello, I'm training my mujoco agent with gym == 0.9.5, mujoco-py == 0.5.7, mjpro131 and on Windows 7. Currently, I'm good with the original API.

My question is, how to reset the environment to a specific state ? I want this function to do some analysis work.

I see that the original API in (for example) 'half_cheetah.py', the original reset_model() function does not take any params and reset the env to a random initialized state.
图片

Is there any built-in function to do this, or I have to overwrite the original API with a new reset_model(some_state) function? If so, please tell me which upstream files of 'half_cheetah.py' to modify?

Thanks in advance !

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