Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ex2] Failed to Build ceres_localization: robot_localization Package Not Found #1

Open
EduardoWS opened this issue Mar 28, 2024 · 1 comment
Assignees

Comments

@EduardoWS
Copy link

Environment:

  • ROS Version: ROS2 Humble
  • Operating System: Ubuntu 22.04
  • Build Tool: colcon

Issue Description:
I'm encountering an issue when trying to build my workspace with the ceres_localization package. During the colcon build process, the build fails with an error indicating that the robot_localization package configuration file was not found. Below is the error output:

eduardo@berserker:~/ceres_ws$ colcon build
Starting >>> ceres_description
Starting >>> ceres_localization
Starting >>> uos_common_urdf
Starting >>> volksbot_driver
Starting >>> ceres_util
Starting >>> uos_diffdrive_teleop
Starting >>> uos_maps
--- stderr: ceres_localization                                         
CMake Error at CMakeLists.txt:10 (find_package):
  By not providing "Findrobot_localization.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "robot_localization", but CMake did not find one.

  Could not find a package configuration file provided by
  "robot_localization" with any of the following names:

    robot_localizationConfig.cmake
    robot_localization-config.cmake

  Add the installation prefix of "robot_localization" to CMAKE_PREFIX_PATH or
  set "robot_localization_DIR" to a directory containing one of the above
  files.  If "robot_localization" provides a separate development package or
  SDK, be sure it has been installed.


---
Failed   <<< ceres_localization [0.51s, exited with code 1]
Aborted  <<< uos_common_urdf [0.51s]
Aborted  <<< ceres_util [0.53s]
Aborted  <<< uos_maps [0.53s]
Aborted  <<< ceres_description [0.58s]
Aborted  <<< uos_diffdrive_teleop [1.02s]        
Aborted  <<< volksbot_driver [1.31s]                            

Summary: 0 packages finished [1.50s]
  1 package failed: ceres_localization
  6 packages aborted: ceres_description ceres_util uos_common_urdf uos_diffdrive_teleop uos_maps volksbot_driver
  3 packages had stderr output: ceres_localization uos_common_urdf volksbot_driver
  5 packages not processed
@amock
Copy link
Member

amock commented Apr 2, 2024

Hello @EduardoWS ,

it seems that the package "robot_localization" is missing from your system. How to install missing packages is first described in "ex02_gazebo_simulation" - "What to do when packages are missing?". The solution is to enter the following command in the command line:

sudo apt install ros-humble-robot-localization

Conceptionally, the problem remains that ex01 can only be used with the knowledge of ex02. That's not good. Thanks for pointing that out. I will try to find a solution for this soon.

@amock amock self-assigned this Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants