planned

34. Importing robot models

Note: This feature is planned and not available in coax0. The syntax shown follows the Coax specification and may change before it's built. This is roadmap R17 (spec stage 10).

A robot description file says how a robot's links and joints fit together. This chapter plans how Coax will import a published URDF subset into checked data with frame and unit types, validate it, and refuse anything it doesn't understand by name.

What this chapter will cover

  • The URDF subset: links, joints, limits, inertias, geometry references and frames.
  • Generated declarations through R5 derivation.
  • Validation rules and their refusals.
  • Provenance of the source file and its meshes.
  • Reproducible import.

Outline

  1. The subset. Links, joints, limits, inertias, geometry references and frames, imported as R12 frame and unit types (chapter 29).
  2. Generated code. R5 derivation produces the declarations, so the model is ordinary checked Coax data.
  3. Validation.
  4. The frames form a tree with no cycle and no missing frame.
  5. Inertias are positive and physically consistent.
  6. Joint limits are ordered, and joint axes are valid.
  7. Refusals. An unsupported element is refused by name and never dropped.
  8. Provenance. The import records the identity of the source file and its meshes.
  9. Reproducibility. The same input bytes give the same output.
  10. Other formats. MJCF and others are qualified separately; the OpenAgents Metaverse Engine chapter 35 plans that library work.

The consumer and the gate

  • Import one pinned arm description used by the simulation (the Panda arm of Metaverse Engine chapter 19), and compare every value with an independent parser.
  • Malformed fixtures: a cycle in the joint tree, a missing frame, a non-positive or inconsistent inertia, an inverted limit and an unknown element.
  • Import is reproducible from the same input bytes.

Done when

  • R17 ships with those fixtures.
  • The pinned arm imports and matches the independent parser value for value.
  • This chapter's examples, including each malformed fixture with its .status file, run under check-examples.sh.

Dependencies