Skip to content
Semillero
ARES
← All projects
Completed

SCARA robot arm with ROS 2

Controlling the Epson SCARA robot in block 19 with ROS 2, from the simulation model to MoveIt and serial communication with the real robot. First on Humble, then on Jazzy.

The goal of this project was to learn ROS 2 by working on a real robot: the Epson industrial SCARA on the second floor of block 19. The robot has two rotational joints and a vertical linear axis with a suction cup at the tip to move objects.

ROS 2 makes it easy to connect sensors and actuators, process data to make decisions, and work with decentralised nodes, without a master node as in ROS 1.

SCARA arm controlled with ROS 2

Objectives

  • Simulate the robot in Gazebo with a model faithful to the original.
  • Define poses for an industrial process on the work table using a finite state machine.
  • Connect ROS 2 to the real robot.
  • Add computer vision to improve the accuracy of the process.

Work phases

1. Modelling and simulation

We measured the robot’s external geometry and modelled it in CAD. The model was exported to URDF, checked in RViz2 and configured with the MoveIt 2 setup assistant, using approximate physical properties and collisions. Finally, we defined poses to simulate in Gazebo.

Modelling and simulation plan

2. Characterising the robot

Using a microcontroller, we sent signals to the motors to measure how far each axis moves and compare the real motion with the simulated one. These differences give a correction factor.

Characterisation plan

3. Connecting ROS and the robot

We defined states by coordinates and suction-cup status, plus an interface to move the robot manually or run an automatic sequence.

ROS connection plan

4. Computer vision

The final phase proposes mounting a camera near the suction cup and using OpenCV with a classifier to recognise the objects on the table.

Computer vision plan

Outcome

The ROS 2 Humble packages and the MoveIt configuration are in ros-humble-scara. Communication with the robot goes through a virtual serial port created with socat. The documentation explains how to install and use it.

In 2025 we started porting it to ROS 2 Jazzy in ros-jazzy-scara, with visualisation (view.launch.py), Gazebo simulation (scara_gz) and MoveIt (scara_moveit).

Translated from Spanish.