/xArm-Python-SDK

Primary LanguagePythonOtherNOASSERTION

xArm-Python-SDK

Overview

xArm Python SDK

Caution

  • There is currently no collision detection, so try not to be close during use.
  • During use, people should stay away from the robot arm to avoid accidental injury or damage to other items by the robot arm.
  • Protect the arm before use.
  • Before you exercise, please make sure you don't encounter obstacles.
  • Protect the arm before unlocking the motor.

Installation

Install is not necessary, you can run examples without installation.Only Python3 is supported.

  • download

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

  • install

    python setup.py install

Update summary for 0.2.1

  • Added GPIO example
  • Compatible with old reporting protocols using new reporting protocols
  • New tools to convert xArmStudio's app code into Python code

Update summary for 0.2.0

  • Support torque detection
  • Support drag teaching mode

Update summary for 0.1.1

  • Support GPIO interface

Update Summary for 0.1.0

  • Compatible with 5, 6, and 7 axis robot arms

Update Summary for 0.0.13

  • Supports trajectory repeat motion interface with circular interpolation, supports repetition times, calibration
  • Increase joint limits, attitude angle limits and cmd cache limits
  • Exchange the parameters of the attitude angle yaw and the attitude angle pitch, but retain the parameter position

Update Summary for 0.0.12

  • By specifying the value of the default parameter of the interface in the instantiation parameter, using angle or radians
  • Unify all interfaces by default using angle or radians
  • More interface routines
  • More detailed interface documentation
  • Richer interface
  • Set interface alias
  • Modified the default values of the default parameters of some interfaces, but support the use of parameters to be compatible when instantiating

Update Summary for 0.0.11

  • Support serial port and TCP connection
  • Support parameter to enable reporting
  • Support callback register and release
  • Support Gripper setting
  • Support servo setting (Some interfaces are limited to professional debugging)
  • Unified return value
  • Snaps an exception and returns the specified return value

Doc

Example

  arm.set_tcp_offset(...)
  arm.set_tcp_jerk(...)
  arm.set_tcp_maxacc(...)
  arm.set_joint_jerk(...)
  arm.set_joint_maxacc(...)
  arm.set_tcp_load(...)
  arm.set_collision_sensitivity(...)
  arm.set_teach_sensitivity(...)
  arm.set_gravity_direction(...)
  arm.clean_conf()
  arm.save_conf()
  • Gripper

    arm.set_gripper_enable(...)
    arm.set_gripper_speed(...)
    arm.set_gripper_position(...)
    arm.get_gripper_position()
    
  • GPIO

    arm.get_gpio_digital(...)
    arm.set_gpio_digital(...)
    arm.get_gpio_analog(...)
    
  • Other

  arm.set_pause_time(...)
  arm.shutdown_system(...)
  arm.clean_error()
  arm.clean_warn()
  • Register/Release

    arm.register_report_callback(...)
    arm.register_report_location_callback(...)
    arm.register_connect_changed_callback(callback)
    arm.register_state_changed_callback(callback)
    arm.register_mode_changed_callback(callback)
    arm.register_mtable_mtbrake_changed_callback(callback)
    arm.register_error_warn_changed_callback(callback)
    arm.register_cmdnum_changed_callback(callback)
    arm.release_report_callback(callback)
    arm.release_report_location_callback(callback)
    arm.release_connect_changed_callback(callback)
    arm.release_state_changed_callback(callback)
    arm.release_mode_changed_callback(callback)
    arm.release_mtable_mtbrake_changed_callback(callback)
    arm.release_error_warn_changed_callback(callback)
    arm.release_cmdnum_changed_callback(callback)
    
  • Property

    arm.connected
    arm.default_is_radian
    arm.version
    arm.position
    arm.last_used_position
    arm.tcp_speed_limit
    arm.tcp_acc_limit
    arm.last_used_tcp_speed
    arm.last_used_tcp_acc
    arm.angles
    arm.joint_speed_limit
    arm.joint_acc_limit
    arm.last_used_angles
    arm.last_used_joint_speed
    arm.last_used_joint_acc
    arm.tcp_offset
    arm.state
    arm.mode
    arm.joints_torque
    arm.tcp_load
    arm.collision_sensitivity
    arm.teach_sensitivity
    arm.motor_brake_states
    arm.motor_enable_states
    arm.has_err_warn
    arm.has_error
    arm.has_warn
    arm.error_code
    arm.warn_code
    arm.cmd_num
    arm.device_type
    arm.axis
    arm.gravity_direction