Skip to main content

lebai controller python sdk

Project description

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

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


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.8-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.8-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.8-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.8-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.8-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.8-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.8-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.8-pp38-pypy38_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for pylebai-1.0.8-pp38-pypy38_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 6f839f6c3c821dee8a32458a9227cd46368b05498314fb0c4a0d7c5e1b325dda
MD5 1fde51b0ada8dc7883322c9b3f704224
BLAKE2b-256 390463f53f4c3f32d001a60962996720d289a886446d16ca2b102d0465b2bfd4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.8-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ca0c5865f056384b3066e30193d2bb9d613a06920e16bb565a08db458a07b4d6
MD5 6956be675563ae7503715d78637b060f
BLAKE2b-256 7854a5ce7160a67413477521f72fae11827c80bd3a584217a08a9f06b70d70bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.8-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 804e0d36ba8772a55d45bc1e2f1c9b623bbb6b0dadf3df328f666fac568d02a6
MD5 e5368b0de9f8938248e926a6dc0c5ae6
BLAKE2b-256 eb54b72e1071a9d2e0eddad367930386b27c21be4f41e6a21f3d78581d218d05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.8-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 7fc6443f3428602fc373fc91e77e84a6af35231bdcf2f5f1de37c122aa92853a
MD5 5de7b9b8a180424c94b0b687b8db3e4e
BLAKE2b-256 90caebc43b9714ed6a04667dd80be6ea751bc2ea94f01d530c486a40eac6a72c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.8-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 16e17a79a3dab6fcc4367edf362f61503d1b7bdd639c68b0e706362bcd31ac1f
MD5 135097e4c0159abf7f246be4c8b9e8f6
BLAKE2b-256 d6261dce5df8954d961109826d51395b856cda85ad10b57b7fd6690b42b34ffb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.8-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 8885d1cfa058b1af096fca67c4888f69b4a1a936a0fb3dcebd6bca66c764fc15
MD5 e6722c81f7c37c6c94f8b2a4074be76e
BLAKE2b-256 255cc216ed9aab838996db5c35db990dd329cbbf2fb8e062defd075c86940497

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.8-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 b18d9e7cdf4cf2d91287f9b6379a25dffa50d29eabed9f68b2d4d0b89712fe23
MD5 df9fe133aad86eb5c33fabb94748188b
BLAKE2b-256 4c30fc521578dd92d5fdf40f75bc1e5c4f24a6d2a3b1e9375ed84d93b825dc9b

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