Walker2d¶
This Environment is part of MaMuJoCo environments. Please read that page first for general information. The task is Gymansium’s MuJoCo/Walker2D.
Action Space¶
The shape of the action space depends on the partitioning. The partitioning has the following form:
if partitioning is None:¶
Instantiate |
|
---|---|
Agents |
|
Number of Agents |
1 |
Action Spaces |
|
Part partition |
|
If partitioning, is None
then the environment contains a single agent with the same action space as Gymansium’s MuJoCo/Walker2d.
Num |
Action |
Control Min |
Control Max |
Name (in corresponding XML file) |
Joint |
Unit |
---|---|---|---|---|---|---|
0 |
Torque applied on the thigh rotor |
-1 |
1 |
thigh_joint |
hinge |
torque (N m) |
1 |
Torque applied on the leg rotor |
-1 |
1 |
leg_joint |
hinge |
torque (N m) |
2 |
Torque applied on the foot rotor |
-1 |
1 |
foot_joint |
hinge |
torque (N m) |
3 |
Torque applied on the left thigh rotor |
-1 |
1 |
thigh_left_joint |
hinge |
torque (N m) |
4 |
Torque applied on the left leg rotor |
-1 |
1 |
leg_left_joint |
hinge |
torque (N m) |
5 |
Torque applied on the left foot rotor |
-1 |
1 |
foot_left_joint |
hinge |
torque (N m) |
if partitioning == “2x3”: # isolate right and left foot¶
Instantiate |
|
---|---|
Agents |
|
Number of Agents |
2 |
Action Spaces |
|
Part partition |
|
The environment is partitioned in 2 parts, one part corresponding to the right leg, and one part corresponding to the left leg.
Agent 0 action space (right leg)¶
Num |
Action |
Control Min |
Control Max |
Name (in corresponding XML file) |
Joint |
Unit |
---|---|---|---|---|---|---|
0 |
Torque applied on the thigh rotor |
-1 |
1 |
thigh_joint |
hinge |
torque (N m) |
1 |
Torque applied on the leg rotor |
-1 |
1 |
leg_joint |
hinge |
torque (N m) |
2 |
Torque applied on the foot rotor |
-1 |
1 |
foot_joint |
hinge |
torque (N m) |
Agent 1 action space (left leg)¶
Num |
Action |
Control Min |
Control Max |
Name (in corresponding XML file) |
Joint |
Unit |
---|---|---|---|---|---|---|
0 |
Torque applied on the left thigh rotor |
-1 |
1 |
thigh_left_joint |
hinge |
torque (N m) |
1 |
Torque applied on the left leg rotor |
-1 |
1 |
leg_left_joint |
hinge |
torque (N m) |
2 |
Torque applied on the left foot rotor |
-1 |
1 |
foot_left_joint |
hinge |
torque (N m) |
Observation Space¶
Observation Categories |
|
---|---|
Default |
|
Default |
|
Supported observation categories |
|
Besides the local observation of each agent (which depend on their parts of the agent, the observation categories and the observation depth), each agent also observes the position and velocity items of the walker’s top. See more at the Gymnasium’s Walker2D.
Rewards¶
All agents receive the same Gymnasium’s Walker2D reward.
Starting state¶
The starting state of the environment is the same as Gymnasium’s Walker2D.
Episode End¶
All agent terminate and truncate at the same time given the same conditions as Gymnasium’s Walker2D.
Version History¶
v1:
Now based on
Gymnasium/MuJoCo-v5
instead ofGymnasium/MuJoCo-v4
(https://github.com/Farama-Foundation/Gymnasium/pull/572).Fixed bug: global nodes are now
[root_x, root_z, root_y]
(used to be[root_x, root_x, root_z]
).
v0: Initial version release, uses Gymnasium.MuJoCo-v4, and is a fork of the original MaMuJoCo schroederdewitt/multiagent_mujoco. Changes from the original
MaMuJoCo
(schroederdewitt/multiagent_mujoco):Added/Fixed Global observations (The Walker’s top:
rootx
,rooty
,rootz
) not being observed.