ROS2 SLAM_Toolbox Failed Colcon Build
Ive been trying to get the SLAM toolbox up and running to work on a project, but I keep running into the same issue. I get the files into place using GIT sourcing https://github.com/SteveMacenski/slam... and then try to build the application, but it fails. I get the following message: CMake Error at CMakeLists.txt:13 (find_package): By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "ament_cmake", but CMake did not find one.
Could not find a package configuration file provided by "ament_cmake" with any of the following names:
ament_cmakeConfig.cmake
ament_cmake-config.cmake
Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_PATH or set "ament_cmake_DIR" to a directory containing one of the above files. If "ament_cmake" provides a separate development package or SDK, be sure it has been installed.
This is happening on both my Linux machine and my Windows machine running an Ubuntu Terminal. They are both running 20.04 and ROS2 Humble. I may not understand the instructions fully as they are just given as:
ROSDep will take care of the major things rosdep install -q -y -r --from-paths src --ignore-src Or install via apt apt install ros-eloquent-slam-toolbox Run your colcon build procedure of choice. You can run via ros2 launch slam_toolbox online_sync_launch.py
Maybe I need a specific argument for colcon? I dont fully understand how all these things work together. Im pretty new to this.