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

Error:cannot launch node [octomap_server/octomap_server_node]

asked 2017-09-04 17:14:52 -0600

Eyshika gravatar image

updated 2017-09-07 11:29:15 -0600

Hello I am trying to convert my point cloud data into map using octomap. I am newbie in this, so i would like to know what I am doing wrong. To create map these are steps I followed:

  1. rosbag info<mypoint_cloudbagfile> : OUTPUT: gives all the required information appropriately
  2. rosbag play <mypoint_cloudbagfile> Output
  3. Created my own Package
  4. Inside launch folder added this data:
  5. Updated Package.xml with required dependencies Package.xml
  6. Updated CmakeLists.txt like this:

    cmake_minimum_required(VERSION 2.8.3)
    find_package(PCL REQUIRED QUIET COMPONENTS common sample_consensus io segmentation filters)
    find_package(octomap REQUIRED)
      INCLUDE_DIRS include
      DEPENDS octomap PCL
  7. ran launch file :

    roslaunch octomap_server octomap_mapping.launch

It runs but gives this error:

OUTPUT: ERROR: cannot launch node of type [octomap_server/octomap_server_node]: can't locate node [octomap_server_node] in package [octomap_server]

P.S.: I have already installed octomap_mapping using

sudo apt-get install ros-kinetic-octomap_mapping

Please tell me why this error occurs and how can I repair it to proceed in creating a map.

There are some solutions I tried: 1. run rosrun octomap_server octomap_server_node to check node

I got this output:

Couldn't find executable named octomap_server_node below /home/ubuntu/catkin/src/octomap_server

2. Source the bash file using:

source ~/catkin_ws/devel/setup.bash

Thank You!

edit retag flag offensive close merge delete


Welcome. I edited your question to make it more readable. In the future, please format any terminal output/source code/etc. using the 101010 button to make it more readable.

jayess gravatar image jayess  ( 2017-09-04 19:24:29 -0600 )edit

Thanx a lot.

Eyshika gravatar image Eyshika  ( 2017-09-05 10:19:05 -0600 )edit

Are modifying the package.xml and CMakeLists.txt of the package that you downloaded? If so, why? Also, did you run catkin_make from the root for your workspace? I don't see that step listed.

jayess gravatar image jayess  ( 2017-09-08 10:34:05 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2017-09-04 19:27:08 -0600

jayess gravatar image

updated 2017-09-05 09:48:41 -0600

This question pops up quite regularly and the solution is usually the same, source the setup.bash file:

source ~/catkin_ws/devel/setup.bash

Where catkin_ws is your catkin workspace. You can always Google the error to find a solution before posting a question:

edit flag offensive delete link more


Using Google to search ROS Answers is a good suggestion.

My suggestion: add to the query. That will limit results to just this site.

gvdhoorn gravatar image gvdhoorn  ( 2017-09-05 03:08:55 -0600 )edit

Good call. I updated the query to limit results to this site.

jayess gravatar image jayess  ( 2017-09-05 09:49:14 -0600 )edit

@jayess : I have already done that. My workspace bash file is already sourced. I googled the answer for this error and couldn't get the correct solution. that's why i thought of posting new question since it might be issue in Octomap_maping.

Eyshika gravatar image Eyshika  ( 2017-09-05 10:18:01 -0600 )edit

@Eyshika: Without that information people are going to give to you the most common solution to that problem. Please update your question with what you have tried and what the results were.

jayess gravatar image jayess  ( 2017-09-05 10:40:22 -0600 )edit

@jayess: I have updated my query. please check .

Eyshika gravatar image Eyshika  ( 2017-09-07 11:29:41 -0600 )edit

answered 2019-04-10 12:52:38 -0600

meadows gravatar image

I got the exact problem and here is what I did to resolve it on ros kinetic:

  1. Run (to install ros octomap packages): sudo apt-get install ros-kinetic-octomap ros-kinetic-octomap-mapping ros-kinetic-octomap-msgs ros-kinetic-octomap-ros ros-kinetic-octomap-rviz-plugins ros-kinetic-octomap-server

  2. Rebuild your workspace (i.e catkin_make)

edit flag offensive delete link more


I had same problem and your answer solved that, thank you

askkvn gravatar image askkvn  ( 2020-04-29 10:19:16 -0600 )edit

Question Tools

1 follower


Asked: 2017-09-04 17:10:07 -0600

Seen: 3,354 times

Last updated: Sep 07 '17