Skip to main content

WKlata Mirobot Python SDK

Project description

勤牛智能 Mirobot六自由度机械臂 Python SDK

安装包

Windows

pip install wlkata-mirobot-python

Ubuntu

sudo pip3 install wlkata-mirobot-python

准备工作

  • 将机械臂上电并连接到电脑的USB端口处

  • 电脑安装好了CH340的驱动

  • 安装好了Mirobot的Python SDK

快速入手

'''
机械臂腕关节的位置控制, 点控P2P(point to point)模式
'''
import time
from wlkata_mirobot import WlkataMirobot

# 创建机械臂
arm = WlkataMirobot()
# 回归机械零点 Homing (同步模式)
arm.home()

print("运动到目标点 A")
arm.set_tool_pose(200,  20, 230)
print(f"当前末端在机械臂坐标系下的位姿 {arm.pose}")
time.sleep(1)

print("运动到目标点 B")
arm.set_tool_pose(200,  20, 150)
print(f"当前末端在机械臂坐标系下的位姿 {arm.pose}")
time.sleep(1)

print("运动到目标点 C, 指定末端的姿态角")
arm.set_tool_pose(150,  -20,  230, roll=30.0, pitch=0, yaw=45.0)
print(f"当前末端在机械臂坐标系下的位姿 {arm.pose}")

使用手册

详细的API说明与示例代码, 请参阅 doc/WLKATA MIROBOT Python SDK使用手册/

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wlkata-mirobot-python-0.1.12.tar.gz (19.2 kB view details)

Uploaded Source

File details

Details for the file wlkata-mirobot-python-0.1.12.tar.gz.

File metadata

File hashes

Hashes for wlkata-mirobot-python-0.1.12.tar.gz
Algorithm Hash digest
SHA256 cddc8e7c9d25f9deea884a73d80ce2fc33eab1941d19c79fff6934b112cf1e3f
MD5 89f07c6bacd1225b92a4fc72524a8835
BLAKE2b-256 2b7f76916bc6c19a7ae7029653a30a6d7cb2eadbb488cecf742a0ad9a4e31a9d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page