Skip to content

Xacro file argument introspection #345

@reinzor

Description

@reinzor

We would like to add a feature that allows a user to introspect xacro files. This way, we can query what arguments are available and prompt these to the user. We could also add additional validation to the defined arguments and some documentation. What are your thoughts about this? An example:

<xacro:arg name="argument1" default="value1" doc="Argument 1 doc" choices="value1, value2, value3" />
xacro --args test.xacro
arguments:
  - name: argument 1
  - default: value1
  - choices: [value1, value2, value3]
  - doc: Argument 1 doc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions