DEV Community

TildAlice
TildAlice

Posted on • Originally published at tildalice.io

ROS2 Topic & Service Commands: 15 CLI Tools Tested

The First Thing You Need After ros2 run

You just launched your first ROS2 node. It's running. Great. Now what?

Most tutorials stop here, leaving you staring at a terminal with no idea what your node is actually doing. Is it publishing? At what rate? What's the message structure? This is where the ROS2 command-line tools become essential — not just for debugging, but for understanding what's happening in your system at all.

I'm going to show you 15 commands that turn ROS2 from a black box into something you can actually inspect and control. These aren't just reference material — they're the tools I reach for every single time something doesn't work the way I expect.

A futuristic robot in a studio setting, striking a powerful pose with raised arms.

Photo by Pavel Danilyuk on Pexels

ros2 topic list: See Every Active Topic

Start here:

ros2 topic list
Enter fullscreen mode Exit fullscreen mode

This dumps every active topic in your ROS2 network. On a fresh turtlesim node (install with sudo apt install ros-humble-turtlesim if you're following along), you'll see:

/parameter_events
/rosout
/turtle1/cmd_vel
/turtle1/color_sensor
/turtle1/pose
Enter fullscreen mode Exit fullscreen mode

Continue reading the full article on TildAlice

Top comments (0)