Digital twin

On this page 7

A digital twin is a virtual representation of a specific physical system that is linked to it by data, so that the model reflects the real system’s current state and can be used to simulate, monitor and optimize it. In robotics simulation, a digital twin typically models a robot, a work cell or a whole production line, including geometry, kinematics, dynamics, sensors and control logic.

The word twin marks the difference from an ordinary simulation model. A generic model describes a type of robot; a digital twin describes one particular installation, with its actual layout, calibration offsets, wear state and live signals. The tighter and more frequent that link, the more the twin can be trusted for decisions.

How a digital twin connects to the real system

A digital twin consists of three parts: the physical asset, the virtual model and the data connection between them. Sensor readings, controller states and production events flow from the asset to the model, and in more advanced twins, validated commands or parameter changes flow back.

In robotics, the virtual model usually combines CAD geometry, a kinematic description such as a URDF or a vendor robot model, physics properties for contact and inertia, and emulated controllers that run the same program as the real cell. Communication often uses industrial protocols such as OPC UA or middleware such as ROS 2 to stream joint positions, I/O signals and alarms.

Practitioners distinguish levels of integration, summarized in the table below.

LevelData flowTypical use
Digital modelNo automatic data exchangeEarly design and layout studies
Digital shadowAsset to model onlyMonitoring, visualization, analytics
Digital twinBoth directions, automatedOptimization and controlled updates of the asset
Levels of integration between model and asset

What a robotics digital twin is used for

Digital twins serve the whole life cycle of a robotic system, from design to decommissioning. The value of the twin changes with each phase, and so does the required fidelity.

PhaseTwin purposeBenefit
DesignTest layouts, reach and cycle timeProblems found before hardware is bought
Virtual commissioningRun real PLC and robot programs against the modelShorter on-site startup
OperationMirror live state and compare with expectationsEarly detection of deviations
MaintenanceTrack wear indicators and simulate fixesPlanned instead of unplanned downtime
Change and retrofitTry new products or programs virtuallyLess production interruption
Digital twin uses across the life cycle

Virtual commissioning is often the first use that pays for itself. Logic errors, collisions and interlock mistakes found in the twin cost hours to fix, while the same errors found during on-site startup can stop a line for days.

Digital twin compared with a robot simulator

A digital twin is built with simulation technology, but not every simulation is a digital twin. The difference lies in specificity, data linkage and lifespan, as the comparison shows.

ConceptRepresentsLinked to live dataTypical lifespan
Digital twinOne specific physical installationYes, continuously or periodicallyAs long as the asset exists
Robot simulatorAny robot and environmentUsually notPer project or experiment
Domain randomizationMany varied versions of a sceneNo, deliberately variedDuring training
Offline programming modelA cell for program generationRarelyUntil programs are deployed
Digital twin versus related simulation concepts

Tools such as Gazebo and Isaac Sim are general robot simulators that can host a digital twin when they are fed calibrated models and live data. For training learning-based controllers, the twin and domain randomization are complementary: the twin provides a faithful baseline, and randomization adds variation around it so policies transfer better to reality.

Fidelity and synchronization choices

Building a twin requires deciding how accurate and how current it must be. Higher fidelity costs modeling effort and computing power, so the right level follows from the decisions the twin supports.

PurposeNeeded fidelityTypical update rate
Layout and reach checksGeometry and kinematicsOn design change
Cycle-time estimationKinematics plus controller motion profilesOn program change
Live monitoring dashboardState mirroring, simple geometryAbout 1 to 10 Hz
Contact-rich task validationCalibrated dynamics and contact physicsOffline, before deployment
Choosing twin fidelity by purpose

The twin must also be kept in sync with physical changes. A relocated fixture, a replaced gripper or a new safety zone that is not reflected in the model quietly turns the twin into an outdated drawing.

Limitations and common pitfalls

The central limitation of a digital twin is the reality gap: the difference between simulated and real behavior. Rigid-body physics approximates friction, cable forces and deformable parts poorly, so results involving contact must be validated on hardware.

  • Treating the twin as truth instead of as a model with known error bounds.
  • Over-modeling details that no decision depends on, which delays the project.
  • Neglecting data quality, such as unsynchronized timestamps or missing signals.
  • Allowing write-back without safeguards, so a model error could change a real machine.
  • No ownership for updates, so the twin decays after commissioning.

Security deserves explicit attention as well. A twin with a bidirectional link is effectively another access path into the control network, so write-back should pass through the same authentication, change approval and safety checks as any engineering change made directly at the controller.

The idea in brief

A digital twin is a detailed virtual copy of a real machine that stays connected to the original. When the real robot moves, the copy moves too, and engineers can watch, test and experiment with the copy on a computer screen.

This lets a team try out changes safely before touching the real equipment, much like a flight simulator lets pilots practice without risking an aircraft. The copy is only useful, however, if it is kept accurate as the real system changes.

A practical scenario

A car parts supplier plans a new welding cell with four robots and a rotating fixture table. Before any hardware arrives, the engineering team builds a digital twin with the cell layout, robot models and an emulated PLC running the real control program.

During virtual commissioning, the team finds two robot paths that collide when the table rotates early, and an interlock that never releases after an emergency stop. Both are fixed in the model. On site, startup takes noticeably fewer days than the previous cell, and the twin stays connected afterwards to display live robot states and compare actual cycle times with simulated ones.

Six months later, a new part variant requires changed weld paths. The team develops and tests the new program in the twin during normal production, then loads it onto the real controllers in a single planned changeover shift, with the twin confirming that the measured cycle time matches the simulated value within a few percent.