service introspection event does not have unique GID during transaction

Open
#357 10 comments 0 reactions 1 assignee View on GitHub

@fujitatomoya is already working on this.

Since Mar 1, 2024.

Assessment

This issue has not been assessed yet.

Description

bug

Bug report

Required Info:

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: https://github.com/ros2/rosbag2/pull/1414 (rosbag2 service record/play feature enhancement.)

Dominant language
C
Stars
121
Forks
89
Avg merge
17h 40m
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ros2/rmw

All issues in ros2/rmw

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.