Skip to main content

lebai controller python sdk

Project description

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

OS C++ Python C# Java
Linux Status Status Status TODO
Windows TODO TODO TODO TODO

上图中显示TODO的地方表示该平台该语言的实现还存在问题,没有完全测试通过,后续会陆续完成。

SDK在线文档中包含了lua语言的接口(本项目参考了lua语言进行接口设置,但是本项目和lua语言的接口无直接关系)

包管理直接安装

python

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

目前python仅支持linux平台,windows平台还存在问题.

pip install pylebai

目前支持的Python版本有

  • 3.6
  • 3.7
  • 3.8
  • 3.9
  • 3.10

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

.net

.net平台开发可以直接从Nuget安装,使用C#进行开发.

目前.net仅支持linux平台,windows平台还存在问题.

dotnet add package lebai

目前支持的.net版本有

  • 6.0

从源代码构建安装

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


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.16-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.0 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

pylebai-1.0.16-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.0 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

pylebai-1.0.16-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.16-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.16-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

pylebai-1.0.16-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

pylebai-1.0.16-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.16-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

pylebai-1.0.16-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.16-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

pylebai-1.0.16-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.16-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.16-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.16-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pylebai-1.0.16-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 66ede02cf9745d806e40c3be76991032972bf9d4caeb54e3c062bc1e2a17cb8f
MD5 e924c0c0ea37e71b9e03964a87486ca0
BLAKE2b-256 eb9106645dcdc94f1ca7a4d2e15bdcc1ea03cb74dfd5a756520718ee0f852fc7

See more details on using hashes here.

File details

Details for the file pylebai-1.0.16-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pylebai-1.0.16-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e7cf12ebd1c8b1839a59b8af2488aedf7ee2c751ea5be1a43491e59193df2a78
MD5 3d77c692b7a85a16f676f2fa2369af18
BLAKE2b-256 a40e8091aa2d83a45f79df46f98ff34f698495c2c6aa40c09fa088a5833ba6c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.16-pp38-pypy38_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 56a74a76546bce007b743c0787934bc925cdf731fa4235c754a29136df5f134e
MD5 66807f6ae32c17b99ede886d59a16db3
BLAKE2b-256 3cd11218f7e5a71176e4161530574380701b099ca76a6020e28646d940f885ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.16-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 cc23c2f955a3d11c5d425775fb66e744b10995a447c2d7f3bd8a8faf7cc49f14
MD5 bd9332dff2c745909cb48f139744f683
BLAKE2b-256 193ad899fd60ebc01668ba2608c7cb43689ab1b93461984893cd63e0577042a3

See more details on using hashes here.

File details

Details for the file pylebai-1.0.16-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pylebai-1.0.16-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f80ec54361905a930d8bb81a2397197cf3e11e455ad7874ffbe71fe421e164bd
MD5 711412c592bbb7613b918afcb16c3f0d
BLAKE2b-256 eadf729081eb85bc3b3340e0fba21b5f24bdc35bdd1b03af275a13a32c1be45f

See more details on using hashes here.

File details

Details for the file pylebai-1.0.16-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pylebai-1.0.16-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 69164104fc95512d6596fd963a238e60245f3a3599c9ea46ebf470e216986713
MD5 8443a0cf1fccb1a3d27ba90aaaec7633
BLAKE2b-256 33277a6092f687ee02344fe7eee7bad0453f74aa2a3733296c69e5b4ebe9c162

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.16-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4159d42cb9685fc454e8244f819aa29b2f987302bc6b4a1d46a84e270dbc6c43
MD5 be9f9547026bd858978dfeb86e2b9f56
BLAKE2b-256 5cf459ea1dedd9bf3809889b85a1d55b5192f9a27680a636a5cd6df9996b67ca

See more details on using hashes here.

File details

Details for the file pylebai-1.0.16-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pylebai-1.0.16-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c0c02bf1413c790cdb9a1430c8cb52c34bd390e72ff689fcf56df2405e087cc6
MD5 79149931c419e323b43de1c20ba9a56f
BLAKE2b-256 8a8771b7237b7f87d686e87edbcd7e391009a99547421241fb6b242a965a43ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.16-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 e8fe7144220eb809d48b4f2ac79e703876995c514fe4e34eda3af7fb09f9b9d8
MD5 20378782026b47d378f7e22f6acd3717
BLAKE2b-256 29680dc1e550d24841a160049b79cd7a45b6ae6ae85793b3a50a117313b2960a

See more details on using hashes here.

File details

Details for the file pylebai-1.0.16-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pylebai-1.0.16-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ef1262e487c30235be9472c0a08d8d9679b9a5439b35f5b3cf76e475d072f911
MD5 31edd710edca6bff654dcc8c470f69e0
BLAKE2b-256 3406e35fdd881813a190619ed5f1302f389b848ae2bbf8139e9fa62872af0c14

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.16-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 961fdc4a54243112d37f93de48046e95c7da0a347878e7792a821ff6f28c5196
MD5 caed99e582f8bdb45355cb80e310de68
BLAKE2b-256 ff1332126706ffa00173d827cbb6bc51e58c3bf7c065b092d77d7ba5f740898e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.16-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 6d9a233bec68161de497cd6c708ebd283573028f3e6585cdb6772d64ac46a24e
MD5 abf65b3da690700a021c09b9b123baeb
BLAKE2b-256 1ab81b531e69b18819ff264100e13a7e38df72c02f3481587a1c221789cbe4f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.16-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 baed40bef142b99769e1cc58ae968b9ba86b00ce5638b7422d4fdf229e64d3bb
MD5 010f33f31301513ad68432a0e63d22f0
BLAKE2b-256 7d0c98477d377dc6836561f7fd5c3968da535e44992aafb2611505e1b0f05010

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