Ask Your Question
0

Node stops working

asked 2017-02-03 08:15:10 -0500

Younès gravatar image

updated 2017-02-03 09:10:46 -0500

gvdhoorn gravatar image

Hello,

I want to run a node of ROS. When I tape the commande :

rosrun  ratslam_ros ratslam_Youness src/ratslam_ros/config/config_irataus.txt.in

The node stops working. And in the log file I get the error :

[ WARN] [1486130761.721137111]: Reason given for shutdown: [new node registered with same name]

But the program still working What should I do?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
2

answered 2017-09-14 19:01:58 -0500

jayess gravatar image

The error tells you exactly what the problem is

new node registered with same name

This means that you already have another instance of that same node running. When you start another instance the names collide and ROS Master kills the node you're trying to run. If you want to use this node twice, consider using a launch file and giving each instance a unique name.

edit flag offensive delete link more
0

answered 2017-09-15 07:11:55 -0500

Airuno2L gravatar image

To add to what jayess said, if you don't think another instance of that node should be running make sure you shut it down somehow (either closing your terminal windows and opening a new one, or use the task manager).

If for some reason you purposely want two versions of the same node running, you can start the second one with a unique name from the command line like this:

rosrun  ratslam_ros ratslam_Youness src/ratslam_ros/config/config_irataus.txt.in __name:=my_unique_name
edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

2 followers

Stats

Asked: 2017-02-03 08:15:10 -0500

Seen: 252 times

Last updated: Sep 15 '17