ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

I cannot roslaunch my launch file after install cartographer

asked 2020-01-10 06:27:49 -0600

sdljs74750 gravatar image

updated 2020-01-10 08:16:22 -0600

gvdhoorn gravatar image

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
-- 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
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  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 "" I refered to ros tutorial to make above things. "beginner.launch" just launch

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 ... (more)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-01-14 18:59:00 -0600

Will Son gravatar image

Make sure you have installed protobuf3 before compiling the Cartographer.
You can follow the instruction written in the blow page.

edit flag offensive delete link more


Thank you! I really appreciate!!

sdljs74750 gravatar image sdljs74750  ( 2020-01-14 20:21:35 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-01-10 06:27:49 -0600

Seen: 1,351 times

Last updated: Jan 14 '20