lebai controller python sdk
Project description
lebai-sdk的源代码仓库,可以用于控制乐白机械臂.
OS | C++ | Python | C# | Java |
---|---|---|---|---|
Linux | 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
- ENABLE_TSAN: 编译是否启用Thread sanitizer检查 默认为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.15-pp38-pypy38_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: pylebai-1.0.15-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.2 setuptools/63.4.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 326299720dbfe07724f5918996b7876eb7b5650b0860e3780c08ef12066f39a8 |
|
MD5 | 19a3aedd9289671cbef6c551bfd65f75 |
|
BLAKE2b-256 | 80fe6de1dd94445e0678efac38bb7b643dd1e3e87711e43dc6650d0824db7acd |
File details
Details for the file pylebai-1.0.15-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: pylebai-1.0.15-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.2 setuptools/63.4.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 605000e2a543617aa8143c71968da9ab3ea47100d9fcc9d75aec42a31ed96905 |
|
MD5 | 6a483fe410e68a8e29a84361cf1f061e |
|
BLAKE2b-256 | a1aa39f514500e18ba5cef861210f51e1e1a75bd57fcb922e7310356e4602acc |
File details
Details for the file pylebai-1.0.15-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: pylebai-1.0.15-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.2 setuptools/63.4.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba060cf7bce4d570f5f1c30ef3f1987b4c95ddd849bd838009ea67a696ab9da7 |
|
MD5 | 524d36dd1f18fa71d25315148ac0d245 |
|
BLAKE2b-256 | 613d001d46f818d7b65bdd2327ecf116e0f73eda5469c520d9fcac2ffb9a9cda |
File details
Details for the file pylebai-1.0.15-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: pylebai-1.0.15-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.2 setuptools/63.4.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2db9db589bc65351916fd9d7c1e57d95928cadabde07223c51a9694baad40bce |
|
MD5 | 6833c623d484643a85843efd66bbeb85 |
|
BLAKE2b-256 | 1a04aeed83362ca50e84c20d6e1c07f9dd9bcc9e4f6fd9f634782d71c93cc4c6 |
File details
Details for the file pylebai-1.0.15-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: pylebai-1.0.15-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.2 setuptools/63.4.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 679cd39b9e4dfd858871caa3b7d5e3741066924c2e2067ff8f1439201f3a3125 |
|
MD5 | 609cc81dc2167d429001cbf4bd4f4005 |
|
BLAKE2b-256 | d43dae85044c89c92202fd493a0dda09cace432919e769d38c9b584dc5881bdc |
File details
Details for the file pylebai-1.0.15-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: pylebai-1.0.15-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.2 setuptools/63.4.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2db3a63b233626837877f73121febcdbf5894c9b5218b3bd2a46adced0b8dd7f |
|
MD5 | 19c8a04e7f9a3456bf9abbc050ec3361 |
|
BLAKE2b-256 | 28e891433a546abefe85be21f71658541bc97b80886722c9979150df206ad245 |
File details
Details for the file pylebai-1.0.15-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: pylebai-1.0.15-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.2 setuptools/63.4.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d94154ce24dad8605a2f9defc962acd355aef8669fb1352e40a41f5d0f660681 |
|
MD5 | f662f36f5a8a2c227ffc4a439881d2e8 |
|
BLAKE2b-256 | d9ace69f4c1dd888e49c22d4df1dce6b4c92fb980abf9559f3149d536c4cb729 |