Boomy DDS SDK Development Guide II
I. About
This document guides readers to write control code with HighController, send commands to the robot to drive it to perform corresponding actions and reproduce the demo effect.
The document consists of four sections. Section 2 covers preliminary preparations. Section 3 sequentially explains code cloning, code explanation, deployment paths and compilation operations to help you implement a continuous demo sequence for the robot (stand up, wave, dance, fall down). Section 4 covers final effect verification and demonstration.
Automation function objective: Use HighController to implement a continuous demo sequence (stand up, wave, dance, fall down). Developers do not need to redesign robot motions. They only need to call existing motion APIs from the SDK and combine multiple motions in a specified order to form a complete motion workflow.
II. Prerequisites
Environment Specifications
Operating System: Ubuntu 22.04
Note: ROS environment is not required for SDK compilation
Supported Architectures: x86_64 / ARM
(I) Connect to the Robot
1. Wired Connection
-
Prepare a standard household RJ45 Ethernet cable.
-
Set the IP address of your PC’s wired network interface to 192.168.55.100 (values from 103 to 110 are also acceptable) , and the subnet mask to 255.255.255.0.
-
With this configuration, connect your PC directly to the Boomy robot via the Ethernet cable. Run the
ping 192.168.55.102command. A successful ping indicates that the communication link works properly.

- Connect to the robot computing board via SSH service
ssh noetix@192.168.55.101 #Connect to the compute board, Password: Boomy
2. Wireless Connection
- Obtain the wireless IP: Check the robot Wi‑Fi IP from the Wi‑Fi connection status on the mobile App. (The compute board uses the motion control board’s Wi‑Fi module.)

- Run the connection command: Connect using the command with port parameters.
ssh -p 2222 noetix@[Robot WIFI-IP]
(II) SDK Source Code Acquisition, Build and Compilation
1. Obtain the SDK Source Code
Official URL:GitHub - Noetix-Robotics/noetix_sdk_boomy: This is SDK for Noetix robot Boomy with DDS interface.
III. Start
(I) Clone the SDK
git clone git@github.com:Noetix-Robotics/noetix_sdk_boomy.git
cd noetix_sdk_boomy
(II) Start of C++ Code
1. Create the src folder
mkdir src
2. Write the main.cpp file under the src folder.
vim src/main.cpp
#include "highcontroller.h"
#include <unistd.h>
#include <cstdlib>
#include <cstdio>
#include <string>
#include <atomic>
using namespace noetix;
// Save the robot's current working mode
// -1 indicates that status data has not been received yet.
std::atomic<int> latest_workmode(-1);
int main(int argc, char *argv[]) {
// ========== 1. DDS Environment Configuration ==========
char buf[256];
getcwd(buf, sizeof(buf));
std::string path = std::string(buf);
std::string ddsxml = "file://" + path + "/config/dds.xml";
setenv("CYCLONEDDS_URI", ddsxml.c_str(), 1);
printf("cur path is %s\n", path.c_str());
// ========== 2. Obtain the HighController Singleton ==========
HighController *ctrl = HighController::Instance();
// ========== 3. Initialize the Controller ==========
ctrl->init();
// ========== 4. Wait for DDS data synchronization ==========
sleep_ms(1000);
// ========== 5. Subscribe to robot hardware status ==========
// Continuously update workmode in the callback for subsequent judgment of whether to enter walking mode.
ctrl->subscribe_robot_hardware_status(
[](const RobotHardwareStatus &status) {
latest_workmode = status.workmode;
}
);
// ========== 6. Motion 1: Get up from fall ==========
printf("Start execution: Get up from fall\n");
ctrl->publish_cmd(0, 0, 0, ControlCmd::FALLTOSTAND, 0);
// The stand-up motion takes approximately 13 seconds.
sleep_ms(13000);
// ========== 7. Motion 2: Wave greeting ==========
printf("Start execution: Wave greeting\n");
ctrl->publish_cmd(0, 0, 0, ControlCmd::SWING, 0);
// Wait for the wave greeting motion to complete.
sleep_ms(12000);
// ========== 8. Motion 3: Dance ==========
printf("Start execution: Dance\n");
ctrl->publish_cmd(0, 0, 0, ControlCmd::DANCE2, 0);
// ========== 9. Before falling down, judge whether the walking mode is entered based on the callback. ==========
printf("Waiting for the robot to enter walking mode...\n");
sleep_ms(10000);
bool in_walk_mode = false;
// Check every 5000 milliseconds, with a maximum waiting time of 35 seconds.
for (int i = 0; i < 7 && !in_walk_mode; ++i) {
int workmode = latest_workmode;
printf("current workmode = %d\n", workmode);
// workmode = 2: Walking Mode
if (workmode == 2) {
printf("Robot has entered walking mode!\n");
in_walk_mode = true;
} else {
sleep_ms(5000);
}
}
if (!in_walk_mode) {
printf("Timeout while waiting for walking mode entry. The fall motion will not be executed!\n");
return -1;
}
// ========== 10. After confirming entry into walking mode, execute stand and fall. ==========
printf("Start execution: Fall from standing\n");
ctrl->publish_cmd(0, 0, 0, ControlCmd::STANDTOFALL, 0);
// Wait for the fall motion to complete.
sleep_ms(10000);
printf("Demo motion arrangement completed.\n");
return 0;
}
Regarding the fourth ControlCmd parameter of publish_cmd in the code, all available options can be found in the ControlCmd enum defined in include/common.h (do not modify the parameter order). Details are as follows:
| Parameter Name | Definition Prototype | Index | Sample Value | Description |
|---|---|---|---|---|
ControlCmd | | 0 | WALK | Walking mode (half-body locomotion) |
| 1 | SWING | Factory-preset wave motion | ||
| 2 | SHAKE | Factory-preset handshake motion | ||
| 3 | CHEER | Factory-preset cheer motion | ||
| 4 | FULLWALK | Whole-body Locomotion | ||
| 5 | START | Enable/Disable | ||
| 6 | SWITCH | Ready Mode | ||
| 7 | STARTTEACH | Start Teaching | ||
| 8 | SAVETEACH | Save Teaching | ||
| 9 | ENDTEACH | Stop Teaching | ||
| 10 | PLAYTEACH | Play Teaching | ||
| 11 | DANCE0 | Dance Mode 1 (what is love) | ||
| 12 | FALLTOSTAND | Stand Up | ||
| 13 | STANDTOFALL | Fold Down | ||
| 14 | DANCE1 | Dance Mode 2 (Jazz) | ||
| 15 | DANCE2 | Dance Mode 3 (gee) | ||
| 16 | ZHOUJI | Elbow Strike | ||
| 17 | DEFAULT | Empty mode, for locomotion under boxing mode |
The meanings of values for the workmode variable in the code are as follows:
| Status value | Mode Introduction |
|---|---|
| 0 | Enable Mode |
| 1 | Ready Mode |
| 2 | Upper-body Walking Mode |
| 3 | Full-body Walking Mode |
| 5 | Dance Mode 0 |
| 8 | Factory preset motion: Wave greeting |
| 9 | Factory preset motion: Handshake |
| 10 | Factory preset motion: Cheer |
| 11 | Start teaching |
| 12 | End teaching |
| 13 | Play back teaching motion |
| 14 | Save teaching motion |
| 23 | Play back teaching motion |
| 26 | Protection Mode |
| 27 | Get up from fall |
| 28 | Fall after standing up |
| 29 | Save teaching motion |
| 30 | Disable Mode |
| 31 | Dance Mode 1 |
| 32 | Dance Mode 2 |
| 33 | Elbow strike motion |
Refer to the flowchart below for switching between modes.
Boomy State Machine
(Incorrect state machine mode switching may cause the robot to enter protection mode)

For more details, refer to:Boomy Comprehensive Usage Document
3. Modify CMakeLists.txt Build File
Modify the content of the CMakeLists.txt file under this path:
1. Add Example
Locate add_executable(example_media examples/cpp/example_media.cpp) in the file, and append the newly written code right below this line.
add_executable(main src/main.cpp)
add_executable is a CMake command, which is used to define an executable target.
2. Set Path
Similarly, locate target_include_directories in the file and add content below this line.
target_include_directories sets header search paths for the target example_standswing.
target_include_directories(main
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
3. Specify Linking
Similarly, locate target_link_libraries in the file and add content below this line.
target_link_libraries is used to specify libraries to link for the given target.It tells the linker to combine symbols and functions from these libraries into the final executable.
target_link_libraries(main
Threads::Threads
noetix_boomy_sdk
${DDS_LIB_DIR}/libddsc.so
${DDS_LIB_DIR}/libddscxx.so
)
4. Full CMakeLists.txt File
4. Compile the Code
Save and exit, then run the build script in the project root directory.
./build.sh
As shown below:

5. Run the Code
sudo ./build/main
(III) Python Start
1. Create main.py Python File
Write main.py under the src folder.
vim src/main.py
2. Write Python Code
import os
import sys
from time import sleep
# DDS Environment Configuration
os.environ["CYCLONEDDS_URI"] = "file://config/dds.xml"
sys.path.append(os.path.abspath("./build"))
from highcontrol_py import *
# Save the robot's current work mode, updated by callback.
# -1 indicates that status data has not been received yet.
# Integer assignment is an atomic operation under GIL protection, no lock is required.
latest_workmode = -1
def on_robot_hardware_status(status: RobotHardwareStatus):
"""Hardware status callback: Update current work mode."""
global latest_workmode
latest_workmode = status.workmode
def main():
# 1. Get the HighController instance and initialize it.
ctrl = HighController.instance()
ctrl.init()
# 2. Wait for DDS data synchronization.
sleep(1)
# 3. Register hardware status callback.
ctrl.subscribe_robot_hardware_status(on_robot_hardware_status)
# 4. Motion 1: Get up from fall
print("Start execution: Get up from fall")
ctrl.publish_cmd(0, 0, 0, ControlCmd.FALLTOSTAND)
# The stand-up motion takes approximately 13 seconds.
sleep(13)
# 5. Motion 2: Wave greeting
print("Start execution: Wave greeting")
ctrl.publish_cmd(0, 0, 0, ControlCmd.SWING)
# Wait for the wave greeting motion to complete.
sleep(12)
# 6. Motion 3: Dance
print("Start execution: Dance")
ctrl.publish_cmd(0, 0, 0, ControlCmd.DANCE2)
sleep(5)
# Wait for the dance motion to complete.
# 7. Before falling, judge whether it has entered walking mode according to the callback.
# Check every 5 seconds, maximum waiting time 35 seconds.
print("Waiting for the robot to enter walking mode...")
for _ in range(7):
print(f"Current workmode = {latest_workmode}")
# workmode = 2:Walking Mode
if latest_workmode == 2:
print("Robot has entered walking mode!")
break
sleep(5)
else:
print("Timeout waiting for entering walking mode, fall motion will not be executed!")
return -1
# 8. After confirming entering walking mode, execute stand-to-fall motion.
print("Start execution: Stand-to-fall")
ctrl.publish_cmd(0, 0, 0, ControlCmd.STANDTOFALL)
# Wait for the fall motion to complete.
sleep(10)
print("Motion demonstration arrangement completed.")
return 0
if __name__ == "__main__":
sys.exit(main())
3. Compile the Code
Save and exit, then run the build script in the project root directory. The link files required for Python will be generated.
./build.sh
4. Run the Code
After compilation, run the Python code in the project root directory.
python3 src/main.py
IV. Demonstration
The following is the actual robot running effect.
Google Drive video link:https://drive.google.com/file/d/1_VR27FjUbZjq__aVnVXwjAt2SrH70jYA/view?usp=drive_link