Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jpmartin42 opened this issue Oct 12, 2024 · 0 comments
Open

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

jpmartin42 opened this issue Oct 12, 2024 · 0 comments

Comments

@jpmartin42
Copy link

jpmartin42 commented Oct 12, 2024

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!

@Tobias-Fischer Tobias-Fischer transferred this issue from RoboStack/robostack.github.io Oct 12, 2024
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

No branches or pull requests

1 participant