Cartpole¶
mujorax.CartpoleBalanceEnv
¶
Bases: MjxPlaygroundEnv
DM Control CartpoleBalance.
Cart starts near upright; dense reward for keeping the pole upright and the cart centred.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
MjxPlaygroundConfig
|
Static configuration. Defaults to |
required |
Source code in mujorax/envs/cartpole.py
| Python | |
|---|---|
4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
mujorax.CartpoleBalanceSparseEnv
¶
Bases: MjxPlaygroundEnv
DM Control CartpoleBalanceSparse.
Cart starts near upright; sparse reward (binary) for keeping the pole upright within tolerance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
MjxPlaygroundConfig
|
Static configuration. Defaults to |
required |
Source code in mujorax/envs/cartpole.py
| Python | |
|---|---|
20 21 22 23 24 25 26 27 28 29 30 31 32 33 | |
mujorax.CartpoleSwingupEnv
¶
Bases: MjxPlaygroundEnv
DM Control CartpoleSwingup.
Cart starts with the pole hanging down; dense reward for swinging the pole up and balancing it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
MjxPlaygroundConfig
|
Static configuration. Defaults to |
required |
Source code in mujorax/envs/cartpole.py
| Python | |
|---|---|
36 37 38 39 40 41 42 43 44 45 46 47 48 49 | |
mujorax.CartpoleSwingupSparseEnv
¶
Bases: MjxPlaygroundEnv
DM Control CartpoleSwingupSparse.
Cart starts with the pole hanging down; sparse reward for getting the pole into the upright tolerance band.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
MjxPlaygroundConfig
|
Static configuration. Defaults to |
required |
Source code in mujorax/envs/cartpole.py
| Python | |
|---|---|
52 53 54 55 56 57 58 59 60 61 62 63 64 65 | |