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

# DEEPRobotics DR02 Pro Humanoid (read-only joint state)

> The DEEPRobotics DR02 Pro Humanoid (read-only joint state) as GRID drives it

The DEEPRobotics DR02 Pro Humanoid (read-only joint state) as GRID drives it — what this robot actually implements, with the signatures it actually accepts.

`make_robot("<name>")` returns a `RemoteRobot`. Its attributes are the methods and subcomponents below, and every call runs on the robot; the driver behind it is `Dr02`. Connecting neither starts nor moves the robot — it attaches to one that is already up. A method that fails on the robot arrives as `RuntimeError` naming the original error in its message. The client packages this page uses are preinstalled in every GRID session workspace and in the Python environment the GRID CLI prepares when you run a program with `skill run`; there is nothing to install.

```python theme={null}
from grid_nexus_client import make_robot

robot = make_robot("<dr02-name>")
```

## Methods on the robot

Called as `robot.<method>(...)`.

### `getImage()`

```python Signature theme={null}
getImage(camera_name: str = '', **kwargs) -> Image
```

Return the image of camera.

Which camera a no-argument call reads is decided by cardinality
alone — no robot, config, or class declares a default. A robot with
exactly one camera needs no name; a robot with several requires one,
so adding a second camera never silently changes which one a bare
`getImage()` returns.

**camera\_name** `str` (default: '')

Name of the camera to get image from — either a directly attached camera's name or a `/`-separated path through subcomponents to a nested one (`left_arm/wrist`). May be omitted when the robot has exactly one camera.

\*\***kwargs**

Forwarded to the underlying sensor's `getImage`. Lets callers pass camera-specific options (e.g. `image_type="depth"`, `compressed=False`) without the base class having to enumerate them.

**Returns:**

Image: The captured image.

**Raises:**

RuntimeError: If no cameras are configured, or the name is
omitted on a robot with more than one camera; the message
lists every configured camera path.
KeyError: If camera\_name is given but names no camera on this robot.

### `getJointAngles()`

```python Signature theme={null}
getJointAngles() -> List[float]
```

Read all 31 joint angles in canonical DR02 order.

The order is waist (z, x, y); left arm, then right arm (shoulder y, x,
z, elbow, wrist z, y, x); left leg, then right leg (hip y, x, z, knee,
ankle y, x); neck (y, z). The neck joints are locked, and their values
depend on the topic (see the class description).

**Returns:**

The 31 joint angles in radians.

**Raises:**

RuntimeError: If no packet has been received.
StaleStateError: If the newest packet is older than `max_age_s`.
ValueError: If the packet is malformed.

### `getLidarPointCloud()`

```python Signature theme={null}
getLidarPointCloud(lidar_name: str = '') -> Optional[PointCloud]
```

Get a point cloud from the named LiDAR sensor.

**lidar\_name** `str` (default: '')

Name of the lidar. If empty, uses the first available lidar.

**Returns:**

Optional\[PointCloud]: The point cloud, or None if lidar not found

### `getOrientation()`

```python Signature theme={null}
getOrientation() -> Optional[Orientation]
```

Report the world-frame orientation: unknown, as this driver has no source for it.

DR02 has no base pose source, so this always returns None; it never
means "not yet".

**Returns:**

Always None.

### `getPosition()`

```python Signature theme={null}
getPosition() -> Optional[Position]
```

Report the world-frame position: unknown, as this driver has no source for it.

DR02 has no base pose source, so this always returns None; it never
means "not yet".

**Returns:**

Always None.

### `getState()`

```python Signature theme={null}
getState(keys: Optional[Union[str, List[str]]] = None) -> Dict[str, Any]
```

Get a live state snapshot of this component's tree.

Recursive walk owned by the base class, following the lifecycle
template: each class contributes only the protected local hook
`_local_state`, and the walk composes the per-component
results into one nested mapping. Subclasses must not replace
this method — per-component state belongs in `_local_state`.

With no `keys`, returns this component's local state merged
with one nested node per subcomponent name — the tree structure
is the nesting itself, and the names mirror `subcomponents`
(and therefore `serialize()` and edge introspection): a
two-arm rig returns `&#123;"left_arm": &#123;"joint_positions": ...&#125;,
"right_arm": &#123;...&#125;&#125;`, and a leaf component returns its local
state alone. A component whose state could not be read (dead
telemetry, not yet started, already shut down) carries an
`"error"` entry — `&#123;"error": "&lt;ExceptionType>: &lt;message>"&#125;`,
with its children still nested alongside — instead of its state
keys. Errors are contained per node: one failing component never
loses the rest of the snapshot, and the walk still descends into
the failing component's children. `"error"` is reserved for
that purpose, and local state keys must not collide with
subcomponent names; a hook violating either is reported as that
node's error.

With `keys`, returns a flat mapping with one entry per match.
Each key is a `/`-separated path through the component tree:
every segment names a subcomponent, and the final segment may
instead name an entry in that component's local state. Because
structure is the nesting, a literal path is the same as plain
indexing — `getState(["left_arm/joint_positions"])` returns
the value of `getState()["left_arm"]["joint_positions"]` — and
a path ending on a subcomponent yields that component's full
nested node. Segments may use shell-style wildcards over
subcomponent names — `*` matches within one chunk and `**`
matches any chain of chunks — so `"*_arm/joint_positions"`
fans out to one entry per arm, keyed by the concrete matched
path. Wildcards never match state entries; only a literal final
segment does. A key that matches nothing raises, so a typo is
loud rather than silently absent. A matched component whose
state read failed yields `&#123;"error": "..."&#125;` at its path.

Keyed reads are lazy: a hook runs only where a key lands — a
literal path executes the final component's hook alone (not the
nodes traversed on the way), a glob executes only the matched
nodes, and each component's hook runs at most once per call
however many keys reach it. Components with a selective-read
hook (`_local_state_entries` — every `Robot` with
registered state getters) go further and execute only the getters a key names, so
a `**` glob probes their registries without touching
hardware. The caller pays only for the state actually
requested; `**` and the no-`keys` form visit the whole tree
because that is the request.

State is cheap by convention: local state carries kinematics,
status, and health — never bulk sensor payloads (camera frames,
point clouds, scans), which stay in their dedicated methods
(`getImage`, `getPointCloud`, ...). Callable on a stopped
tree — reading state after a soft e-stop is when it matters most
— and on a partially started one, where unstarted components
report a per-node error instead of failing the call.

**keys**

State paths to read, or None for the full nested snapshot. A single string is shorthand for a one-element list.

**Returns:**

The nested state snapshot when `keys` is None, otherwise a
flat mapping of matched path to state value or nested node.

**Raises:**

TypeError: If `keys` is neither None, a string, nor a
list/tuple of strings.
ValueError: If a key is empty, has an empty path segment, or
matches no subcomponent path or state entry.

### `setDefaultJointAngles()`

```python Signature theme={null}
setDefaultJointAngles(joint_pos: list) -> None
```

Set the default joint position for the robot.

**joint\_pos** *required*

Value of the joint position.

### `setDefaultJointVelocities()`

```python Signature theme={null}
setDefaultJointVelocities(joint_vel: list) -> None
```

Set the default joint velocity for the robot.

**joint\_vel** *required*

Value of the joint velocity.

### `stop()`

```python Signature theme={null}
stop() -> None
```

Halt all motion across this component's tree (soft e-stop).

Recursive walk owned by the base class: every subcomponent is
stopped first (children before their parent, leaf-to-root;
siblings in `subcomponents` insertion order), then this
component's own `_stop_self` hook runs. The walk is
best-effort — a failing component never prevents the rest of the
tree from being stopped; failures are collected and raised
together after the walk completes. Components (and their
subtrees) that have already been shut down are skipped. Safe to
call repeatedly: stopping an already-stopped tree re-runs the
hooks, which must tolerate that. Blocks until every hook has
returned.

Stops motion only; resources stay live and the component remains
usable — telemetry and every other public method keep working on a
stopped tree. Use `shutdown` to release resources. Stopping
re-arms each visited component, so a later `start` re-runs
the bring-up hooks — that is the stop-then-start restart path —
but it does not revoke callability: only `shutdown` does
that.

Subclasses must not replace this method — per-component stop
behavior belongs in `_stop_self`. An override may only
*extend* the walk (adding a driver-specific mode, as `UR5e` does
with its `immediate` escape hatch) and must delegate to
`super().stop()` for the normal path; it must never
re-implement the recursion.

**Raises:**

ComponentStopError: If one or more stop hooks raised. The
walk still visited every component; the exception carries
every `(component_path, exception)` pair.

## robot.left\_arm — arm

Reached as `robot.left_arm`; its methods are `Dr02Arm`'s and run on the robot.

One 7-joint DR02 arm whose joint state can be read. It cannot be commanded.

Methods inherited from the component base are shown in brief here; their full descriptions are under *Methods on the robot* above.

### `left_arm.addNamedPose()`

```python Signature theme={null}
left_arm.addNamedPose(pose_name: str, joint_angles: List[float]) -> None
```

Define a pose\_name:joint\_angles pair in the dictionary of named poses

### `left_arm.endJog()`

```python Signature theme={null}
left_arm.endJog() -> None
```

Leave jog mode; does nothing by default.

### `left_arm.getImage()`

```python Signature theme={null}
left_arm.getImage(camera_name: str = '', **kwargs) -> Image
```

Return the image of camera.

### `left_arm.getJointAngles()`

```python Signature theme={null}
left_arm.getJointAngles() -> List[float]
```

Read this arm's 7 joint angles, shoulder to wrist.

The order is shoulder y, x, z, elbow, wrist z, y, x.

**Returns:**

The 7 joint angles in radians.

**Raises:**

RuntimeError: If no packet has been received.
StaleStateError: If the newest packet is older than the parent's
`max_age_s`.
ValueError: If the packet is malformed.

### `left_arm.getLidarPointCloud()`

```python Signature theme={null}
left_arm.getLidarPointCloud(lidar_name: str = '') -> Optional[PointCloud]
```

Get a point cloud from the named LiDAR sensor.

### `left_arm.getNamedPose()`

```python Signature theme={null}
left_arm.getNamedPose(pose_name: str) -> Optional[List[float]]
```

Get the list of joint angles corresponding to a named pose.

### `left_arm.getState()`

```python Signature theme={null}
left_arm.getState(keys: Optional[Union[str, List[str]]] = None) -> Dict[str, Any]
```

Get a live state snapshot of this component's tree.

### `left_arm.jogHomeEnabled()`

```python Signature theme={null}
left_arm.jogHomeEnabled() -> bool
```

Report whether the jogger may send the arm home: never, in this release.

**Returns:**

Always False.

### `left_arm.manualPositioningMode()`

```python Signature theme={null}
left_arm.manualPositioningMode() -> Optional[ManualPositioningMode]
```

Report the mode a calibration run starts in.

### `left_arm.removeNamedPose()`

```python Signature theme={null}
left_arm.removeNamedPose(pose_name: str) -> Optional[List[float]]
```

Remove a named pose from the dictionary of pose\_name:joint\_angles pairs.

### `left_arm.startJog()`

```python Signature theme={null}
left_arm.startJog() -> None
```

Prepare the arm for a calibration run's jog mode.

### `left_arm.stop()`

```python Signature theme={null}
left_arm.stop() -> None
```

Halt all motion across this component's tree (soft e-stop).

### `left_arm.supportsPositioningMode()`

```python Signature theme={null}
left_arm.supportsPositioningMode(mode: ManualPositioningMode) -> bool
```

Report whether a calibration run may use `mode`.

### `left_arm.validateGrasp()`

```python Signature theme={null}
left_arm.validateGrasp() -> bool
```

Check whether the end effector is currently holding an object.

## robot.right\_arm — arm

Reached as `robot.right_arm`; its methods are `Dr02Arm`'s and run on the robot.

One 7-joint DR02 arm whose joint state can be read. It cannot be commanded.

Methods inherited from the component base are shown in brief here; their full descriptions are under *Methods on the robot* above.

### `right_arm.addNamedPose()`

```python Signature theme={null}
right_arm.addNamedPose(pose_name: str, joint_angles: List[float]) -> None
```

Define a pose\_name:joint\_angles pair in the dictionary of named poses

### `right_arm.endJog()`

```python Signature theme={null}
right_arm.endJog() -> None
```

Leave jog mode; does nothing by default.

### `right_arm.getImage()`

```python Signature theme={null}
right_arm.getImage(camera_name: str = '', **kwargs) -> Image
```

Return the image of camera.

### `right_arm.getJointAngles()`

```python Signature theme={null}
right_arm.getJointAngles() -> List[float]
```

Read this arm's 7 joint angles, shoulder to wrist.

The order is shoulder y, x, z, elbow, wrist z, y, x.

**Returns:**

The 7 joint angles in radians.

**Raises:**

RuntimeError: If no packet has been received.
StaleStateError: If the newest packet is older than the parent's
`max_age_s`.
ValueError: If the packet is malformed.

### `right_arm.getLidarPointCloud()`

```python Signature theme={null}
right_arm.getLidarPointCloud(lidar_name: str = '') -> Optional[PointCloud]
```

Get a point cloud from the named LiDAR sensor.

### `right_arm.getNamedPose()`

```python Signature theme={null}
right_arm.getNamedPose(pose_name: str) -> Optional[List[float]]
```

Get the list of joint angles corresponding to a named pose.

### `right_arm.getState()`

```python Signature theme={null}
right_arm.getState(keys: Optional[Union[str, List[str]]] = None) -> Dict[str, Any]
```

Get a live state snapshot of this component's tree.

### `right_arm.jogHomeEnabled()`

```python Signature theme={null}
right_arm.jogHomeEnabled() -> bool
```

Report whether the jogger may send the arm home: never, in this release.

**Returns:**

Always False.

### `right_arm.manualPositioningMode()`

```python Signature theme={null}
right_arm.manualPositioningMode() -> Optional[ManualPositioningMode]
```

Report the mode a calibration run starts in.

### `right_arm.removeNamedPose()`

```python Signature theme={null}
right_arm.removeNamedPose(pose_name: str) -> Optional[List[float]]
```

Remove a named pose from the dictionary of pose\_name:joint\_angles pairs.

### `right_arm.startJog()`

```python Signature theme={null}
right_arm.startJog() -> None
```

Prepare the arm for a calibration run's jog mode.

### `right_arm.stop()`

```python Signature theme={null}
right_arm.stop() -> None
```

Halt all motion across this component's tree (soft e-stop).

### `right_arm.supportsPositioningMode()`

```python Signature theme={null}
right_arm.supportsPositioningMode(mode: ManualPositioningMode) -> bool
```

Report whether a calibration run may use `mode`.

### `right_arm.validateGrasp()`

```python Signature theme={null}
right_arm.validateGrasp() -> bool
```

Check whether the end effector is currently holding an object.

## Not implemented on this robot

Declared by the interface, raises `NotImplementedError` here: `moveByVelocity`, `setJointAngles`, `left_arm.endFreeDrive`, `left_arm.followJointTrajectory`, `left_arm.getEndEffectorPose`, `left_arm.getOrientation`, `left_arm.getPose`, `left_arm.getPosition`, `left_arm.grasp`, `left_arm.moveToDeltaPose`, `left_arm.moveToHome`, `left_arm.moveToNamedPose`, `left_arm.moveToPose`, `left_arm.release`, `left_arm.setJointAngles`, `left_arm.startFreeDrive`, `right_arm.endFreeDrive`, `right_arm.followJointTrajectory`, `right_arm.getEndEffectorPose`, `right_arm.getOrientation`, `right_arm.getPose`, `right_arm.getPosition`, `right_arm.grasp`, `right_arm.moveToDeltaPose`, `right_arm.moveToHome`, `right_arm.moveToNamedPose`, `right_arm.moveToPose`, `right_arm.release`, `right_arm.setJointAngles`, `right_arm.startFreeDrive`.

## Lifecycle and configuration

The driver's own bring-up and configuration hooks. The edge runs them when the robot comes up; do not call them from a program. Note that `robot.shutdown()` on the proxy is not the method below — it is `RemoteRobot.shutdown()`, which closes your connection and leaves the robot as it was.

* `addSensor()` — Add an external sensor to the robot.
* `addSubcomponent()` — Attach a child component under a name.
* `builtin_subcomponents()` — Declare the children this class always ships with (customization point).
* `configHash()` — Hash this component's serialized config subtree.
* `config_schema()`
* `from_config()` — Construct this component and its config-declared subtree.
* `getIdentity()` — Get this component's own hardware identity (serial, model, version, MAC).
* `getRobotId()` — Stable, readable identifier for a robot or rig, for a database key.
* `serialize()` — Serialize this component tree back to its config envelope.
* `setup_shutdown_handlers()` — Register the process-wide atexit and signal handlers for safe teardown.
* `shutdown()` — Shut down this component's tree, halting motion and releasing resources.
* `start()` — Bring this component's tree online (connect, enable, arm).

The contract these methods implement is **Robot interface**; values returned are **grid-types** (camera reads return `Image` — call [`decode()`](https://docs.generalrobotics.dev/python-api/grid-types/image) for an ndarray). You reach the robot through [`make_robot`](https://docs.generalrobotics.dev/python-api/grid-nexus-client/make_robot).


## Related topics

- [Python APIs](https://docs.generalrobotics.dev/python-api/overview.md)
- [Humanoid](https://docs.generalrobotics.dev/python-api/robot-interface/humanoid.md)
- [Ghost Robotics Vision60](https://docs.generalrobotics.dev/python-api/vision60/vision60.md)
- [Ghost Robotics Vision60 + Ghost Arm](https://docs.generalrobotics.dev/python-api/vision60-arm/vision60witharm.md)
- [Galaxea R1 Pro Mobile Manipulator](https://docs.generalrobotics.dev/python-api/r1pro/galaxear1pro.md)


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