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 requests

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

Uploaded Source

Built Distribution

lebai-0.7.3-py3-none-any.whl (72.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lebai-0.7.3.tar.gz
  • Upload date:
  • Size: 68.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for lebai-0.7.3.tar.gz
Algorithm Hash digest
SHA256 f47c38a6b574569493663e9ac17150c2f41d66370f83f661f9834d8b9def475b
MD5 89a88f297f966ccb5af26a20cdf66a67
BLAKE2b-256 72a15b9ff2db8396cbfc336ec1c891bc1e4204e8c22ec41afd7856c9fc6729fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lebai-0.7.3-py3-none-any.whl
  • Upload date:
  • Size: 72.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for lebai-0.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bf3bc5d4c30c3ee01dd76b2c1996df4a9bf641adcff5790b247eb91e3c018798
MD5 deff46b581b0cb80eaacd2295cd0dec0
BLAKE2b-256 461ddc674119062a32d8e1e607901484a4a537cfe3d8c0c25159c1d3bdee931f

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