Skip to content

Acrobot

mujorax.AcrobotSwingupEnv

Bases: MjxPlaygroundEnv

DM Control AcrobotSwingup.

Two-link underactuated pendulum starting at rest hanging down; dense reward for swinging the tip to the target position.

Parameters:

Name Type Description Default
config MjxPlaygroundConfig

Static configuration. Defaults to MjxPlaygroundConfig().

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

    Two-link underactuated pendulum starting at rest hanging down;
    dense reward for swinging the tip to the target position.

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

    _PLAYGROUND_NAME = "AcrobotSwingup"

mujorax.AcrobotSwingupSparseEnv

Bases: MjxPlaygroundEnv

DM Control AcrobotSwingupSparse.

Same dynamics as AcrobotSwingup with a sparse (binary) reward triggered when the tip reaches the target.

Parameters:

Name Type Description Default
config MjxPlaygroundConfig

Static configuration. Defaults to MjxPlaygroundConfig().

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

    Same dynamics as `AcrobotSwingup` with a sparse (binary) reward
    triggered when the tip reaches the target.

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

    _PLAYGROUND_NAME = "AcrobotSwingupSparse"