Skip to content

luigiraiano/URScriptTutorials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URScript Tutorials

Tutorials for programming UR robots using URScript files.

Simulating UR robots

If you do not have a UR robot, you can use its simulation by downloading a virtual machine containing the simulation of the robot and the controller. For an e-Series robot, you can download the version 5.12.6 LTS of Polyscope from the following link:

Programming Manual Reference

The URScript programming manual is available from the following link

Guidelines

URScript is a python-based scripting launguage.

Reference Frame

The base frame in Polyscope is located according to the following picture

Adding a URScript to the Robot program

  1. From Main Panel select: Program -> Advanced -> Script
  2. Add the script to the Robot Program and select the file containing the instructions
3. For convenience, add a script containing all global variables within a Before Start sequence

Pose Vectors and Rotations in URScript

A pose is declared using p before the [] (otherwise it is considered as a list). Example:

pose = p[pos_x, pos_y, pos_z, rotVec_x, rotVec_y, rotVec_z]

Note that the rotation is described using the Rotation Vector notation. If you want to set a desired Roll-Pitch-Yaw angle, please use the converting function:

r = p[pos_x, pos_y, pos_z, rotVec_x, rotVec_y, rotVec_z]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors