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

fatal error: geometry_msgs/msg/velocity_stamped.hpp: No such file or directory #721

Closed
Kalemat96 opened this issue Oct 28, 2024 · 3 comments

Comments

@Kalemat96
Copy link

Bug report

  • Operating System:
    • Ubuntu 22.04
  • Installation type:
    • binaries
  • Version or commit hash:
    • humble 0.25.8

Steps to reproduce issue

include "tf2_geometry_msgs/tf2_geometry_msgs.hpp" in a custom package and build it.

Expected behavior

Installation using apt works fine.

Actual behavior

After update the custom package gives an error while building:

/opt/ros/humble/include/tf2_geometry_msgs/tf2_geometry_msgs/tf2_geometry_msgs.hpp:51:10: fatal error: geometry_msgs/msg/velocity_stamped.hpp: No such file or directory
51 | #include "geometry_msgs/msg/velocity_stamped.hpp"

Additional information

Today I updated all the ros packages and I get the error while building.

I then built the 0.25.7 version of the geometry2 package locally and it works again, but I couldn't figure out the problem.

Does anyone have an idea?

@christophebedard
Copy link
Member

Version 0.25.7 is the last Humble version before this PR, which added the #include "geometry_msgs/msg/velocity_stamped.hpp": #684. So it makes sense.

This message was added in Humble here: ros2/common_interfaces#249. The next release of geometry_msgs after that PR is 4.2.4, so can you just make sure you have geometry_msgs version >= 4.2.4? I do see that this version is available from apt. You can check the version that is currently installed on your system by running: apt list --installed | grep ros-humble-geometry-msgs.

@Kalemat96
Copy link
Author

Thanks for your reply, I just updated all packages. I have installed ros-humble-geometry-msgs version 4.2.4.

I can find the file VelocityStamped.msg file in the humble folder, but somehow it is not installed properly.

It is not listed up using ros2 interface list | grep Velocity.

@christophebedard
Copy link
Member

I do have it on my Ubuntu 22.04 system with Humble:

$ source /opt/ros/humble/setup.bash
$ ros2 interface list | grep VelocityStamped
    geometry_msgs/msg/VelocityStamped

Try reinstalling all packages with sudo apt-get install --reinstall ros-humble-desktop (or ros-humble-ros-base).

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

3 participants