Skip to content

Xacro.describe fails on literal and mixed substitution mappings #4007

Backlog

Description

@sylvesterkaczmarek

[written by AI]

Description

Xacro.describe() raises AttributeError when mappings contain ordinary strings or sequences of substitutions, even though those are supported by perform(). With no mappings, the path is shown as a Python object representation rather than the path text.

ROS Distro

Jazzy (isolated upstream launch Python dependencies)

OS and version

macOS, Python 3.12; no running ROS nodes required.

Source or binary build?

Source, main (5399d29).

Steps to Reproduce

from moveit_configs_utils.substitutions import Xacro

Xacro("robot.urdf.xacro", mappings={"name": "robot"}).describe()

Expected behavior

Return a readable description of the file path and mappings.

Actual behavior

AttributeError: 'str' object has no attribute 'describe'. Reproduced with a regression test using the actual Jazzy launch Python package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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