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.3.2.tar.gz (114.7 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.3.2-py3-none-any.whl (137.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cadenza_lab-1.3.2.tar.gz
  • Upload date:
  • Size: 114.7 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.3.2.tar.gz
Algorithm Hash digest
SHA256 63bc8e36074b571baca478e0d73ef89d8eacdf5cf40656d9d047acfa6c11c12f
MD5 fe72887daaed614e8a2cdb2d07616210
BLAKE2b-256 3c5785162ed7eb64ac9efdc4f362df33652e9867a19b23b9cb0038b2c77c89b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cadenza_lab-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 137.9 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.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b0a365e7f1a641e63671c4758b3dd044543bee41b7d19e4a0099c121672e1fd1
MD5 903821d859d236f9e05b47cce7c7b644
BLAKE2b-256 5dea6efa97bdf4dc430ad7d2901a0406ebadb1c54b66e8a2ed5d504a79aa538d

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