Ask Your Question

Revision history [back]

Is there a way to avoid overwriting node name when launching a node?

If I understand correctly, to run a node, you have to use a launch file, and each launch file includes something of the kind

  <node pkg="pkgname" type="" name="nodename" output="screen">

where nodename will overwrite the node name specified in rospy.init_node("...") of

Then, why does it make sense to name a node with rospy.init_node("..."), provided that that name will be overwritten anyway?