Roban2 Docs
Roban2 (ROS1) Legacy VersionsDevelopment Interfaces

SDK Introduction

This SDK is mainly used to control the motion and state of each part of the robot. Based on the ROS1 (Robot Operating System) framework, it controls the robot by publishing and subscribing to messages (ROS Topic) and calling services (ROS Service).

Code Architecture

  • The SDK contains topic and service calls for both the robot's host computer and the lower-level controller. Before use, make sure the main program has been started; refer to the Basic Control section in Quick Debugging.

Host

  • Function description: The robot host is the chest NUC, which is responsible for image and audio processing and parsing (voice interaction, visual feature detection, etc.) as well as whole-body motion control (robot inverse kinematics, gait algorithms, etc.).

Notes

  1. SDK directory structure
  • kuavo_sdk/
    • msg: definition files for ROS Topic message formats
    • srv: definition files for ROS Service formats
    • sdk: SDK example programs
    • CMakeLists.txt/package.xml: build configuration files

SDK Environment Setup

Note: In the real lower-level controller environment, all compilation must be performed as the superuser

cd <kuavo-ros-opensource> #仓库目录
sudo su
catkin build kuavo_sdk

Usage

  • Source the environment variables
source ~/devel/setup.bash # zsh还是bash根据使用终端环境选择
  • Run the SDK example program
python3 src/kuavo_sdk/sdk/01_use_music/playmusic.py # 音频播放示例