ros2/rmw_cyclonedds

rmw_get_gid_for_publisher reports wrong GID

noelex opened this issue · 1 comments

Bug report

  • Operating System:
    • Ubuntu 22.04
  • Installation type:
    • binaries
  • Version or commit hash:
    • humble
    • rolling
  • DDS implementation:
    • CycloneDDS
  • Client library (if applicable):
    • rcl

Steps to reproduce issue

  • Create a pulisher and get its GID by calling rmw_get_gid_for_publisher.
  • Also get GID of the same publisher by using rcl_get_publishers_info_by_topic.

Expected behavior

The GID of the publisher retrieved using either rmw_get_gid_for_publisher or rcl_get_publishers_info_by_topic should be identical.

Actual behavior

rmw_get_gid_for_publisher reports a wrong GID.

Additional information

rmw_get_gid_for_client works as expected. Also no issue with FastRTPS.

Looks like rmw_get_gid_for_publisher is returning pubiid instead of gid, is this expected?

This might be related to #377