I cannot roslaunch my launch file after install cartographer
Hi. I am new to Kinect/ROS and trying to make autonomous driving robot with turtlebot3. And my PC development environment is Ubuntu 16.04 I'm Korean and not good at English. Please understand my English expression. Anyway, I refer to here and got cartographer. Also, I tested SLAM(method:cartographer) with turtlebot3 and successfully got map.pgm and map.yaml files.
After that, I typed 'catkin_make' but I got error messagses as follows.
-- Using CATKIN_DEVEL_PREFIX: /home/jinsung/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/jinsung/catkin_ws/install_isolated;/home/jinsung/catkin_ws/devel;/opt/ros/kinetic
-- This workspace overlays: /home/jinsung/catkin_ws/install_isolated;/home/jinsung/catkin_ws/devel;/opt/ros/kinetic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.12", minimum required is "2")
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/jinsung/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gmock': gtests will be built
-- Found gmock sources under '/usr/src/gmock': gmock will be built
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.12")
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.20
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 7 packages in topological order:
-- ~~ - cartographer (plain cmake)
-- ~~ - cartographer_ros_msgs
-- ~~ - turtlebot (metapackage)
-- ~~ - beginner_tutorials
-- ~~ - cartographer_ros
-- ~~ - cartographer_rviz
-- ~~ - testbot_description
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkin_workspace.cmake:95 (message): This workspace contains non-catkin packages in it, and catkin cannot build a non-homogeneous workspace without isolation. Try the 'catkin_make_isolated' command instead. Call Stack (most recent call first): CMakeLists.txt:67 (catkin_workspace)
-- Configuring incomplete, errors occurred! See also "/home/jinsung/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/jinsung/catkin_ws/build/CMakeFiles/CMakeError.log". Makefile:2334: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed
In order to solve this problem I typed as follows.
- catkin_make_isolated --install --use-ninja
- source ~/catkin_ws/install_isolated/setup.bash
And it seems to be successfully building becasue It did not show any error messages.
After that I created my own package(with catkin_create_pkg) and launched file,python script. Package name is "beginner_tutorials", launch file name is "beginner.launch", python script's name is "talker.py" I refered to ros tutorial to make above things. "beginner.launch" just launch talker.py.
and also I typed commands in order to build package.
- catkin_make_isolated --install --use-ninja
- source ~/catkin_ws/install_isolated/setup.bash
I tested launch file with my friend who did not install cartographer. And it worked well on his computer. (On my friend computer, I typed "catkin_make" because he did not install cartographer) But on my computer it did not work even though it is same package.
For executing launch file, I typed a command as follows.
- roslaunch beginner_tutorials beginner.launch
but I just got error messages as follows.
[beginner.launch] is neither a launch file in package [beginner_tutorials] nor is [beginner_tutorials] a launch file name The traceback for the exception was written to the log file
What I have to do execute my own launch file, please ...