Skip to content

Ball in Cup

mujorax.BallInCupEnv

Bases: MjxPlaygroundEnv

DM Control BallInCup.

Planar ball attached by a tether to a cup; sparse reward when the ball is caught inside the cup.

Parameters:

Name Type Description Default
config MjxPlaygroundConfig

Static configuration. Defaults to MjxPlaygroundConfig().

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

    Planar ball attached by a tether to a cup; sparse reward when the
    ball is caught inside the cup.

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

    _PLAYGROUND_NAME = "BallInCup"