Skip to content

advian-oss/RTDE_Python_Client_Library

 
 

Repository files navigation

RTDE client library - Python

Library implements API for Universal Robots RTDE realtime interface.

Full RTDE description is available on Universal Robots support site

Project structure

rtde

RTDE core library

  • rtde.py: RTDE connection management object

  • rtde_config.py: XML configuration files parser

  • csv_writer.py, csv_reader.py: read and write rtde data objects to text csv files

examples

  • record.py - example of recording realtime data from selected channels.
  • example_control_loop.py - example for controlling robot motion. Program moves robot between 2 setpoints. Copy rtde_control_loop.urp to the robot. Start python script before starting program.
  • example_plotting.py - example for using csv_reader, and plotting selected data.

Running examples

It's recommended to run examples in virtual environment. Some require additional libraries.

python record.py -h
python record.py --host 192.168.0.1 --frequency 10

Using robot simulator in VirtualBox

RTDE can connect from host system to controller running in VirtualBox when RTDE port 30004 is forwarded.

  1. Download simulator from Universal Robots support site
  2. Run simulator in VirtualBox
  3. Open menu Devices->Network Settings
  4. Open Advanced settings for NAT
  5. Open Port Forwarding
  6. Add new rule, setting host, and guest ports to 30004. Leave host, and guest IP fields blank.

Using rtde library

Copy rtde folder python project Library is compatible with Python 2.7+, and Python 3.6+

Build release package

mvn deploy

Contributor guidelines

Code is formatted with black. Run code formatter before submitting pull request.

About

RTDE client library and examples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%