← All articles

FIELD NOTES / ZAPPD

A CAD assembly is only the beginning of a robot description

URDF needs motion relationships, collision geometry and inertial properties that a convincing CAD rendering does not automatically establish.

The robot looks correct in the viewer. Its links have the right shapes and the colors match the CAD assembly. Then a joint slider moves a link around the wrong axis. The geometry arrived successfully. The meaning of the movement did not.

Exporting a robot requires several kinds of information to agree. Shape describes occupied space. Joint definitions describe permitted relative motion. Inertial properties describe how mass is distributed. These descriptions are related, but none can be substituted for the others.

URDF, the Unified Robot Description Format, makes those distinctions visible. Reading a small official example is often more revealing than inspecting a polished rendering. The fields tell us what a downstream tool has actually been given permission to assume.

Links need relationships

The official ROS URDF tutorial's flexible model defines links and joints separately. Joint entries identify parent and child links, an origin and a type. Movable examples also define an axis, with limits where relevant.

Those entries describe relationships that a collection of mesh files does not express by itself. Two meshes can sit beside each other at the intended pose without specifying whether their connection rotates, slides or remains fixed. A correct initial picture leaves that question open.

Consider a hypothetical elbow assembly exported as two meshes. If both retain coordinates relative to the original CAD assembly, simply placing them at a new joint origin can introduce an offset twice. If a local coordinate system was used instead, omitting the intended transform can put the mesh in the wrong place.

The useful debugging question is which frame each quantity uses. A link frame, a mesh's coordinates and the joint relationship need a consistent interpretation. Guessing offsets until the initial view looks right can conceal a mistake that reappears when the joint moves.

Rotation exposes a bad description

A stationary model can hide an incorrectly placed axis. Moving one joint through a modest modeled range makes the error visible. The child link should rotate about the intended relationship while the connected structure remains coherent.

This suggests reviewing motion before adding visual detail. For an imagined arm conversion, simple shapes can establish whether the links form the intended chain. Detailed meshes can follow once that motion is understood. Otherwise the visual complexity makes the mistaken relationship harder to see.

Joint limits also deserve their own evidence. A CAD assembly might permit a motion that wiring or physical stops prevent. A robot description should reflect the actual configuration that the model represents. The geometry file alone cannot establish those operating bounds.

This is a different problem from preserving CAD design intent. A parameterized CAD model explains how a design changes. A robot description explains how the represented links move relative to one another. A useful transfer preserves the relevant meaning across that change of purpose.

Visible shape and collision shape have different jobs

The official physics model example contains separate visual, collision and inertial elements. That separation allows different representations for display and physical computation. Seeing a detailed part therefore does not establish which geometry a collision checker uses.

For a hypothetical motor housing, a simplified collision shape might be adequate for checking travel past a distant wall. Near a tight fixture, a protruding connector could matter. The right simplification follows the clearance question rather than the desire to reproduce every visible screw.

An omitted protrusion and an excessively large bounding shape create opposite errors. The first can miss a modeled collision. The second can reject usable routes. Inspecting both visual and collision representations makes that tradeoff explicit.

A conversion review should therefore display collision geometry directly. When the rendered robot clears an obstacle but planning rejects the route, compare the actual collision bodies before changing planner settings. The disagreement might arise entirely within the description of occupied space.

Mass is not a color or a mesh scale

The physics example also supplies mass and inertia entries. These are numerical properties with a defined reference, rather than consequences of assigning a visual material. A blue mesh does not tell a simulator whether the link is hollow plastic, solid metal or an assembly with a motor at one end.

Inertia expresses resistance to angular acceleration and depends on mass distribution. Two links with similar external shapes can behave differently if their internal mass distributions differ. Copying one placeholder inertia across a model can therefore preserve appearance while changing the represented dynamics.

Values in a tutorial demonstrate syntax. They are not component measurements for a new robot. A conversion needs its own provenance for mass properties, including what components the link contains. The purpose is to make the model's assumptions inspectable before interpreting its motion.

A useful handoff from CAD would include the joint frame definitions, units, collision simplifications and the origin of mass properties. Then a reviewer can move each joint, inspect occupied space and trace a suspicious response to a specific input. A robot model earns usefulness through that agreement among descriptions, long before the rendering receives its final materials.

Sources

← More from Zappd