Skip to content

Finger

mujorax.FingerSpinEnv

Bases: MjxPlaygroundEnv

DM Control FingerSpin.

Two-DoF finger spinning a free-rotating body; dense reward proportional to the spinner's angular velocity.

Parameters:

Name Type Description Default
config MjxPlaygroundConfig

Static configuration. Defaults to MjxPlaygroundConfig().

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

    Two-DoF finger spinning a free-rotating body; dense reward
    proportional to the spinner's angular velocity.

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

    _PLAYGROUND_NAME = "FingerSpin"

mujorax.FingerTurnEasyEnv

Bases: MjxPlaygroundEnv

DM Control FingerTurnEasy.

Two-DoF finger rotating a body to a target angle with a large tolerance; sparse reward when within tolerance.

Parameters:

Name Type Description Default
config MjxPlaygroundConfig

Static configuration. Defaults to MjxPlaygroundConfig().

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

    Two-DoF finger rotating a body to a target angle with a large
    tolerance; sparse reward when within tolerance.

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

    _PLAYGROUND_NAME = "FingerTurnEasy"

mujorax.FingerTurnHardEnv

Bases: MjxPlaygroundEnv

DM Control FingerTurnHard.

Same task as FingerTurnEasy with a smaller tolerance band.

Parameters:

Name Type Description Default
config MjxPlaygroundConfig

Static configuration. Defaults to MjxPlaygroundConfig().

None
Source code in mujorax/envs/finger.py
Python
36
37
38
39
40
41
42
43
44
45
46
47
48
class FingerTurnHardEnv(MjxPlaygroundEnv):
    """
    DM Control `FingerTurnHard`.

    Same task as `FingerTurnEasy` with a smaller tolerance band.

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

    _PLAYGROUND_NAME = "FingerTurnHard"