Skip to content

ros2 action info output is not consistent with ros2 topic/service info #1210

@fujitatomoya

Description

@fujitatomoya
  • ros2 topic info
root@tomoyafujita-B760M-Pro-RS-D4:~/ros2_ws/colcon_ws# ros2 topic info /parameter_events
Type: rcl_interfaces/msg/ParameterEvent
Publisher count: 1
Subscription count: 0

root@tomoyafujita-B760M-Pro-RS-D4:~/ros2_ws/colcon_ws# ros2 topic info /parameter_events -v
Type: rcl_interfaces/msg/ParameterEvent

Publisher count: 1

Node name: _ros2cli_daemon_0_745ef2761fee4e5eadb327ec21e771c7
Node namespace: /
Topic type: rcl_interfaces/msg/ParameterEvent
Topic type hash: RIHS01_043e627780fcad87a22d225bc2a037361dba713fca6a6b9f4b869a5aa0393204
Endpoint type: PUBLISHER
GID: 01.0f.ac.7e.39.26.2e.73.00.00.00.00.00.00.04.03
QoS profile:
  Reliability: RELIABLE
  History (Depth): KEEP_LAST (1000)
  Durability: VOLATILE
  Lifespan: Infinite
  Deadline: Infinite
  Liveliness: AUTOMATIC
  Liveliness lease duration: Infinite

Subscription count: 0
  • ros2 service info
root@tomoyafujita-B760M-Pro-RS-D4:~/ros2_ws/colcon_ws# ros2 service info /fibonacci_action_server/get_type_description
Type: type_description_interfaces/srv/GetTypeDescription
Clients count: 0
Services count: 1

root@tomoyafujita-B760M-Pro-RS-D4:~/ros2_ws/colcon_ws# ros2 service info /fibonacci_action_server/get_type_description -v
Type: type_description_interfaces/srv/GetTypeDescription
Clients count: 0
Services count: 1
Node name: fibonacci_action_server
Node namespace: /
Service type: type_description_interfaces/srv/GetTypeDescription
Service type hash: RIHS01_69b9c19c1021405984cc60dbbb1edceb147a6538b411d812ba6afabeed962cd5
Endpoint type: SERVER
Endpoint count: 2
GIDs:
 - Request Reader : 01.0f.ac.7e.af.25.d7.58.00.00.00.00.00.00.11.04
 - Response Writer : 01.0f.ac.7e.af.25.d7.58.00.00.00.00.00.00.12.03
QoS profiles:
 - Request Reader :
      Reliability: RELIABLE
      History (Depth): KEEP_LAST (10)
      Durability: VOLATILE
      Lifespan: Infinite
      Deadline: Infinite
      Liveliness: AUTOMATIC
      Liveliness lease duration: Infinite
 - Response Writer :
      Reliability: RELIABLE
      History (Depth): KEEP_LAST (10)
      Durability: VOLATILE
      Lifespan: Infinite
      Deadline: Infinite
      Liveliness: AUTOMATIC
      Liveliness lease duration: Infinite
  • ros2 action info
root@tomoyafujita-B760M-Pro-RS-D4:~/ros2_ws/colcon_ws# ros2 action info /fibonacci
Action: /fibonacci
Action clients: 0
Action servers: 1
    /fibonacci_action_server

TODO

  • provide consistent format without --verbose option to print the action type instead.
  • add --verbose option to print the node name, namespace, and endpoint type. (we do not have QoS for action endpoint or type hash)
  • rcl_action_count_clients / rcl_action_count_servers should be introduced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions