Skip to content

m4ln/universal_robots_RTDE_python

Repository files navigation

Universal Robots

This projects is a collection of real-time data exchange (RTDE) scripts for the Universal Robots. The scripts are written in Python and are based on the RTDE Python Client (./RTDE_Python_Client_Library/rtde/) and the URBasic (./realtime_control/URBasic) libraries. The scripts are tested on the UR model UR3e, Polyscope v. 5.12.

Real Time Data Exchange (RTDE)

Useful Links

Client

Getting Started (Running the examples)

This explains how to run the examples inside the RTDE_Python_Client_Library/examples

Connect robot/controller to external computer

  1. Connect the ethernet cable from the robot control box to your computer
  2. Get the IP adress from your ethernet connection (i.e. the robot in this case) using the terminal
    $ ifconfig (Linux)
    $ ipconfig (Win)
  3. In the top right corner in PolyScope select Burger button>Settings>System>Network>select static address. Set the IP adress and subnet mask (the rest can be kept at 0.0.0.0). Check it the green tick turns on to 'Network is connectet'
  4. test if you can contact the robot from your computer with:
    $ ping <ip>

Load Script into PolyScope

If you have a file .urp you load it onto a usb stick and load it into PolyScope via Run>Load Programm. Press the Play button in the right bottom corner to run the program.

Python

ROBOT_HOST = '<IP number from above>'
Port = 30004
config_filename = '<config_file>.xml'

Possible bugfixes

  • Turn off Wifi and other network connections
  • In the PolyScope enable Remote Control, check that
  • [Python] Input parameters already in use: In PolyScope, go to Installation>Fieldbus>EtherNet/IP>Disable

Change Output Frequency

In the file rtde/rtde.py the function send_output_setup(frequency=125) the value can be changed to frequency=500 to increase the output frequency

License

This project contains several subprojects which are licensed under different licenses, i.e. for each subproject, the license is specified in the respective folder.

About

RTDE client library and examples

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages