Atlas Robotics
ROS2 ToolsBasic

ros2 node — list and inspect running nodes

Atlasbot · 17/8/2026 · 10 min read

ros2 node — list and inspect running nodes
ros2 node list and ros2 node info

The robot is running, but you do not know whether the motor control node actually started or silently crashed — ros2 node is the first command to enter before diving into topic/service debugging.

Key concepts

ros2 node list

Prints the full names (including namespaces) of all nodes running in the same ROS_DOMAIN_ID. If the node you need is absent, it has not started or has crashed — there is no need to look elsewhere yet.

ros2 node info /motor_node

For a specific node, this command lists all of its:

  • Subscribers — topics the node listens to
  • Publishers — topics the node publishes
  • Service Servers/Clients — services the node provides/calls
  • Action Servers/Clients — the equivalent for actions

In short: ros2 node info is the fastest way to answer "what is this node actually connected to?" without rereading its source code — especially useful when debugging someone else's node or a package you have not touched in a long time.

How it works

$ ros2 node info /motor_node
/motor_node
  Subscribers:
    /cmd_vel: geometry_msgs/msg/Twist
  Publishers:
    /odom: nav_msgs/msg/Odometry
    /rosout: rcl_interfaces/msg/Log
  Service Servers:
    /motor_node/set_parameters: rcl_interfaces/srv/SetParameters
  Service Clients:

  Action Servers:

  Action Clients:

A quick reading: this node receives velocity commands through /cmd_vel and publishes odometry through /odom. If the robot does not move when commands are sent, the next logical step is to check whether any publisher is actually sending data to /cmd_vel — rather than guessing in the code.

Technical details

Parameters

Some useful flags that beginners often overlook when using ros2 node:

FlagEffect
--all (with list)Also shows "hidden" nodes (starting with _, usually created by internal tools)
--spin-time NWaits N seconds before printing results, avoiding missed nodes that have just started and not finished discovery

Protocol

ros2 node list/info do not perform a fresh DDS network scan on every call — they usually query ros2 daemon, a background process that caches the ROS graph (the current node/topic list), allowing CLI commands to respond quickly instead of waiting for discovery from scratch each time. This explains why ros2 node list can lag a few seconds behind reality (for example, a stopped node may still appear) — ros2 daemon stop && ros2 daemon start forces a fresh scan when you suspect stale results.

Practical applications

ros2 node is the first step in systematic troubleshooting, usually in this order: (1) ros2 node list — confirm the required node is running; (2) ros2 node info — confirm it has connected to the expected topics/services; (3) only then move on to ros2 topic echo/ros2 service call (the tools in the following articles) to inspect the actual data flowing through those connections. Following this order saves considerable time compared with jumping straight into code when a system "does not work as expected".

Practical example

$ ros2 node list --all
Output:
/motor_node
/lidar_driver
/_ros2cli_daemon_0_...    ← hidden node created by the CLI tool itself
/transform_listener_impl_... ← hidden node created internally by tf2

This list of "hidden nodes" explains why the actual node count can exceed what you wrote — some libraries (such as tf2_ros) create internal helper nodes. --all reveals the full picture when detailed diagnosis is needed.

Common mistakes

  • A node is missing even though you are sure it started — check that ROS_DOMAIN_ID matches between the terminal running the node and the terminal running ros2 node list — different domains cannot "see" each other (see the DDS article).
  • Stale cached results because the daemon has not updated — as discussed under Protocol, try ros2 daemon stop && ros2 daemon start if the list seems out of date.
  • Running ros2 node info immediately after a node starts — discovery takes a short time; querying too early can give incomplete results (for example, missing subscribers/publishers). Wait a few seconds and try again.
  • Confusing nodes with the same name in different namespaces — /robot1/motor_node and /robot2/motor_node are completely different nodes despite sharing the same base name. Always read the full namespace when multiple robots/instances share a network.

Conclusion

ros2 node starts every ROS2 troubleshooting session by quickly answering "is the node running?" and "what is it connected to?" before you investigate the actual data. The next article covers ros2 topic — the tool for seeing exactly what data flows through the connections listed by ros2 node info.

Get new articles and lessons by email

When a new technical article or course module is published, Atlas Robotics sends you a short email. No spam.

Unsubscribe any time with the link in each email. See our Privacy policy.

ros2 node — list and inspect running nodes — Atlas Robotics