Colcon Failure Gazebo11 w ROS2 Foxy
Hello I'm new to the terminal in Linux (Ubuntu) and I keep getting this error at step 7 of this tutorial.
I messed up my Ubuntu 20.04 installation 2 days ago and now I keep running into this problem:
:~/ws$ sudo colcon build --symlink-install
Starting >>> camera_calibration_parsers
Starting >>> cv_bridge
Starting >>> gazebo_dev
Starting >>> gazebo_msgs
Starting >>> image_transport
Starting >>> image_geometry
--- stderr: image_geometry
CMake Error at CMakeLists.txt:4 (find_package):
By not providing "Findament_cmake_python.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"ament_cmake_python", but CMake did not find one.
Could not find a package configuration file provided by
"ament_cmake_python" with any of the following names:
ament_cmake_pythonConfig.cmake
ament_cmake_python-config.cmake
Add the installation prefix of "ament_cmake_python" to CMAKE_PREFIX_PATH or
set "ament_cmake_python_DIR" to a directory containing one of the above
files. If "ament_cmake_python" provides a separate development package or
SDK, be sure it has been installed.
---
Failed <<< image_geometry [0.69s, exited with code 1]
Aborted <<< cv_bridge [0.71s]
Aborted <<< gazebo_dev [0.71s]
Aborted <<< camera_calibration_parsers [0.78s]
Aborted <<< image_transport [0.70s]
Aborted <<< gazebo_msgs [0.71s]
Summary: 0 packages finished [1.09s]
1 package failed: image_geometry
5 packages aborted: camera_calibration_parsers cv_bridge gazebo_dev gazebo_msgs image_transport
6 packages had stderr output: camera_calibration_parsers cv_bridge gazebo_dev gazebo_msgs image_geometry image_transport
7 packages not processed
Two possible problems: did you forget to source /opt/ros/foxy/setup.bash? If you did not, seems like you are missing the ros-foxy-ament-cmake-python package, could be?
Hello Jose Luis. I've sourced it with . ~/ros2_foxy/install/local_setup.bash same as in the tutorial. The ros-foxy-ament-cmake-python-package seems to exist under ~/ros2_foxy. Should I be installing foxy elsewhere? could that be causing the problem? I followed the instructions verbatim prior to 27th august with no issue. Could an Ubuntu update cause this?
I've also tried sourcing it both with setup.bash and local_setup.bash . A curious thing that's happening is that Gazebo builds well enough to run the GUI but not well enough to run the simple exercise that's in the tutorial that literally worked as of 26 Aug. I'm trying to use colcon build one directory up as an experiment since it seems to be building further along. I don't know what changed from 26 -27 Aug but goddamn is it frustrating.