Skip to content

urdf/model.h out of date for ROS2 Humble? #216

Closed

Description

@jpmartin42

System info: ROS2 Humble / Ubuntu 22.04; Mamba env using Python 3.10

I was getting some odd errors in C++ when referencing the urdf/model.h library. This was in ros-agnostic libraries that stored URDF's using this library, and had worked fine when I had written the code in ROS1 and when I had used apt-installed ROS2 instead of the RoboStack equivalent.

Long story short, it looks like the urdf/model.h version downloaded via the the install guide is the slightly outdated Galactic version and not the Humble version. They're pretty much identical, but the Humble version of the library contains a few extra functions:

  URDF_EXPORT Model(const Model & other);
  URDF_EXPORT Model & operator=(const Model & other);
  URDF_EXPORT Model(Model && other) noexcept;
  URDF_EXPORT Model & operator=(Model && other)noexcept;

... that my code (and, presumably, other C++ code that referenced the library) needed in a few areas. Adding these few functions to the urdf/model.h file allowed my code to build, though I have yet to finish setting it up to run to see if that quick fix did what I needed it to. I've never installed Galactic or any non-Humble version of ROS on this PC in Mamba or via apt.

I doubt it's an issue for most folks, but just wanted to throw this up here in case it became relevant to someone else!

Activity

  1. Tobias-Fischer commented on Jan 6, 2025

    @Tobias-Fischer
    Contributor

    Should be fixed in the recent rebuild. If not, please feel free to reopen.

  2. traversaro commented on Jan 6, 2025

    @traversaro
    Member

    Indeed, the rebuild in #229 contains urdf 2.6.1 that should contain the PR ros2/urdf#41 that contains the backport of the fix to humble.

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