Software
unitree_sdk2
By Unitree Robotics, China (checked on github.com/unitreerobotics (opens in a new tab)), from github.com/unitreerobotics/unitree_sdk2 (opens in a new tab)
- Humanoids and robot learning
- Driver or SDK
- BSD-3-Clause
Unitree's second-generation C++ software development kit for controlling Unitree robots. It provides the library and examples needed to build applications that talk to the robots.
- Closed core. It needs closed parts: libunitree_sdk2 (prebuilt).
Facts
- GitHub stars
- 1,462read on 29 Nov 2026
- Last update
- 19 Nov 2026Newest commit on main
- Maintenance
- Activea commit in the last 90 days
- Difficulty
- Intermediate
Checked on GitHub on 29 Nov 2026.
Licenses
- Code
- BSD-3-Clause (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (BSD-3-Clause) at commit b7fec60 (opens in a new tab), on 22 Nov 2026.
- Commercial use
- Unknown
It needs closed parts under their own terms: read them before any commercial use.
One part it needs is closed
- Needs libunitree_sdk2 (prebuilt): The C++ SDK's core ships as a prebuilt library without source (x86_64 and aarch64).
At a glance
- What it is
- Provides a C++ SDK (version 2) for Unitree robots.
- Includes example programs in the repository that can be built with CMake.
- Can be installed to a system directory or a custom prefix for use in other CMake projects.
- Includes a sample showing how to import the SDK into a CMake project via find_package().
- Lists the dependencies needed to build it, such as CMake, GCC, yaml-cpp, Eigen3, Boost and fmt.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- BSD-3-Clause. Commercial use: Unknown. Where it was read
- Install
- In the creator's words: The project's README (opens in a new tab)
- Maintenance
- Active, last commit on 19 Nov 2026.
Use it
How to install it, in the creator's words: The project's README (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/unitreerobotics/unitree_sdk2 (opens in a new tab)
- The version Robotheca readb7fec60 (opens in a new tab)
- Latest releasev2.0.2 (7 Jul 2025)
Robotheca read the repository at two versions: the summary at d1abf00 and the facts and the README at b7fec60 (read on 29 Nov 2026).
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by Unitree Robotics, at commit b7fec60, under BSD-3-Clause (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
unitree_sdk2
Unitree robot sdk version 2.
Prebuild environment
- OS (Ubuntu 20.04 LTS)
- CPU (aarch64 and x86_64)
- Compiler (gcc version 9.4.0)
Environment Setup
Before building or running the SDK, ensure the following dependencies are installed:
- CMake (version 3.10 or higher)
- GCC (version 9.4.0)
- Make
You can install the required packages on Ubuntu 20.04 with:
apt-get update
apt-get install -y cmake g++ build-essential libyaml-cpp-dev libeigen3-dev libboost-all-dev libfmt-dev
Build examples
To build the examples inside this repository:
mkdir build
cd build
cmake ..
make
Installation
To build your own application with the SDK, you can install the unitree_sdk2 to your system directory:
mkdir build
cd build
cmake ..
sudo make install
Or install unitree_sdk2 to a specified directory:
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/unitree_robotics
sudo make install
You can refer to example/cmake_sample on how to import the unitree_sdk2 into your CMake project.
Note that if you install the library to other places other than /opt/unitree_robotics, you need to make sure the path is added to "${CMAKE_PREFIX_PATH}" so that cmake can find it with "find_package()".
Notice
For more reference information, please go to Unitree Document Center (opens in a new tab).
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.