gazebosim / ros_gz

Integration between ROS (1 and 2) and Gazebo simulation
https://gazebosim.org
Apache License 2.0
227 stars 134 forks source link

Not able to build ros_gz_bridge #580

Open Luigip98 opened 1 month ago

Luigip98 commented 1 month ago

ROS2 version : humble

ros_gz/ros_gz_bridge/include/ros_gz_bridge/convert/ros_gz_interfaces.hpp:39:10: fatal error: ros_gz_interfaces/msg/entity_wrench.hpp: No such file or directory
   39 | #include <ros_gz_interfaces/msg/entity_wrench.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/ros_gz_bridge.dir/build.make:251: CMakeFiles/ros_gz_bridge.dir/src/service_factories/ros_gz_interfaces.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:183: CMakeFiles/ros_gz_bridge.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed   <<< ros_gz_bridge [26.6s, exited with code 2]

How can I avoid this?

mjcarroll commented 1 month ago

Have you also rebuild the ros_gz_interfaces package? It appears there is a new message file that is needed that you don't have generated yet.

Luigip98 commented 1 month ago

I've cloned the whole ros_gz repo (humble branch) and I have no other building errors.