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

--- stderr: turtlebot3_gazebo CMake Error at CMakeLists.txt:24 (find_package): By not providing "Findgazebo_ros_pkgs.cmake" in CMAKE_MODULE_PATH #184

Open
sam1226 opened this issue Apr 8, 2022 · 1 comment

Comments

@sam1226
Copy link

sam1226 commented Apr 8, 2022

My environment info : win11+wsl2_ubuntu20.04+ROS2-foxy
I want to build the turtlebot3, download the source code according to turtlebot3.repos and use the version foxy-devel.
but when do the build cmd :colcon build --symlink-install.
an error occurs :


--- stderr: turtlebot3_gazebo
CMake Error at CMakeLists.txt:24 (find_package):
By not providing "Findgazebo_ros_pkgs.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"gazebo_ros_pkgs", but CMake did not find one.

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

gazebo_ros_pkgsConfig.cmake
gazebo_ros_pkgs-config.cmake

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


Failed <<< turtlebot3_gazebo [18.6s, exited with code 1]


I check the source code downloaded, and can't find the gazebo_ros_pkgs, and also in repos foxy-devel. should i download gazebo_ros_pkgs from other repos version to fix this error?
plz help me!

@ROBOTIS-Will
Copy link
Contributor

ROBOTIS-Will commented Apr 12, 2022

Hi,
It looks like you have not installed the gazebo_ros_pkgs package.
https://answers.ros.org/question/349782/why-is-not-building-package-turtlebot3_gazebo-on-ros2/

More information about installing the gazebo:
http://gazebosim.org/tutorials?tut=ros2_installing&cat=connect_ros

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