Colcon could not find a package configuration file provided by "catkin"
Hi,
General information about my setup :
Laptop with Ubuntu 22.04.2 LTS x86 ; ROS desktop has been installed.
user@ROS:~/catkin_ws$ env | grep ROS
ROS_VERSION=2
ROS_PYTHON_VERSION=3
ROS_LOCALHOST_ONLY=0
ROS_DISTRO=humble
When trying to build ydlidar ros package (here : https://github.com/EAIBOT/ydlidar), it can't find configuration file catkinconfig.cmake
user@ROS:~/catkin_ws$ source /opt/ros/humble/setup.bash
user@ROS:~/catkin_ws$ colcon build --symlink-install
Output :
Starting >>> ydlidar
--- stderr: ydlidar
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Error at CMakeLists.txt:6 (find_package):
By not providing "Findcatkin.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "catkin", but
CMake did not find one.
Could not find a package configuration file provided by "catkin" with any
of the following names:
catkinConfig.cmake
catkin-config.cmake
Add the installation prefix of "catkin" to CMAKE_PREFIX_PATH or set
"catkin_DIR" to a directory containing one of the above files. If "catkin"
provides a separate development package or SDK, be sure it has been installed.
---
Failed <<< ydlidar [0.20s, exited with code 1]
Summary: 0 packages finished [0.96s]
1 package failed: ydlidar
1 package had stderr output: ydlidar
Note that the package's instructions are to use catkin_make, but command isn't found.
Thanks.
Edit and Solution, In case this can help someone else :
I'm using ros2 but this package was for ros1. There is one for ROS2 here that isn't linked by the company's website : https://github.com/YDLIDAR/ydlidar_ro... (EAIBOT seems to be the old name).
Yet, this driver is full of compilation errors that you'll have to correct by yourself.