Hi,
This is the error message I get when trying to compile it:
nipuni@robotics-melodic:~/catkin_ws/src/dai_ws$ source /opt/ros/melodic/setup.bash
nipuni@robotics-melodic:~/catkin_ws/src/dai_ws$ catkin_make_isolated
Base path: /home/nipuni/catkin_ws/src/dai_ws
Source space: /home/nipuni/catkin_ws/src/dai_ws/src
Build space: /home/nipuni/catkin_ws/src/dai_ws/build_isolated
Devel space: /home/nipuni/catkin_ws/src/dai_ws/devel_isolated
Install space: /home/nipuni/catkin_ws/src/dai_ws/install_isolated
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~ traversing 7 packages in topological order:
~~ - depthai-ros
~~ - depthai_descriptions
~~ - depthai_ros_msgs
~~ - depthai_bridge
~~ - depthai_examples
~~ - depthai_filters
~~ - depthai_ros_driver
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> Processing catkin package: 'depthai-ros'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/nipuni/catkin_ws/src/dai_ws/build_isolated/depthai-ros'
==> make -j8 -l8 in '/home/nipuni/catkin_ws/src/dai_ws/build_isolated/depthai-ros'
<== Finished processing package [1 of 7]: 'depthai-ros'
==> Processing catkin package: 'depthai_descriptions'
==> Building with env: '/home/nipuni/catkin_ws/src/dai_ws/devel_isolated/depthai-ros/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/nipuni/catkin_ws/src/dai_ws/build_isolated/depthai_descriptions'
==> make -j8 -l8 in '/home/nipuni/catkin_ws/src/dai_ws/build_isolated/depthai_descriptions'
<== Finished processing package [2 of 7]: 'depthai_descriptions'
==> Processing catkin package: 'depthai_ros_msgs'
==> Building with env: '/home/nipuni/catkin_ws/src/dai_ws/devel_isolated/depthai_descriptions/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/nipuni/catkin_ws/src/dai_ws/build_isolated/depthai_ros_msgs'
==> make -j8 -l8 in '/home/nipuni/catkin_ws/src/dai_ws/build_isolated/depthai_ros_msgs'
[ 0%] Built target std_msgs_generate_messages_py
[ 0%] Built target geometry_msgs_generate_messages_py
[ 0%] Built target sensor_msgs_generate_messages_py
[ 0%] Built target _depthai_ros_msgs_generate_messages_check_deps_TrackedFeature
[ 0%] Built target vision_msgs_generate_messages_py
[ 0%] Built target _depthai_ros_msgs_generate_messages_check_deps_TrackedFeatures
[ 0%] Built target _depthai_ros_msgs_generate_messages_check_deps_AutoFocusCtrl
[ 0%] Built target _depthai_ros_msgs_generate_messages_check_deps_SpatialDetectionArray
[ 0%] Built target _depthai_ros_msgs_generate_messages_check_deps_HandLandmark
[ 0%] Built target _depthai_ros_msgs_generate_messages_check_deps_NormalizedImageCrop
[ 0%] Built target std_msgs_generate_messages_nodejs
[ 0%] Built target sensor_msgs_generate_messages_nodejs
[ 0%] Built target geometry_msgs_generate_messages_nodejs
[ 0%] Built target _depthai_ros_msgs_generate_messages_check_deps_ImuWithMagneticField
[ 0%] Built target _depthai_ros_msgs_generate_messages_check_deps_TriggerNamed
[ 0%] Built target vision_msgs_generate_messages_nodejs
[ 0%] Built target _depthai_ros_msgs_generate_messages_check_deps_SpatialDetection
[ 0%] Built target _depthai_ros_msgs_generate_messages_check_deps_HandLandmarkArray
[ 0%] Built target std_msgs_generate_messages_lisp
[ 0%] Built target sensor_msgs_generate_messages_lisp
[ 0%] Built target vision_msgs_generate_messages_lisp
[ 0%] Built target geometry_msgs_generate_messages_lisp
[ 0%] Built target sensor_msgs_generate_messages_eus
[ 0%] Built target vision_msgs_generate_messages_cpp
[ 0%] Built target vision_msgs_generate_messages_eus
[ 0%] Built target std_msgs_generate_messages_cpp
[ 0%] Built target geometry_msgs_generate_messages_eus
[ 0%] Built target std_msgs_generate_messages_eus
[ 0%] Built target sensor_msgs_generate_messages_cpp
[ 0%] Built target geometry_msgs_generate_messages_cpp
[ 22%] Built target depthai_ros_msgs_generate_messages_py
[ 41%] Built target depthai_ros_msgs_generate_messages_lisp
[ 60%] Built target depthai_ros_msgs_generate_messages_nodejs
[ 81%] Built target depthai_ros_msgs_generate_messages_eus
[100%] Built target depthai_ros_msgs_generate_messages_cpp
[100%] Built target depthai_ros_msgs_generate_messages
<== Finished processing package [3 of 7]: 'depthai_ros_msgs'
==> Processing catkin package: 'depthai_bridge'
==> Building with env: '/home/nipuni/catkin_ws/src/dai_ws/devel_isolated/depthai_ros_msgs/env.sh'
==> cmake /home/nipuni/catkin_ws/src/dai_ws/src/depthai-ros/depthai_bridge -DCATKIN_DEVEL_PREFIX=/home/nipuni/catkin_ws/src/dai_ws/devel_isolated/depthai_bridge -DCMAKE_INSTALL_PREFIX=/home/nipuni/catkin_ws/src/dai_ws/install_isolated -G Unix Makefiles in '/home/nipuni/catkin_ws/src/dai_ws/build_isolated/depthai_bridge'
-- ----------------Did not find OpenCV 4, trying OpenCV 3--------------
-- ------------------------------------------
-- Depthai Bridge is being built using CATKIN.
-- ------------------------------------------
-- Using CATKIN_DEVEL_PREFIX: /home/nipuni/catkin_ws/src/dai_ws/devel_isolated/depthai_bridge
-- Using CMAKE_PREFIX_PATH: /home/nipuni/catkin_ws/src/dai_ws/devel_isolated/depthai_ros_msgs;/home/nipuni/catkin_ws/src/dai_ws/devel_isolated/depthai_descriptions;/home/nipuni/catkin_ws/src/dai_ws/devel_isolated/depthai-ros;/opt/ros/melodic
-- This workspace overlays: /home/nipuni/catkin_ws/src/dai_ws/devel_isolated/depthai_ros_msgs;/home/nipuni/catkin_ws/src/dai_ws/devel_isolated/depthai_descriptions;/home/nipuni/catkin_ws/src/dai_ws/devel_isolated/depthai-ros;/opt/ros/melodic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2")
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/nipuni/catkin_ws/src/dai_ws/build_isolated/depthai_bridge/test_results
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
CMake Warning (dev) at /usr/src/googletest/CMakeLists.txt:3 (project):
Policy CMP0048 is not set: project() command manages VERSION variables.
Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
The following variable(s) would be set to empty:
PROJECT_VERSION
PROJECT_VERSION_MAJOR
PROJECT_VERSION_MINOR
PROJECT_VERSION_PATCH
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at /usr/src/googletest/googlemock/CMakeLists.txt:40 (project):
Policy CMP0048 is not set: project() command manages VERSION variables.
Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
The following variable(s) would be set to empty:
PROJECT_VERSION
PROJECT_VERSION_MAJOR
PROJECT_VERSION_MINOR
PROJECT_VERSION_PATCH
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at /usr/src/googletest/googletest/CMakeLists.txt:47 (project):
Policy CMP0048 is not set: project() command manages VERSION variables.
Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
The following variable(s) would be set to empty:
PROJECT_VERSION
PROJECT_VERSION_MAJOR
PROJECT_VERSION_MINOR
PROJECT_VERSION_PATCH
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.17")
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.29
-- BUILD_SHARED_LIBS is on
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Boost version: 1.65.1
CMake Error at CMakeLists.txt:48 (find_package):
Could not find a package configuration file provided by "depthai" with any
of the following names:
depthaiConfig.cmake
depthai-config.cmake
Add the installation prefix of "depthai" to CMAKE_PREFIX_PATH or set
"depthai_DIR" to a directory containing one of the above files. If
"depthai" provides a separate development package or SDK, be sure it has
been installed.
-- Configuring incomplete, errors occurred!
See also "/home/nipuni/catkin_ws/src/dai_ws/build_isolated/depthai_bridge/CMakeFiles/CMakeOutput.log".
See also "/home/nipuni/catkin_ws/src/dai_ws/build_isolated/depthai_bridge/CMakeFiles/CMakeError.log".
<== Failed to process package 'depthai_bridge':
Command '['/home/nipuni/catkin_ws/src/dai_ws/devel_isolated/depthai_ros_msgs/env.sh', 'cmake', '/home/nipuni/catkin_ws/src/dai_ws/src/depthai-ros/depthai_bridge', '-DCATKIN_DEVEL_PREFIX=/home/nipuni/catkin_ws/src/dai_ws/devel_isolated/depthai_bridge', '-DCMAKE_INSTALL_PREFIX=/home/nipuni/catkin_ws/src/dai_ws/install_isolated', '-G', 'Unix Makefiles']' returned non-zero exit status 1
Reproduce this error by running:
==> cd /home/nipuni/catkin_ws/src/dai_ws/build_isolated/depthai_bridge && /home/nipuni/catkin_ws/src/dai_ws/devel_isolated/depthai_ros_msgs/env.sh cmake /home/nipuni/catkin_ws/src/dai_ws/src/depthai-ros/depthai_bridge -DCATKIN_DEVEL_PREFIX=/home/nipuni/catkin_ws/src/dai_ws/devel_isolated/depthai_bridge -DCMAKE_INSTALL_PREFIX=/home/nipuni/catkin_ws/src/dai_ws/install_isolated -G 'Unix Makefiles'
Command failed, exiting.
I have seen this same error in other discussions but commenting out 'include' doesn't seem to fix it for me (I get the same error on the same package, depthai-bridge). Do you have any suggesttions on how I could modify the noetic drivers to work with melodic?
The docker image option is also not working for me so far (I am not familiar with docker and I think I don't have the right image, and I'm not sure how to get it).
Is it possible to provide a legacy version of the melodic drivers? Realsense has legacy drivers for EOL versions and I was hoping you have something similar.
Best,
Nipuni