Hello everyone, for a student project we are working with an autonomous robot. The goal of the project is to replace the lidar sensor with two OAK-D-Pro-Wide cameras (stereo). The robot is using a Nvidia Jetson. After following the instructions on:
jetson@uiabot5:~/dai_ws$ colcon build --symlink-install
Starting >>> depthai_ros_msgs
Starting >>> depthai
Starting >>> depthai_descriptions
Finished <<< depthai_descriptions [2.31s]
Finished <<< depthai_ros_msgs [31.8s]
Starting >>> depthai_filters
--- stderr: depthai_filters
In file included from /home/jetson/dai_ws/src/depthai-ros/depthai_filters/src/feature_tracker_overlay.cpp:1:
/home/jetson/dai_ws/src/depthai-ros/depthai_filters/include/depthai_filters/feature_tracker_overlay.hpp:3:10: fatal error: cv_bridge/cv_bridge.hpp: No such file or directory
3 | #include "cv_bridge/cv_bridge.hpp"
| ^\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~
compilation terminated.
gmake[2]: *** [CMakeFiles/depthai_filters.dir/build.make:132: CMakeFiles/depthai_filters.dir/src/feature_tracker_overlay.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
/home/jetson/dai_ws/src/depthai-ros/depthai_filters/src/segmentation_overlay.cpp:3:10: fatal error: cv_bridge/cv_bridge.hpp: No such file or directory
3 | #include "cv_bridge/cv_bridge.hpp"
| ^\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~
compilation terminated.
gmake[2]: *** [CMakeFiles/depthai_filters.dir/build.make:90: CMakeFiles/depthai_filters.dir/src/segmentation_overlay.cpp.o] Error 1
/home/jetson/dai_ws/src/depthai-ros/depthai_filters/src/spatial_bb.cpp:3:10: fatal error: cv_bridge/cv_bridge.hpp: No such file or directory
3 | #include "cv_bridge/cv_bridge.hpp"
| ^\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~
compilation terminated.
gmake[2]: *** [CMakeFiles/depthai_filters.dir/build.make:104: CMakeFiles/depthai_filters.dir/src/spatial_bb.cpp.o] Error 1
/home/jetson/dai_ws/src/depthai-ros/depthai_filters/src/detection2d_overlay.cpp:3:10: fatal error: cv_bridge/cv_bridge.hpp: No such file or directory
3 | #include "cv_bridge/cv_bridge.hpp"
| ^\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~
compilation terminated.
gmake[2]: *** [CMakeFiles/depthai_filters.dir/build.make:76: CMakeFiles/depthai_filters.dir/src/detection2d_overlay.cpp.o] Error 1
/home/jetson/dai_ws/src/depthai-ros/depthai_filters/src/features_3d.cpp:3:10: fatal error: cv_bridge/cv_bridge.hpp: No such file or directory
3 | #include "cv_bridge/cv_bridge.hpp"
| ^\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~
compilation terminated.
gmake[2]: *** [CMakeFiles/depthai_filters.dir/build.make:146: CMakeFiles/depthai_filters.dir/src/features_3d.cpp.o] Error 1
/home/jetson/dai_ws/src/depthai-ros/depthai_filters/src/wls_filter.cpp:5:10: fatal error: cv_bridge/cv_bridge.hpp: No such file or directory
5 | #include "cv_bridge/cv_bridge.hpp"
| ^\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~
compilation terminated.
gmake[2]: *** [CMakeFiles/depthai_filters.dir/build.make:118: CMakeFiles/depthai_filters.dir/src/wls_filter.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/depthai_filters.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed <<< depthai_filters [3.79s, exited with code 2]
Aborted <<< depthai [22min 20s]
Summary: 2 packages finished [22min 21s]
1 package failed: depthai_filters
1 package aborted: depthai
2 packages had stderr output: depthai depthai_filters
4 packages not processed
jetson@uiabot5:~/dai_ws$
Did someone have the same problem and knows how to solve it? Thanks in advance for you help and feedback.