Skip to main content

Holosoma Inference

Policy inference for humanoid robot policies.

Supported Policies

Robot Locomotion WBT
Unitree G1 ✅ ✅
Booster T1 ✅ ❌
Simulator Locomotion WBT
IsaacSim ✅ ✅
MuJoCo (inference only) ✅ ✅
  • ✅ (full support)
  • 🚧 (in progress/partial support)
  • ❌ (no support)

Built-in Python policies and run_policy use the shared native C++ engine. The in-process library guide covers the device-free Python API, explicit transport injection, live-reference WBT, and CMake consumers. The standalone C++ executable remains in holosoma_cpp.

Quick Start

Setup the Environment

cd ~/holosoma
bash scripts/setup_inference.sh             # Create a virtual environment with all dependencies
source scripts/source_inference_setup.sh    # Activate the virtual environment

Choose Your Workflow

Select the appropriate workflow guide based on your setup:

Real Robot Deployment

Simulation (MuJoCo)

Each workflow guide includes:

  • Hardware/environment setup instructions
  • Step-by-step commands
  • Control references
  • Deployment options (offboard/onboard/Docker)
  • Troubleshooting tips

Policy Controls

Commands for controlling policies during execution.

Important: All policy controls that use keyboard should be entered in the policy terminal (where you ran run_policy.py), not in the MuJoCo window. MuJoCo has separate controls for simulation (see workflow docs).

General Controls

Action Keyboard Joystick
Start the policy ] A button
Stop the policy o B button
Set robot to default pose i Y button
Kill controller program - L1 (LB) + R1 (RB)

Locomotion (Velocity Tracking)

Action Keyboard Joystick
Switch walking/standing = Start button
Adjust linear velocity w a s d Left stick
Adjust angular velocity q e Right stick

Default pose: Standing pose

Whole-Body Tracking

Action Keyboard Joystick
Start the policy ] A button
Start motion clip m Select+A

Default pose: Standing with raised arms

Joystick-Only Features

  • Select button: Switch between policies (when multiple policies are loaded)

Configuration Overrides

Loading ONNX Checkpoints from Wandb

You can load ONNX checkpoints directly from Wandb without manually downloading them first. This is useful for quickly testing models from training runs.

Syntax:

--task.model-path wandb://entity/project_name/run_id/model.onnx

Example with G1 locomotion:

source scripts/source_inference_setup.sh
python3 src/holosoma_inference/holosoma_inference/run_policy.py inference:g1-29dof-loco \
    --task.model-path wandb://my-username/my-project/run-abc123/fastsac_g1_29dof.onnx \
    --task.use-joystick \
    --task.interface eth0

Example with Wandb HTTPS URL:

python3 src/holosoma_inference/holosoma_inference/run_policy.py inference:g1-29dof-loco \
    --task.model-path https://wandb.ai/username/project/runs/abc123/files/model.onnx \
    --task.use-joystick \
    --task.interface eth0

The model will be automatically downloaded and cached locally. The entity is your Wandb username or organization name.

Finding Your Network Interface

The --task.interface parameter specifies which network interface to use for communicating with the robot. The correct interface name varies by computer and network card.

Common interface names:

  • eth0 - Common Ethernet interface name
  • enp0s31f6 - Modern Linux Ethernet naming
  • lo - Loopback interface (for sim2sim)

To find your interface name:

ifconfig

Look for the interface connected to your robot's network. For real robot deployments, use the interface with an IP address on the same subnet as your robot. For sim2sim deployments, use lo (loopback).

Observation History Length (> 1)

If a policy was trained with stacked observations (e.g., history length 4), you must pass the same history length at inference time so the observation tensor matches the model's expected input size.

Example:

python3 src/holosoma_inference/holosoma_inference/run_policy.py inference:g1-29dof-wbt \
    --task.model-path <path-to-model>.onnx \
    --task.interface eth0 \
    --observation.history_length_dict.actor_obs=4

The override updates the actor_obs buffer before the ONNX session is initialized, so any policy (locomotion or WBT) can run with longer observation histories as long as the underlying model was trained that way.

Input Sources

The policy supports two independent input channels that can each be set to keyboard, joystick, or ros2:

Channel What it controls CLI flag
velocity_input Continuous velocity commands (linear/angular) --task.velocity-input
state_input Discrete commands: start/stop, walk/stand, kp tuning, policy switching --task.state-input

Shortcuts (backwards compatible)

For the common case where both channels use the same source:

--task.use-joystick    # Sets both channels to joystick
--task.use-keyboard    # Sets both channels to keyboard (this is the default)

Mixed input examples

ROS2 cmd_vel with keyboard commands — velocity from ROS2, operator uses keyboard for start/stop:

python3 src/holosoma_inference/holosoma_inference/run_policy.py inference:g1-29dof-loco \
    --task.model-path <path-to-model>.onnx \
    --task.velocity-input ros2 \
    --task.state-input keyboard \
    --task.interface eth0

Fully autonomous — both channels from ROS2:

python3 src/holosoma_inference/holosoma_inference/run_policy.py inference:g1-29dof-loco \
    --task.model-path <path-to-model>.onnx \
    --task.velocity-input ros2 \
    --task.state-input ros2 \
    --task.interface eth0

ROS2 topics

Topic Message type Channel Description
cmd_vel geometry_msgs/TwistStamped velocity_input Linear (x, y) and angular (z) velocity, clamped to [-1, 1]
holosoma/state_input std_msgs/String state_input Text commands: walk, stand, start, stop, init

Topic names are configurable via --task.ros-cmd-vel-topic and --task.ros-state-input-topic.

Note: Shortcut flags (--task.use-joystick, --task.use-keyboard) cannot be combined with --task.velocity-input or --task.state-input.

Overriding Control Gains

By default, control gains (kp/kd) are loaded from ONNX model metadata. You can override these values in your configuration:

G1 29-DOF with Custom Control Gains

python3 src/holosoma_inference/holosoma_inference/run_policy.py inference:g1-29dof-loco \
    --task.model-path src/holosoma_inference/holosoma_inference/models/loco/g1_29dof/fastsac_g1_29dof.onnx \
    --robot.motor-kp 40.2 99.1 40.2 99.1 28.5 28.5 40.2 99.1 40.2 99.1 28.5 28.5 40.2 28.5 28.5 14.3 14.3 14.3 14.3 14.3 16.8 16.8 14.3 14.3 14.3 14.3 14.3 16.8 16.8 \
    --robot.motor-kd 2.6 6.3 2.6 6.3 1.8 1.8 2.6 6.3 2.6 6.3 1.8 1.8 2.6 1.8 1.8 0.9 0.9 0.9 0.9 0.9 1.1 1.1 0.9 0.9 0.9 0.9 0.9 1.1 1.1

T1 29-DOF with Custom Control Gains

python3 src/holosoma_inference/holosoma_inference/run_policy.py inference:t1-29dof-loco \
    --task.model-path src/holosoma_inference/holosoma_inference/models/loco/t1_29dof/ppo_t1_29dof.onnx \
    --robot.motor-kp 5.0 5.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 200.0 200.0 200.0 200.0 200.0 50.0 50.0 200.0 200.0 200.0 200.0 50.0 50.0 \
    --robot.motor-kd 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 5.0 5.0 5.0 5.0 5.0 3.0 3.0 5.0 5.0 5.0 5.0 3.0 3.0

Note: When control gains are not specified, they will be automatically loaded from the ONNX model metadata. This is the recommended approach as it ensures the gains match those used during training.

Metadata

Release files for holosoma-inference 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for holosoma-inference 0.1.4
File Size Uploaded Provenance Actions
holosoma_inference-0.1.4.tar.gz 8.8 MB Without provenance Details for holosoma_inference-0.1.4.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for holosoma-inference 0.1.4
File Actions
holosoma_inference-0.1.4-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for holosoma_inference-0.1.4-cp313-cp313-manylinux_2_28_x86_64.whl
holosoma_inference-0.1.4-cp313-cp313-manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64 Details for holosoma_inference-0.1.4-cp313-cp313-manylinux_2_28_aarch64.whl
holosoma_inference-0.1.4-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for holosoma_inference-0.1.4-cp312-cp312-manylinux_2_28_x86_64.whl
holosoma_inference-0.1.4-cp312-cp312-manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64 Details for holosoma_inference-0.1.4-cp312-cp312-manylinux_2_28_aarch64.whl
holosoma_inference-0.1.4-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details for holosoma_inference-0.1.4-cp311-cp311-manylinux_2_28_x86_64.whl
holosoma_inference-0.1.4-cp311-cp311-manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ ARM64 Details for holosoma_inference-0.1.4-cp311-cp311-manylinux_2_28_aarch64.whl
holosoma_inference-0.1.4-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details for holosoma_inference-0.1.4-cp310-cp310-manylinux_2_28_x86_64.whl
holosoma_inference-0.1.4-cp310-cp310-manylinux_2_28_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ ARM64 Details for holosoma_inference-0.1.4-cp310-cp310-manylinux_2_28_aarch64.whl

Total release size: 352.4 MB

Release files / holosoma_inference-0.1.4.tar.gz

Download URL holosoma_inference-0.1.4.tar.gz
Size 8.8 MB
Tags Source
SHA-256 checksum
How to use checksums
a662f9697118639c32afe98d370cc1946e8dbe7f665873db7f4deaabf8978348
BLAKE2b-256 checksum
How to use checksums
c911c192ee8772dc708cb8151ffdfed3fe2dfd18800e251ef13674143f5857f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / holosoma_inference-0.1.4-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL holosoma_inference-0.1.4-cp313-cp313-manylinux_2_28_x86_64.whl
Size 44.5 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
dc052bba8f141c6eccd2ecbdecd51b2c100c21a9cf8b1810b39fefc56b4b41d3
BLAKE2b-256 checksum
How to use checksums
bec4f59d0ca4136d70c4e194d621a817ebe0084be9f0208224b9e3b993b4419b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / holosoma_inference-0.1.4-cp313-cp313-manylinux_2_28_aarch64.whl

Download URL holosoma_inference-0.1.4-cp313-cp313-manylinux_2_28_aarch64.whl
Size 41.4 MB
Tags CPython 3.13 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
4a638b88e0eece2a6b0670222d9800a3d6089869b4c0ba1777ed28f6abd3423b
BLAKE2b-256 checksum
How to use checksums
19848bcd2fd34ff2393541b87961a4b1222be703b0e651193a897fecb6d92007
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / holosoma_inference-0.1.4-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL holosoma_inference-0.1.4-cp312-cp312-manylinux_2_28_x86_64.whl
Size 44.5 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
6e5b471eb1113886c4fcb4cf77d99c50c2b1977a6557fe2d7f60a47bb1b1e168
BLAKE2b-256 checksum
How to use checksums
33d3d1011907759a668f1e5617df8f946c6ee74043bcbf44eca236d2054431b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / holosoma_inference-0.1.4-cp312-cp312-manylinux_2_28_aarch64.whl

Download URL holosoma_inference-0.1.4-cp312-cp312-manylinux_2_28_aarch64.whl
Size 41.4 MB
Tags CPython 3.12 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
6352f5e9cdc2621617452ceb34ccfa81e3e9e810e407ce41789537506591a73d
BLAKE2b-256 checksum
How to use checksums
2d4b7c348dd4d6afd4eaa420ea480290cb171c299d7c2ef64c8ca057a46d38f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / holosoma_inference-0.1.4-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL holosoma_inference-0.1.4-cp311-cp311-manylinux_2_28_x86_64.whl
Size 44.5 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
209f74c6987d5c1755826401aab222a06ba5eb0dba48a9237d4a3ca64738d447
BLAKE2b-256 checksum
How to use checksums
6e55a781e4b87ec2ba2a07d365bae8a834bd1ab30acfeb25ae5b7707c33f389f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / holosoma_inference-0.1.4-cp311-cp311-manylinux_2_28_aarch64.whl

Download URL holosoma_inference-0.1.4-cp311-cp311-manylinux_2_28_aarch64.whl
Size 41.4 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
ba7ed20ae870e8e002751e269ce5bc7dc5e9fa0f3cc77802740793dc3a4b4024
BLAKE2b-256 checksum
How to use checksums
ba8b15e644afef33f98145cf414cb4bcf493d8d4d37c0106d43e91a61827c21c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / holosoma_inference-0.1.4-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL holosoma_inference-0.1.4-cp310-cp310-manylinux_2_28_x86_64.whl
Size 44.5 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
6c49ae3502e74cf94d84f5083cec267e75cca562d6c74feb487e4ac2b2c2040f
BLAKE2b-256 checksum
How to use checksums
a6b5a267a976e88b523f038e1e01b88f24e050d7ae190ace07e6868e5c7a8386
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / holosoma_inference-0.1.4-cp310-cp310-manylinux_2_28_aarch64.whl

Download URL holosoma_inference-0.1.4-cp310-cp310-manylinux_2_28_aarch64.whl
Size 41.4 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
d6e869eab4d29ff938a3b4358783e32f172385ad8bb9af64cdf3b6e00f759537
BLAKE2b-256 checksum
How to use checksums
c9afca78790f18ace1d8efbeafe24896221505d0a6f305c4b3fa7c5748e97c31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for holosoma-inference 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page