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

Error when Running hector slam from home directory..

asked 2013-03-21 09:10:38 -0500

samarth.rajan gravatar image

updated 2013-03-21 09:11:31 -0500

I have created a launch file that calls hectormapping.launch and the geotiff_mapper.launch, these function correctly when the Hector SLAM stack is installed from repositories into "opt/ros.." directory.

In order to better understand the Hector SLAM stack I copied it in to my personal works space. And now the same launch files produce the error:

[hector_geotiff_node-10] process has died [pid 18407, exit code 127, cmd nice -n 15 /home/samarth/workingspace/hector_slam/hector_geotiff/bin/geotiff_node map:=/dynamic_map __name:=hector_geotiff_node __log:=/home/samarth/.ros/log/dea32fec-7e09-11e2-9de0-90e6ba006a11/hector_geotiff_node-10.log]. 

log file: /home/samarth/.ros/log/dea32fec-7e09-11e2-9de0-90e6ba006a11/hector_geotiff_node-10*.log 

/home/samarth/workingspace/hector_slam/hector_geotiff/bin/geotiff_node: error while loading shared libraries: cannot open shared object file: No such file or directory

when I open the “workingspace/hector_slam/hector_geotiff/lib” folder the is present so Im not sure of what is going wrong.

I tried using rosmake on the packages within the HECTOR SLAM stack but that has not done anything.

Any ideas? cheers!

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2013-03-21 17:46:40 -0500

updated 2013-03-21 17:52:01 -0500

From your question it looks like you've copied the system package directly into your workspace. If this is not the case please ignore the rest of the answer.

To get the code in your local workspace, you should download it from source into your local workspace. On the corresponding wiki page (, the source repository is listed as "svn". So you can use the following command to download it in your workspace:

svn checkout

You'll then need to make to do the following:

  1. Add the package to your ROS_PACKAGE_PATH inside your ~/.bashrc
  2. Get all the dependencies for this package. Since you have the system package installed as well, you can most likely skip this step.
  3. Run "rosmake hector_geotiff"

You should be good to go then!

edit flag offensive delete link more


Thanks Pyush. That seems to have done the trick : )

samarth.rajan gravatar image samarth.rajan  ( 2013-03-22 00:50:32 -0500 )edit

Just wondering, if i were to change the code in the package, would ros make be sufficient to recompile and build all the required files?

samarth.rajan gravatar image samarth.rajan  ( 2013-03-26 12:59:01 -0500 )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


Asked: 2013-03-21 09:10:38 -0500

Seen: 398 times

Last updated: Mar 21 '13