This is a library based on the UR robot and other packages will continued to be add later.
- UR5 (RTDE)
- Robotiq Gripper (TCP/RTU)
- Wrist camera and force sensor suits of Robotiq
- Mech-eye
- ZED
- Realsense
- Xtion Pro live
- ...
This implementation requires the following dependencies (tested on Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS):
-
You can quickly install/update these dependencies by running the following:
python setup.py install
or
cd ./UR_control & pip install [-e] .
-
If you need to use realsense camera, you can download from the official library(RealSense).
-
If you want to control UR5/UR3 Robot, you can download rtde packages(ur_rtde).You can also quickly install rtde by this way:
pip install --user ur_rtde
- If you want to control Gripper via RTU, you should first run
sudo chmod +777 /dev/ttyUSB0 - If your background is black, you shoud leave the edge of calibrate board blank.
We provide a simple calibration script to estimate camera extrinsics with respect to robot base coordinates. You can choose different checkerboards and change the variables checkerboard_size.
-
Predefined 3D locations are sampled from a 3D grid of points in the robot's workspace. To modify these locations, change the variables
workspace_limitsandcalib_grid_stepat the top ofcalibrate.py. -
Measure the offset between the midpoint of the checkerboard pattern to the tool center point in robot coordinates (variable
checkerboard_offset_from_tool). This offset can change depending on the orientation of the tool (variabletool_orientation) as it moves across the predefined locations. Change both of these variables respectively at the top ofcalibrate.py. -
At the top of
calibrate.py, change variablerobot_ipto point to the network IP address of your UR5 robot controller which can communicate with UR Robot. -
With caution, run the following to move the robot and calibrate:
python calibrate.py