Xacro is a macro language for XML, commonly used in ROS (Robot Operating System) to parameterize and modularize URDF robot descriptions. It allows you to create reusable XML macros, include other files, and use mathematical expressions. Current version is 2.1.1, compatible with Python >=3.8. Release cadence is tied to ROS distributions, generally stable.
pip install xacroNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Processes an XML string with xacro macros and outputs the expanded XML.
Use 'from xacro import process_file' and call it programmatically instead of importing xacro and calling 'xacro.main()'.
Use <xacro:include file="path/to/file.xacro"/> instead of <xacro:include filename="..."/>.
Use ${{...}} to escape a literal ${} or use single quotes around the value: e.g., <property value="'${not_a_var}'" />.Use 'from xacro import process_file' and call process_file on your file or stream.
No dependency data recorded yet.