# Genesis Panda IK, motion planning and grasp example

Genesis World Python tutorial that solves Panda arm inverse kinematics, plans a joint path, controls joint position and gripper force, and lifts a simulated cube. The original script initializes a CPU simulation and opens a viewer at module top level; this record supplies inert source metadata only.

ID: `genesis-ik-motion-planning-grasp`

Record version: `source-985537566f01642631648e196311c51a01063778c436861be6eecd9d7fbb27e5`

Hub commit: `1c4c1e1533ff364fd4a35cddc8750b9306b0a5ba`

## Access

Read the pinned source and upstream setup before use. This maintainer-reviewed source reference does not install or execute code.

Optional inert file retrieval: `python /PATH_TO_SKILL/scripts/rsh.py fetch-source genesis-ik-motion-planning-grasp --expected-source-revision 50a2aa19cba6f3e1afdceb0fac239a56a0ef5502 --expected-source-sha256 985537566f01642631648e196311c51a01063778c436861be6eecd9d7fbb27e5 --project ./experiment --json`. This verifies one file, preserves provenance and never installs or runs it. See [source-file retrieval](https://hub.superfastrobotics.com/source-files.md).

Hub preparation adapter: **false**. Runtime verification: **not_run**.

Upstream setup: https://github.com/Genesis-Embodied-AI/genesis-world/blob/50a2aa19cba6f3e1afdceb0fac239a56a0ef5502/README.md

## Source and license

- Repository: https://github.com/Genesis-Embodied-AI/genesis-world
- Pinned source: https://github.com/Genesis-Embodied-AI/genesis-world/blob/50a2aa19cba6f3e1afdceb0fac239a56a0ef5502/examples/tutorials/IK_motion_planning_grasp.py
- Revision: `50a2aa19cba6f3e1afdceb0fac239a56a0ef5502`
- Path: `examples/tutorials/IK_motion_planning_grasp.py`
- Source SHA256: `985537566f01642631648e196311c51a01063778c436861be6eecd9d7fbb27e5`
- Source bytes: 2508
- Original authors: Genesis Authors
- License: [Apache-2.0](https://github.com/Genesis-Embodied-AI/genesis-world/blob/50a2aa19cba6f3e1afdceb0fac239a56a0ef5502/LICENSE)
- License scope: Selected Python tutorial source under the pinned Genesis repository Apache-2.0 declaration. Preserve upstream attribution, license and applicable notices when redistributing. Robot descriptions, meshes, binaries and third-party dependencies retain their own terms and were not cleared by this source review.

## Artifact

```json
{
  "kind": "code",
  "format": "python"
}
```

## Requirements

```json
{
  "python": ">=3.10,<3.14 (upstream README declaration; untested)",
  "packages": [
    "Genesis World from the pinned upstream checkout with its required dependencies",
    "PyTorch installed for the intended platform before Genesis, as declared in the pinned README",
    "numpy"
  ],
  "hardware": [],
  "system": [
    "CPU simulation backend explicitly selected by the source",
    "Working graphics and display environment for show_viewer=True",
    "Upstream Panda MJCF and adjacent assets required by xml/franka_emika_panda/panda.xml"
  ],
  "notes": "The source explicitly calls gs.init(backend=gs.cpu), provides no CPU/GPU command-line switch, and creates a viewer-enabled scene with dt=0.01. It loads the Panda model, configures nine DOF gains and force limits, solves pre-grasp/reach/lift IK, plans and draws a joint path, commands arm/finger positions, applies finger force and advances the simulation. PYTEST_VERSION shortens the default 200-waypoint path and later loops; that branch is not runtime evidence. A lone copy of this Python file is insufficient: model XML, meshes, a suitable Genesis/PyTorch installation and graphics support are needed. The model assets, their licenses and exact planning backend/package internals were not reviewed. README CPU/CUDA installation options and Python bounds are upstream declarations; no operating system, package versions, timing or simulator combination was resolved or tested."
}
```

## Invocation

```json
{
  "entrypoint": "python examples/tutorials/IK_motion_planning_grasp.py",
  "notes": "Upstream invocation after configuring the pinned checkout, dependencies, Panda assets and viewer environment. There is no main guard; importing or executing the original file initializes the simulator, opens the viewer and runs the simulation control sequence. The selected file has no hardware controller connection. Library initialization and transitive effects were not exhaustively audited. The Hub supplies no execution/preparation adapter, installs no package and claims no successful grasp, collision safety, physical-robot compatibility or measured runtime."
}
```

## Compatibility

```json
[]
```

Missing environment fields remain unknown. Source discovery labels do not establish robot compatibility.

## Evidence

Level: **source_reviewed**. Runtime verification: **not_run**.

Complete pinned source read and SHA-256 checked as inert text; Python AST parsed without importing or executing it. Source, Apache-2.0 license and setup README Git blob IDs and sizes matched the immutable, nontruncated upstream tree. Source effects and setup bounds are observations, not tested compatibility. No simulator, upstream package, controller or GPU was executed.

Source review and contributor reports do not establish task completion. Preserve upstream attribution and licenses.
