Skip to content

service introspection event does not have unique GID during transaction #357

Description

@fujitatomoya

Bug report

Required Info:

  • Operating System:
    • Ubuntu 22.04
  • Installation type:
    • source build
  • Version or commit hash:
  • DDS implementation:
    • rmw_fastrtps, rmw_cyclonedds (but rmw_connextdds)
  • Client library (if applicable):
    • rcl

Steps to reproduce issue

### Terminal-1 start example
root@tomoyafujita:~/ros2_ws/colcon_ws# ros2 launch demo_nodes_cpp introspect_services_launch.py

### Terminal-2 enable service introspection and echo the events
root@tomoyafujita:~/ros2_ws/colcon_ws# ros2 param set /introspection_client client_configure_introspection "contents"
Set parameter successful
root@tomoyafujita:~/ros2_ws/colcon_ws# ros2 param set /introspection_service service_configure_introspection "contents"
Set parameter successful
root@tomoyafujita:~/ros2_ws/colcon_ws# ros2 topic echo /add_two_ints/_service_event --flow-style
...<snip>
---
info:
  event_type: 0
  stamp:
    sec: 1692984132
    nanosec: 971129256
  client_gid: [1, 15, 96, 219, 167, 4, 119, 93, 0, 0, 0, 0, 0, 0, 21, 3]
  sequence_number: 53
request: [{a: 2, b: 3}]
response: []
---
info:
  event_type: 1
  stamp:
    sec: 1692984132
    nanosec: 971575657
  client_gid: [1, 15, 96, 219, 167, 4, 119, 93, 0, 0, 0, 0, 0, 0, 20, 4]
  sequence_number: 53
request: [{a: 2, b: 3}]
response: []
---
info:
  event_type: 2
  stamp:
    sec: 1692984132
    nanosec: 971884575
  client_gid: [1, 15, 96, 219, 167, 4, 119, 93, 0, 0, 0, 0, 0, 0, 20, 4]
  sequence_number: 53
request: []
response: [{sum: 5}]
---
info:
  event_type: 3
  stamp:
    sec: 1692984132
    nanosec: 972157308
  client_gid: [1, 15, 96, 219, 167, 4, 119, 93, 0, 0, 0, 0, 0, 0, 21, 3]
  sequence_number: 53
request: []
response: [{sum: 5}]
---

Expected behavior

service introspection event message requires gid must be unique during transaction.
which uniquely identify a single request-reponse pair.
see more details for https://github.com/ros-infrastructure/rep/pull/360/files#diff-7739b7ffccd3276874ea9014c4cd07872efa4e2d60d7c31896e56929ad424455R144-R149.

Actual behavior

service introspection event message IS NOT unique so it does not identify a single request-reponse pair.

Additional information

Related Issue/PR: ros2/rosbag2#1414 (rosbag2 service record/play feature enhancement.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions