Reacher

Reacher

This Environment is part of MaMuJoCo environments. Please read that page first for general information. The task is Gymansium’s MuJoCo/Reacher.

Action Space

The shape of the action space depends on the partitioning. The partitioning has the following form:

if partitioning is None:

../../../_images/reacher.png

Instantiate

env = mamujoco_v1.parallel_env("Reacher", None)

Agents

agents= ['agent_0']

Number of Agents

1

Action Spaces

{'agent_0' : Box(-1, 1, (2,), float32)}

Part partition

[(joint0,), (joint1,),]

If partitioning, is None, then the environment contains a single agent with the same action space as Gymansium’s MuJoCo/Reacher.

Num

Action

Control Min

Control Max

Name (in corresponding XML file)

Joint

Unit

0

Torque applied at the first hinge (connecting the link to the point of fixture)

-1

1

joint0

hinge

torque (N m)

1

Torque applied at the second hinge (connecting the two links)

-1

1

joint1

hinge

torque (N m)

if partitioning == “2x1”:

../../../_images/reacher_2x1.png

Instantiate

env = mamujoco_v1.parallel_env("Reacher", "2x1")

Agents

agents= ['agent_0', 'agent_1']

Number of Agents

2

Action Spaces

{'agent_0': Box(-1, 1, (1,), float32), 'agent_1' : Box(-1, 1, (1,), float32)}

Part partition

[(joint0,), (joint1,)]

The environment is partitioned in 2 parts, one part corresponding to the first joint, and one part corresponding to the second joint.

Agent 0 action space

Num

Action

Control Min

Control Max

Name (in corresponding XML file)

Joint

Unit

0

Torque applied at the first hinge (connecting the link to the point of fixture)

-1

1

joint0

hinge

torque (N m)

Agent 1 action space

Num

Action

Control Min

Control Max

Name (in corresponding XML file)

Joint

Unit

0

Torque applied at the second hinge (connecting the two links)

-1

1

joint1

hinge

torque (N m)

Observation Space

Observation Categories

Default local_categories

[["qpos", "qvel", "fingertip_dist"], ["qpos"]]

Default global_categories

("qpos", "qvel")

Supported observation categories

"qpos", "qvel", "fingertip_dist"

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 of the reacher’s target object. See more at the Gymnasium’s Reacher.

Rewards

All agents receive the same Gymnasium’s Reacher reward.

Starting state

The starting state of the environment is the same as Gymnasium’s Reacher.

Episode End

All agent terminate and truncate at the same time, given the same conditions as Gymnasium’s Reacher.

Version History

  • v1:

    • Now based on Gymnasium/MuJoCo-v5 instead of Gymnasium/MuJoCo-v4 (https://github.com/Farama-Foundation/Gymnasium/pull/572).