add unitree_legged_sdk 编译

This commit is contained in:
wzx 2023-12-26 10:21:53 +08:00
parent c4b67d04ec
commit 2ba467e024
3 changed files with 32 additions and 2 deletions

View File

@ -156,7 +156,25 @@ python36 -m pip install XXX
# 二、ZKMetaApi 使用
## 1. 编译unitree_legged_sdk
[unitree_legged_sdk](https://github.com/unitreerobotics/unitree_legged_sdk)
``` shell
git clone https://github.com/unitreerobotics/unitree_legged_sdk.git
cd unitree_legged_sdk
mkdir build && cd build
cmake .. && make
# 如果需要使用python sdk
cmake -DPYTHON_BUILD=TRUE .. && make
```
## 2. 使用python sdk
### 2.1 arm架构
机器狗所使用的处理器架构为arm
将example_py下的.py文件中```sys.path.append('../lib/python/amd64')```改为```sys.path.append('../lib/python/arm64')```
### 2.2 amd架构
PC端调试不需要更改example_py下的.py文件
# Tips
## [unitree_legged_sdk编译问题](docs/unitree_legged_sdk编译问题.md)
## [code-server安装插件证书问题](docs/code-server安装插件证书问题.md)

View File

@ -8,6 +8,9 @@
*
* Copyright (c) 2023 by LLM, All Rights Reserved.
-->
# zkmetaapi
this is an api call zkmeta_api by Boss Qiu.
# How to use ZKDogAPI?
In this markdown file, we will introduce the usage of ZKDogAPI.
## get lib
You are recommend to read [How to compile the unitree_legged_sdk](../README.md) at first.
After compiling the python sdk, you can copy the robot_interface.cpython*.so to the directory named 'src'.

View File

@ -0,0 +1,9 @@
# 缺少boost库
``` shell
sudo apt install sudo apt-get install libboost-all-dev
```
# 找不到pybind11
在 python_wrapper/CMakeLists.txt第14行添加
```
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/third-party/pybind11/include)
```