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

File metadata

File hashes

Hashes for pylebai-1.0.10-pp38-pypy38_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 457b9e4d4cf5b7a2949342ef565e6a2ec177429747deff71b4b99b721deaa48a
MD5 72337a55e52805ad37815af38099d429
BLAKE2b-256 81dab4b89ba6facb8ae3ab27a6b6c3196b0a389aa9e88f3e28a8dc50232afc8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.10-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 bf21e6cdd0a3702c2c5823ce4fa3264998a3fe8de3a1e577bcade63e8f94d324
MD5 e745e19918b63d7651fafe698d9154e2
BLAKE2b-256 93cb7197c0385e1edcd79047b3f870b07c7a7fad0d6135d713af8239a79aef99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.10-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 27a039070e939f941fef8761b171c7428522afed04ab2821538dc33703564e67
MD5 f46422a1816c25111a3a2b0ef521f678
BLAKE2b-256 2b362b70e2ef57a0562a20926cedc73f1a6bc9fdfa039efdaa8399e21d8658b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.10-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 7b15fc81323f01a6b9af992463ace8f12b25aa4aca8e310f557f556bb6f4679d
MD5 5def6b7ffaf852af99a1f9bf13abd2ca
BLAKE2b-256 554550e3c3da857568cac70e4910659811f827390e531047b594028d815cd66a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.10-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 75a391a069a42d14df7f69ab7f2481c444ffa36c1e178a6824c3760d2ac47a77
MD5 7d8f10d57c8a65558704fcbd8ee2b331
BLAKE2b-256 b56235efa404581e5e02d7c9ba71e6fa04ece1ebde906cb80636b06ed8698f4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.10-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 1042c5faefd500620715e915ed9563c0f59b17112435b735ef090eea7e9fc6a0
MD5 793d3eda987257706f00a6f0adf84042
BLAKE2b-256 6f5c64a6ecc6aef39a46edda34aa1eb054ca99062fc6bb8c6eafa81c8ef9eaf5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.10-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 7bd37b51f10cd0b6eb83459cb7f0dcbd7754e36f74d8873f3ef1d217190eb44d
MD5 6bac77863a8cd1e6eb35796132e401dd
BLAKE2b-256 fadbc4aef50741ecab6adebbf14176cf2e1225f2b7c2d1d2002d8033dafa1ae2

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