"WARNING: Be aware that there are nodes in the graph that share an exact name" in ROS 2: what breaks and how to rename, measured
$ ros2 node list
/dup_node
/dup_node
WARNING: Be aware that there are nodes in the graph that share an exact name, which can have unintended side effects.
The warning goes to stderr and ros2 node list still exits with code 0. ros2 node info prints a different message for the same situation: There are 2 nodes in the graph with the exact name "/dup_node". You are seeing information about only one of them., also with exit code 0.
Short answer: two running nodes have the same fully qualified name (namespace plus name). ROS 2 doesn't stop you from doing that. It only warns in the CLI. Topics keep working, but anything addressed to the node name stops being predictable. ros2 param get answered from either node at random, ros2 param set changed both, and lifecycle transitions and action goals reached both. The fix is to give every node its own name or namespace. On the command line:
ros2 run my_pkg my_node --ros-args -r __node:=my_node_b
# or
ros2 run my_pkg my_node --ros-args -r __ns:=/robot1
In a launch file, set a different name= or namespace= on each Node, or wrap each copy in GroupAction([PushRosNamespace('robot1'), Node(...)]). With each of these the warning was gone and every ros2 param get call reached the node I asked for (10 of 10 per name for the command-line fixes, 5 of 5 for the launch fixes), on Humble, Jazzy and Lyrical.

Find your message
Several tools print their own message for duplicate names. All of these came out of the runs below:
| Where you see it | Exact text |
|---|---|
ros2 node list (stderr, exit 0) |
WARNING: Be aware that there are nodes in the graph that share an exact name, which can have unintended side effects. |
ros2 node info /name (stderr, exit 0) |
There are 2 nodes in the graph with the exact name "/dup_node". You are seeing information about only one of them. |
| Node output, when one process creates a second node with a name it already has (Humble) | [rcl.logging_rosout]: Publisher already registered for provided node name. If this is due to multiple nodes with the same name then all logs for that logger name will go out over the existing publisher. ... |
| Same case on Jazzy and Lyrical | [rcl.logging_rosout]: Publisher already registered for node name: 'dup_comp'. If this is due to multiple nodes with the same name then all logs for the logger named 'dup_comp' will go out over the existing publisher. ... |
ros2 launch output, two composable nodes with the same name in one container |
[WARNING] [/dup_container]: there are now at least 2 nodes with the name /dup_comp created within this launch context |
None of the other commands I ran printed any warning, even though they were talking to a duplicated name. That covers ros2 param get, set, list and dump, ros2 service call, ros2 topic list, ros2 service list, ros2 lifecycle, ros2 action info and ros2 component list. I checked the warning count on stderr for every repeated param get call, and it was 0 each time. So if you only use ros2 param, you won't see the warning at all. Run ros2 node list to find out.
What I ran
On 2026-10-31 I used the official ros:humble-ros-base, ros:jazzy-ros-base and ros:lyrical-ros-base Docker images, one distro after another, all with the default RMW (rmw_fastrtps_cpp). One package held:
- an rclpy node named
dup_node. It declares atagparameter, publishes its tag on/chattertwice a second, subscribes to/chatter, and prints a line from its parameter callback whenever a parameter is set, - an rclcpp component
dupn::Talker(default namecpp_talker) that does the same, plus an executable that creates it twice in one process, - an rclcpp lifecycle node
dup_lcthat prints a line inon_configure, - an rclpy node
dup_actwith an action server on/lookup(tf2_msgs/action/LookupTransform, which ships in the base image) that prints its tag for each goal and returns the tag in the result, - launch files for the causes and fixes below.
For each case I started the nodes, waited for discovery, and called the CLI 10 or 20 times in a row. The tag in each answer shows which node replied. The script and full output are linked at the end.
What breaks when two nodes share a name
I started the rclpy node twice with ros2 run, once with -p tag:=A and once with -p tag:=B. Both came up as /dup_node.
| Call | Humble | Jazzy | Lyrical |
|---|---|---|---|
ros2 param get /dup_node tag, 20 calls |
A 9, B 11 | A 5, B 15 | A 9, B 11 |
ros2 service call /dup_node/get_parameters, 20 calls |
A 10, B 10 | A 13, B 7 | A 7, B 13 |
ros2 param set /dup_node note vN, 10 calls: callbacks that ran in A / B |
10 / 10 | 8 / 10 | 10 / 10 |
ros2 topic echo /chatter for 5 s |
8 from A, 8 from B | 8, 8 | 9, 9 |
Parameter reads are a coin flip. Every param get exited with 0 and printed a clean String value is: ..., but the value came from either node. Calling the get_parameters service by hand behaved the same way, so this isn't a CLI quirk. Both nodes offer a service named /dup_node/get_parameters, and the client takes whichever reply comes first. ros2 param dump has the same problem. On Humble, one param get returned A, and the param dump right after it returned tag: B.
Parameter writes go to both. All 10 param set calls printed Set parameter successful. The callback logs show the request reached both nodes in most calls. On Jazzy, node A's callback ran for 8 of the 10. So a set call can change two nodes, or only one, and the CLI looks the same in both cases.
Listings merge or hide. On Humble, ros2 param list /dup_node printed one parameter list. On Jazzy and Lyrical it printed the list twice, one after the other, and ros2 param list with no argument showed a /dup_node: header twice. ros2 node info shows one node and tells you so. ros2 lifecycle nodes listed /dup_lc only once, with no warning.
Topics are fine. ros2 topic info /chatter showed Publisher count: 2 and Subscription count: 2, the echo got messages from both nodes in equal numbers, and each node's subscription received messages from both. Topics are matched by topic name, not node name, so a duplicate node name doesn't affect them.
Lifecycle nodes
Two copies of the rclcpp lifecycle node /dup_lc both started unconfigured. I sent ros2 lifecycle set /dup_lc configure once, read the state 10 times, then sent configure twice more.
- Humble and Lyrical: the first
configureprintedTransitioning successful, and both nodes loggedCONFIGURED. All 10 reads showedinactive [2]. The nextconfigurefailed withUnknown transition requested, available ones are: ...and exit code 1. - Jazzy: the first
configurealso printedTransitioning successful, but only one node changed. The 10 reads showedinactive [2]7 times andunconfigured [1]3 times. The secondconfigureprintedTransitioning failedwith exit code 0. The already configured node logged[rcl_lifecycle]: No transition matching configure found for current state inactive. The other node loggedCONFIGURED, and every read after that showedinactive [2]. Only the third call failed withUnknown transition requested.
So a lifecycle manager that drives nodes by name can get a success reply while a node stays behind, or a failure reply while the node did transition.
Action servers
Two /dup_act nodes each served /lookup. ros2 action info /lookup listed Action servers: 2, with /dup_act twice. I sent 10 goals with ros2 action send_goal. Every goal was accepted and finished with SUCCEEDED, but both servers ran most of them:
| Humble | Jazzy | Lyrical | |
|---|---|---|---|
| Goals executed by server A / B (out of 10) | 10 / 8 | 9 / 10 | 10 / 10 |
| Result the client got came from A / B | 8 / 2 | 1 / 9 | 4 / 6 |
Strictly, this is a duplicate action name, not a duplicate node name. Two nodes with different names serving the same action name would probably behave the same, but I didn't test that. In practice the two come together, because a node started twice serves the same action twice. If the action moves a robot, that means two executions of every goal.
Causes I reproduced
Every case below printed the ros2 node list warning on all three distros.
| Cause | What it printed when it started |
|---|---|
ros2 run of the same executable twice |
nothing |
The same launch file started twice with ros2 launch |
nothing |
One launch file with two Node(..., name='dup_node') |
nothing |
Launch renames the C++ node with name='dup_node', and another executable already uses dup_node as its default name |
nothing |
Two ComposableNode(name='dup_comp') in one ComposableNodeContainer |
the Publisher already registered warning from the container and there are now at least 2 nodes with the name /dup_comp created within this launch context from launch |
A third dup_comp loaded with ros2 component load ... -n dup_comp |
Loaded component 3 into '/dup_container' container node as '/dup_comp', exit 0, and the Publisher already registered warning in the container |
| One rclcpp process creating the same node class twice | Publisher already registered |
One rclpy process calling Node('dup_node') twice |
Publisher already registered |
-r __node:=renamed on a process that holds two nodes with different names (n_one, n_two) |
Publisher already registered, and both nodes reported /renamed |
The first four cases are separate processes, and nothing warns when they start. You only find out from ros2 node list, or when parameters start acting up. Launch's own duplicate check only fired for composable nodes. The one-file case with two Node(name='dup_node') started without that warning on all three distros.
The launch override case is easy to miss. The C++ executable's default name was cpp_talker, and name='dup_node' in the launch file renamed it onto the Python node's default name. ros2 param get /dup_node tag then returned the C++ node's tag 8, 7 and 5 times out of 10 (Humble, Jazzy, Lyrical), and the Python node's tag the rest of the time.
Within one process the answer was stable but still wrong for one of the nodes. With two dup_comp components in the same container, 10 out of 10 param get calls returned the first component's tag on Humble and Lyrical, and 9 out of 10 on Jazzy. With two cpp_talker nodes in one rclcpp process, all 10 calls on every distro returned the first one. The second node's parameters couldn't be reached by name.
The last row matters when you apply the fix. __node:= without a node prefix renames every node in the process, so a process that holds several nodes gets duplicates from it. The issue ros2/rclcpp#843 describes this for the extra nodes that libraries create inside a process. If the process has more than one node, rename it with a namespace instead, or use a remap rule with a node-name prefix. I didn't test the prefix form.
All of my copies ran on one machine. A node on another machine in the same ROS domain joins the same graph, so its name can collide too. How far discovery reaches by default is measured in ROS 2 nodes can't see each other? ROS_AUTOMATIC_DISCOVERY_RANGE and ROS_LOCALHOST_ONLY vs ROS_AUTOMATIC_DISCOVERY_RANGE, measured on eth0.
Fix options compared
| Fix | Resulting names | Warning | param get, each name |
|---|---|---|---|
--ros-args -r __node:=dup_node_b on the second copy |
/dup_node, /dup_node_b |
gone | A 10/10, B 10/10 |
--ros-args -r __ns:=/robot1 on the second copy |
/dup_node, /robot1/dup_node |
gone | A 10/10, B 10/10 |
Launch: Node(name='dup_node', namespace='robot1') and namespace='robot2' |
/robot1/dup_node, /robot2/dup_node |
gone | 5/5 each |
Launch: GroupAction([PushRosNamespace('robot1'), Node(...)]), same for robot2 |
/robot1/dup_node, /robot2/dup_node |
gone | 5/5 each |
The results were the same on all three distros. There's one difference between the two command-line fixes. __ns also moves relative topics: ros2 topic list showed /robot1/chatter next to /chatter, so the second node no longer publishes where the first one listens. That's what you want for two robots. It's not what you want if you only meant to rename a node. __node changes the name only, so topics stay where they are. For composable nodes, give each ComposableNode its own name=. The renaming fixes above apply there too, but I only measured them on standalone nodes.
Can ROS 2 refuse a duplicate name?
Not found. I listed every setter in rclcpp's NodeOptions and every argument of rclpy's Node.__init__ on all three distros. None of them is about name uniqueness. The extras on newer distros were enable_logger_service, clock_type, log_level and rosout_qos_profile. The rcl header says it plainly. rcl/node.h contains \todo TODO(wjwwood): node name uniqueness is not yet enforced on Humble, Jazzy and Lyrical. Creating a second node with a name already in use never threw in my runs, in C++ or in Python, in the same process or in another one. If you need a guard, you have to write it yourself. One way is to check the graph for your own name at startup, as in the Duplicate node names question. I didn't measure a check like that.
Version notes
The ros2 node list and ros2 node info texts were identical on Humble, Jazzy and Lyrical. Three things differed:
ros2 param list /dup_nodeprinted one list on Humble and both lists on Jazzy and Lyrical. Newer distros also add astart_type_description_serviceparameter and aget_type_descriptionservice to every node.- The
Publisher already registeredtext names the node on Jazzy and Lyrical (for node name: 'dup_node') and doesn't on Humble (for provided node name). Search for the part before that. - Lifecycle: one
configurereached both nodes on Humble and Lyrical, and only one on Jazzy. That's one run per distro. I wouldn't read it as a fixed version difference, since the parameter calls show the same kind of randomness everywhere.
Which node answered changed from run to run on every distro. Treat the counts as "both, unpredictably", not as a ratio.
Not tested
Other RMWs (Cyclone DDS, Zenoh), nodes on different hosts or containers, ROS 2 domain bridges, remap rules with a node prefix (-r my_node:__node:=x), duplicate names under use_sim_time or with services other than the parameter and lifecycle ones, two nodes with different names serving one action, ros2 doctor, nav2's lifecycle manager, ros2_control, Foxy, Iron and Rolling.
More ROS 2 measurements are on the huntlab English index.
FAQ
What does "nodes in the graph that share an exact name" mean?
At least two running nodes have the same namespace and name. ros2 node list prints the warning on stderr and still exits with 0. ROS 2 lets both nodes run. Topics work, but parameter calls, lifecycle transitions and action goals sent to that name reach either node or both.
Is the warning harmless if my topics still work?
No. In my runs 20 ros2 param get calls split between the two nodes, anywhere from 5/15 to 10/10, param set changed both nodes, and both action servers ran most goals. The CLI reported success every time.
How do I fix duplicate node names in a launch file?
Give each Node a unique name=, or a different namespace=, or wrap each copy in GroupAction with PushRosNamespace. Both namespace methods removed the warning, and every param get went to the right node.
Why do I get "Publisher already registered for provided node name"?
One process created a second node with a name it already had. That happened with two composable nodes with the same name in one container, with a class created twice, and with __node:= applied to a process that holds two nodes. Rename the extra node. Use a namespace if a global __node remap caused it.
Can rclcpp or rclpy refuse to start a node whose name is taken?
Not found. No NodeOptions setter or rclpy Node argument does that on Humble, Jazzy or Lyrical, and rcl/node.h says "node name uniqueness is not yet enforced".
Measured on 2026-10-31 with ros:humble-ros-base (sha256:d9bcf2e6f72d..., rcl 5.3.13, rclpy 3.3.22, rclcpp 16.0.21, ros2cli 0.18.20, rmw 6.1.4, rmw_fastrtps_cpp 6.2.10, launch_ros 0.19.14), ros:jazzy-ros-base (sha256:8eed0a4669bb..., rcl 9.2.11, rclpy 7.1.12, rclcpp 28.1.22, ros2cli 0.32.13, rmw 7.3.4, rmw_fastrtps_cpp 8.4.4, launch_ros 0.26.13) and ros:lyrical-ros-base (sha256:3224ee150cb0..., rcl 10.4.5, rclpy 10.0.11, rclcpp 32.0.3, ros2cli 0.40.9, rmw 7.10.2, rmw_fastrtps_cpp 9.4.10, launch_ros 0.29.9), default RMW rmw_fastrtps_cpp. Full digests are in digests.txt.
Script and raw output: evidence folder. Questions this answers: Duplicate node names, Duplicate optical_frame_publisher node names cause "nodes share an exact name" warning, ros2 node info does not show info for nodes of the same name, Add identifying information to the log message when duplicate nodes are created, Global __node argument causes node name collisions, Logger node gets duplicate name when setting node name in launch file.