Skip to main content

lebai controller python sdk

Project description

从源代码构建安装

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.7-pp38-pypy38_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (908.7 kB view details)

Uploaded PyPy manylinux: glibc 2.12+ x86-64

pylebai-1.0.7-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (908.7 kB view details)

Uploaded PyPy manylinux: glibc 2.12+ x86-64

pylebai-1.0.7-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (908.6 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.12+ x86-64

pylebai-1.0.7-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (908.7 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

pylebai-1.0.7-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (909.0 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

pylebai-1.0.7-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (907.6 kB view details)

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

pylebai-1.0.7-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (907.6 kB view details)

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

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.7-pp38-pypy38_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 059449ef707dacbe0e8e8befe42ac4d865d3721ecf9e1b7164e90709db13b449
MD5 520924460b91c1c45ecead67504c1152
BLAKE2b-256 13f124ecb9ef70cd85da2ac993853b46e1658d39a1f0f6197ec28ebd422aef2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.7-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c285d094024f0e77f1b357e9ce65193ff0847fd7de4c52494801ebe1acd9a350
MD5 de8302af7c9ab6c9da6d92dd507ea76e
BLAKE2b-256 7dafd17779c3fa13d5f8ecbc65e651a48b92beba379ba1ec12a9ec523aa72b32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.7-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2ebc7334ce509bf985a4de81de3911797bd79f1b52eafb264c0824424ad9b62c
MD5 fbfdbd75ac816a9bc26f4db42978811f
BLAKE2b-256 7a1edff1b30b03276bcdb64ca9fb8d5f25519963f451a682039dfc3d143ba8ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.7-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 34d4f3146babebafeacaa524aa9093f08293eada4d3e208f2d58aaff6f40c460
MD5 3afa0bf66718263dec78f136ddc3e8bb
BLAKE2b-256 60eaf333f939a1bb100cbd458f4b7b5af6789748303b9fc31bdaab5c5ee7fa95

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.7-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2b6f651e3fdd8ee962beaafec6cdc461331019beec84626e4fce4bee2585d89b
MD5 e323becd2638ad1395cf3de8a0e54fca
BLAKE2b-256 44a21e83d3997f75d2676f64702f3511567053f0c91eeac4132413eb92ec7523

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.7-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5c6bffe37e627abe3016346e35dbd8425a3442da727c50dcbcbbc08f52dfba44
MD5 24b4f48e5e89cc33a28ac6eef7cd60b3
BLAKE2b-256 b234998d4068766af18e97f3b3f405fb2ce5de45b9c1b7c2f97aa8245258fae6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylebai-1.0.7-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 dee659693e8c298971968e96806bb1d84849c94a32ae4baf5ed67612b00c824e
MD5 1e531f7a884c851f385925da1ce0a6cf
BLAKE2b-256 a26383517b6aad4407973fa2c6893051fccc8a75f32bce77789c05a858381979

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