Skip to article frontmatterSkip to article content

This is a control template for Universal Robots robotic manipulators. It relies on sas_robot_driver_ur to communicate with the robot via URCL.

Docker

Simulation

https://github.com/user-attachments/assets/bfee1148-bfe3-4425-80da-04fcd65d2b18

Run

mkdir -p ~/sas_tutorial_workspace/docker/sas_ur_control_template/simulation_demo
cd ~/sas_tutorial_workspace/docker/sas_ur_control_template/simulation_demo
curl -OL https://raw.githubusercontent.com/MarinhoLab/sas_ur_control_template/refs/heads/main/.devel/simulation_demo/compose.yml

xhost +local:root
docker compose up

Real robot

https://github.com/user-attachments/assets/62ac7ccd-d7c8-41f7-8af8-1b17919d90f2

Run

mkdir -p ~/sas_tutorial_workspace/docker/sas_ur_control_template/robot_demo
cd ~/sas_tutorial_workspace/docker/sas_ur_control_template/robot_demo
curl -OL https://raw.githubusercontent.com/MarinhoLab/sas_ur_control_template/refs/heads/main/.devel/robot_demo/compose.yml

docker compose up

Real robot and simulation

Run

mkdir -p ~/sas_tutorial_workspace/docker/sas_ur_control_template/robot_and_simulation_demo
cd ~/sas_tutorial_workspace/docker/sas_ur_control_template/robot_and_simulation_demo
curl -OL https://raw.githubusercontent.com/MarinhoLab/sas_ur_control_template/refs/heads/main/.devel/robot_and_simulation_demo/compose.yml

xhost +local:root
docker compose up

From source (advanced)

1. Pre-requisites

Follow setup in SAS Tutorial.

2. Clone the repository

mkdir -p ~/sas_tutorial_workspace/src
cd ~/sas_tutorial_workspace/src
git clone https://github.com/MarinhoLab/sas_ur_control_template.git

3. Building and sourcing

cd ~/sas_tutorial_workspace
colcon build
source install/setup.bash

Working in simulation

  1. Open the scene scenes/UR3e_480rev0.ttt on CoppeliaSim and start the simulation.
  2. ros2 launch sas_ur_control_template simulation_example_cpp_launch.py

Working with the real robot

Run

ros2 launch real_robot_move_example_py_launch.py ur1_ip:=192.170.10.22

See also

UniversalRobots/Universal_Robots_ROS_Driver#507