The URDF mimic element describes an affine relationship between one joint coordinate and another. If a follower joint mimics a source joint, its modeled position is the source position multiplied by a coefficient and shifted by an offset. That compact kinematic relationship is useful for grippers, coupled fingers, and simple linkages. It is not a motor model, transmission model, torque-sharing rule, backlash model, or proof that two physical axes will track each other.
The distinction becomes important when a robot description moves from visualization into planning, simulation, and hardware control. Different consumers can use mimic metadata differently. A correct-looking model can still command unsafe hardware if engineers assume the XML created control behavior that no controller or device actually implements.
The relationship is affine
The official urdfdom headers define JointMimic with a source joint name, a multiplier, and an offset. The common interpretation is q_follower = multiplier times q_source plus offset. The multiplier can reverse direction with a negative value or scale travel; the offset shifts the follower coordinate's zero.
For example, a parallel gripper may use a multiplier of -1 so one finger coordinate mirrors the other. A geared indicator joint might use 2.0 to rotate twice as far in the model. These numbers relate coordinates. They do not specify gear tooth count, efficiency, reflected inertia, torque multiplication, motor current, friction, or compliance.
The relationship is also limited to the form represented by the fields. A cam, cable routing, four-bar linkage, or tendon system may have a nonlinear relationship. Approximating it with a constant multiplier and offset can be reasonable over a declared range, but it should not be described as an exact physical mechanism without residual evidence.
Position coupling is not actuation
URDF separates several joint concepts. A joint has an axis and origin that define geometry. Limits describe allowed position and related bounds. Dynamics fields can describe damping and friction. Transmissions and hardware interfaces provide other pieces of a control stack. A mimic element does not merge those pieces into a drive.
A model viewer or state publisher may compute a follower position from the source position and display both links consistently. That result only shows that the consumer honored the kinematic rule. It does not show that the follower motor received a command, that the hardware controller closed a loop, or that contact forces divided correctly.
Simulation deserves the same caution. A simulator may convert a mimic declaration into a constraint, command update, or engine-specific relationship. The exact behavior depends on the importer and integration. Verify the implementation used by the selected simulator instead of assuming every URDF consumer creates the same physics.
Control ownership must be explicit
Decide whether the physical follower is mechanically constrained, independently actuated, or sensed separately. A mechanically linked finger may need only one command interface, while two motors may require coordinated control with fault handling. The URDF coordinate relationship cannot make that architectural decision.
For ros2_control, inspect the current hardware description and controller documentation. Confirm whether mimic parameters are imported, whether the follower exposes a command interface, and which joint state is measured. Avoid sending independent commands to a follower that the stack expects to derive, and avoid omitting a real actuator merely because the visualization moves.
Fault behavior is another boundary. If the source encoder moves but the follower is jammed, a computed mimic state can look correct while the mechanism is not. When safety depends on physical tracking, measure the follower or add independent supervision. Compare expected and measured relationships with tolerances and time limits.
Limits need joint-by-joint review
The affine mapping changes how source travel maps into follower travel. A negative multiplier reverses which endpoint corresponds to which. An offset moves the mapped interval. Check the entire source range against the follower's physical limits rather than testing only zero.
If the source range is [a, b], evaluate the follower expression at both endpoints. For a positive multiplier, the lower source maps to the lower follower result; for a negative multiplier, the ordering reverses. Compare the resulting minimum and maximum with mechanical stops and declared limits.
Velocity and acceleration scale with the magnitude of the multiplier for an ideal time-invariant affine mapping, while the offset disappears from derivatives. That mathematical observation still does not set controller limits automatically in every tool. Confirm how planning and control software propagates or enforces limits.
Build evidence across layers
Start with a parser test. Load the URDF through the same parser used in production and inspect the source joint name, multiplier, and offset. Fail on a missing joint, a self-reference, a cycle of mimic dependencies, or a non-finite number. Keep the parsed artifact or test output with the release.
Next run a coordinate sweep. Sample the source joint through its allowed range and compare the calculated follower coordinate with expected values. Include endpoints, zero, offset crossings, and several interior points. A simple table makes a sign error or unit mistake obvious.
Then test each downstream consumer. In visualization, confirm link motion and frame orientation. In planning, confirm state propagation and collision geometry. In simulation, observe whether the coupling is a constraint or merely a state assignment and inspect contact behavior. In hardware, compare commanded and measured joint states under no load and representative load.
Add negative controls. Intentionally use the wrong multiplier sign in a test model and verify that the test fails. Disconnect or obstruct a physical follower under a controlled maintenance procedure and confirm that supervision detects the mismatch. This demonstrates that the acceptance process can distinguish modeled agreement from real motion.
Record units and conventions
Revolute coordinates use radians and prismatic coordinates use meters in URDF conventions. The offset uses the follower coordinate's unit, and the multiplier is dimensionless when source and follower coordinates share compatible dimensions. Mimicking between incompatible joint types may parse as data but have no sound physical interpretation.
Name the coordinate zero for both joints. A multiplier and offset can be numerically correct yet applied to encoder readings with different calibration zeros. Keep encoder conversion, reduction, and sign conventions in one traceable chain.
Make a narrow claim
A defensible statement says that a named URDF consumer parsed a specified mimic relationship and that coordinate sweeps, planning checks, simulation checks, and measured hardware tracking met declared tolerances. It does not claim that the mimic tag creates torque coupling or controller synchronization.
Mimic joints are valuable because they express a simple dependency compactly. Their reliability depends on respecting that boundary. Use the element for affine coordinates, then specify and test dynamics, actuation, sensing, fault detection, and physical limits in the layers that actually own them.