zenoh-plugin-ros2dds icon indicating copy to clipboard operation
zenoh-plugin-ros2dds copied to clipboard

[Bug] - ros2 topic echo only works on the first call

Open firesurfer opened this issue 6 months ago • 1 comments

Describe the bug

When running ros2 topic echo /joint_states (also happens for other topics) it works fine for the first call. After closing ros2 topic echo with CTRL+C and running it again no topic output is shown. This happens also for other nodes.

Bridge output:

2024-08-14T12:24:17.058238Z  INFO tokio-runtime-worker ThreadId(03) zenoh_plugin_ros2dds::routes_mgr: Route Service Server (ROS:/_ros2cli_2013878/get_type_description <-> Zenoh:_ros2cli_2013878/get_type_description) created
2024-08-14T12:24:17.058955Z  INFO tokio-runtime-worker ThreadId(03) zenoh_plugin_ros2dds: Node /_ros2cli_2013878 declares Publisher /parameter_events: rcl_interfaces/msg/ParameterEvent - Allowed
2024-08-14T12:24:17.058967Z  INFO tokio-runtime-worker ThreadId(03) zenoh_plugin_ros2dds: Node /_ros2cli_2013878 declares Publisher /rosout: rcl_interfaces/msg/Log - Allowed
2024-08-14T12:24:17.665454Z  INFO tokio-runtime-worker ThreadId(03) zenoh_plugin_ros2dds: Node /_ros2cli_2013878 declares Subscriber /joint_states: sensor_msgs/msg/JointState - Allowed

To reproduce

  1. Start the zenoh-bridge-ros2dds on the robot
  2. Connect from another computer via zenoh-bridge-ros2dds -e ...
  3. run ros2 topic echo <topic>
  4. Close it with CTRL+C
  5. run it again

System info

-Ubuntu 22.04 -ROS2 iron -zenoh-bridge-ros2dds v1.0.0-alpha.6

firesurfer avatar Aug 14 '24 12:08 firesurfer