Skip to main content

Cadenza Lab - The SDK to build in physical AI

Project description

Cadenza

Run and deploy complex robot actions with a simple Python SDK.

FeaturesQuickstartProjectsCLIDeploy

Cadenza Demo

Cadenza lets you simply write complex motion-targeted code and deploy on MuJoCo or hardware for Unitree Go1 (quadruped) and G1 (humanoid) robots.

Our pip package: Cadenza Lab

⭐ Features

Action Library

  • 41 motor-level primitives across Go1 (21 actions) and G1 (20 actions) — joint targets, PD gains, and torque limits sourced directly from URDF
  • Phase-based actions: stand, sit, lie down, stand up, jump, rear up, shake hand
  • Gait-based actions: walk, trot, crawl, pace, bound, climb, turn, sidestep
  • Composable: run actions sequentially or concurrently in a single call
  • Parameterized: every action accepts speed, extension, distance_m, and repeat

Simulation

  • MuJoCo simulator built in — test any action sequence before touching hardware
  • Natural language commands: cadenza sim go1 "walk forward then jump" just works
  • VLA Guardian: SmolVLM-256M watches the forward camera and injects avoidance actions when obstacles appear

Deploy

  • SSH deploy: upload and run a script on the robot's onboard computer
  • DDS direct: send motor commands from your laptop over DDS (same network)
  • Bridge mode: run heavy compute on your laptop, lightweight actions on the robot

⚡ Quickstart

git clone https://github.com/aparekh02/cadenza.git
cd cadenza

python -m venv .venv
source .venv/bin/activate
pip install -e .

Run the demo — the Go1 stands, walks 2m, arcs through a turn, jumps, and sits:

mjpython example.py

Python API

import cadenza

go1 = cadenza.go1()
go1.run([
    go1.stand(),
    go1.walk_forward(speed=1.5, distance_m=2.0),
    [go1.turn_left(), go1.walk_forward()],   # concurrent: walking arc
    go1.jump(speed=2.0, extension=1.2),
    go1.sit(),
])

G1 Humanoid

g1 = cadenza.g1()
g1.run([
    g1.stand(),
    g1.walk_forward(speed=0.3, distance_m=1.0),
    g1.crouch(),
    g1.lift_left_hand(),
    g1.stand(),
])

🤖 Free Projects

Community projects built with Cadenza. Add yours via a pull request.

Project Robot Description Link
Go1 Obstacle Course Go1 VLA-guided navigation through a MuJoCo obstacle course coming soon
G1 Gesture Control G1 Map hand gestures to G1 arm actions via webcam coming soon
Multi-robot Sync Go1 + G1 Synchronized action sequences across two robots coming soon

🖥️ CLI

cadenza list go1                                      # list all Go1 actions
cadenza list g1                                       # list all G1 actions
cadenza sim go1 "walk forward then jump"              # simulate in MuJoCo
cadenza sim g1 "stand then walk forward"              # simulate G1
cadenza sim go1 "walk forward" --vla --obstacles      # VLA obstacle avoidance
cadenza deploy go1 --ip 192.168.123.15 -c "..."       # deploy via SSH
cadenza deploy go1 --ip ... --mode direct             # deploy via DDS
cadenza deploy go1 --ip ... --mode bridge             # bridge mode

🚀 Deploy

SSH Deploy

Upload and run a script on the robot's onboard computer.

cadenza deploy go1 --ip 192.168.123.15 -c "walk forward then sit"

DDS Direct

Send motor commands directly from your laptop over DDS (same network).

cadenza deploy go1 --ip 192.168.123.15 --mode direct -c "stand then walk forward"

Bridge Mode

Run heavy computation on your laptop, lightweight actions on the robot — ideal for model inference loops.

go1 = cadenza.go1()
bridge = go1.deploy_ssh_bridge(host="192.168.123.15", key="~/.ssh/go1_rsa")

while True:
    state = bridge.telemetry
    action = my_model(state)
    bridge.send_action(action, speed=0.5)

bridge.estop()

📦 Action Library Reference

Go1 — 21 actions
Action Type Description
stand() phase Stand at default height
stand_up() phase Stand up from lying down
sit() phase Sit down
lie_down() phase Lie flat
jump() phase Jump in place
rear_up() phase Rear up on hind legs
shake_hand() phase Extend front paw
rear_kick() phase Kick with rear legs
walk_forward() gait Walk forward
walk_backward() gait Walk backward
trot_forward() gait Trot (diagonal gait)
crawl_forward() gait Crawl (low, stable)
pace_forward() gait Pace (lateral gait)
bound_forward() gait Bound (synchronous front-back)
turn_left() gait Turn left in place
turn_right() gait Turn right in place
climb_step() gait Climb a step
side_step_left() gait Lateral step left
side_step_right() gait Lateral step right

All actions accept speed and extension multipliers. Gait actions also accept distance_m and repeat.

G1 — 20 actions

Access via cadenza.g1(). Full action list: cadenza list g1.

from cadenza.actions import get_library, list_actions

list_actions("go1")               # print all actions

lib = get_library("go1")
spec = lib.get("walk_forward")
print(spec.gait)                  # GaitAction with velocity commands

🐾 Go1 Quadruped

The Go1 is a quadruped robot with 12 joints across four legs. Cadenza provides 21 actions for it.

mjpython example.py                                  # run the Go1 demo
cadenza sim go1 "walk forward then jump"             # simulate via CLI
cadenza list go1                                     # list all Go1 actions
cadenza deploy go1 --ip 192.168.123.15 -c "..."      # deploy to hardware
import cadenza

go1 = cadenza.go1()
go1.run([
    go1.stand(),
    go1.walk_forward(speed=1.5, distance_m=2.0),
    go1.jump(),
    go1.sit(),
])

🤖 G1 Humanoid

The G1 is a full-size humanoid robot. Cadenza provides 20 actions for bipedal locomotion and arm control.

cadenza sim g1 "stand then walk forward"             # simulate via CLI
cadenza list g1                                      # list all G1 actions
python examples/unitree_g1/deploy_g1.py sim          # run the G1 example
import cadenza

g1 = cadenza.g1()
g1.run([
    g1.stand(),
    g1.walk_forward(speed=0.3, distance_m=1.0),
    g1.crouch(),
    g1.lift_left_hand(),
    g1.stand(),
])

💚 Community

Links
GitHub aparekh02/cadenza
Issues Report a bug or request a feature
License Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cadenza_lab-1.5.1.tar.gz (160.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cadenza_lab-1.5.1-py3-none-any.whl (182.5 kB view details)

Uploaded Python 3

File details

Details for the file cadenza_lab-1.5.1.tar.gz.

File metadata

  • Download URL: cadenza_lab-1.5.1.tar.gz
  • Upload date:
  • Size: 160.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for cadenza_lab-1.5.1.tar.gz
Algorithm Hash digest
SHA256 1f95ebfdfc597465bed5a67da27eabe8dc8d32a1d5f7d0f0eaa2be7bdfc52704
MD5 f48801f77b27dde62cf7257a55aa9741
BLAKE2b-256 82405c0c88215385afa6c167e7a264eab3885d8d95ae865681b3b959dd7fb270

See more details on using hashes here.

File details

Details for the file cadenza_lab-1.5.1-py3-none-any.whl.

File metadata

  • Download URL: cadenza_lab-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 182.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for cadenza_lab-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 91724e1501b9fda5ea20b90c82bbcdd19038125b62e027422b70d81f4e623f32
MD5 ce951956292437a910f8cd65b1d18b9e
BLAKE2b-256 98860a0ef18f63b35d53b5e4e16e966b97a509ae952263049b3bd1b82032f026

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page