ProjectsIndustrial automation

Workobject builder for ABB robots

A desktop tool that turns a few measured points on a fixture into an ABB workobject frame, shows it in 3D, and writes the RAPID declaration to paste into the robot program.

CompletedNov 2025Page updated

Project facts
Input
Two measured lines, or three measured points (origin, a point on an axis, a point in the plane)
Output
A RAPID wobjdata declaration, with position in millimetres and orientation as a quaternion
Robot
ABB controllers programmed in RAPID
Done for
An employer. Shown with permission.
Built with
Python, PySide6, NumPy, Matplotlib, ABB RobotStudio SDK
When
Nov 2025
Status
Completed
Code
Private repository. I can walk through it on request.
Page updated
On this page

The problem

An ABB robot program places its targets relative to a workobject: a coordinate frame fixed to the fixture or the conveyor. When a cell is commissioned, that frame has to be measured, usually by jogging the robot to a few points on the fixture. Turning those points into a correct frame by hand is slow and easy to get wrong, and a wrong frame shifts every target in the program.

What the tool does

  • Two ways to define the frame. From two measured lines, with a choice of which axes they represent. Or from three points: the origin, a point along one axis, and a point in a plane.
  • A live 3D preview of the resulting frame, so a flipped axis is seen before it reaches the robot.
  • Fine-tuning. Rotation adjustments in a chosen angle sequence and offsets along each axis, with a warning near gimbal singularities.
  • Output ready to paste. A RAPID wobjdata declaration with the position and the orientation quaternion, alongside the same orientation as Euler angles.
  • History and undo. Earlier frames can be restored and exported, with up to 400 undo steps.

The quaternion can be computed with ABB’s own maths library from the RobotStudio SDK when it is installed, so the result matches what RobotStudio would produce. Without the SDK the tool uses its own conversion.

Engineering

A single Python application with a Qt interface, packaged as a Windows executable.