Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Change behavior of killing nodes with same name

Any node which is already running with some name my_node_name will be killed if I run any node with the same name via rosrun and roslaunch.


# First terminal
rosrun rviz rviz __name:=rviz

# Second terminal
rosrun rviz rviz __name:=rviz

# First terminal again
[ WARN] [1529837879.313228883]: Shutdown request received.
[ WARN] [1529837879.313324710]: Reason given for shutdown: [new node registered with same name]

The only exceptions are nodes which are defined in the roscore.xml as explained here. My question is, can I change the behavior of rosrun/launch such that old nodes keep running and new nodes will be killed?