Skip to content

Reacher

mujorax.ReacherEasyEnv

Bases: MjxPlaygroundEnv

DM Control ReacherEasy.

Two-link planar arm with a large target; dense reward proportional to the negative distance from the fingertip to the target.

Parameters:

Name Type Description Default
config MjxPlaygroundConfig

Static configuration. Defaults to MjxPlaygroundConfig().

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

    Two-link planar arm with a large target; dense reward proportional
    to the negative distance from the fingertip to the target.

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

    _PLAYGROUND_NAME = "ReacherEasy"

mujorax.ReacherHardEnv

Bases: MjxPlaygroundEnv

DM Control ReacherHard.

Same arm as ReacherEasy with a smaller target; identical observation/action shapes.

Parameters:

Name Type Description Default
config MjxPlaygroundConfig

Static configuration. Defaults to MjxPlaygroundConfig().

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

    Same arm as `ReacherEasy` with a smaller target; identical
    observation/action shapes.

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

    _PLAYGROUND_NAME = "ReacherHard"