"rostopic" command for ROS2?

Dear developers and users of ROS2,

here is another “naive” question from me:

Is there already some tools or APIs that can help me see the currently active Topics in an existing ROS2 network? Something like the rostopic command in ROS1?

thanks for any answer!

Yes, ros2 topic. All command line tools are provided through ros2 ....

1 Like

There is also a sample in the wiki about ros2 command line tools. Maybe you will find this useful:

Introspection with command line tools

ros2 topic supported commands with echo/info/list/pub, while compare with rostopic, there is no bw/delay/hz/type supported by ros2 topic, is there any plan to enable those enhance commands?

Afaik currently nobody works on these. We often implement verb on demand. Please consider contributing them through a pull request if they are of immediate use to you. The ROS 1 code is usually a good starting point in terms of command line options and overall structure / functionality.

Afaik currently nobody works on these. We often implement verb on demand.

Is there a big table somewhere of feature support between ROS and ROS2 tooling?

Not that I know of. Since the available features will also change quickly over time it would be quite some effort to keep this page up-to-date.

I am going to port “hz/delay/bw” from ROS topic to ROS2. Issue reported here.