> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rua.hud.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Bimanual

> Two arms at one table, moved together on one clock.

> [!NOTE]
>
> **Class** `bimanual` · **Parts** `left_arm`, `left_hand`, `right_arm`, `right_hand` · **Ships in rua** `Composite`, `contract_arms` · **Env** synthetic handover task

Two arms in one shared base frame. Each arm keeps its own embodiment, and `Composite` renames the parts `<member>_<part>`, with a single arm's `gripper` becoming `hand`. One keyframe can move all four parts, so both arms arrive together.

## What `move` takes

| Part | Space | Dimensions |
| - | - | - |
| `left_arm`, `right_arm` | `ee_abs` (or `joint_abs`) | as a [single arm](https://docs.rua.hud.ai/catalog/single-arm.md) |
| `left_hand`, `right_hand` | `grip` | a bare number, 0 open to 1 closed |

Arms can differ: one in joints and one in hand pose is allowed.

## Example spec

Two arms from one contract whose action columns are named `left.<column>` and `right.<column>`, served as one robot by `contract_arms`. Its spec has the four parts above.

```python Spec theme={"dark"}
from rua.embodiments.composite import contract_arms

ROBOT = contract_arms(
    CONTRACT, gripper=(0.0, 1.0), max_speed={"position": 0.5, "rotation": 3.0, "grip": 2.0}
)
SPEC = ROBOT.spec()
```

## Example calls

One arm, from a peg-insertion run: name only the arm that moves and the other holds.

```json move theme={"dark"}
{"keyframes": [{"t": 1.7, "right_arm": {"x": -0.0075, "y": 0.009, "z": 0.129, "roll": -0.5, "pitch": 9, "yaw": 89.9}}]}
```

Both arms and both hands in one call:

```json move theme={"dark"}
{
  "keyframes": [
    {"t": 2.0, "left_arm": {"x": 0.4, "z": 0.3}, "right_arm": {"x": 0.5, "y": -0.3}},
    {"t": 3.0, "left_hand": 1.0, "right_hand": 0.5}
  ]
}
```

```json done theme={"dark"}
{"reason": "The peg is well inside the socket."}
```

## What comes back

Every part's measured state under its own name, and the gap for each part the call named. To move one arm, name only its parts: the other holds its last command.

## Limits

> [!WARNING]
>
> **No arm against arm check by default.** Arms that touch play, and the sim decides what happens. An env can opt in. `contract_arms(..., hand_clearance=0.08)` vetoes a call on which the hands come closer than 8 cm, but cannot see elbows. `Composite(..., clash=...)` takes any check of the arms' planned paths, such as one that poses both arms in the env's own model. A check fails open: an error logs a warning and the call plays. Without one, the task prompt should say the arms can collide.

* The first arm to fail a check vetoes the call for both, and the reason names that part.
* Each arm's own limits apply: controller bounds and speeds for contract arms, and whatever an env's own embodiment checks for a modelled arm.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.