FeatureBuilt · in the lab
Robot cells
Robots from URDF files or a maker's robot folder in a cell of boxes: collision checks along a program, planned paths, joint limits, singular poses, cycle time, programs out as files, cell signals on a simulated PLC or over Modbus TCP, weld and paint programs, safety zones and calibration.
Use this add-on:
Screenshots and a short video come with the listing (AL.3).
Overview
Robot cells lets you check a robot program before a robot moves. Open a robot from a URDF file together with its meshes, put a cell of boxes around it, teach points and write a short program, and the add-on walks the whole path: it tells you where the robot, its tool or its own links would touch the cell or each other, where a joint would pass its limit, where the arm gets near a singular pose, and how long one cycle takes.
It can find a collision-free path between two taught points, save the program as a step list, a JSON program, a ROS joint trajectory or a script for six-joint arms, and wire the cell's signals to a simulated PLC so you can see a robot wait for the PLC and how much time that adds. It is a design and learning aid: it does not run a robot.
It also reads a maker's robot folder, writes weld and paint programs with their heat input and film thickness, checks a program against keep-out and speed zones, fits measured points to the model for calibration, and can wire its signals to a PLC over Modbus TCP (tried against a stand-in; a real PLC is for a person with one to test).
Who it’s for
- A cell designer checking reach, clearances and cycle time before the hardware is ordered.
- A robot programmer who wants to try a program offline and find the collisions on a screen, not in the cell.
- A student learning joint limits, singular poses and path planning on a robot they can take apart.
- A controls engineer testing the handshake between a robot program and a PLC program.
What you can do
- Open a robot from a URDF file with its STL meshes, or use the sample cell. Robot and cell.
- Add boxes to the cell and see the robot and the cell from the side and from above at any moment of the program. Robot and cell.
- Teach points as joint values or as tool poses, and write a program of joint moves, straight moves and planned moves. Program.
- Find where the robot, its tool or its own links touch the cell or each other along the whole path, with the line, the pair and the moment. Program. verified
- Find collision-free paths between two points with a planner that gives the same path for the same seed. Program, movep. verified
- See joint limits passed and poses near a singularity, and read the cycle time. Program. verified
- Wire the cell's inputs and outputs to a simulated PLC and run both on one clock; a stalled wait is reported with its line. Cell signals and the PLC. verified
- Save the program as a CSV step list, a JSON program, a ROS joint trajectory or a script for six-joint arms. Programs out.
- Open a robot folder from a maker or your team (URDF files, package:// meshes in STL or OBJ, package.xml, joint accelerations from joint_limits.yaml). Robot package folder. verified
- Wire the cell signals to a PLC over Modbus TCP: robot outputs are written to coils, robot inputs read from coils; try it against a stand-in PLC in the page, or through Studio's device pipe. Real PLC link. verified
- Make a weld program for a seam (work and travel angles, torch height, heat input per length) and a paint program for a flat patch (parallel strokes, film thickness over the patch). Welding and painting. verified
- Put keep-out zones and speed zones in the cell and check the whole program against them, work out a minimum distance for a sensor, and fit measured points to the model to find the shift of the robot base. Safety zones and calibration. verified
Methods and standards
Collisions are found with our own narrow phase on triangle meshes. Each shape has a tree of bounding boxes, a pair of shapes is first tested box against box with the fifteen separating axes of oriented boxes, and then the trees are walked down to pairs of triangles, which are tested for crossing with the segment and triangle test of Möller and Trumbore and a coplanar test; one mesh wholly inside another is found with a ray parity test. The answer is touching or not, with the two shapes. The test file checks the tree against testing every triangle against every triangle on 300 random pairs, and cubes against their known separation distances.
A path is sampled and every sample is checked. A joint move is a straight line in joint space; a straight move solves inverse kinematics at every sample by damped least squares and keeps the orientation turning evenly. Speed follows a trapezoid profile on the path: its top speed and acceleration are the smallest that the joint speed limits, the tool point speed and the acceleration setting allow, so a move of 1 rad at 1 rad/s and 2 rad/s squared takes 1 + 0.5 = 1.5 seconds. Singular poses are found from the smallest singular value of the Jacobian of the tool point. Planned moves use RRT-Connect: two trees grown from the two ends, then shortcuts, with a seeded random generator.
Cell signals are numbered bits on the process image of the soft PLC of the shared PLC engine; the robot and the PLC share one clock of one PLC cycle.
The Modbus link writes each robot output as a single coil write and reads each waited input as a coil read, one poll at a time (function codes 5 and 1, with 15, 3, 6 and 16 in the client), with our own frame codec checked against the worked examples of the protocol specification as recalled; the example bytes were not re-read in the document. Maker folders are read by following package:// paths to the file with the longest matching path, so two meshes with the same file name in different folders stay different. A weld seam turns the torch about the travel direction by the work angle and about the side direction by the travel angle, and the heat input is the efficiency times volts times amps over speed. A paint stroke leaves a film of efficiency times flow over speed, spread across the stroke as a triangle of the fan width with unit area, so at half overlap strokes add to a flat film of efficiency times flow over speed times spacing. The calibration fit is the closed-form absolute orientation of Horn (1987): the top eigenvector of a 4 by 4 matrix, found by Jacobi rotations.
Data and sources
The add-on ships one sample cell: a generic six-joint arm drawn for the sample with made-up dimensions (no maker's data), a bench, a post and a gripper. Your own robot comes from your URDF file; no robot library is included. Joint speed limits come from the file; where it has none, 1 rad/s (1 m/s for a slide) is used and the panel says so. Joint acceleration is not in a URDF file: 2 rad/s squared is used and can be changed in the cell. The script writer for six-joint arms uses the statements listed in the help; it was not checked against a controller. No maker's robot files, spray data or welding data are included. Heat input uses thermal efficiencies of 0.8 (wire, gas shielded), 0.6 (tungsten, gas shielded), 0.8 (stick) and 1.0 (submerged arc) that are not checked against the standard; you can compare them with yours.
Verification
| Case | Result |
|---|---|
| Triangle and cube cases against hand-worked answers | Crossing, separate, coplanar and corner-touching triangles are told apart; two unit cubes 0.9 apart overlap and 1.1 apart do not; a cube turned 45 degrees about the vertical touches at 1.20 and clears at 1.22 (contact below 0.5 + 0.7071 = 1.2071); a small box inside a large one is found as inside (b |
| The bounding-volume tree against every triangle against every triangle | On 300 random pairs of triangle soups at random poses the tree and the plain double loop give the same yes or no every time, and the tree tests under a tenth of the triangle pairs on two 32-segment spheres (bin/test-robotcell.mjs) |
| Shapes, volumes and STL files | A box volume is the product of its sizes, a cylinder volume is the n-gon prism 1/2 n r squared sin(2 pi / n) times length, a binary STL written and read back keeps 12 triangles and 8 corners, and a URDF robot with its links as STL files gives the same collisions as the same robot with boxes (bin/tes |
| Self, cell and tool collisions on a planar arm | A three-link arm straight out touches nothing; folded back it touches the base and its own first and third links but not neighbours; a wall across the arm is reported against the third link; a tool is reported as a tool and an allowed pair is not reported (bin/test-robotcell.mjs) |
| Singular poses against closed forms | For a planar two-link arm the product of the two singular values equals l1 l2 |sin q2|; stretched and folded the smallest is zero; for the sample arm the wrist is singular when joint 5 is 0 and clear at 1 rad (bin/test-robotcell.mjs) |
| Cycle time against the trapezoid formulas | 1 rad at 1 rad/s and 2 rad/s squared takes 1.5 s; at half speed 2.5 s; 0.2 rad is triangular and takes 2 sqrt(0.1) s; with a slower second joint the move takes 2.25 s; a straight 0.1 m at 0.25 m/s and 1 m/s squared takes 0.65 s and every sample lies on the line within 1e-5 m (bin/test-robotcell.mjs) |
| Planned paths checked ten times finer than they were planned | Around a post that blocks the straight joint move the planner finds a path whose every edge is free of collisions at 400 samples per edge, the same seed gives the same path, and a start inside a block is refused (bin/test-robotcell.mjs) |
| The robot waiting for a PLC timer | With a 500 ms on-delay in the soft PLC the robot waits 0.50 to 0.53 s for its input and then moves for its planned 1.5 s; a PLC that never answers stops the run with a stall at the right line after the timeout (bin/test-robotcell.mjs) |
| Modbus frames, a real socket and the robot waiting for a PLC | Request frames equal the worked examples of the protocol specification as recalled (write coil 173 on, write ten coils CD 01, write two registers), the answer CD 6B 05 reads as the stated coil states, a client and a server on a real TCP socket round-trip coils and registers, and a program waits abou |
| Robot folders | A folder with package.xml, a URDF, an STL mesh, an OBJ cube of six quads (12 triangles) and joint_limits.yaml loads with the right sizes and the smallest acceleration; same-named meshes in two folders stay apart; xacro and COLLADA files are named as not read (bin/test-robotcell2.mjs) |
| Weld heat input and paint film against closed forms | A 100 mm seam at 5 mm/s takes 20 s and 24 V at 220 A gives 0.8 x 24 x 220 / (1000 x 5) = 0.8448 kJ/mm; five strokes of a 100 mm fan at half overlap give a flat film of 0.7 x 2e-6 / (0.5 x 0.05) = 56 micrometers with variation under one part in a million, and with no overlap the mean is half that wit |
| Zones, stopping distance and the calibration fit | A box around the cell is entered by the arm and a far one is not, a 1 mm/s speed limit is broken, K (t1 + t2) + C = 0.84 m for the stated figures, and a known rotation and shift of six points is recovered to 1e-12 (1 mm of noise gives about 1 mm residual) (bin/test-robotcell2.mjs) |
Limits
It is a design aid, not an approval or a certificate, and it does not run or connect to a robot: simulate and verify every program on your own controller before a robot moves. The checks look at samples along the path (every 0.02 rad of any joint, every 0.01 m of a straight move), so a shape thinner than the step can be missed. Collisions are touching or not: there is no distance to obstacles and no safety margin. Joint acceleration, payload, controller blending and speed zones are not modeled. Only STL meshes are read; other mesh formats are named as not read, and cell shapes are boxes you add. Straight moves for arms with fewer than six joints follow position only. A planned path is found by random search and can fail in a tight cell. The Modbus link carries the cell signals to a PLC and has been tested only against a stand-in and a test server, never against a real PLC. Studio's device pipe passes only read functions today, so robot outputs cannot reach a real PLC through Studio until Studio allows writes to a device you name; reading from one works. A robot maker's own controller, with its blending and exact acceleration, is not modeled: times are ours, and xacro and COLLADA files are not read. Weld and paint programs are for flat or straight work with a simple model (a triangle spray fan, thermal efficiencies not checked against the standard). Zones are boxes, cylinders and spheres checked at the same samples; the separation distance formula is the usual one and the standard was not read. Calibration moves the robot base as a rigid body and does not correct link lengths or joint offsets; the measuring is yours. Nothing here has been run on a robot or compared with another program.
Files and formats
Reads URDF files (robot, links, joints, limits, collision and visual shapes: boxes, cylinders, spheres and STL meshes) and binary or text STL files. Writes a CSV step list, a JSON program, a ROS joint trajectory as JSON, a script for six-joint arms, and a CSV list of the cell signals with their PLC addresses. Also reads a robot folder (URDF, STL, OBJ, package.xml, joint_limits.yaml). Weld and paint programs are written into the program text.
Get started
- Switch the add-on on in Settings, Add-ons, then open the Robot cells tab. The sample cell is loaded.
- Under Program press Check the program, then drag the time slider under Robot and cell.
- Press Program with a collision and check it again to see the report.
- Open Cell signals and the PLC and press Run with the PLC.
Languages
The text is available in:
- English (en)
Works in
| Edition | Works | Note |
|---|---|---|
| Browser (/use) (yours) | Added on demand | Fetched the first time you use it, then kept for offline use. |
| Studio from getcadcraft.com | Added on demand | Fetched the first time you use it, then kept for offline use. |
| Microsoft Store | Added on demand | Fetched the first time you use it, then kept for offline use. |
| Google Play | Added on demand | Fetched the first time you use it, then kept for offline use. |
| iPad and iPhone (App Store) | Included; switch it on | Part of the reviewed app; your list switches it on. |
| Custom build | Added on demand | Fetched the first time you use it, then kept for offline use. |
Comes with
Nothing else.
Versions
| Version | Channel | Date | What changed |
|---|---|---|---|
| 1.0.0 | lab | November 25, 2026 | First version in the Library. |
Licence and maker
CadCraft (CadCraft, first-party). Licence: Apache-2.0. Dependencies carry their own licences, listed on their pages.