Skip to content

fix urdf world types deprecation - #181

Merged
traversaro merged 2 commits into
RoboStack:mainfrom
peter-mitrano-ar:fix/urdf-world-types-deprecation
Oct 28, 2026
Merged

traversaro merged 2 commits into
RoboStack:mainfrom
peter-mitrano-ar:fix/urdf-world-types-deprecation

Conversation

@peter-mitrano-ar

Copy link
Copy Markdown
Contributor

I recently saw this warning when building rviz plugins:

.pixi/envs/workstation/include/urdf_world/types.hpp:43:6: warning: #warning urdf_world/types.h is deprecated. Please use urdf_model/types.hpp instead. [-Wcpp]
   43 |     #warning urdf_world/types.h is deprecated. Please use urdf_model/types.hpp instead.

I am not sure whether any upstream patches to the versions released on rosdistro are needed, because on distro, the version of urdf is still kept back on the version without the hpp. But via conda-forge we are getting a more recent urdfdom_headers version, so I think a patch makes sense but I'm open to alternatives.

peter-mitrano-ar and others added 2 commits October 28, 2026 14:17
RoboStack remaps urdfdom_headers to conda-forge 3.x, which deprecates
urdf_world/types.h. Mirror ros2/urdf#54 in humble and jazzy patches so
consumers of <urdf/model.h> no longer get -Wcpp noise.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep the smoke-test project untracked locally without changing
upstream ignore rules.

Co-authored-by: Cursor <cursoragent@cursor.com>
@peter-mitrano-ar

Copy link
Copy Markdown
Contributor Author

My current list of *urdf* packages for reference:

Environment: workstation
Installed for: linux-64
Name                     Version  Build                      Size  Kind   Source
ros2-urdf                2.6.1    np2py314h53a0733_22  154.19 KiB  conda  https://conda.anaconda.org/robostack-humble
ros2-urdf-parser-plugin  2.6.1    np2py314h53a0733_22   32.04 KiB  conda  https://conda.anaconda.org/robostack-humble
ros2-urdfdom             6.0.0    py314h0732957_22       7.89 KiB  conda  https://conda.anaconda.org/robostack-humble
ros2-urdfdom-headers     3.0.0    py314h02e3bbf_22       6.89 KiB  conda  https://conda.anaconda.org/robostack-humble
ros2-urdfdom-py          1.2.1    py314h02e3bbf_22       6.93 KiB  conda  https://conda.anaconda.org/robostack-humble
urdf_parser_py           0.0.4                                     pypi   https://pypi.org/simple
urdfdom                  6.0.2    hf2e7533_0           107.11 KiB  conda  https://conda.anaconda.org/conda-forge
urdfdom-py               1.2.1    py314h52e538e_7       48.63 KiB  conda  https://conda.anaconda.org/conda-forge
urdfdom_headers          3.0.1    h4dbf13b_1            21.88 KiB  conda  https://conda.anaconda.org/conda-forge
yourdfpy                 0.0.60                         90.21 KiB  pypi   https://pypi.org/simple

@Tobias-Fischer
Tobias-Fischer requested a review from a team October 28, 2026 21:40
@traversaro

Copy link
Copy Markdown
Member

My current list of *urdf* packages for reference:

Environment: workstation
Installed for: linux-64
Name                     Version  Build                      Size  Kind   Source
ros2-urdf                2.6.1    np2py314h53a0733_22  154.19 KiB  conda  https://conda.anaconda.org/robostack-humble
ros2-urdf-parser-plugin  2.6.1    np2py314h53a0733_22   32.04 KiB  conda  https://conda.anaconda.org/robostack-humble
ros2-urdfdom             6.0.0    py314h0732957_22       7.89 KiB  conda  https://conda.anaconda.org/robostack-humble
ros2-urdfdom-headers     3.0.0    py314h02e3bbf_22       6.89 KiB  conda  https://conda.anaconda.org/robostack-humble
ros2-urdfdom-py          1.2.1    py314h02e3bbf_22       6.93 KiB  conda  https://conda.anaconda.org/robostack-humble
urdf_parser_py           0.0.4                                     pypi   https://pypi.org/simple
urdfdom                  6.0.2    hf2e7533_0           107.11 KiB  conda  https://conda.anaconda.org/conda-forge
urdfdom-py               1.2.1    py314h52e538e_7       48.63 KiB  conda  https://conda.anaconda.org/conda-forge
urdfdom_headers          3.0.1    h4dbf13b_1            21.88 KiB  conda  https://conda.anaconda.org/conda-forge
yourdfpy                 0.0.60                         90.21 KiB  pypi   https://pypi.org/simple

Kind of unrelated but fyi urdfdom-py and urdf_parser_py install the same python package, so watch out for possible conflicts

@traversaro
traversaro merged commit 1a00638 into RoboStack:main Oct 28, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants