zenoh-plugin-ros2dds
zenoh-plugin-ros2dds copied to clipboard
[Bug] - ros2 topic echo only works on the first call
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
- Start the zenoh-bridge-ros2dds on the robot
- Connect from another computer via
zenoh-bridge-ros2dds -e ...
- run
ros2 topic echo <topic>
- Close it with CTRL+C
- run it again
System info
-Ubuntu 22.04 -ROS2 iron -zenoh-bridge-ros2dds v1.0.0-alpha.6