Skip to content

Software

xArm Python SDK

By UFACTORY, from github.com/xArm-Developer/xArm-Python-SDK (opens in a new tab)

  • Robot arms and industry
  • Driver or SDK
  • BSD-3-Clause

A Python library for controlling UFACTORY xArm robot arms over network or serial connection, covering motion, settings, grippers, GPIO and force sensing.

Facts

GitHub stars
333read on 29 Nov 2026
Last update
27 Nov 2026Newest commit on master
Maintenance
Activea commit in the last 90 days
Difficulty
Beginner

Checked on GitHub on 29 Nov 2026.

Licenses

Code
BSD-3-Clause (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (BSD-3-Clause) at commit 2cb2f7a (opens in a new tab), on 29 Nov 2026.

Commercial use
Yes

At a glance

What it is
  • Connects to an xArm by IP address or serial port and manages connection state.
  • Provides joint, Cartesian and servo motion commands, including circular and arc moves.
  • Reads arm state such as position, joint angles, errors and warnings.
  • Controls several gripper types, including xArm Gripper G2, BIO Gripper and RobotIQ Gripper.
  • Accesses tool and controller GPIO, plus RS485 Modbus communication.
  • Supports six-axis force/torque sensor configuration, admittance and force control.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
Used by U-Arm.
Licence
BSD-3-Clause. Commercial use: Yes. Where it was read
Install
git clone https://github.com/xArm-Developer/xArm-Python-SDK.gitEvery step
Maintenance
Active, last commit on 27 Nov 2026.

Works with

1 robot on Robotheca

The robots on Robotheca that use it or can run it, each with how the link was found.

Use it

Copied word for word from the creator's own documentation; each block links to the lines it comes from.

Installation (from source) (step 1 of 2)

    git clone https://github.com/xArm-Developer/xArm-Python-SDK.git
    cd xArm-Python-SDK

From README.md at 8a6fa5c, lines 18–19 (opens in a new tab)

Installation (from source) (step 2 of 2)

      pip install .

From README.md at 8a6fa5c, line 30 (opens in a new tab)

Installation (pip)

  pip install xarm-python-sdk

From README.md at 8a6fa5c, line 34 (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 2cb2f7a

Robotheca read the repository at three versions: the summary at d911319, the facts and the README at 2cb2f7a (read on 29 Nov 2026) and the install commands at 8a6fa5c (read on 6 Nov 2026).

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by UFACTORY, at commit 2cb2f7a, under BSD-3-Clause (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

xArm-Python-SDK

Image: PyPI Downloads (opens in a new tab) (opens in a new tab)

Overview

xArm Python SDK

Caution
  • Please keep away from the robot arm to avoid personal injury or equipment damage.
  • Make sure to do a safety assessment before moving to prevent collisions.
  • Protect the arm before unlocking the joint.
Installation

  you can run examples without installation. Only Python 3 is supported.

  • Install from source code
    • download
      git clone https://github.com/xArm-Developer/xArm-Python-SDK.git
      cd xArm-Python-SDK
      
    • install
      • install with build
        pip install build
        python -m build
        pip install dist/xarm_python_sdk-1.16.0-py3-none-any.whl
        
      • install with source code
        pip install .
        
  • Install from pypi
    pip install xarm-python-sdk
    
Doc
Update Summary
  • 1.18.3/1.18.4
    • Added BytesData for data conversion
    • Added data structure for report data
    • Update the reported data for port 30002
    • Increase execution speed by adding parameter to reduce the number of checks performed by the gripper APIs
  • 1.17.0/1.17.1
    • Change some API names
  • 1.16.0
    • Added parameter to support get raw data of the Six-axis Force Torque Sensor
    • Added an interface to control xArm Gripper G2
    • Optimize the interface for controlling BIO Gripper G2
    • Extend the get_joint_states interface
  • 1.15.0
    • Added the Six-axis Force Torque Sensor collision detection related interfaces
    • Added support for the new version of BIO Gripper control interface
  • 1.14.7
    • Fixed the problem that single joint or direction movement fails in some cases (valid from firmware 2.5.0)
    • Added standard ModbusTcp client and Gcode client
    • GPIO control supports immediate execution
    • Support new version of vacuum gripper
    • Support the studio-2.5.0 blockly project conversion to python
  • More (opens in a new tab)
API Change List
OLD API NAMENEW API NAMESDK VERSION
set_tgpio_modbus_timeoutset_rs485_timeout1.17.1
get_tgpio_modbus_timeoutget_rs485_timeout1.17.1
set_tgpio_modbus_baudrateset_rs485_baudrate1.17.1
get_tgpio_modbus_baudrateget_rs485_baudrate1.17.1
getset_tgpio_modbus_dataset_rs485_data1.17.1
set_impedanceset_ft_sensor_admittance_parameters1.17.0
set_impedance_mbkset_ft_sensor_admittance_parameters1.17.0
set_impedance_configset_ft_sensor_admittance_parameters1.17.0
set_force_control_pidset_ft_sensor_force_parameters1.17.0
config_force_controlset_ft_sensor_force_parameters1.17.0
ft_sensor_set_zeroset_ft_sensor_zero1.17.0
ft_sensor_iden_loadiden_ft_sensor_load_offset1.17.0
ft_sensor_cali_loadset_ft_sensor_load_offset1.17.0
ft_sensor_enableset_ft_sensor_enable1.17.0
ft_sensor_app_setset_ft_sensor_mode1.17.0
ft_sensor_app_getget_ft_sensor_mode1.17.0
get_linear_track_registersget_linear_motor_registers1.17.0
get_linear_track_posget_linear_motor_pos1.17.0
get_linear_track_statusget_linear_motor_status1.17.0
get_linear_track_errorget_linear_motor_error1.17.0
get_linear_track_is_enabledget_linear_motor_is_enabled1.17.0
get_linear_track_on_zeroget_linear_motor_on_zero1.17.0
get_linear_track_sciget_linear_motor_sci1.17.0
get_linear_track_scoget_linear_motor_sco1.17.0
clean_linear_track_errorclean_linear_motor_error1.17.0
set_linear_track_enableset_linear_motor_enable1.17.0
set_linear_track_speedset_linear_motor_speed1.17.0
set_linear_track_back_originset_linear_motor_back_origin1.17.0
set_linear_track_posset_linear_motor_pos1.17.0
set_linear_track_stopset_linear_motor_stop1.17.0
shutdown_systemsystem_control1.13.3
get_suction_cupget_vacuum_gripper1.5.0
set_suction_cupset_vacuum_gripper1.5.0
get_ikget_inverse_kinematics1.0.0
get_fkget_forward_kinematics1.0.0
set_sleep_timeset_pause_time1.0.0
get_gpio_digitalget_tgpio_digital1.0.0
set_gpio_digitalset_tgpio_digital1.0.0
get_gpio_analogget_tgpio_analog1.0.0
Example (opens in a new tab)

   Before running the example, please modify the IP in robot.conf (opens in a new tab) to corresponding IP you want to control.

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.