ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

turtlebot3_msgsConfig.cmake

asked 2018-05-11 03:02:25 -0500

Nick741 gravatar image

updated 2018-05-11 03:10:36 -0500

gvdhoorn gravatar image

I fellow the instruction form the website(http://emanual.robotis.com/docs/en/platform/turtlebot3/navigation/#perform-navigation),and try to make it work.Somehow there is some trouble happed that i can't make catkin to successe.

I try to google it,but get nothing. Is there anyone had see the same problem with me ,ans solve it?

-- +++ processing catkin package: 'turtlebot3_fake'
-- ==> add_subdirectory(turtlebot3_simulations/turtlebot3_fake)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
  Could not find a package configuration file provided by "turtlebot3_msgs"
  with any of the following names:

    turtlebot3_msgsConfig.cmake
    turtlebot3_msgs-config.cmake

  Add the installation prefix of "turtlebot3_msgs" to CMAKE_PREFIX_PATH or
  set "turtlebot3_msgs_DIR" to a directory containing one of the above files.
  If "turtlebot3_msgs" provides a separate development package or SDK, be
  sure it has been installed.
Call Stack (most recent call first):
  turtlebot3_simulations/turtlebot3_fake/CMakeLists.txt:10 (find_package)


-- Could not find the required component 'turtlebot3_msgs'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "turtlebot3_msgs"
  with any of the following names:

    turtlebot3_msgsConfig.cmake
    turtlebot3_msgs-config.cmake

  Add the installation prefix of "turtlebot3_msgs" to CMAKE_PREFIX_PATH or
  set "turtlebot3_msgs_DIR" to a directory containing one of the above files.
  If "turtlebot3_msgs" provides a separate development package or SDK, be
  sure it has been installed.
Call Stack (most recent call first):
  turtlebot3_simulations/turtlebot3_fake/CMakeLists.txt:10 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/nick/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/nick/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:1368: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

I fellow the instruction form ( http://emanual.robotis.com/docs/en/pl... i can't catkin this successfully.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
4

answered 2018-05-11 03:29:00 -0500

gvdhoorn gravatar image

updated 2018-05-11 06:58:48 -0500

Looking at the documentation you link, turtlebot3_msgs seems to be cloned into your Catkin workspace in section 6. PC Setup - Install Dependent packages:

$ cd ~/catkin_ws/src/
$ git clone https://github.com/ROBOTIS-GIT/turtlebot3_msgs.git
$ git clone https://github.com/ROBOTIS-GIT/turtlebot3.git
$ cd ~/catkin_ws && catkin_make

Did you do that, and was that step successful?

Can you verify that $HOME/catkin_ws/src contains a turtlebot3_msgs directory and the directory contains a ROS package?


Edit:

==>yes,I had done that( 6. PC Setup),but catkin still not successful.

==>After the step( 6. PC Setup),I check the folder turtlebot3_msgs appear in the $HOME/nick/ directory.

Packages need to be placed in the Catkin source space, not in the root of the workspace.

Please make sure the package is in $HOME/catkin_ws/src (or wherever you have the source space of your workspace located).

I search whole folder, but i can't find the two files

turtlebot3_msgsConfig.cmake turtlebot3_msgs-config.cmake

That is to be expected (ie: normal), as those are generated files which will be generated by CMake when you first invoke catkin_make. But only if the package is actually located in the source space.

edit flag offensive delete link more

Comments

==>yes,I had done that( 6. PC Setup),but catkin still not successful.

==>After the step( 6. PC Setup),I check the folder turtlebot3_msgs appear in the $HOME/nick/ directory.

Nick741 gravatar image Nick741  ( 2018-05-11 04:30:14 -0500 )edit

I search whole folder, but i can't find the two files

turtlebot3_msgsConfig.cmake turtlebot3_msgs-config.cmake

Nick741 gravatar image Nick741  ( 2018-05-11 04:35:52 -0500 )edit
0

answered 2021-03-17 08:25:10 -0500

niranjan gravatar image

Remove turtlebot3_msgs package from $HOME/nick/ directory and create a src folder in $HOME/nick/ and clone turtlebot3_msgs inside src folder. After this you will be able to compile.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-05-11 03:02:25 -0500

Seen: 10,160 times

Last updated: Mar 17 '21