Skip to content

Hopper

mujorax.HopperHopEnv

Bases: MjxPlaygroundEnv

DM Control HopperHop.

Planar one-legged hopper; dense reward proportional to forward speed while staying above a minimum torso height.

Parameters:

Name Type Description Default
config MjxPlaygroundConfig

Static configuration. Defaults to MjxPlaygroundConfig().

None
Source code in mujorax/envs/hopper.py
Python
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
class HopperHopEnv(MjxPlaygroundEnv):
    """
    DM Control `HopperHop`.

    Planar one-legged hopper; dense reward proportional to forward
    speed while staying above a minimum torso height.

    Parameters
    ----------
    config : MjxPlaygroundConfig (optional)
        Static configuration. Defaults to `MjxPlaygroundConfig()`.
    """

    _PLAYGROUND_NAME = "HopperHop"

mujorax.HopperStandEnv

Bases: MjxPlaygroundEnv

DM Control HopperStand.

Same body as HopperHop; dense reward for standing upright with the torso above a minimum height.

Parameters:

Name Type Description Default
config MjxPlaygroundConfig

Static configuration. Defaults to MjxPlaygroundConfig().

None
Source code in mujorax/envs/hopper.py
Python
20
21
22
23
24
25
26
27
28
29
30
31
32
33
class HopperStandEnv(MjxPlaygroundEnv):
    """
    DM Control `HopperStand`.

    Same body as `HopperHop`; dense reward for standing upright with
    the torso above a minimum height.

    Parameters
    ----------
    config : MjxPlaygroundConfig (optional)
        Static configuration. Defaults to `MjxPlaygroundConfig()`.
    """

    _PLAYGROUND_NAME = "HopperStand"