Description
Hi.
I have read and used the commands mentioned in the tutorial of ROS2 Iron for topics and services. The following suggestions came to my mind which make the commands for topics and services more rememberable and consistent.
For topics:
-
It is beneficial to create the command of
ros2 topic find <topic_type>
like what we have for services asros2 service find <setvice_type>
which finds all the services of a specific type. -
The command
ros2 topic info <topic_name>
just shows the number of publishers and subscribers. It is beneficial to mention on the tutorial that by using the option--verbose
, the command lists the names of publisher and subscriber nodes of a topic, as well. Like the commandros2 node info <node_name>
which lists the names of all the topics, services, and actions connected to a node.
For services:
3. It is beneficial to create the command of ros2 service info <service_name>
like what we have for topics as ros2 topic info <topic_name>
which shows the number of publishers and subscribers of a topic. Additionally, it is useful if the proposed command lists the name of service and client nodes connected to the service.
For nodes:
4. It is useful to add an option to the command ros2 node info <node_name>
to show the namespace of the node.
Best wishes,
Peyman