Skip to main content

Lebai Robot Python SDK

Project description

乐白机器人 Python SDK

使用说明

pip install lebai

API 文档

  • LebaiRobot:提供同步的 API。

示例

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 >= 3.5

安装依赖:

pip install grpcio protobuf

Project details


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.5.1.tar.gz (63.5 kB view details)

Uploaded Source

Built Distribution

lebai-0.5.1-py3-none-any.whl (70.8 kB view details)

Uploaded Python 3

File details

Details for the file lebai-0.5.1.tar.gz.

File metadata

  • Download URL: lebai-0.5.1.tar.gz
  • Upload date:
  • Size: 63.5 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

Hashes for lebai-0.5.1.tar.gz
Algorithm Hash digest
SHA256 d62de8bc837154878f8189fa3ca07effd8ef8c65708615e661a1bb721b4e690e
MD5 9cf983b2557a2377f389ca6d6a102ae7
BLAKE2b-256 70c305be84f088f2f3b4d4d6040d7ec85e32e3b317fce96b76e2f85001dcf9ce

See more details on using hashes here.

File details

Details for the file lebai-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: lebai-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 70.8 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

Hashes for lebai-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7a0b55964cd701d7e63bf6114521b991f17771a6beaca2fea2d33516e88e5dd3
MD5 56289704f0ab381c457ae9ccffc9b553
BLAKE2b-256 faa9f02875e6b8c293905c94d3365c68d8c09017c1cc2a80ffa670a57c32f70c

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