Discussion - Mobile Robot Project Overview (Making a Mobile Robot Pt 1)

Blog Post

This is the discussion topic for the video and blog post linked above. Please keep all replies relevant to the content, otherwise create a new topic.

Iam getting below error while using the command
vboxuser@linux1:~/dev_wc/src$ colcon build --symlink-install
error:
CMake Error at CMakeLists.txt:19 (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.


Failed <<< my_bot [0.76s, exited with code 1]

Hi, this means you probably haven’t sourced your ROS installation. You should type source /opt/ros/foxy/setup.bash (or replace foxy with whatever ROS distro you’ve got).

Most people add this line to the file ~/.bashrc which is executed on the start of each terminal, so you always have it.

2 Likes

It’s working now, thanks

2 Likes

Hello, i’m following the course with ros2 humble installed but i can’t build the the package.why when i run this command “colcon build --symlink-install " i get this " Summary: 0 packages finished” ?