Case Directory
⚠️ Note: The functional cases provided on this website are intended as references and inspiration for robot usage. Applications in real-world scenarios require users to adjust and optimize them according to actual conditions.
- Case Directory
- General Cases
- 1. H12 Remote Controller Usage and Development Case
- 2. QR Code Detection Usage Case
- 3. Path Trajectory Planning Case
- 4. YOLOv8 Object Detection Case
- 5. Arm Inverse Kinematics Case
- 6. Robot Arm Teaching Case
- 7. Arm Trajectory Planning Case
- 8. Keyboard Control Case
- 9. Reinforcement Learning Case (Gym Version)
- 10. Large Model Web Search and Visual Reasoning Case
- 11. QR Code Water Bottle Grasping Case
- 12. VR Usage and Development Case
- 13. Full-Body Tai Chi Movement Case
- 14. Reinforcement Learning Case (Lab Version)
- 15. Doubao Real-Time Speech Large Model Integration Case
- 16. Imitation Learning Dual-Arm Manipulation Simulation Case
- Extended Cases
- Comprehensive Cases
- Wheeled-Arm Cases
1. H12 Remote Controller Usage and Development Case
H12 Remote Controller Usage and Development Case Overview
This case introduces how to use the H12 remote controller to control the robot, covering everything from deployment to operation. The main contents include:
- Deployment Workflow: Outlines how to initialize and manage the remote controller control program.
- State Machine Overview: Describes the robot's transition and operation logic under different control states.
- Remote Controller Configuration: Provides guidance on using buttons and joysticks, along with instructions for emergency stop operations.
Go to Case
2. QR Code Detection Usage Case
QR Code Detection Usage Case Overview
This case introduces how to use AprilTag QR codes for detection and information acquisition. The main contents include:
QR Code
- QR Code Type: Uses the AprilTag type, specifically 36h11.
- QR Code Download: Provides links to websites for downloading QR codes.
Usage Workflow
- Configuration File Adjustment: The ID and size of the QR code to be recognized need to be set in the configuration file.
- Program Launch: Launch the host computer main program via ROS, and use the rqt tool to observe the recognition results.
Obtaining Detection Results
- Result Acquisition: Obtain the pose information of the QR code in the camera coordinate system and the robot base coordinate system via ROS topics.
- Example Program: Provides an example program for acquiring QR code information.
Go to Case
3. Path Trajectory Planning Case
Path Trajectory Planning Case Overview
This case introduces how to use an MPC controller to track a preset path trajectory. The main contents include:
Package
- Name:
trace_path - Location: Lower-level controller code repository
Description
- Trajectory Types:
- Straight line: Generates a straight-line path of a specified length from the robot's current position.
- Square: Generates a square path with a specified side length counterclockwise from the robot's current position.
- Circle: Generates a circular path with a specified radius counterclockwise from the robot's current position.
- "S" curve: Generates a sinusoidal curve path from the robot's current position.
Directory Structure
- Includes documentation, header files, launch files, path generators, controllers, and test entry points, etc.
Parameter Settings
- Common parameters: Speed and time interval.
- Path-specific parameters:
- Straight line: length
- Square: side length
- Circle: radius
- "S" curve: half of the total length and the amplitude
Controller
- MPC: The maximum linear velocity and maximum angular velocity can be set.
Build and Launch
- Build: Build after modifying the path parameters and controller parameters.
- Launch:
- Launch the robot program in a simulation or real-world environment.
- Generate and track trajectories, supporting square, circle, and "S" curve trajectories.
Go to Case
4. YOLOv8 Object Detection Case
YOLOv8 Object Detection Case Overview
This case introduces how to use the YOLOv8 model for box recognition. The main contents include:
Package
- Name:
yolo_box_object_detection - Location: Host computer code repository
- Purpose: A YOLO ROS package for box recognition
Model Path and Description
- Model format:
.pt - Model path: Stored in the specified model directory
- Test programs: Includes example programs for real-time detection and image detection
ROS Topic Subscription
- Provides multiple topics for obtaining recognition results and drawing results, supporting 3D positions based on the camera and robot base coordinate systems.
Launch
- Start the box recognition function via ROS commands, which can be executed in the working directory.
Go to Case
5. Arm Inverse Kinematics Case
Arm Inverse Kinematics Case Overview
This case introduces how to implement inverse kinematics (IK) and forward kinematics (FK) solutions for the arm in ROS. The main contents include:
Build and Launch
- Build: Use the
catkin buildcommand to build themotion_capture_iknode. - Launch parameters: Supports various parameter configurations such as visualization, robot version, and controlled arm selection.
- Launch examples: Provides launch command examples under different configurations.
ROS Interface
- Subscribed topic:
/ik/two_arm_hand_pose_cmdis used to receive arm IK solving requests. - Published topics:
/ik/resultpublishes IK solution results, and/ik/debug/time_costoutputs the solving time. - Services:
/ik/two_arm_hand_pose_cmd_srvprovides the IK inverse solution service, and/ik/fk_srvprovides the FK forward solution service.
Usage Examples
- IK solving service: Demonstrates how to call the IK service and print the results.
- IK solving topic: Demonstrates how to use the IK function via topics.
- FK solving service: Demonstrates how to call the FK service and print the results.
Go to Case
6. Robot Arm Teaching Case
Robot Arm Teaching Case Overview
This case introduces how to teach the robot arm by manually dragging it in 0-torque mode. It supports two recording methods, rosbag and keyframes, and can replay recorded motions.
Description
- Supports 0-torque drag teaching and records joint data
- Supports two recording methods: rosbag and keyframes
- Recorded motions can be replayed, facilitating motion reproduction and debugging
Program Logic
- Start the robot and perform zero-point calibration
- Select the recording mode (rosbag/keyframes)
- Record and save motion data
- Before playback, close other programs and make the robot stand up
- Play the recorded motions
Usage Instructions
- rosbag recording is suitable for complete motion capture, while keyframes are suitable for discrete motion capture
- Make sure the robot is in a safe standing state before playback
Go to Case
7. Arm Trajectory Planning Case
Arm Trajectory Planning Case Overview
This case introduces how to plan arm joint state trajectories for a humanoid robot. The main contents include:
Package
- Name:
humanoid_plan_arm_trajectory - Location:
/home/lab/kuavo-ros-opensource/src/demo/examples_code/hand_plan_arm_trajectory
Description
Provides two interpolation methods for arm joint state trajectory planning:
- Cubic spline interpolator
- Bézier curve interpolator
Build and Launch
- Build: Use the
catkin buildcommand to build thehand_plan_arm_trajectorypackage. - Parameter settings: Supports configurations such as the joint state topic name, angle unit, and launch method
- Launch examples: Provides launch commands and example code for the two interpolation methods
Go to Case
8. Keyboard Control Case
Keyboard Control Case Overview
This case introduces how to use the keyboard to control arm movement or robot motion. The main contents include:
Description
- Code path:
<kuavo-ros-control>/src/kuavo_sdk/scripts/keyboard_control/robot_keyboard_control.py
Program Logic
-
Program initialization
-
Keyboard input processing
-
Signal publishing
-
Program exit
Parameter Description
-
joystick_sensitivity: sensitivity, unitless. -
Modification path:
<kuavo-ros-control>/src/humanoid-control/humanoid_controllers/launch/joy/joy_control_sim.launch -
Input mode parameter:
sim_input_mode, defaultkeyboard; if you need a GUI virtual joystick, explicitly passsim_input_mode:=gui.
Execution
- Launch: Start the robot program in a simulation or real-world environment.
- Operating instructions: How to use the keyboard to control arm movement or robot motion.
Go to Case
9. Reinforcement Learning Case (Gym Version)
Reinforcement Learning Case (Gym Version) Overview
This case briefly introduces how to use Leju's open-source reinforcement learning motion control repository kuavo-rl-opensource to train and deploy the Leju Kuafu robot. The main contents include:
Deployment
-
H12 remote controller startup and control instructions
-
Motor control instructions
- Control command output method:
-
Fields of the message structure
-
Publishing logic
-
Control mode selection: torque control, position control, etc. are available
-
Hybrid control implementation: torque or position commands can be selected based on the policy output
-
Low-level hardware interaction: use drivers to control the motors
-
PD control implementation analysis
-
Parameter configuration module
-
Joint torque calculation in the RL controller
-
-
Program reference
- Path:
<kuavo-rl-opensource>/src/humanoid-control/humanoid_controllers/src/humanoidController.cpp
- Path:
Training
-
Installation
-
Training and Playing
Go to Case
10. Large Model Web Search and Visual Reasoning Case
Large Model Web Search and Visual Reasoning Case Overview
This case integrates the moonshot large model to implement a voice interaction system. The main functions are as follows:
Description
-
This case implements a voice interaction system, including recording, speech transcription, visual reasoning, web search, dialogue generation, and voice playback functions.
-
Code path:
~/kuavo_ros_application/src/kuavo_large_model/kuavo_kimi_model/kimi_python3_demo.py
Program Logic
-
Import modules and define global variables
-
Define the recorder function, the kimi_vision_chat function, the kimi_network_chat function, and the Client class.
-
Main function
-
Initialize the video capture object.
-
Call recorder to record audio.
-
Use the Client class to send the recording to the RTASR service.
-
Call kimi_network_chat and kimi_vision_chat to conduct the dialogue and play back the reply.
Notes
-
The speech-to-text model used in this case is: https://www.xfyun.cn/
-
The large models used in this case are the moonshot-v1-8k-vision-preview vision model and the moonshot-v1-128k language model released by Beijing Moonshot AI (moonshot): https://platform.moonshot.cn/
- Obtaining a Kimi API Key:
- Go to https://platform.moonshot.cn/ and click on the user center
- Top up your account, then create and obtain an API Key
- Replace the api-key on lines 113 and 159 of the program with the one you obtained
- Obtaining a Kimi API Key:
Go to Case
11. QR Code Water Bottle Grasping Case
QR Code Water Bottle Grasping Case Overview
The robot recognizes a QR code through the head camera, calculates the coordinate information of the QR code, and computes the arm joint angles via IK inverse kinematics for grasping.
Description
- Code path:
/home/lab/kuavo-ros-opensource/src/demo/arm_capture_apriltag
Program Logic
-
Identify the AprilTag tag to obtain the position of the grasping target in the coordinate system
-
Autonomously determine the left or right hand, and calculate the desired position and orientation of the arm end effector
-
Obtain the target angles of each arm joint through the IK inverse solution service
-
Implement the water grasping and handing process, which is smooth
Go to Case
12. VR Usage and Development Case
VR Usage and Development Case Overview
VR Usage and Development Case Overview
This case introduces how to use the Quest3 VR device to control the robot, focusing on remote operation of the robot's arms and dexterous hands via the VR controllers, as well as basic motion control of the robot. The main contents include:
- Device and Controllers: Uses Quest3 as the VR device and controls the robot through the controllers, suitable for embodied intelligence data collection.
- Quest3-related Usage: Covers device management, system updates, program launch, video export, and handling of spatial boundaries.
- VR Control Preparation and Usage: Ensure the device and network are ready, and implement multiple robot control modes through the VR controllers, including gesture recognition.
Go to Case
13. Full-Body Tai Chi Movement Case
Full-Body Tai Chi Movement Case Overview
This case introduces how to plan full-body motion trajectories for a humanoid robot to perform full-body Tai Chi movements.
Description
- Code path:
/home/lab/kuavo-ros-opensource/src/demo/taiji/action_player.py
Program Logic
-
Load the JSON motion file.
-
Initialize the ROS node and create publishers and subscribers.
-
Set the arms to external control mode (via a service call).
-
Generate foot trajectories and publish them to
/humanoid_mpc_foot_pose_target_trajectories. -
Wait to receive the gait start time.
-
Generate arm trajectories and publish them to
/kuavo_arm_target_poses(timing based on the gait start time). -
Wait for the motion execution to complete.
Parameter Description
-
The action file is in JSON format and contains two main parts:
step_control(gait control) andarm_motion(arm motion). -
Path to modify:
/home/lab/kuavo-ros-opensource/src/demo/taiji/taiji.json
Execution
- Startup: launch the robot program in a simulation or real environment.
- Run the action player node.
Go to Case
14. Reinforcement Learning Case (Lab Version)
Reinforcement Learning Case (Lab Version) Overview
This case briefly introduces how to use Leju's open-source reinforcement learning locomotion control repository leju_robot_rl to train and deploy the Leju Kuavo robot. The main contents include:
Environment Preparation
-
Download Isaac Sim 4.2
-
Download Isaac Lab 1.4.1
-
Download rsl_rl and use the recommended commit
-
Python environment configuration
Training and Deployment
-
Training and Playing
-
H12 remote controller startup and control instructions
-
Deployment startup
Go to Case
15. Doubao Real-Time Speech Large Model Integration Case
Doubao Real-Time Speech Large Model Integration Case Overview
This case implements a ROS-based voice interaction system, including microphone audio capture, real-time voice interaction, and audio playback functions.
Description
- Code path:
/home/lab/kuavo-ros-opensource/src/kuavo_doubao_model/start_communication.py
Program Logic
-
Initialize the ROS node voice_conversation
-
Create a RobotSpeech instance to manage voice interaction
-
Call the establish_doubao_speech_connection method to establish a connection to the Doubao large model using the provided app_id and access_key
-
Once the connection succeeds, call the start_speech method to start voice interaction
-
Enter a loop and detect keyboard input in a non-blocking manner
-
When user input 'c' is detected or the ROS node shuts down, call the stop_speech method to stop voice interaction
Notes
⚠️ Note: This case uses the Doubao end-to-end real-time speech large model from Volcano Engine. This model is a paid model, so you must create an account, top it up, and obtain an APP ID and Access Token, then copy the obtained APP ID and Access Token to the corresponding place in the program. When in use, the robot's lower-level controller must be connected to an external network (with internet access)
-
The Doubao end-to-end real-time speech large model used in this case: https://console.volcengine.com/auth/login/
- After logging in, click Large Models - Doubao Real-Time Speech Model - Use Now to obtain the APP ID and Access Token
- Replace the app_id and access_key on lines 11 and 12 of the program
/home/lab/kuavo-ros-opensource/src/kuavo_doubao_model/start_communication.pywith the ones you obtained
Go to Case
16. Imitation Learning Dual-Arm Manipulation Simulation Case
Imitation Learning Dual-Arm Manipulation Simulation Overview
This case introduces how to implement a dual-arm object grasping and placing task for the Leju Kuavo robot based on the Kuavo_data_challenge repository and its corresponding dataset. The case provides simulation training and deployment for dual-arm manipulation of the Leju Kuavo robot based on Diffusion Policy, and explains how to use the Kuavo_data_challenge repository to configure the environment, train the model, and deploy in the mujoco simulation.
Code Repository Environment Configuration
- Download the kuavo_data_challenge repository and configure the conda environment
- Download the kuavo-ros-opensource repository and configure the docker environment
Running the Simulation
-
Start the simulation-side process
-
Configure the model config on the inference side
-
Start the inference-side process
Go to Case
Extended Cases
1. Imitation Learning Usage Case
Case Overview
Description
KUAVO Humanoid Robot Training Ground (Research Edition) is a comprehensive solution designed specifically for research institutions and university laboratories. It integrates an embodied intelligence robot (KUAVO-4PRO & KUAVO-LB), a data collection toolchain, and a model training and deployment suite. With this solution, users can easily achieve a full-chain closed loop from data collection to model training to model deployment, facilitating humanoid robot embodied intelligence research and application development.
Go to Case
Data Collection
Description
Data collection captures RosBag packages generated by recording the robot's behavior over a period of time based on ROS, which can be regarded as raw data. However, the data provided for model training is transformed data. Therefore, in addition to the most basic data collection function, this data collection system also provides data processing functions. At the same time, given the different robot end effectors and differences in resource storage paths, this data collection system provides flexible parameter configuration.
Features
-
Parameter configuration
-
Data collection
-
Data processing
Go to Case
Data Conversion
Description
Kuavo IL supports quick conversion from ROS bag data to the LeRobot format
Go to Case
Model Training
Description
Data to be trained is obtained through data collection and data conversion. The lerobot framework is used for model training.
Go to Case
Model Deployment
Description
Deploy the trained model on the real robot.
Go to Case
Comprehensive Cases
1. Strategy Module Box-Carrying Case
Strategy Module Box-Carrying Case Overview
The robot recognizes QR codes with its head camera, locates the box and the shelf, and completes the entire process of grasping, transporting, and placing the box through the strategy module.
Description
- Example code path:
/home/lab/kuavo-ros-opensource/src/kuavo_humanoid_sdk/examples/strategies/grasp_box_example.py
Program Logic
-
The robot autonomously moves to the preset box position
-
The robot rotates its head to scan the box's QR code → precise positioning → approach the operation position
-
Control the robotic arm to grasp the box by combining position control and force control
-
Autonomously turn and move to the preset shelf position
-
Rotate the head to scan the shelf's QR code → precise positioning → approach the placement position
-
Complete box placement → return to the starting point
Go to Case
Wheeled-Arm Robot Cases
1. Basic Usage
Basic Usage Instructions for the Wheeled-Arm Robot
This case introduces how to use the H12 remote controller to control the robot, covering everything from deployment to operation. The main contents include:
- Using Leju Design software: Describes how to use Leju Design software to scan the established map, including functions such as creating map waypoints and predefined tasks.
- Using Leju Mobile software: Describes how to use Leju Mobile software to remotely control the robot for scanning and mapping, executing predefined tasks, and real-time monitoring.
- websocket development interface: Introduces the communication interface for robot chassis control.