# Klampt inverse kinematics helpers (library source)

Klampt package module defining IK objectives, native solver wrappers, residual/Jacobian access, and local, random-restart and nearby solving for caller-provided robot models. This is library source, not a standalone executable or completed robot task.

ID: `klampt-ik-library`

Record version: `source-d6256c944f0be7510c0e1e3428320f9ff15ffbfa19aa3a9528ec5fc3e3576172`

Hub commit: `1c4c1e1533ff364fd4a35cddc8750b9306b0a5ba`

## Access

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

Optional inert file retrieval: `python /PATH_TO_SKILL/scripts/rsh.py fetch-source klampt-ik-library --expected-source-revision 371bb98478eb5edf170dc21c8c3f0aa200ce7bac --expected-source-sha256 d6256c944f0be7510c0e1e3428320f9ff15ffbfa19aa3a9528ec5fc3e3576172 --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/krishauser/Klampt/blob/371bb98478eb5edf170dc21c8c3f0aa200ce7bac/README.md

## Source and license

- Repository: https://github.com/krishauser/Klampt
- Pinned source: https://github.com/krishauser/Klampt/blob/371bb98478eb5edf170dc21c8c3f0aa200ce7bac/Python/klampt/model/ik.py
- Revision: `371bb98478eb5edf170dc21c8c3f0aa200ce7bac`
- Path: `Python/klampt/model/ik.py`
- Source SHA256: `d6256c944f0be7510c0e1e3428320f9ff15ffbfa19aa3a9528ec5fc3e3576172`
- Source bytes: 28004
- Original authors: Klampt contributors
- License: [BSD-3-Clause](https://github.com/krishauser/Klampt/blob/371bb98478eb5edf170dc21c8c3f0aa200ce7bac/LICENSE)
- License scope: Selected Python library source under the pinned repository BSD-3-Clause license, copyright 2025 the Trustees of University of Illinois. Retain copyright, conditions and disclaimer and respect the non-endorsement clause. Models, meshes, binaries and third-party dependencies remain outside this review.

## Artifact

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

## Requirements

```json
{
  "python": null,
  "packages": [
    "Complete compatible Klampt Python package with compiled robotsim bindings and sibling modules"
  ],
  "hardware": [],
  "system": [
    "Caller-provided robot models and configured IK objectives"
  ],
  "notes": "This module has relative imports and no standalone main entrypoint. Solving and random-start sampling can modify the supplied robot model configuration, including unsuccessful solves. Feasibility callbacks default to true; these wrappers do not independently establish collision clearance. Generalized object/link IK is documented as unimplemented, and nearby solving restricts to one robot. Tuple annotations are used without an explicit typing.Tuple import in this file; whether wildcard imports provide that symbol was not investigated. Native imports, transitive effects, model assets and solver correctness remain untested. The pinned README declares pip install klampt, but no exact Python/native-package or robot-model combination was resolved or tested."
}
```

## Invocation

```json
{
  "entrypoint": "Library API: klampt.model.ik.objective / solver / solve / solve_global / solve_nearby",
  "notes": "Use within a separately configured Klampt application with caller-provided models and objectives. Do not run this relative-import file as a standalone script or treat a fetched copy as a runnable task. The Hub supplies inert source metadata and no preparation/execution adapter. No upstream module was imported or executed, and no successful IK, collision clearance or physical-controller compatibility is claimed."
}
```

## Compatibility

```json
[]
```

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

## Evidence

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

Complete module read as inert text and Python AST parsed without importing or executing it. Source, applicable license and setup README SHA-256, byte sizes and Git blob IDs matched the immutable nontruncated tree. This establishes a library source reference, not runtime, asset clearance or robot compatibility.

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