Robotics StackExchange | Archived questions

i can't launch karto_slam on ros indigo

Hello all,

I installed karto_slam by sudo apt-get install ros-indigo-slam-karto but i could not launch it! My launch file is

  <node pkg="slam_karto" type="slam_karto" name="slam_karto" >
<!--remap from="scan" to="base_scan"/>
<param name="odom_frame" value="odom_combined"/>
<param name="map_update_interval" value="25"/>
<param name="resolution" value="0.025"/-->

the out put on the screen is:

terminate called after throwing an instance of 'boost::exceptiondetail::cloneimplboost::exception_detail::error_info_injector<boost::lock_error >' what(): boost: mutex lock failed in pthreadmutexlock: Invalid argument process[rviz-3]: started with pid [3776] [slamkarto-2] process has died [pid 3732, exit code -6, cmd /opt/ros/indigo/lib/slamkarto/slamkarto scan:=basescan _name:=slamkarto _log:=/home/z/.ros/log/5d21dfba-15ae-11e5-ada1-b8ee65bb0a99/slamkarto-2.log]. log file: /home/z/.ros/log/5d21dfba-15ae-11e5-ada1-b8ee65bb0a99/slam_karto-2*.log

However the log file is empty! any one face the same problem? It seems somethings with boost version! if yes so how i can resolve it? Than you in advance

Asked by jacobsolid on 2015-06-18 06:57:09 UTC

Comments

Answers

You might be missing a /> at the end of your node tag.

Asked by luc on 2015-06-29 20:00:42 UTC

Comments

@jacobsolid did this help?

Asked by luc on 2015-07-08 12:55:56 UTC

Thank you very much for help, I install it from source and now it is working well, cheers,

Asked by jacobsolid on 2015-09-25 05:08:20 UTC

Comments

But how to install it from source? I download the slam_karto package in the catkin_ws/src, but failed to catkin_make this package.

Asked by 张京林 on 2015-12-16 02:12:44 UTC

@张京林 sudo apt-get install ros-indigo-slam-karto you can install it this way, but please let me know if it runs without a problem for you. i get a memory corruption error.

Asked by stevej_80 on 2016-03-06 04:30:12 UTC

I install it from source too, but did you get the /map topic? I have published the /scan and /tf topic but the /map topic is blank.

Asked by 张京林 on 2015-12-23 03:43:33 UTC

Comments