Skip to main content

lebai controller python sdk

Project description

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

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

SDK在线文档

包管理直接安装

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


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

File metadata

File hashes

Hashes for pylebai-1.0.12-pp38-pypy38_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 77265944c05d0a70ce06600079b87f6a5039bdf3e23c55cfc58e71ca57a66b8f
MD5 9a05900c199c5bf1169e73c527285027
BLAKE2b-256 caf808b6468ab5674e1cb61fc09ae05f52ce1dc5d53def5cc6cde61e2f73cba7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.12-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d9852f3e71a160e1afacbf76a80f578cfffefaf8b429c04dc3009b0b242eea14
MD5 9b2d71649fdc89624151d5ccb1b362d4
BLAKE2b-256 9e5e2e2f21169403407a7080b8bedbf88e6cc93eb803162a54f295de048c184a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.12-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 707a19a03211f2396ab17933a9a106336234155be54d30ac5b8311889b966fa7
MD5 6597ac0c1a3dc3c793596c63f1c210f3
BLAKE2b-256 e631f76e8303fc5bb07630585eac8ff63a2cc4f8cc340cfc1269b3a1ed8a3629

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.12-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9c96e2229dcb3c22cf54249135a7c1b344c828c31b35bc5f06e54744f8c92036
MD5 b9f7b59ca26414efa344cab698ff550f
BLAKE2b-256 5857b250c7ff81790761e24a6c0fb65f2fd749ffd56d1ea524279d04bee584f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.12-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9cdb02c757c2806382a427fc2c5b39a8df16b5bf87ece9f350a216e149ca1c72
MD5 5dcad28a116aa82bb18ed5ffd036dac6
BLAKE2b-256 bedd0c66164c4cf47264ea192b3d7314d440b952379323cf036ec0ae596c987a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.12-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c018d45e78dc669edd69726f78b2713da6fcc1c8e8a0c2cc3759d6810a3f4ceb
MD5 24a931586640735a4f81fb8b52d72b1e
BLAKE2b-256 671463b34aa06b4bbbd8085b03dbc86096818360a29e9f452706df91fba7d6a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.12-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 66acb29bd9d301e2f8ce247efa656abfb5f467ab2b69b4d509fd17da3359dcb6
MD5 268186b58e77e8da122f376879f9a10b
BLAKE2b-256 7bc15c620924ebfe2d4b45ea716d2d903449c9e282805439473730c77666a476

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