webots_ros2: colcon build failed <<

Describe the Bug

n file included from /home/iword/dev_ws/src/webots_ros2/webots_ros2_driver/src/WebotsNode.cpp:25:
/home/iword/dev_ws/src/webots_ros2/webots_ros2_driver/include/webots_ros2_driver/plugins/static/Ros2Camera.hpp:28:10: fatal error: vision_msgs/msg/detection2_d.hpp: No such file or directory
   28 | #include <vision_msgs/msg/detection2_d.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/driver.dir/build.make:76: CMakeFiles/driver.dir/src/WebotsNode.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:107: CMakeFiles/driver.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:141: all] Error 2
---
Failed   <<< webots_ros2_driver [14.5s, exited with code 2]

Summary: 7 packages finished [17.0s]
  1 package failed: webots_ros2_driver
  2 packages had stderr output: webots_ros2_driver webots_ros2_importer
  8 packages not processed

Affected Packages List of affected packages:

  • webots_ros2_driver
  • webots_ros2_importer

System

  • ROS Version: foxy
  • Operating System: Linux Ubuntu 20.04
  • Graphics Card: NVIDIA GeForce 820M

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (11 by maintainers)

Most upvoted comments

The command you missed also clones git submodules, and these submodules are not available when the downloading zip. I strongly suggest that you try to git clone as it will automatically pull proper git submodule versions. Otherwise, make sure you have webots_ros2_importer/urdf2webots/urdf2webots and webots_ros2_driver/webots folders downloaded as well.