Robotics StackExchange | Archived questions

Restarting a node after segfault / hector slam

I use a hector slam node with my robot and my framework works well. I configured tf properly and can visualize the map in rviz. I also reset the map once every few minutes because of my application and this doesn't seem to have any ill effects.

However, hector slam often segfaults with the message:

[hector_mapping-1] process has died [pid 9493, exit code -11, cmd /opt/ros/kinetic/lib/hector_mapping/hector_mapping __name:=hector_mapping __log:=/home/12345/.ros/log/df3ebdde-660a-11e7-b4fd-3c4a92d5191e/hector_mapping-1.log].
log file: /home/12345/.ros/log/df3ebdde-660a-11e7-b4fd-3c4a92d5191e/hector_mapping-1*.log

When I go to look for the log file, it isn't there and I am sad.

As I have other nodes running which rely on hectorslam, is there a way to restart it once it segfaults or in general restart a node? Has anyone else had this issue with hector slam?

Thanks

Asked by JadenTravnik on 2017-07-11 04:11:08 UTC

Comments

Answers

Not sure why hector slam is failing but there is a restart attribute in a node. http://wiki.ros.org/roslaunch/XML/node

Asked by JadenTravnik on 2017-07-11 21:43:56 UTC

Comments

Thanks, and yeah, there is a restart property in roslaunch. lol

Asked by l_a_den on 2017-07-26 01:31:32 UTC