#xml #preprocessor #urdf #generate

xacro

A xml preprocessor for xacro files to generate URDF files

4 releases

new 0.1.3 Feb 12, 2025
0.1.2 Jan 19, 2025
0.1.1 Jan 19, 2025
0.1.0 Jan 19, 2025

#61 in Robotics

Download history 226/week @ 2025-01-14 53/week @ 2025-01-21 7/week @ 2025-02-04 125/week @ 2025-02-11

300 downloads per month

MIT license

19KB
467 lines

xacro

A xml preprocessor for xacro files to generate URDF files

WIP

Placeholder for the future xacro peprocessing tool. Reference: https://github.com/ros/xacro/wiki

TODO

The following functionality shall be implemented:

  • macro
  • include
  • insert_block
  • property
  • element
  • if
  • unless
  • loop

These seem like the core functionalities required for proper xacro file handling.

The following might be implemented:

  • load_yaml, unsure if yaml & xacro split is the right way to do things. Why not have a xacro with the properties?
  • eval-comments, not sure how useful this will be vs the amount of effort required to implement this.

Fundamentally these feel like scope creep or nice-to-haves

The following shall not be implemented:

  • Python-based evaluation
  • Rospack-based evaluation
  • Windows compatibility

If needed, the following alternative can be developed

  • Rust-based evaluation / mathematical expressions, to match the python evaluation

Because this package is meant to be as dependency free as possible, so no python or ros dependencies.

Dependencies

~1.2–1.8MB
~32K SLoC