turtlebot3_msgsConfig.cmake
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/platform/turtlebot3/navigation/#perform-navigation),but i can't catkin this successfully.
Asked by Nick741 on 2018-05-11 03:02:25 UTC
Answers
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.
Asked by gvdhoorn on 2018-05-11 03:29:00 UTC
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.
Asked by Nick741 on 2018-05-11 04:30:14 UTC
I search whole folder, but i can't find the two files
turtlebot3_msgsConfig.cmake turtlebot3_msgs-config.cmake
Asked by Nick741 on 2018-05-11 04:35:52 UTC
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.
Asked by niranjan on 2021-03-17 08:25:10 UTC
Comments