lebai controller python sdk
Project description
lebai-sdk的源代码仓库,可以用于控制乐白机械臂。
从源代码构建安装
Ubuntu&&Debian平台
依赖
- gcc or clang support c++14
- cmake >= 3.18
- swig >= 4.0
- python3 >= 3.5 (可选,如果需要生成python的接口库)
- doxygen (可选,如果需要C++文档)
相对旧的发行版系统cmake和swig版本过低,不能使用,可以通过pip安装较新的版本:
sudo apt install build-essential python3-pip dpkg-dev
sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
# 如果需要生成文档,还需要安装doxygen。
sudo apt install doxygen graphviz
# 如果需要生成python的wrapper包。
sudo apt install python3-dev
编译
# 生成编译配置
cmake -S. -Bbuild -DBUILD_PYTHON=ON -DBUILD_DEB=ON -DBUILD_TESTING=OFF
# 编译
cmake --build build
# 运行单元测试
cmake --build build --target test
## 生成DEB包
cd build
cpack
Windows平台 Visual Studio
依赖
- Visual Studio(C++ Support)
- CMake >= 3.18
- python3 >= 3.5 (可选,如果需要生成python的接口库)
安装python库时,选择 Download debug binaries
在Visual Studio中载入CMake工程,即可以生成构建运行测试等。
目前Windows平台下python的binding部分还存在问题无法工作。
编译选项
- BUILD_PYTHON: 是否编译python接口 默认为OFF
- PYTHONPATH: PYTHON的安装目录
- BUILD_TESTING: 是否编译C++测试程序 默认为ON
- TEST_ROBOT_IP: 测试程序的机器人IP地址,正确的设置该值用于单元测试 默认为127.0.0.1
- BUILD_EXAMPLES: 是否编译示例程序 默认为ON
- BUILD_DEB: 是否生成DEB包的构建 默认为OFF
使用
您可以通过docs目录下的文档了解更多各语言的信息。
Python
build目录下会生成python的whl包,可以直接使用:
cd build/python/dist
## 安装
pip3 install pylebai-xxx.whl
### XXX取决于您的sdk版本,python版本,操作系统平台。
## 卸载
pip3 uninstall pylebai
第三方库
lebai-sdk使用如下第三方软件:
软件名 | 协议 | 官方网站 |
---|---|---|
Asio | Boost | https://think-async.com/Asio/ |
rapidjson | MIT | https://rapidjson.org/ |
websocketpp | BSD | https://www.zaphoyd.com/websocketpp |
mdns | public domain | https://github.com/mjansson/mdns |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file pylebai-1.0.9-pp38-pypy38_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: pylebai-1.0.9-pp38-pypy38_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: PyPy, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.9.2 requests/2.28.1 setuptools/63.4.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2b90a39e2b2fcfa1246ac99936e96de4a6bdb0f63731eb3134f3d3562bfad07 |
|
MD5 | 274273d9ca7a8b6b2e8bdb347cbb8cf6 |
|
BLAKE2b-256 | 712726c3d81460d00fe753045d1b935b8623f6e9953872fa4953a8577a2e8b1b |
File details
Details for the file pylebai-1.0.9-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: pylebai-1.0.9-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: PyPy, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.9.2 requests/2.28.1 setuptools/63.4.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe35f65247083db878e9d19b3ae6c329100bca2a2615eb4395514590eb265b12 |
|
MD5 | 868500c4c952115cc7c89df018b7003d |
|
BLAKE2b-256 | a1c147f4694b7ba968315571337df0647d3492e1fe15694eb7f85259dc9d6e3f |
File details
Details for the file pylebai-1.0.9-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: pylebai-1.0.9-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.10, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.9.2 requests/2.28.1 setuptools/63.4.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da7f2c3901d586a6c00a2a896eb03d49b72b5854b42d75dcd990425d687ab38f |
|
MD5 | 494749e532ac7aabcf201e9192667d0f |
|
BLAKE2b-256 | 03ff2be719855377644e1a74d8ff916307414daa9048dd54d11525530ca4312f |
File details
Details for the file pylebai-1.0.9-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: pylebai-1.0.9-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.9.2 requests/2.28.1 setuptools/63.4.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ec9c2448993dc8ab0def9ec2742a97a608f04c8c0316b38db7d3e23265329b1 |
|
MD5 | 219e9f58683e11cd01ddb3990aeaa812 |
|
BLAKE2b-256 | b1a3312ed60e0a11eda8e81d1de75f01c7fa6a7511699bf8a45838a7addca0a1 |
File details
Details for the file pylebai-1.0.9-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: pylebai-1.0.9-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.9.2 requests/2.28.1 setuptools/63.4.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9040543bee7ed9b498a40ce0a1bd7b85b8bba3debf7f8ebe331d2de3647c86af |
|
MD5 | e61bce7dbe89b5b4a3a04e7153a98b90 |
|
BLAKE2b-256 | 2f0e12b3169718e22fd4d45f9e26e1c56884670f4168846491e7e9100ccb93a2 |
File details
Details for the file pylebai-1.0.9-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: pylebai-1.0.9-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.9.2 requests/2.28.1 setuptools/63.4.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cf00abb5ff680bfabca97e0e649d8eda612f66c92248937c1c89b7b0fdb5e06 |
|
MD5 | 5eca5fcb31f37a67b4950f247ffd5120 |
|
BLAKE2b-256 | d01cd401b50a9a852d68058da985a8dff035f226500ffc1262632625c6ba1806 |
File details
Details for the file pylebai-1.0.9-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: pylebai-1.0.9-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.9.2 requests/2.28.1 setuptools/63.4.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9f38340c6059fdd18182ea83205727003566e8e8fba1a8df59297d4e79900a2 |
|
MD5 | d0d205115f2c3245f74f38e9a0d636bf |
|
BLAKE2b-256 | b1b8fc0667d7f0036633cab8a8370b111c525d1dc4ffa77e518c8e12d902ce20 |