Skip to content

Examples

Example code and tutorials for EmbodiK.

Not sure where to start?

New to the API โ†’ Quickstart and Basic IK. Teleop stalls or weak tracking โ†’ Solver Robustness & Recovery. Collision latency or safety โ†’ Collision Constraints & Tuning. Full guide map โ†’ Guides overview.

๐Ÿงญ Core Guides

โญ Highlighted Scripts

These are the public examples that are kept closest to release quality and are the best starting points for users.

Highlighted interactive examples use a shared solver runtime policy so example code stays focused on tasks, targets, and visualization while robust constraint handling remains in C++. Viser examples share the same default browser endpoint, http://localhost:8080; pass --port when running multiple viewers at once.

๐Ÿงช Specialized References

These scripts remain available in a repository checkout or copied example bundle, but they are narrower benchmarks or API walkthroughs rather than the main demo path.

๐Ÿš€ Running Examples

Install and copy the example bundle once using the Installation Guide. Then run scripts from the copied embodik_examples directory:

cd embodik_examples
python3 01_basic_ik_simple.py
python3 03_teleop_ik.py

If pip downloads embodik-*.tar.gz or fails while finding native CMake packages, use the source-build fallback in the Installation Guide.

Examples default to the Panda preset; use --robot <key> to switch models.

For repository development, use Pixi:

pixi run python examples/01_basic_ik_simple.py
pixi run python examples/03_teleop_ik.py

Pass --robot <key> when you want a non-default robot preset.

๐Ÿงฐ Example Helpers

The examples/example_helpers/ directory contains reusable utilities:

  • ik_common.py โ€” Shared defaults and small IK/collision helper functions
  • teleop_ik_backend.py โ€” Reusable registered-task IK backend for the teleop example
  • common_bimanual_model_utils.py / common_bimanual_teleop_app.py โ€” Shared bimanual whole-body IK helpers for public robot examples
  • dual_arm_ik_helper.py โ€” Dual-arm IK utilities
  • g1_model_utils.py / g1_ik_runtime.py โ€” Unitree G1 model, retargeting, and IK runtime helpers
  • limit_profiles/ โ€” Joint limit profile configurations