lebai controller python sdk
Project description
lebai-sdk的源代码仓库,可以用于控制乐白机械臂。
OS | C++ | Python | C# | Java |
---|---|---|---|---|
Linux | TODO | TODO | ||
Windows | TODO | TODO | TODO | TODO |
包管理直接安装
python开发可以直接从PyPI安装。
pip install pylebai
目前支持的Python版本有
3.6
3.7
3.8
3.9
3.10
从源代码构建安装
Ubuntu&&Debian平台
依赖
- gcc or clang support c++14
- cmake >= 3.18
- swig >= 4.0
- python3 >= 3.5 (可选,如果需要生成python的接口库)
- doxygen (可选,如果需要C++文档)
- jdk, maven(可选,如果需要生成java的接口库)
相对旧的发行版系统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_DOTNET: 是否编译.NET接口 默认为OFF(请先安装好.NET的开发环境)
- BUILD_JAVA: 是否编译JAVA接口 默认为OFF(请先安装好JDK和Maven)
- 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.13-pp38-pypy38_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: pylebai-1.0.13-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.6 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 | a362af28798d86f44dfadc7dd596ef93a4ad40d8bd9258bd58f829d72b2a2000 |
|
MD5 | b373252f0b3656deccbe2448b422e0db |
|
BLAKE2b-256 | 88f611cdbe48d4f79f9f0e5621107193a10a526035056643d3caf1b3edd282e2 |
File details
Details for the file pylebai-1.0.13-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: pylebai-1.0.13-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.6 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 | b18c5901a046561388242a6d0fbcd41c70e79e3d98a318cd46b6b2ff622e079a |
|
MD5 | 58a9cc4e30f52d897919b7ed4fbb5078 |
|
BLAKE2b-256 | 35f52cbffdeb5a8ca7671e4a67b3697fe6b67c781a8e9d5da07c0539c0242fc9 |
File details
Details for the file pylebai-1.0.13-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: pylebai-1.0.13-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.6 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 | 7242bb7b8715cd34ed6af54f4e395f2bf4774a993910f781d84aafea3dbba6f2 |
|
MD5 | e9980569064706c2f902d3cde542e111 |
|
BLAKE2b-256 | 4bfc5f33f69bc57c5926105f0b3236f43209a77f4ca365751904c97c31f54cd0 |
File details
Details for the file pylebai-1.0.13-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: pylebai-1.0.13-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.6 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 | 1ce193f3bb506573d730c66bccde19426bdc69c514e8883414e559b5766a7235 |
|
MD5 | 28905d8bad3fe2339bcbffa10f8211d0 |
|
BLAKE2b-256 | 9803af053c8203628ccb9a8172efe91b2af9ee8a781b89f3b3e258c2f64d87d1 |
File details
Details for the file pylebai-1.0.13-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: pylebai-1.0.13-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.6 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 | 67088cc55a983a4dd0731206b7bf4131768cb9a6d0ed684d57961cf29f62c7a1 |
|
MD5 | 1f7ca1c2ab4744049579bbe76c576be0 |
|
BLAKE2b-256 | 7093a127d908b999ab7896fcdcb649ec527352494c654cf6856cebf7199f59dc |
File details
Details for the file pylebai-1.0.13-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: pylebai-1.0.13-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.6 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 | 9200a857042310d45542ad5a1b9543d586aede007fe8222f32c1efc3f75e4880 |
|
MD5 | b2371387ec90aef073efb941b233ac30 |
|
BLAKE2b-256 | 4406f75488df0ef609f734f6213c2ef23e80463d6e78643a43c4c47df3623adb |
File details
Details for the file pylebai-1.0.13-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: pylebai-1.0.13-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.6 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 | 966caa7e3d246bed682d520546aba94b121782912ba7f71a139978e4d79c61aa |
|
MD5 | 38e8263b4c296e83236c0577e2bfb4ae |
|
BLAKE2b-256 | 3a674f1670a2f4d8c8734b381a79a1550c9de5fe24d3164204a3e3bcb7087625 |