Skip to main content

lebai controller python sdk

Project description

lebai-sdk的源代码仓库,可以用于控制乐白机械臂。

SDK在线文档

包管理直接安装

python开发可以直接从PyPI安装。

pip install pylebai

从源代码构建安装

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_DOTNET: 是否编译.net接口 默认为OFF(请先安装好dotnet的开发环境)
  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pylebai-1.0.11-pp38-pypy38_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.0 MB view details)

Uploaded PyPy manylinux: glibc 2.12+ x86-64

pylebai-1.0.11-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.0 MB view details)

Uploaded PyPy manylinux: glibc 2.12+ x86-64

pylebai-1.0.11-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.12+ x86-64

pylebai-1.0.11-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

pylebai-1.0.11-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

pylebai-1.0.11-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

pylebai-1.0.11-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

File details

Details for the file pylebai-1.0.11-pp38-pypy38_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for pylebai-1.0.11-pp38-pypy38_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c0debb67f69b6fd293ff6b0151460dc412aca45ee4288653b5e037938e2632f2
MD5 02eeaddfdc7ceb39ab378648ea434b1c
BLAKE2b-256 e03bfe32a09198606937b5c9277dd03e9e55703f9f7fe4f4f4c61f7ccf4b68b1

See more details on using hashes here.

File details

Details for the file pylebai-1.0.11-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for pylebai-1.0.11-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 05d2e515dffffb5fe56287380944a3c0cde690be5e754b7c635f66e01dfeb4e4
MD5 d366df2a8403551c8e874d3441ad5d7c
BLAKE2b-256 38b38afb76466d0d01617522de278f1b7d3afe4b1312f05f8d99f836b7ff5fe9

See more details on using hashes here.

File details

Details for the file pylebai-1.0.11-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for pylebai-1.0.11-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 b3e3ee46e38aa7a81bf853ab7398ed7a48cb890c75add7fcc53bd86e39cac046
MD5 69dd1476b0cc59b084922721bb8e2150
BLAKE2b-256 36ab89a461465ad6fbb7845d6437f1e1ef3fd90ddb540f9dfbc0ea0190527151

See more details on using hashes here.

File details

Details for the file pylebai-1.0.11-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for pylebai-1.0.11-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9b496d15617b2bb05451b257367a05b9bd528ee0fdf0ffd1646502d10d71e8e1
MD5 ccf2c2050c2b4945bfe4dd987b163063
BLAKE2b-256 0f6001531c0d9e6bd35fab6d5b3009a90f67c7a1d2707766c3a1d797be99a7ef

See more details on using hashes here.

File details

Details for the file pylebai-1.0.11-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for pylebai-1.0.11-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 0d8d5b50eaddaee534259247a345cec90b4404228ef8d32b22a9a3becfd8b5cf
MD5 f3fb4e1ed170156d3efcc639e72dcc13
BLAKE2b-256 b6f6b5bff0159b16ae2c54e63b87fe738c84002509c349df235ef343617a9481

See more details on using hashes here.

File details

Details for the file pylebai-1.0.11-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for pylebai-1.0.11-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9871393dff316e25d8530fefdbe7f28f1ecbb15d8ddb383459eacba2cd9e3064
MD5 05e696bfafde6eb0e016ef7aac879160
BLAKE2b-256 ed0a67530587de1b5afc907a17c9c3d814209aafa4ddc8793d122236b4503091

See more details on using hashes here.

File details

Details for the file pylebai-1.0.11-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for pylebai-1.0.11-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ff718651b81ec15214f74d35c54d75ca530537ce42f8dd80f0865576c5060cda
MD5 bc9987cafecef2897207f49043e48b63
BLAKE2b-256 07c11c02f9c2d6c839917b7908f29266bf3846c5f2ee878a3566cb03ff4bff20

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page