Skip to content

Parse meshes specified via package:// URIs #27

@traversaro

Description

@traversaro

URDF models used in the ROS world typically contains meshes that are specified via package:// URIs, also as that is the only way to specify meshes without absolute filenames, at least according to the URDF specification.

While many libraries (including urchin) also support an undocumented URDF extensions in which meshes location specified by filename="this/is/a/path/to/a/mesh.stl" are interpreted as relative paths, "official" URDF files must use meshes specified via package.xml.

To support meshes specified via package:// URI in urchin without the need of depending on ROS libraries not available in pypi, I think we could add support for resolving package:// URIs via the https://github.com/ami-iit/resolve-robotics-uri-py, that is a no-dependency pure python library that can resolve package:// URIs, just using environment variables (like ROS_PACKAGE_PATH or AMENT_PREFIX_PATH) that ROS or most other URDF-capable libraries already define and support, see for example:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions