Xacro to URDF
robosim_xacro_to_urdfConvert Xacro robot descriptions with macros, conditionals, and includes into standard URDF format for compatibility with ROS and simulation tools.
Instructions
Expand Xacro properties, macros, conditionals, and includes into plain URDF. Provide included files by basename in includes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"xacro": "<xacro>"
},
"name": "robosim_xacro_to_urdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xacro | Yes | The main .xacro XML text. | |
| includes | No | Map of { basename: fileContents } for any xacro:include. |