Skip to content

[Bug] ROS2 service query ID translation bug in zenoh-bridge-ros2dds, when zenoh request to ROS2 service #647

Description

@AlexWUrobot

Describe the bug

Image

Send to the ROS2 service of the booster robot.
If directly send
ros2 service call /booster_rpc_service booster_interface/srv/RpcService "{msg: {api_id: 2001, body: '{\"vx\":0.2,\"vy\":0.0,\"vyaw\":0.0}'}}",
The robot can walk and the ros2 service request received.
However, If send zenoh message and transfer it to a ros2 service, it failed.

In a nutshell,
If send zenoh message and transfer to a ros2 topic or an action, it works.
If send zenoh message and transfer it to a ros2 service, it failed.

The zenoh version

$ zenoh-bridge-ros2dds --version
2026-02-18T22:47:47.321737Z  INFO main ThreadId(01) zenoh_bridge_ros2dds: zenoh-bridge-ros2dds v1.7.2
zenoh-bridge-ros2dds v1.7.2

To reproduce

  1. Start a zenoh-bridge-ros2dds with config
  2. Send to the ROS2 service of the booster robot.
    If directly send
    ros2 service call /booster_rpc_service booster_interface/srv/RpcService "{msg: {api_id: 2001, body: '{\"vx\":0.2,\"vy\":0.0,\"vyaw\":0.0}'}}",
    The robot can walk and the ros2 service request received.
    However, If send zenoh message and transfer it to a ros2 service, it failed.

In a nutshell,
If send zenoh message and transfer to a ros2 topic or an action, it works.
If send zenoh message and transfer it to a ros2 service, it failed.

here are the original logs that show the zenoh-bridge query ID mismatch:

2026-02-17T22:27:47.595320Z TRACE                 rx-0 ThreadId(11) zenoh_plugin_ros2dds::route_service_srv: Route Service Server (ROS:/booster_rpc_service <-> Zenoh:booster_rpc_service): routing request (9eae7ea859406fe4,1) from Zenoh to DDS - 68 bytes

2026-02-17T22:27:47.597505Z TRACE ThreadId(13) zenoh_plugin_ros2dds::route_service_srv: Route Service Server (ROS:/booster_rpc_service <-> Zenoh:booster_rpc_service): received response from DDS an unknown query: (9001000000000000,1) - ignore it
Image

System info

  • Platform:
    Description: Ubuntu 22.04.5 LTS
    Release: 22.04
    Codename: jammy
  • ROS2: Humble
  • Zenoh Version: v1.7.2

Activity

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

Metadata

Metadata

Assignees

No one assigned

    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