Skip to content

ros2 param get /robot_state_publisher robot_description returns absolute file paths instead of package:// paths #12

@Ji-Sung05

Description

@Ji-Sung05

I encountered an issue where executing the following command: ros2 param get /robot_state_publisher robot_description
returns absolute file paths (file:///home/...) instead of the originally defined package:// paths in the URDF.
For example, in my URDF, I define a mesh file like this: <mesh filename="package://go2_description/meshes/calf.dae" scale="1 1 1"/>
However, when I retrieve the robot_description parameter, it appears as: <mesh filename="file:///home/go2_ws/install/go2_description/share/go2_description/meshes/calf.dae" scale="1 1 1"/>
This conversion makes it difficult to maintain portability across different environments and makes it inconsistent with how resources are typically referenced in ROS 2.

How can I use package:// paths instead of absolute paths?

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