Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Kuavo Humanoid SDK

A comprehensive Python SDK for controlling Kuavo humanoid robots. This SDK provides interfaces for robot state management, arm and head control, and end-effector operations. It is designed to work with ROS (Robot Operating System) environments.

Warning: This SDK currently only supports ROS1. ROS2 support is not available.

Warning: This SDK can only be used on the onboard NUC computer located in the robot's torso.

Kuavo 4Pro Robot

Features

  • Robot State Management

    • IMU data (acceleration, angular velocity, euler angles)
    • Joint/motor states (position, velocity, torque)
    • Torso state (position, orientation, velocity)
    • Odometry information
    • End-effector states:
      • Gripper(lejuclaw): position, velocity, torque, grasp status
      • Dexterous hand(qiangnao): position, velocity, torque
      • Touch Dexterous hand(qiangnao_touch): position, velocity, torque, touch state
      • End-effector position and orientation
    • Motion states: stand, walk, step_control, trot
  • Motion Control

    • Arm Control
      • Joint position control
      • End-effector 6D control via inverse kinematics
      • Forward kinematics (FK) for computing end-effector pose
      • Keyframe sequence control for complex motions
    • End-effector Control
      • Gripper control (position control with configurable velocity and torque)
      • Dexterous hand control
        • Position control
        • Pre-defined hand gestures (OK, 666, fist, etc.)
    • Head Control
      • Position control
    • Torso Control
      • Height control (squatting)
      • Forward/backward tilt control
    • Dynamic Motion Control
      • Stance
      • Trot
      • Walking (xy and yaw velocity control)
      • Stepping (gait switching)
  • Robot Basic Information

    • Robot type (kuavo)
    • Robot version
    • End-effector type
    • Joint names
    • Total degrees of freedom (28)
    • Arm degrees of freedom (7 per arm)
    • Head degrees of freedom (2)
    • Leg degrees of freedom (12)

Installation

Note: There are currently two versions of this SDK, the stable version and the beta version. Their differences are:

  • stable version: corresponding to the functionality provided by the master branch of kuavo-ros-opensource.
  • Beta version: This version is more aggressive than the official version and also provides richer functionality, corresponding to the functionality provided by the beta branch of kuavo-ros-opensource.

Friendly reminder: Please be clear about which version you need to install. If your SDK version does not match kuavo-ros-opensource, some features may not be available.

Install the latest ​stable version of Kuavo Humanoid SDK using pip:

pip install kuavo-humanoid-sdk-ws

Install the latest ​beta version of Kuavo Humanoid SDK using pip:

pip install --pre kuavo-humanoid-sdk-ws

For local development installation (editable mode), use:

cd src/kuavo_humanoid_sdk_ws  
chmod +x install.sh  
./install.sh   

Upgrade Instructions

Before upgrading, you can check the currently installed version with:

pip show kuavo-humanoid-sdk-ws
# Output:  
Name: kuavo-humanoid-sdk-ws  
Version: 0.1.2  
...  

Note: If the version number contains the letter b, it indicates a beta version, e.g., Version: 0.1.2b113

To upgrade from a stable version to the latest stable version:

pip install --upgrade kuavo-humanoid-sdk-ws

To upgrade from a beta version to the latest stable version:

pip install --upgrade --force-reinstall kuavo-humanoid-sdk-ws
# or  
pip uninstall kuavo-humanoid-sdk-ws && pip install kuavo-humanoid-sdk-ws

To upgrade from a stable/beta version to the latest beta version:

pip install --upgrade --pre kuavo-humanoid-sdk-ws

Package Information

You can check the package information using pip:

pip show kuavo-humanoid-sdk-ws

Quick Start

Here's a simple example to get started with Kuavo Humanoid SDK:

Warning: Before running any code, make sure to start the robot first by executing either:

  • For simulation: roslaunch humanoid_controllers load_kuavo_mujoco_sim.launch (Example command)
  • For real robot: roslaunch humanoid_controllers load_kuavo_real.launch (Example command)
# Copyright (c) 2025 Leju Robotics. Licensed under the MIT License.
import time
from kuavo_humanoid_sdk import KuavoSDK, KuavoRobot

def main():
    if not KuavoSDK().Init():  # Init! !!! IMPORTANT !!!
        print("Init KuavoSDK failed, exit!")
        exit(1)
    robot = KuavoRobot()    
    
    """ arm reset """
    print("Switching to arm reset mode...")
    robot.arm_reset()
    
    """ stance """
    print("Switching to stance mode...")
    robot.stance()

    """ trot """
    print("Switching to trot mode...")
    robot.trot()
    
    """ walk forward """
    print("Starting forward walk...")
    duration = 4.0  # seconds
    speed = 0.3     # m/s
    start_time = time.time()
    while (time.time() - start_time < duration):
        robot.walk(linear_x=speed, linear_y=0.0, angular_z=0.0)
        time.sleep(0.1)  # Small sleep to prevent busy loop
    
if __name__ == "__main__":
    main()

Docs

The documentation is available in two formats:

We recommend that you generate the documentation locally by running the documentation script. The documentation will be output to the docs/html and docs/markdown folders:

cd <kuavo-ros-opensource>/src/kuavo_humanoid_sdk_ws
chmod +x gen_docs.sh
./gen_docs.sh

We recommend that you view the documentation using html for a better experience.

For Markdown documentation at:

https://gitee.com/leju-robot/kuavo-ros-opensource/tree/master/src/kuavo_humanoid_sdk/docs/markdown/index.md

Examples

WARNING

Before running any code examples, make sure to start the robot first by executing either:

  • For simulation: roslaunch humanoid_controllers load_kuavo_mujoco_sim.launch (Example command)
  • For real robot: roslaunch humanoid_controllers load_kuavo_real.launch (Example command)

Robot Info

Examples showing how to get basic robot information.

https://gitee.com/leju-robot/kuavo-ros-opensource/tree/master/src/kuavo_humanoid_sdk/examples/robot_info_example.py

Basic Robot Control

A basic example showing how to initialize the SDK and control the robot’s movement.

https://gitee.com/leju-robot/kuavo-ros-opensource/tree/master/src/kuavo_humanoid_sdk/examples/motion_example.py

End Effector Control

LejuClaw Gripper

Examples demonstrating how to control the LejuClaw gripper end effector, including position, velocity and torque control.

https://gitee.com/leju-robot/kuavo-ros-opensource/tree/master/src/kuavo_humanoid_sdk/examples/lejuclaw_example.py

QiangNao DexHand

Examples showing how to control the QiangNao DexHand, a dexterous robotic hand with multiple degrees of freedom for complex manipulation tasks.

https://gitee.com/leju-robot/kuavo-ros-opensource/tree/master/src/kuavo_humanoid_sdk/examples/dexhand_example.py

Arm Control

Examples showing arm trajectory control and target pose control.

https://gitee.com/leju-robot/kuavo-ros-opensource/tree/master/src/kuavo_humanoid_sdk/examples/ctrl_arm_example.py

Forward and Inverse Kinematics

Examples demonstrating how to use forward kinematics (FK) to compute end-effector positions from joint angles, and inverse kinematics (IK) to calculate joint angles needed to achieve desired end-effector poses.

https://gitee.com/leju-robot/kuavo-ros-opensource/tree/master/src/kuavo_humanoid_sdk/examples/arm_ik_example.py

Head Control

Examples showing how to control the robot’s head movements, including nodding (pitch) and shaking (yaw) motions.

https://gitee.com/leju-robot/kuavo-ros-opensource/tree/master/src/kuavo_humanoid_sdk/examples/ctrl_head_example.py

Step-by-Step Control

Examples showing how to control the robot’s movements step by step, including individual foot placement and trajectory control.

https://gitee.com/leju-robot/kuavo-ros-opensource/tree/master/src/kuavo_humanoid_sdk/examples/step_control_example.py

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact & Support

For any questions, support, or bug reports, please contact:

Download files

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

Source Distribution

kuavo_humanoid_sdk_ws-1.4.5b829.tar.gz (234.5 kB view details)

Uploaded Source

Built Distributions

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

File details

Details for the file kuavo_humanoid_sdk_ws-1.4.5b829.tar.gz.

File metadata

File hashes

Hashes for kuavo_humanoid_sdk_ws-1.4.5b829.tar.gz
Algorithm Hash digest
SHA256 69967d103d2b8511de4c23da68a32ee8c5969d196c0cb2ba800e340d4ffe6cbb
MD5 fef2c2a75b0a2fc521674b9559e1e3ea
BLAKE2b-256 4f8f572415d13f9d38a42762b748908c4ec414806315133717658c0d3953951d

See more details on using hashes here.

File details

Details for the file kuavo_humanoid_sdk_ws-1.4.5b829-20260810120123-py3-none-any.whl.

File metadata

File hashes

Hashes for kuavo_humanoid_sdk_ws-1.4.5b829-20260810120123-py3-none-any.whl
Algorithm Hash digest
SHA256 3ee77507d9f4427e7255ddd6db4a2022afe3d60acba836e46103e620a0ed548d
MD5 4d1cf3ba8deb86123908d88c351ef2a0
BLAKE2b-256 e50b989adb73e5a9e8f81b5be91c3f008577a4752f8360aae686beffa88e02a4

See more details on using hashes here.

File details

Details for the file kuavo_humanoid_sdk_ws-1.4.5b829-20260810080728-py3-none-any.whl.

File metadata

File hashes

Hashes for kuavo_humanoid_sdk_ws-1.4.5b829-20260810080728-py3-none-any.whl
Algorithm Hash digest
SHA256 0089c4ecc86b54d4fe377c99c90ce0d28c6c89da76a7d09f18c365fa1c8d767c
MD5 a01f270c14156bba3b3ec20b3ecd53b4
BLAKE2b-256 a9e55970c62df1f576cb9ece94bb82ae26571da98501091575a6999e5ba4954f

See more details on using hashes here.

File details

Details for the file kuavo_humanoid_sdk_ws-1.4.5b829-20260809104535-py3-none-any.whl.

File metadata

File hashes

Hashes for kuavo_humanoid_sdk_ws-1.4.5b829-20260809104535-py3-none-any.whl
Algorithm Hash digest
SHA256 57eb4ed8d49b386d7bbf4d398fdd1c7b187ce2180cfbd2cf81b614e95dedbb20
MD5 3ee1892866c0be20c73ce72aa7facb90
BLAKE2b-256 2e639138998f369666576e81fa8b71d6e966d82b7c1896d6f144bd17d4fd06d8

See more details on using hashes here.

File details

Details for the file kuavo_humanoid_sdk_ws-1.4.5b829-20260809081504-py3-none-any.whl.

File metadata

File hashes

Hashes for kuavo_humanoid_sdk_ws-1.4.5b829-20260809081504-py3-none-any.whl
Algorithm Hash digest
SHA256 11f458598de1ba90972eee91a9ec375d1ba39a916ba19174753f4824bb6de17a
MD5 419617f65693290508240e16c51442e0
BLAKE2b-256 102a269d4e1c53c6120cfd1254076b618d5ced6160635051b7cb318c05f3d99f

See more details on using hashes here.

File details

Details for the file kuavo_humanoid_sdk_ws-1.4.5b829-20260808203614-py3-none-any.whl.

File metadata

File hashes

Hashes for kuavo_humanoid_sdk_ws-1.4.5b829-20260808203614-py3-none-any.whl
Algorithm Hash digest
SHA256 a1ef79a5e055ee97d10294d395e92662dd14e28d64ae6f18834a462059c46013
MD5 3985e342e16946b76f0d97f86bfa3cef
BLAKE2b-256 182eebd11e6f5f2cc0e239dd84f003b0f5ae473c97ed094901c04ba061e1b8f0

See more details on using hashes here.

Release history Release notifications | RSS feed

1.4.5

2 files

This release

1.4.5b829 This release

6 files

1.4.4

2 files

1.4.3

2 files

1.4.2

2 files

1.4.1

2 files

1.4.0

2 files

1.3.3

2 files

1.3.2

2 files

1.3.1

2 files

1.3.0

2 files

1.2.2

2 files

1.2.1

2 files

1.2.0

2 files

1.1.9

2 files

1.1.8

2 files

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