Humanoid SDK
Humanoid SDK is a comprehensive Python SDK for controlling ROBAN humanoid robots. It provides interfaces for robot state management, arm and head control, and end-effector operation. It transmits data over the local network to control the robot; installing the corresponding Python package is all that is required. The SDK is designed to simplify the complexity of robot control, enabling developers to quickly implement a wide range of robot applications.
Note: This SDK currently supports ROS1 only; ROS2 is not supported yet.
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:
- Dexterous hand (QiangNao): position, velocity, torque
- End-effector position and orientation
- Motion states: stand, walk, step_control
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
- Dexterous hand control
- Position control
- Pre-defined hand gestures (OK, 666, fist, etc.)
- Dexterous hand control
-
Head Control
- Position control
-
Dynamic Motion Control
- Stance
- Walking (xy and yaw velocity control)
- Stepping (gait switching)
Robot Basic Information
- Robot type: roban
- Robot version
- End-effector type
- Joint names
- Total degrees of freedom: 23
- Arm degrees of freedom: 4 per arm
- Head degrees of freedom: 2
- Leg degrees of freedom: 12
- Waist degrees of freedom: 1
Installation
Note: The SDK currently has two versions, a stable version and a beta version. The differences are:
- Stable version: corresponds to the features provided by the master branch of kuavo-ros-opensource.
- Beta version: moves faster than the stable version and provides richer functionality, corresponding to the features provided by the beta branch of kuavo-ros-opensource.
Friendly reminder: Make sure you know which version you need to install. If your SDK version does not match kuavo-ros-opensource, some features may be unavailable.
Installation Commands
- Install the latest stable version:
pip install kuavo-humanoid-sdk - Install the latest beta version:
pip install --pre kuavo-humanoid-sdk - Local development install (editable mode):
cd src/kuavo_humanoid_sdk chmod +x install.sh ./install.sh
Upgrade Instructions
Before upgrading, you can check the currently installed version with the following command:
pip show kuavo-humanoid-sdkExample output:
Name: kuavo-humanoid-sdk
Version: 1.1.6
...Note: If the version number contains the letter
b, it is a beta version, for exampleVersion: 0.1.2b113.
Upgrade Scenarios
- Upgrade from a stable version to the latest stable version:
pip install --upgrade kuavo-humanoid-sdk - Upgrade from a beta version to the latest stable version:
pip install --upgrade --force-reinstall kuavo-humanoid-sdk - Upgrade from a stable/beta version to the latest beta version:
pip install --upgrade --pre kuavo-humanoid-sdk
Quick Start
Before running any code, make sure the robot is started with one of the following commands:
-
For simulation:
roslaunch humanoid_controllers load_kuavo_mujoco_sim.launch -
For a real robot:
roslaunch humanoid_controllers load_kuavo_real.launch
Documentation
Documentation is available in two formats:
- HTML format: must be generated by running a script.
- Markdown format: available to read directly.
Generate the documentation:
cd <kuavo-ros-opensource>/src/kuavo_humanoid_sdk
chmod +x gen_docs.sh
./gen_docs.shExamples
Make sure the robot is started before running any code example.
Example code links:
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contact & Support
- Email: edu@lejurobot.com
- Website: Leju Robotics
- Issue Tracker: Issues