
57
11.xArm-Python-SDK Library
11.1.Introduction
The xArm-Python-SDK is an integrated library for controlling a series of motion planning
that is based on controller communication protocol package, and the SDK is for advanced
users. When controlling the real machine, make sure the robotic arm will not touch any
obstacle. Please read this manual and the Python interface instructions carefully before
using the Python library.
Note: The Python chapter of this manual was written in January 2019.
For the latest code and document, please check github:https://github.com/xArm-Devel-
oper/xArm-Python-SDK
11.2.Download and Install the Python Library
Before running the Python library, make sure the computer have the required operating
environment.
To download Python, please check the official website of Python: https://www.python.org/
Python version:Python 3 and above
System:Win/Mac/Linux
To download the xArm-Pyhton-SDK:https://github.com/xArm-Developer/xArm-Python-SDK
Installation package:git clone [email protected]:xArm-Developer/xArm-Python-SDK.git
Installation:python setup.py install
11.3.Get started
Before controlling the robotic arm motion, make sure the hardware connection is success-
ful, please check the following:
1.The robotic arm is installed properly and will not touch any obstacle.
2.The cable is connected properly.
3.The controller is turned on and the status indicator lights up.
4.The communication between the controller and the computer is successful, via Ethernet
TCP/IP (the controller LAN indicator lights up) or RS-485.
5.The xArm power indicator lights up and the robotic arm is powered.
11.4.Typical motion flow of the robotic arm (position mode)
a.Connect the robotic arm
b.Enable the robotic arm (enable the servo motor)
c.Set the robotic arm mode as '0' (position mode)
d.Set the robotic arm status as '0' (motion status)
e.Send location