Lebai Robot Python SDK
Project description
乐白机器人 Python SDK
使用说明
pip install lebai
LebaiRobotAsync
:提供基于async/await
的异步 API。LebaiRobot
:提供同步的 API。
安装依赖(Python 3.7+):
pip install grpcio asyncio protobuf
示例:
import math
from lebai import LebaiRobot, CartesianPose, JointPose
def run():
rb = LebaiRobot("192.168.3.218")
rb.start_sys()
rb.movej(JointPose(0, -1.2, math.pi/6, 0, math.pi/4, 0), 0, 0, 1, 0)
base = rb.get_actual_tcp_pose()
p2 = CartesianPose(0.1, 0, 0, 0, 0, 0, base=base)
rb.movel(p2, 0, 0, 1, 0)
rb.stop_sys()
if __name__ == '__main__':
run()
安装 Python 和 pip
查看 Python 版本:
python --version
如果 Python 版本小于 3.7:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.9 python3.9-distutils
Ubunutu 16.04
sudo apt remove python3-pip
sudo python3.9 -m easy_install pip
如果 Python 环境配置有问题:
sudo ln -sf /usr/bin/python3.9 /usr/bin/python3
sudo ln -sf /usr/bin/python3 /usr/bin/python
sudo ln -sf /usr/bin/pip3 /usr/bin/pip
python -m pip install --upgrade pip setuptools wheel
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lebai-0.3.2.tar.gz
(62.7 kB
view details)
Built Distribution
lebai-0.3.2-py3-none-any.whl
(68.6 kB
view details)
File details
Details for the file lebai-0.3.2.tar.gz
.
File metadata
- Download URL: lebai-0.3.2.tar.gz
- Upload date:
- Size: 62.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4534696203cac963342adedd7ededf40ce016c969264632bbea35cc340f3c433 |
|
MD5 | e0b6516d2bcb5327540579cc00deef87 |
|
BLAKE2b-256 | 9569333eb60e5b11f5f3fb41629c0d35efadea9afae732380bfcb755178e40a5 |
File details
Details for the file lebai-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: lebai-0.3.2-py3-none-any.whl
- Upload date:
- Size: 68.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 597cef51a71776de858327a4b0ec7c5c9781f3d88f25c72ec4bd6c535e6204c8 |
|
MD5 | 8ee7366cfdb96a23ec408f855de75e34 |
|
BLAKE2b-256 | a5934887cb1c653de7fba747f71ef506a32870af167de871bfeb8689f453985b |