Skip to content

Support for urdf.xacro file with namespaces to visualise robot_description in 3D panel #332

@Dave-van-der-Meer

Description

@Dave-van-der-Meer

In our lab, we have multiple robots of the same model, and with the switch to ROS2, we set them up to have proper namespaces for each robot. Since we have several Leo Rovers, we gave them the namespace "leo01", "leo02", "leo03", ...

The namespace is applied to the node names, topic names, service names, and URDF links and joints.

Currently, we can load the generic robot_description model into the 3D panel using the urdf.xacro file, but it does not apply a namespace to the robot model. as a result, we have the TF for /leo01/base_link and /leo02/base_link, but the 3D model will be called /base_link without the namespace.

The namespace is loaded when calling the robot_description, and it is not hard coded into the URDF file. This way, we can reuse it for any new robot and also update it for all the robots at once. When we actually convert the urdf.xacro file into a pure URDF file and apply the namespace by hard-coding them into the URDF file, it can properly assign the namespace and the 3D model matches with the published TF.

My feature request would be to add support for namespaces in the urdf.xacro file that is being loaded. This could be a field in the 3D panel options to add a namespace to a loaded URDF model. This way, we could load the exact same model and only change the namespace in the settings panel instead of the URDF file. Also, in this context, it would be nice to duplicate a URDF in the 3D panel settings so we do not need to import the models one by one.

Please let me know if I should give more specifications or if there are any other questions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions