Skip to content

How physical is the robot, and what stands in the way

OpenWAAM has three levels of robot model. Pick with robot.dynamics (part-scale cases) or cosim.robot_dynamics (melt-pool co-simulation).

Level What moves the torch Use it for
none / kinematic the commanded path, exactly planning, reach and speed checks
ideal PyBullet rigid links, ideal joint motors with torque limits collision checks, gross dynamics
flexible rigid links + elastic gearboxes + motor friction + a cascaded servo on the motor encoder vibration, weave fidelity, tracking error

What the flexible model contains

servo (position loop -> velocity loop, feedforward)
    -> motor torque (saturates at the joint limit)
    -> rotor inertia and friction (Coulomb + viscous)
    -> gearbox: torsional spring and damper
    -> link, simulated by PyBullet with gravity and full inertia tensors
  • Link inertias from geometry. Mass, centre of mass and the full inertia tensor of every link are integrated from its closed mesh as a uniform solid. One density (2770 kg/m3) makes the arm weigh the catalogue 272 kg. tools/build_irb2600_urdf.py regenerates the URDF.
  • Elastic gearboxes. Each joint is a two-mass system. The servo only sees the motor encoder, as on a real arm, so link-side vibration and gravity sag are not directly observable.
  • Lost motion. Each gearbox has a gap inside which no torque passes and dry friction on its output side. The defaults reproduce the difference between arriving from either side that was measured on a sibling arm at 10 mm/s; see the validation page.
  • Deflection compensation. The servo commands the motor ahead by torque/stiffness, which is what a calibrated controller's gravity model does. Switch it off and the tool tip sags by a fraction of a millimetre.
  • Feedforward. Rigid-body inverse dynamics plus friction, so the feedback loops only handle what the model misses.
  • External loads. The arc and metal-transfer reaction is applied to the torch. It is about 0.01 N, six orders of magnitude below the arm's payload.

Checked: the arm holds position to 0.01 mm; gearbox wind-up under gravity equals torque/stiffness beyond the gear gap; a 2 mm, 3 Hz weave is tracked within 0.2 mm (amplitude ratio 1.03, phase lag 1 degree).

The barriers to going further

These are not software limits. They are data that only the manufacturer or a measurement on the actual robot can supply.

  1. Mass distribution. Manufacturers do not publish link masses or inertias. A uniform-density solid is wrong in detail: castings are hollow and the motors and gearboxes are dense lumps near the joints. Expect the totals to be right and individual inertias to be off by tens of percent. Fix: dynamic parameter identification (excite the arm, record motor currents, fit the base parameters), or CAD with material assignments.
  2. Gearbox stiffness, backlash and hysteresis. The defaults are typical catalogue figures for cycloidal reducers of this size. Real reducers are nonlinear: soft near zero torque, with lost motion. Fix: reducer data sheets for the exact model, or a locked-rotor test per joint.
  3. Friction. It dominates tracking at WAAM speeds (millimetres per second, through velocity reversals when weaving) and depends on temperature and load. The model has Coulomb and viscous terms only, no Stribeck effect. Fix: constant-velocity sweeps on the robot.
  4. The controller. The real servo structure, gains, filters, feedforward model and path interpolator are proprietary. The cascade here is the textbook structure with plausible bandwidths. Fix: system identification from the outside (command a path, measure with a laser tracker).
  5. Motors and drives. No torque-speed curves, current limits or thermal limits. Torque limits are estimates.
  6. Everything hanging off the arm. The cable and hose package, wire feeder and wire spool drag are lumped into a 7 kg tool. The pedestal, the floor and the positioner are rigid.
  7. Link flexibility. Links are rigid. For this arm the gearboxes dominate the compliance, so this matters least.

What you get today is a model with the right structure and the right orders of magnitude. Use it to ask how sensitive a bead is to robot behaviour, not to predict what one specific robot will do. Every parameter is in DriveModel and the URDF, so measured values drop straight in.

Coupling to the fluid solver

openwaam cosim cosim_weave_bead advances the arm and the melt-pool solver together and exchanges data every fluid time step (about 0.1 ms; the arm steps at 0.5 ms).

arm (PyBullet)  -- tool-tip x, y ------------------>  arc position in the fluid solver
                -- tool-tip z --> CTWD ------------->  arc current -> heat, pressure, Lorentz force
fluid solver    -- pool surface under the wire ----->  CTWD
                -- arc current (filtered) ---------->  height controller -> arm z
                -- arc reaction force -------------->  torch
  • Self-regulation. On a constant-voltage source a longer stick-out heats the wire more and the current falls. The current comes from the wire-melting relation of the process, WFS = a I + b L I^2 with L = CTWD - arc_length, scaled to the process current at the set-point. For 1.2 mm steel that is about -2.5 A/mm at 140 A and -4 A/mm at 190 A (versions before 0.8 used -4 A/mm throughout). Setting dI_dctwd restores a fixed slope. See the validation page for what this rests on.
  • Height control. The controller does not read the surface from the fluid solver. It infers CTWD from the low-pass-filtered current, the way through-the-arc sensing works, and trims the tool height at 50 Hz.

Not coupled yet: heat conducted or radiated into the torch and the arm, wire feed dynamics, and the effect of torch angle on the arc.

What the coupling changed in the example

Same bead, same grid, with and without the arm in the loop (cosim_weave_bead, 1.5 s, 0.4 mm cells):

Uncoupled (ideal torch, fixed current) Coupled both ways
CTWD after start-up 16.3 mm (never corrected) 15.0 mm, +/- 0.11 mm
Arc current 164 A constant starts at 158 A, settles at 164 A, +/- 0.4 A at twice the weave frequency
Tool height fixed lowered 1.3 mm by the height controller
Tool-tip error 0 up to 0.17 mm, 0.08 mm RMS
Bead height / width 1.97 / 7.82 mm 1.97 / 7.94 mm

At this travel speed the arm's dynamics barely disturb the bead. The larger effect is the height loop: the tool is planned at the expected bead top, but the surface under the wire sits lower, at the front of the pool.