|
rmw_unix_socket_cpp package from rmw_unix_socket_cpp repormw_unix_socket_cpp |
ROS Distro
|
Package Summary
| Version | 0.6.0 |
| License | Apache-2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/benaliabderrahmane/rmw_unix_socket_cpp.git |
| VCS Type | git |
| VCS Version | main |
| Last Updated | 2026-11-18 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Abderahmane BENALI
Authors
Changelog for package rmw_unix_socket_cpp
0.6.0 (2026-11-18)
The EventsExecutor release, with the message_lost and matched QoS
events, ros2_tracing tracepoints, aarch64 support and a faster receive
path. rclcpp's EventsExecutor — the default in performance_test
and ros2-benchmark-container — crashed on every pub/sub topology,
and fixing the crash only turned it into a silent hang: that executor
never calls rmw_wait, and delivery happened exclusively inside
rmw_wait, so nothing ever drained its sockets. Callback-driven
delivery now works, and the four copies of the receive loop that hid the
gap are one.
Added
-
QoS status events: message_lost and both matched events (#21).
message_lostcounts gaps in each publisher's sequence numbers, which every datagram already carries: datagrams the kernel or the sender dropped, plus large-payload descriptors whose payload was gone.matchedreports the endpoints of the other kind on the topic, recomputed from the registry when its generation moves, and an endpoint created into existing matches reports them, as DDS does. Both work for a waiting executor and through event callbacks; the listener watches the doorbell while a matched callback exists. This fixesros2 bag recordon jazzy, which exited at startup because rosbag2 always asks formessage_lost, and image_pipeline's lazy nodes and Nav2's costmap republish, which key offmatched. Deadline and liveliness (#24, #25), incompatible QoS and incompatible type (#92) stay refused. -
Listener thread for callback-driven delivery. An endpoint that
registers a listener callback is watched by one per-context thread
that drains its socket and fires the callback with no application
thread involved. It is started lazily, by the first callback
registration in the context, so an executor that waits registers
nothing and the process still starts no background thread:
SingleThreadedExecutorandMultiThreadedExecutorstill start none. Joined inrmw_shutdown. -
delivery_fd, so a watched endpoint can still sit in a wait set.
The listener signals this eventfd strictly after enqueueing and
rmw_waitdrains it strictly before scanning its queues, which is what stops a wait from sleeping on a socket the listener already emptied. Same ordering pair as the registry doorbell. One per wait set, created inrmw_create_wait_set: reading an eventfd drains its whole counter, so a single shared fd is a single credit that whichever wait set wakes first consumes — including one that gained no work and discards it. Creating it with the wait set also means a callback registered while a wait is already blocked still has an armed fd to signal. Its cost when no callback is ever registered: one eventfd per wait set, read once perrmw_wait. -
The listener holds up against the calls that race it. A
registration that lands while
rmw_shutdownruns cannot restart the thread (alistener_stoppingflag checked underlistener_mutex); a failed watch leaves no callback installed; thread exhaustion at start is returned as an error instead of thrown through the C API; a per-endpointdrain_mutex, held for the receive loop, keeps a publisher's messages in order when the listener and anrmw_wait/rmw_takedrain the same socket; andlistener_registration_mutexserialises concurrent set and clear calls on one endpoint so its callback and its socket watch always agree. -
ros2_tracing tracepoints (#74).
rmw_publisher_init,rmw_subscription_init,rmw_publishandrmw_takeare emitted as inrmw_cycloneddsandrmw_fastrtps, soros2 trace,tracetools_analysisand CARET follow a message across processes on this RMW. Both sides pass the timestamp already on the wire, so the wire format is unchanged; with no tracing session, each call site costs one branch. - aarch64 (arm64) support. CI builds and tests every distro on GitHub's arm64 runners as well as x86_64. No source change was needed: there is no arch-specific code, and the shared-memory atomics are asserted lock-free on both.
Changed
-
One socket drain instead of four.
drain_endpointreplacesdrain_subscription,drain_socket, and the inline copies inrmw_take_requestandrmw_take_response. Each copy had been deciding its own policy, which is where the delivery gaps lived.DrainTargetnow carries that policy per endpoint. -
Listener callbacks report a batch count. One notification per
drain carrying the number of entries the queue gained, rather than
one call of
1per datagram.rmw/event_callback_type.hdefinesnumber_of_eventsas the count since the callback was last called and allows> 1. The count is growth rather than datagrams read, because it is a take credit: an overflow that pushes 100 and pops 90 reports 10, not 100. - Request and response queues are capped at
SERVICE_QUEUE_DEPTH(100) wherever they are filled.rmw_waitalways applied that bound; the take-path drains had none. -
DESIGN.mddocuments the listener thread and thedelivery_fdordering, and narrows the no-background-threads claim to what it now guarantees. - CI and the release workflow no longer build Kilted, and it gets no bloom track: it reaches end of life around the end of 2026. Jazzy, Rolling and Lyrical remain.
Performance
- rmw_wait no longer reads every guard-condition eventfd (#85). It
File truncated at 100 lines see the full file
Package Dependencies
| Deps | Name |
|---|---|
| ament_cmake | |
| ament_cmake_gtest | |
| test_msgs | |
| rosidl_typesupport_cpp | |
| rcutils | |
| rcpputils | |
| rmw | |
| tracetools | |
| rosidl_runtime_c | |
| fastcdr | |
| rosidl_typesupport_fastrtps_c | |
| rosidl_typesupport_fastrtps_cpp |
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged rmw_unix_socket_cpp at Robotics Stack Exchange
|
rmw_unix_socket_cpp package from rmw_unix_socket_cpp repormw_unix_socket_cpp |
ROS Distro
|
Package Summary
| Version | 0.6.0 |
| License | Apache-2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/benaliabderrahmane/rmw_unix_socket_cpp.git |
| VCS Type | git |
| VCS Version | main |
| Last Updated | 2026-11-18 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Abderahmane BENALI
Authors
Changelog for package rmw_unix_socket_cpp
0.6.0 (2026-11-18)
The EventsExecutor release, with the message_lost and matched QoS
events, ros2_tracing tracepoints, aarch64 support and a faster receive
path. rclcpp's EventsExecutor — the default in performance_test
and ros2-benchmark-container — crashed on every pub/sub topology,
and fixing the crash only turned it into a silent hang: that executor
never calls rmw_wait, and delivery happened exclusively inside
rmw_wait, so nothing ever drained its sockets. Callback-driven
delivery now works, and the four copies of the receive loop that hid the
gap are one.
Added
-
QoS status events: message_lost and both matched events (#21).
message_lostcounts gaps in each publisher's sequence numbers, which every datagram already carries: datagrams the kernel or the sender dropped, plus large-payload descriptors whose payload was gone.matchedreports the endpoints of the other kind on the topic, recomputed from the registry when its generation moves, and an endpoint created into existing matches reports them, as DDS does. Both work for a waiting executor and through event callbacks; the listener watches the doorbell while a matched callback exists. This fixesros2 bag recordon jazzy, which exited at startup because rosbag2 always asks formessage_lost, and image_pipeline's lazy nodes and Nav2's costmap republish, which key offmatched. Deadline and liveliness (#24, #25), incompatible QoS and incompatible type (#92) stay refused. -
Listener thread for callback-driven delivery. An endpoint that
registers a listener callback is watched by one per-context thread
that drains its socket and fires the callback with no application
thread involved. It is started lazily, by the first callback
registration in the context, so an executor that waits registers
nothing and the process still starts no background thread:
SingleThreadedExecutorandMultiThreadedExecutorstill start none. Joined inrmw_shutdown. -
delivery_fd, so a watched endpoint can still sit in a wait set.
The listener signals this eventfd strictly after enqueueing and
rmw_waitdrains it strictly before scanning its queues, which is what stops a wait from sleeping on a socket the listener already emptied. Same ordering pair as the registry doorbell. One per wait set, created inrmw_create_wait_set: reading an eventfd drains its whole counter, so a single shared fd is a single credit that whichever wait set wakes first consumes — including one that gained no work and discards it. Creating it with the wait set also means a callback registered while a wait is already blocked still has an armed fd to signal. Its cost when no callback is ever registered: one eventfd per wait set, read once perrmw_wait. -
The listener holds up against the calls that race it. A
registration that lands while
rmw_shutdownruns cannot restart the thread (alistener_stoppingflag checked underlistener_mutex); a failed watch leaves no callback installed; thread exhaustion at start is returned as an error instead of thrown through the C API; a per-endpointdrain_mutex, held for the receive loop, keeps a publisher's messages in order when the listener and anrmw_wait/rmw_takedrain the same socket; andlistener_registration_mutexserialises concurrent set and clear calls on one endpoint so its callback and its socket watch always agree. -
ros2_tracing tracepoints (#74).
rmw_publisher_init,rmw_subscription_init,rmw_publishandrmw_takeare emitted as inrmw_cycloneddsandrmw_fastrtps, soros2 trace,tracetools_analysisand CARET follow a message across processes on this RMW. Both sides pass the timestamp already on the wire, so the wire format is unchanged; with no tracing session, each call site costs one branch. - aarch64 (arm64) support. CI builds and tests every distro on GitHub's arm64 runners as well as x86_64. No source change was needed: there is no arch-specific code, and the shared-memory atomics are asserted lock-free on both.
Changed
-
One socket drain instead of four.
drain_endpointreplacesdrain_subscription,drain_socket, and the inline copies inrmw_take_requestandrmw_take_response. Each copy had been deciding its own policy, which is where the delivery gaps lived.DrainTargetnow carries that policy per endpoint. -
Listener callbacks report a batch count. One notification per
drain carrying the number of entries the queue gained, rather than
one call of
1per datagram.rmw/event_callback_type.hdefinesnumber_of_eventsas the count since the callback was last called and allows> 1. The count is growth rather than datagrams read, because it is a take credit: an overflow that pushes 100 and pops 90 reports 10, not 100. - Request and response queues are capped at
SERVICE_QUEUE_DEPTH(100) wherever they are filled.rmw_waitalways applied that bound; the take-path drains had none. -
DESIGN.mddocuments the listener thread and thedelivery_fdordering, and narrows the no-background-threads claim to what it now guarantees. - CI and the release workflow no longer build Kilted, and it gets no bloom track: it reaches end of life around the end of 2026. Jazzy, Rolling and Lyrical remain.
Performance
- rmw_wait no longer reads every guard-condition eventfd (#85). It
File truncated at 100 lines see the full file
Package Dependencies
| Deps | Name |
|---|---|
| ament_cmake | |
| ament_cmake_gtest | |
| test_msgs | |
| rosidl_typesupport_cpp | |
| rcutils | |
| rcpputils | |
| rmw | |
| tracetools | |
| rosidl_runtime_c | |
| fastcdr | |
| rosidl_typesupport_fastrtps_c | |
| rosidl_typesupport_fastrtps_cpp |
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged rmw_unix_socket_cpp at Robotics Stack Exchange
|
rmw_unix_socket_cpp package from rmw_unix_socket_cpp repormw_unix_socket_cpp |
ROS Distro
|
Package Summary
| Version | 0.6.0 |
| License | Apache-2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/benaliabderrahmane/rmw_unix_socket_cpp.git |
| VCS Type | git |
| VCS Version | main |
| Last Updated | 2026-11-18 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Abderahmane BENALI
Authors
Changelog for package rmw_unix_socket_cpp
0.6.0 (2026-11-18)
The EventsExecutor release, with the message_lost and matched QoS
events, ros2_tracing tracepoints, aarch64 support and a faster receive
path. rclcpp's EventsExecutor — the default in performance_test
and ros2-benchmark-container — crashed on every pub/sub topology,
and fixing the crash only turned it into a silent hang: that executor
never calls rmw_wait, and delivery happened exclusively inside
rmw_wait, so nothing ever drained its sockets. Callback-driven
delivery now works, and the four copies of the receive loop that hid the
gap are one.
Added
-
QoS status events: message_lost and both matched events (#21).
message_lostcounts gaps in each publisher's sequence numbers, which every datagram already carries: datagrams the kernel or the sender dropped, plus large-payload descriptors whose payload was gone.matchedreports the endpoints of the other kind on the topic, recomputed from the registry when its generation moves, and an endpoint created into existing matches reports them, as DDS does. Both work for a waiting executor and through event callbacks; the listener watches the doorbell while a matched callback exists. This fixesros2 bag recordon jazzy, which exited at startup because rosbag2 always asks formessage_lost, and image_pipeline's lazy nodes and Nav2's costmap republish, which key offmatched. Deadline and liveliness (#24, #25), incompatible QoS and incompatible type (#92) stay refused. -
Listener thread for callback-driven delivery. An endpoint that
registers a listener callback is watched by one per-context thread
that drains its socket and fires the callback with no application
thread involved. It is started lazily, by the first callback
registration in the context, so an executor that waits registers
nothing and the process still starts no background thread:
SingleThreadedExecutorandMultiThreadedExecutorstill start none. Joined inrmw_shutdown. -
delivery_fd, so a watched endpoint can still sit in a wait set.
The listener signals this eventfd strictly after enqueueing and
rmw_waitdrains it strictly before scanning its queues, which is what stops a wait from sleeping on a socket the listener already emptied. Same ordering pair as the registry doorbell. One per wait set, created inrmw_create_wait_set: reading an eventfd drains its whole counter, so a single shared fd is a single credit that whichever wait set wakes first consumes — including one that gained no work and discards it. Creating it with the wait set also means a callback registered while a wait is already blocked still has an armed fd to signal. Its cost when no callback is ever registered: one eventfd per wait set, read once perrmw_wait. -
The listener holds up against the calls that race it. A
registration that lands while
rmw_shutdownruns cannot restart the thread (alistener_stoppingflag checked underlistener_mutex); a failed watch leaves no callback installed; thread exhaustion at start is returned as an error instead of thrown through the C API; a per-endpointdrain_mutex, held for the receive loop, keeps a publisher's messages in order when the listener and anrmw_wait/rmw_takedrain the same socket; andlistener_registration_mutexserialises concurrent set and clear calls on one endpoint so its callback and its socket watch always agree. -
ros2_tracing tracepoints (#74).
rmw_publisher_init,rmw_subscription_init,rmw_publishandrmw_takeare emitted as inrmw_cycloneddsandrmw_fastrtps, soros2 trace,tracetools_analysisand CARET follow a message across processes on this RMW. Both sides pass the timestamp already on the wire, so the wire format is unchanged; with no tracing session, each call site costs one branch. - aarch64 (arm64) support. CI builds and tests every distro on GitHub's arm64 runners as well as x86_64. No source change was needed: there is no arch-specific code, and the shared-memory atomics are asserted lock-free on both.
Changed
-
One socket drain instead of four.
drain_endpointreplacesdrain_subscription,drain_socket, and the inline copies inrmw_take_requestandrmw_take_response. Each copy had been deciding its own policy, which is where the delivery gaps lived.DrainTargetnow carries that policy per endpoint. -
Listener callbacks report a batch count. One notification per
drain carrying the number of entries the queue gained, rather than
one call of
1per datagram.rmw/event_callback_type.hdefinesnumber_of_eventsas the count since the callback was last called and allows> 1. The count is growth rather than datagrams read, because it is a take credit: an overflow that pushes 100 and pops 90 reports 10, not 100. - Request and response queues are capped at
SERVICE_QUEUE_DEPTH(100) wherever they are filled.rmw_waitalways applied that bound; the take-path drains had none. -
DESIGN.mddocuments the listener thread and thedelivery_fdordering, and narrows the no-background-threads claim to what it now guarantees. - CI and the release workflow no longer build Kilted, and it gets no bloom track: it reaches end of life around the end of 2026. Jazzy, Rolling and Lyrical remain.
Performance
- rmw_wait no longer reads every guard-condition eventfd (#85). It
File truncated at 100 lines see the full file
Package Dependencies
| Deps | Name |
|---|---|
| ament_cmake | |
| ament_cmake_gtest | |
| test_msgs | |
| rosidl_typesupport_cpp | |
| rcutils | |
| rcpputils | |
| rmw | |
| tracetools | |
| rosidl_runtime_c | |
| fastcdr | |
| rosidl_typesupport_fastrtps_c | |
| rosidl_typesupport_fastrtps_cpp |
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged rmw_unix_socket_cpp at Robotics Stack Exchange
|
rmw_unix_socket_cpp package from rmw_unix_socket_cpp repormw_unix_socket_cpp |
ROS Distro
|
Package Summary
| Version | 0.6.0 |
| License | Apache-2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/benaliabderrahmane/rmw_unix_socket_cpp.git |
| VCS Type | git |
| VCS Version | main |
| Last Updated | 2026-11-18 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Abderahmane BENALI
Authors
Changelog for package rmw_unix_socket_cpp
0.6.0 (2026-11-18)
The EventsExecutor release, with the message_lost and matched QoS
events, ros2_tracing tracepoints, aarch64 support and a faster receive
path. rclcpp's EventsExecutor — the default in performance_test
and ros2-benchmark-container — crashed on every pub/sub topology,
and fixing the crash only turned it into a silent hang: that executor
never calls rmw_wait, and delivery happened exclusively inside
rmw_wait, so nothing ever drained its sockets. Callback-driven
delivery now works, and the four copies of the receive loop that hid the
gap are one.
Added
-
QoS status events: message_lost and both matched events (#21).
message_lostcounts gaps in each publisher's sequence numbers, which every datagram already carries: datagrams the kernel or the sender dropped, plus large-payload descriptors whose payload was gone.matchedreports the endpoints of the other kind on the topic, recomputed from the registry when its generation moves, and an endpoint created into existing matches reports them, as DDS does. Both work for a waiting executor and through event callbacks; the listener watches the doorbell while a matched callback exists. This fixesros2 bag recordon jazzy, which exited at startup because rosbag2 always asks formessage_lost, and image_pipeline's lazy nodes and Nav2's costmap republish, which key offmatched. Deadline and liveliness (#24, #25), incompatible QoS and incompatible type (#92) stay refused. -
Listener thread for callback-driven delivery. An endpoint that
registers a listener callback is watched by one per-context thread
that drains its socket and fires the callback with no application
thread involved. It is started lazily, by the first callback
registration in the context, so an executor that waits registers
nothing and the process still starts no background thread:
SingleThreadedExecutorandMultiThreadedExecutorstill start none. Joined inrmw_shutdown. -
delivery_fd, so a watched endpoint can still sit in a wait set.
The listener signals this eventfd strictly after enqueueing and
rmw_waitdrains it strictly before scanning its queues, which is what stops a wait from sleeping on a socket the listener already emptied. Same ordering pair as the registry doorbell. One per wait set, created inrmw_create_wait_set: reading an eventfd drains its whole counter, so a single shared fd is a single credit that whichever wait set wakes first consumes — including one that gained no work and discards it. Creating it with the wait set also means a callback registered while a wait is already blocked still has an armed fd to signal. Its cost when no callback is ever registered: one eventfd per wait set, read once perrmw_wait. -
The listener holds up against the calls that race it. A
registration that lands while
rmw_shutdownruns cannot restart the thread (alistener_stoppingflag checked underlistener_mutex); a failed watch leaves no callback installed; thread exhaustion at start is returned as an error instead of thrown through the C API; a per-endpointdrain_mutex, held for the receive loop, keeps a publisher's messages in order when the listener and anrmw_wait/rmw_takedrain the same socket; andlistener_registration_mutexserialises concurrent set and clear calls on one endpoint so its callback and its socket watch always agree. -
ros2_tracing tracepoints (#74).
rmw_publisher_init,rmw_subscription_init,rmw_publishandrmw_takeare emitted as inrmw_cycloneddsandrmw_fastrtps, soros2 trace,tracetools_analysisand CARET follow a message across processes on this RMW. Both sides pass the timestamp already on the wire, so the wire format is unchanged; with no tracing session, each call site costs one branch. - aarch64 (arm64) support. CI builds and tests every distro on GitHub's arm64 runners as well as x86_64. No source change was needed: there is no arch-specific code, and the shared-memory atomics are asserted lock-free on both.
Changed
-
One socket drain instead of four.
drain_endpointreplacesdrain_subscription,drain_socket, and the inline copies inrmw_take_requestandrmw_take_response. Each copy had been deciding its own policy, which is where the delivery gaps lived.DrainTargetnow carries that policy per endpoint. -
Listener callbacks report a batch count. One notification per
drain carrying the number of entries the queue gained, rather than
one call of
1per datagram.rmw/event_callback_type.hdefinesnumber_of_eventsas the count since the callback was last called and allows> 1. The count is growth rather than datagrams read, because it is a take credit: an overflow that pushes 100 and pops 90 reports 10, not 100. - Request and response queues are capped at
SERVICE_QUEUE_DEPTH(100) wherever they are filled.rmw_waitalways applied that bound; the take-path drains had none. -
DESIGN.mddocuments the listener thread and thedelivery_fdordering, and narrows the no-background-threads claim to what it now guarantees. - CI and the release workflow no longer build Kilted, and it gets no bloom track: it reaches end of life around the end of 2026. Jazzy, Rolling and Lyrical remain.
Performance
- rmw_wait no longer reads every guard-condition eventfd (#85). It
File truncated at 100 lines see the full file
Package Dependencies
| Deps | Name |
|---|---|
| ament_cmake | |
| ament_cmake_gtest | |
| test_msgs | |
| rosidl_typesupport_cpp | |
| rcutils | |
| rcpputils | |
| rmw | |
| tracetools | |
| rosidl_runtime_c | |
| fastcdr | |
| rosidl_typesupport_fastrtps_c | |
| rosidl_typesupport_fastrtps_cpp |
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged rmw_unix_socket_cpp at Robotics Stack Exchange
|
rmw_unix_socket_cpp package from rmw_unix_socket_cpp repormw_unix_socket_cpp |
ROS Distro
|
Package Summary
| Version | 0.6.0 |
| License | Apache-2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/benaliabderrahmane/rmw_unix_socket_cpp.git |
| VCS Type | git |
| VCS Version | main |
| Last Updated | 2026-11-18 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Abderahmane BENALI
Authors
Changelog for package rmw_unix_socket_cpp
0.6.0 (2026-11-18)
The EventsExecutor release, with the message_lost and matched QoS
events, ros2_tracing tracepoints, aarch64 support and a faster receive
path. rclcpp's EventsExecutor — the default in performance_test
and ros2-benchmark-container — crashed on every pub/sub topology,
and fixing the crash only turned it into a silent hang: that executor
never calls rmw_wait, and delivery happened exclusively inside
rmw_wait, so nothing ever drained its sockets. Callback-driven
delivery now works, and the four copies of the receive loop that hid the
gap are one.
Added
-
QoS status events: message_lost and both matched events (#21).
message_lostcounts gaps in each publisher's sequence numbers, which every datagram already carries: datagrams the kernel or the sender dropped, plus large-payload descriptors whose payload was gone.matchedreports the endpoints of the other kind on the topic, recomputed from the registry when its generation moves, and an endpoint created into existing matches reports them, as DDS does. Both work for a waiting executor and through event callbacks; the listener watches the doorbell while a matched callback exists. This fixesros2 bag recordon jazzy, which exited at startup because rosbag2 always asks formessage_lost, and image_pipeline's lazy nodes and Nav2's costmap republish, which key offmatched. Deadline and liveliness (#24, #25), incompatible QoS and incompatible type (#92) stay refused. -
Listener thread for callback-driven delivery. An endpoint that
registers a listener callback is watched by one per-context thread
that drains its socket and fires the callback with no application
thread involved. It is started lazily, by the first callback
registration in the context, so an executor that waits registers
nothing and the process still starts no background thread:
SingleThreadedExecutorandMultiThreadedExecutorstill start none. Joined inrmw_shutdown. -
delivery_fd, so a watched endpoint can still sit in a wait set.
The listener signals this eventfd strictly after enqueueing and
rmw_waitdrains it strictly before scanning its queues, which is what stops a wait from sleeping on a socket the listener already emptied. Same ordering pair as the registry doorbell. One per wait set, created inrmw_create_wait_set: reading an eventfd drains its whole counter, so a single shared fd is a single credit that whichever wait set wakes first consumes — including one that gained no work and discards it. Creating it with the wait set also means a callback registered while a wait is already blocked still has an armed fd to signal. Its cost when no callback is ever registered: one eventfd per wait set, read once perrmw_wait. -
The listener holds up against the calls that race it. A
registration that lands while
rmw_shutdownruns cannot restart the thread (alistener_stoppingflag checked underlistener_mutex); a failed watch leaves no callback installed; thread exhaustion at start is returned as an error instead of thrown through the C API; a per-endpointdrain_mutex, held for the receive loop, keeps a publisher's messages in order when the listener and anrmw_wait/rmw_takedrain the same socket; andlistener_registration_mutexserialises concurrent set and clear calls on one endpoint so its callback and its socket watch always agree. -
ros2_tracing tracepoints (#74).
rmw_publisher_init,rmw_subscription_init,rmw_publishandrmw_takeare emitted as inrmw_cycloneddsandrmw_fastrtps, soros2 trace,tracetools_analysisand CARET follow a message across processes on this RMW. Both sides pass the timestamp already on the wire, so the wire format is unchanged; with no tracing session, each call site costs one branch. - aarch64 (arm64) support. CI builds and tests every distro on GitHub's arm64 runners as well as x86_64. No source change was needed: there is no arch-specific code, and the shared-memory atomics are asserted lock-free on both.
Changed
-
One socket drain instead of four.
drain_endpointreplacesdrain_subscription,drain_socket, and the inline copies inrmw_take_requestandrmw_take_response. Each copy had been deciding its own policy, which is where the delivery gaps lived.DrainTargetnow carries that policy per endpoint. -
Listener callbacks report a batch count. One notification per
drain carrying the number of entries the queue gained, rather than
one call of
1per datagram.rmw/event_callback_type.hdefinesnumber_of_eventsas the count since the callback was last called and allows> 1. The count is growth rather than datagrams read, because it is a take credit: an overflow that pushes 100 and pops 90 reports 10, not 100. - Request and response queues are capped at
SERVICE_QUEUE_DEPTH(100) wherever they are filled.rmw_waitalways applied that bound; the take-path drains had none. -
DESIGN.mddocuments the listener thread and thedelivery_fdordering, and narrows the no-background-threads claim to what it now guarantees. - CI and the release workflow no longer build Kilted, and it gets no bloom track: it reaches end of life around the end of 2026. Jazzy, Rolling and Lyrical remain.
Performance
- rmw_wait no longer reads every guard-condition eventfd (#85). It
File truncated at 100 lines see the full file
Package Dependencies
| Deps | Name |
|---|---|
| ament_cmake | |
| ament_cmake_gtest | |
| test_msgs | |
| rosidl_typesupport_cpp | |
| rcutils | |
| rcpputils | |
| rmw | |
| tracetools | |
| rosidl_runtime_c | |
| fastcdr | |
| rosidl_typesupport_fastrtps_c | |
| rosidl_typesupport_fastrtps_cpp |
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged rmw_unix_socket_cpp at Robotics Stack Exchange
|
rmw_unix_socket_cpp package from rmw_unix_socket_cpp repormw_unix_socket_cpp |
ROS Distro
|
Package Summary
| Version | 0.6.0 |
| License | Apache-2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/benaliabderrahmane/rmw_unix_socket_cpp.git |
| VCS Type | git |
| VCS Version | main |
| Last Updated | 2026-11-18 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Abderahmane BENALI
Authors
Changelog for package rmw_unix_socket_cpp
0.6.0 (2026-11-18)
The EventsExecutor release, with the message_lost and matched QoS
events, ros2_tracing tracepoints, aarch64 support and a faster receive
path. rclcpp's EventsExecutor — the default in performance_test
and ros2-benchmark-container — crashed on every pub/sub topology,
and fixing the crash only turned it into a silent hang: that executor
never calls rmw_wait, and delivery happened exclusively inside
rmw_wait, so nothing ever drained its sockets. Callback-driven
delivery now works, and the four copies of the receive loop that hid the
gap are one.
Added
-
QoS status events: message_lost and both matched events (#21).
message_lostcounts gaps in each publisher's sequence numbers, which every datagram already carries: datagrams the kernel or the sender dropped, plus large-payload descriptors whose payload was gone.matchedreports the endpoints of the other kind on the topic, recomputed from the registry when its generation moves, and an endpoint created into existing matches reports them, as DDS does. Both work for a waiting executor and through event callbacks; the listener watches the doorbell while a matched callback exists. This fixesros2 bag recordon jazzy, which exited at startup because rosbag2 always asks formessage_lost, and image_pipeline's lazy nodes and Nav2's costmap republish, which key offmatched. Deadline and liveliness (#24, #25), incompatible QoS and incompatible type (#92) stay refused. -
Listener thread for callback-driven delivery. An endpoint that
registers a listener callback is watched by one per-context thread
that drains its socket and fires the callback with no application
thread involved. It is started lazily, by the first callback
registration in the context, so an executor that waits registers
nothing and the process still starts no background thread:
SingleThreadedExecutorandMultiThreadedExecutorstill start none. Joined inrmw_shutdown. -
delivery_fd, so a watched endpoint can still sit in a wait set.
The listener signals this eventfd strictly after enqueueing and
rmw_waitdrains it strictly before scanning its queues, which is what stops a wait from sleeping on a socket the listener already emptied. Same ordering pair as the registry doorbell. One per wait set, created inrmw_create_wait_set: reading an eventfd drains its whole counter, so a single shared fd is a single credit that whichever wait set wakes first consumes — including one that gained no work and discards it. Creating it with the wait set also means a callback registered while a wait is already blocked still has an armed fd to signal. Its cost when no callback is ever registered: one eventfd per wait set, read once perrmw_wait. -
The listener holds up against the calls that race it. A
registration that lands while
rmw_shutdownruns cannot restart the thread (alistener_stoppingflag checked underlistener_mutex); a failed watch leaves no callback installed; thread exhaustion at start is returned as an error instead of thrown through the C API; a per-endpointdrain_mutex, held for the receive loop, keeps a publisher's messages in order when the listener and anrmw_wait/rmw_takedrain the same socket; andlistener_registration_mutexserialises concurrent set and clear calls on one endpoint so its callback and its socket watch always agree. -
ros2_tracing tracepoints (#74).
rmw_publisher_init,rmw_subscription_init,rmw_publishandrmw_takeare emitted as inrmw_cycloneddsandrmw_fastrtps, soros2 trace,tracetools_analysisand CARET follow a message across processes on this RMW. Both sides pass the timestamp already on the wire, so the wire format is unchanged; with no tracing session, each call site costs one branch. - aarch64 (arm64) support. CI builds and tests every distro on GitHub's arm64 runners as well as x86_64. No source change was needed: there is no arch-specific code, and the shared-memory atomics are asserted lock-free on both.
Changed
-
One socket drain instead of four.
drain_endpointreplacesdrain_subscription,drain_socket, and the inline copies inrmw_take_requestandrmw_take_response. Each copy had been deciding its own policy, which is where the delivery gaps lived.DrainTargetnow carries that policy per endpoint. -
Listener callbacks report a batch count. One notification per
drain carrying the number of entries the queue gained, rather than
one call of
1per datagram.rmw/event_callback_type.hdefinesnumber_of_eventsas the count since the callback was last called and allows> 1. The count is growth rather than datagrams read, because it is a take credit: an overflow that pushes 100 and pops 90 reports 10, not 100. - Request and response queues are capped at
SERVICE_QUEUE_DEPTH(100) wherever they are filled.rmw_waitalways applied that bound; the take-path drains had none. -
DESIGN.mddocuments the listener thread and thedelivery_fdordering, and narrows the no-background-threads claim to what it now guarantees. - CI and the release workflow no longer build Kilted, and it gets no bloom track: it reaches end of life around the end of 2026. Jazzy, Rolling and Lyrical remain.
Performance
- rmw_wait no longer reads every guard-condition eventfd (#85). It
File truncated at 100 lines see the full file
Package Dependencies
| Deps | Name |
|---|---|
| ament_cmake | |
| ament_cmake_gtest | |
| test_msgs | |
| rosidl_typesupport_cpp | |
| rcutils | |
| rcpputils | |
| rmw | |
| tracetools | |
| rosidl_runtime_c | |
| fastcdr | |
| rosidl_typesupport_fastrtps_c | |
| rosidl_typesupport_fastrtps_cpp |
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged rmw_unix_socket_cpp at Robotics Stack Exchange
|
rmw_unix_socket_cpp package from rmw_unix_socket_cpp repormw_unix_socket_cpp |
ROS Distro
|
Package Summary
| Version | 0.6.0 |
| License | Apache-2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/benaliabderrahmane/rmw_unix_socket_cpp.git |
| VCS Type | git |
| VCS Version | main |
| Last Updated | 2026-11-18 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Abderahmane BENALI
Authors
Changelog for package rmw_unix_socket_cpp
0.6.0 (2026-11-18)
The EventsExecutor release, with the message_lost and matched QoS
events, ros2_tracing tracepoints, aarch64 support and a faster receive
path. rclcpp's EventsExecutor — the default in performance_test
and ros2-benchmark-container — crashed on every pub/sub topology,
and fixing the crash only turned it into a silent hang: that executor
never calls rmw_wait, and delivery happened exclusively inside
rmw_wait, so nothing ever drained its sockets. Callback-driven
delivery now works, and the four copies of the receive loop that hid the
gap are one.
Added
-
QoS status events: message_lost and both matched events (#21).
message_lostcounts gaps in each publisher's sequence numbers, which every datagram already carries: datagrams the kernel or the sender dropped, plus large-payload descriptors whose payload was gone.matchedreports the endpoints of the other kind on the topic, recomputed from the registry when its generation moves, and an endpoint created into existing matches reports them, as DDS does. Both work for a waiting executor and through event callbacks; the listener watches the doorbell while a matched callback exists. This fixesros2 bag recordon jazzy, which exited at startup because rosbag2 always asks formessage_lost, and image_pipeline's lazy nodes and Nav2's costmap republish, which key offmatched. Deadline and liveliness (#24, #25), incompatible QoS and incompatible type (#92) stay refused. -
Listener thread for callback-driven delivery. An endpoint that
registers a listener callback is watched by one per-context thread
that drains its socket and fires the callback with no application
thread involved. It is started lazily, by the first callback
registration in the context, so an executor that waits registers
nothing and the process still starts no background thread:
SingleThreadedExecutorandMultiThreadedExecutorstill start none. Joined inrmw_shutdown. -
delivery_fd, so a watched endpoint can still sit in a wait set.
The listener signals this eventfd strictly after enqueueing and
rmw_waitdrains it strictly before scanning its queues, which is what stops a wait from sleeping on a socket the listener already emptied. Same ordering pair as the registry doorbell. One per wait set, created inrmw_create_wait_set: reading an eventfd drains its whole counter, so a single shared fd is a single credit that whichever wait set wakes first consumes — including one that gained no work and discards it. Creating it with the wait set also means a callback registered while a wait is already blocked still has an armed fd to signal. Its cost when no callback is ever registered: one eventfd per wait set, read once perrmw_wait. -
The listener holds up against the calls that race it. A
registration that lands while
rmw_shutdownruns cannot restart the thread (alistener_stoppingflag checked underlistener_mutex); a failed watch leaves no callback installed; thread exhaustion at start is returned as an error instead of thrown through the C API; a per-endpointdrain_mutex, held for the receive loop, keeps a publisher's messages in order when the listener and anrmw_wait/rmw_takedrain the same socket; andlistener_registration_mutexserialises concurrent set and clear calls on one endpoint so its callback and its socket watch always agree. -
ros2_tracing tracepoints (#74).
rmw_publisher_init,rmw_subscription_init,rmw_publishandrmw_takeare emitted as inrmw_cycloneddsandrmw_fastrtps, soros2 trace,tracetools_analysisand CARET follow a message across processes on this RMW. Both sides pass the timestamp already on the wire, so the wire format is unchanged; with no tracing session, each call site costs one branch. - aarch64 (arm64) support. CI builds and tests every distro on GitHub's arm64 runners as well as x86_64. No source change was needed: there is no arch-specific code, and the shared-memory atomics are asserted lock-free on both.
Changed
-
One socket drain instead of four.
drain_endpointreplacesdrain_subscription,drain_socket, and the inline copies inrmw_take_requestandrmw_take_response. Each copy had been deciding its own policy, which is where the delivery gaps lived.DrainTargetnow carries that policy per endpoint. -
Listener callbacks report a batch count. One notification per
drain carrying the number of entries the queue gained, rather than
one call of
1per datagram.rmw/event_callback_type.hdefinesnumber_of_eventsas the count since the callback was last called and allows> 1. The count is growth rather than datagrams read, because it is a take credit: an overflow that pushes 100 and pops 90 reports 10, not 100. - Request and response queues are capped at
SERVICE_QUEUE_DEPTH(100) wherever they are filled.rmw_waitalways applied that bound; the take-path drains had none. -
DESIGN.mddocuments the listener thread and thedelivery_fdordering, and narrows the no-background-threads claim to what it now guarantees. - CI and the release workflow no longer build Kilted, and it gets no bloom track: it reaches end of life around the end of 2026. Jazzy, Rolling and Lyrical remain.
Performance
- rmw_wait no longer reads every guard-condition eventfd (#85). It
File truncated at 100 lines see the full file
Package Dependencies
| Deps | Name |
|---|---|
| ament_cmake | |
| ament_cmake_gtest | |
| test_msgs | |
| rosidl_typesupport_cpp | |
| rcutils | |
| rcpputils | |
| rmw | |
| tracetools | |
| rosidl_runtime_c | |
| fastcdr | |
| rosidl_typesupport_fastrtps_c | |
| rosidl_typesupport_fastrtps_cpp |
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged rmw_unix_socket_cpp at Robotics Stack Exchange
|
rmw_unix_socket_cpp package from rmw_unix_socket_cpp repormw_unix_socket_cpp |
ROS Distro
|
Package Summary
| Version | 0.6.0 |
| License | Apache-2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/benaliabderrahmane/rmw_unix_socket_cpp.git |
| VCS Type | git |
| VCS Version | main |
| Last Updated | 2026-11-18 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Abderahmane BENALI
Authors
Changelog for package rmw_unix_socket_cpp
0.6.0 (2026-11-18)
The EventsExecutor release, with the message_lost and matched QoS
events, ros2_tracing tracepoints, aarch64 support and a faster receive
path. rclcpp's EventsExecutor — the default in performance_test
and ros2-benchmark-container — crashed on every pub/sub topology,
and fixing the crash only turned it into a silent hang: that executor
never calls rmw_wait, and delivery happened exclusively inside
rmw_wait, so nothing ever drained its sockets. Callback-driven
delivery now works, and the four copies of the receive loop that hid the
gap are one.
Added
-
QoS status events: message_lost and both matched events (#21).
message_lostcounts gaps in each publisher's sequence numbers, which every datagram already carries: datagrams the kernel or the sender dropped, plus large-payload descriptors whose payload was gone.matchedreports the endpoints of the other kind on the topic, recomputed from the registry when its generation moves, and an endpoint created into existing matches reports them, as DDS does. Both work for a waiting executor and through event callbacks; the listener watches the doorbell while a matched callback exists. This fixesros2 bag recordon jazzy, which exited at startup because rosbag2 always asks formessage_lost, and image_pipeline's lazy nodes and Nav2's costmap republish, which key offmatched. Deadline and liveliness (#24, #25), incompatible QoS and incompatible type (#92) stay refused. -
Listener thread for callback-driven delivery. An endpoint that
registers a listener callback is watched by one per-context thread
that drains its socket and fires the callback with no application
thread involved. It is started lazily, by the first callback
registration in the context, so an executor that waits registers
nothing and the process still starts no background thread:
SingleThreadedExecutorandMultiThreadedExecutorstill start none. Joined inrmw_shutdown. -
delivery_fd, so a watched endpoint can still sit in a wait set.
The listener signals this eventfd strictly after enqueueing and
rmw_waitdrains it strictly before scanning its queues, which is what stops a wait from sleeping on a socket the listener already emptied. Same ordering pair as the registry doorbell. One per wait set, created inrmw_create_wait_set: reading an eventfd drains its whole counter, so a single shared fd is a single credit that whichever wait set wakes first consumes — including one that gained no work and discards it. Creating it with the wait set also means a callback registered while a wait is already blocked still has an armed fd to signal. Its cost when no callback is ever registered: one eventfd per wait set, read once perrmw_wait. -
The listener holds up against the calls that race it. A
registration that lands while
rmw_shutdownruns cannot restart the thread (alistener_stoppingflag checked underlistener_mutex); a failed watch leaves no callback installed; thread exhaustion at start is returned as an error instead of thrown through the C API; a per-endpointdrain_mutex, held for the receive loop, keeps a publisher's messages in order when the listener and anrmw_wait/rmw_takedrain the same socket; andlistener_registration_mutexserialises concurrent set and clear calls on one endpoint so its callback and its socket watch always agree. -
ros2_tracing tracepoints (#74).
rmw_publisher_init,rmw_subscription_init,rmw_publishandrmw_takeare emitted as inrmw_cycloneddsandrmw_fastrtps, soros2 trace,tracetools_analysisand CARET follow a message across processes on this RMW. Both sides pass the timestamp already on the wire, so the wire format is unchanged; with no tracing session, each call site costs one branch. - aarch64 (arm64) support. CI builds and tests every distro on GitHub's arm64 runners as well as x86_64. No source change was needed: there is no arch-specific code, and the shared-memory atomics are asserted lock-free on both.
Changed
-
One socket drain instead of four.
drain_endpointreplacesdrain_subscription,drain_socket, and the inline copies inrmw_take_requestandrmw_take_response. Each copy had been deciding its own policy, which is where the delivery gaps lived.DrainTargetnow carries that policy per endpoint. -
Listener callbacks report a batch count. One notification per
drain carrying the number of entries the queue gained, rather than
one call of
1per datagram.rmw/event_callback_type.hdefinesnumber_of_eventsas the count since the callback was last called and allows> 1. The count is growth rather than datagrams read, because it is a take credit: an overflow that pushes 100 and pops 90 reports 10, not 100. - Request and response queues are capped at
SERVICE_QUEUE_DEPTH(100) wherever they are filled.rmw_waitalways applied that bound; the take-path drains had none. -
DESIGN.mddocuments the listener thread and thedelivery_fdordering, and narrows the no-background-threads claim to what it now guarantees. - CI and the release workflow no longer build Kilted, and it gets no bloom track: it reaches end of life around the end of 2026. Jazzy, Rolling and Lyrical remain.
Performance
- rmw_wait no longer reads every guard-condition eventfd (#85). It
File truncated at 100 lines see the full file
Package Dependencies
| Deps | Name |
|---|---|
| ament_cmake | |
| ament_cmake_gtest | |
| test_msgs | |
| rosidl_typesupport_cpp | |
| rcutils | |
| rcpputils | |
| rmw | |
| tracetools | |
| rosidl_runtime_c | |
| fastcdr | |
| rosidl_typesupport_fastrtps_c | |
| rosidl_typesupport_fastrtps_cpp |
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged rmw_unix_socket_cpp at Robotics Stack Exchange
|
rmw_unix_socket_cpp package from rmw_unix_socket_cpp repormw_unix_socket_cpp |
ROS Distro
|
Package Summary
| Version | 0.6.0 |
| License | Apache-2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/benaliabderrahmane/rmw_unix_socket_cpp.git |
| VCS Type | git |
| VCS Version | main |
| Last Updated | 2026-11-18 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Abderahmane BENALI
Authors
Changelog for package rmw_unix_socket_cpp
0.6.0 (2026-11-18)
The EventsExecutor release, with the message_lost and matched QoS
events, ros2_tracing tracepoints, aarch64 support and a faster receive
path. rclcpp's EventsExecutor — the default in performance_test
and ros2-benchmark-container — crashed on every pub/sub topology,
and fixing the crash only turned it into a silent hang: that executor
never calls rmw_wait, and delivery happened exclusively inside
rmw_wait, so nothing ever drained its sockets. Callback-driven
delivery now works, and the four copies of the receive loop that hid the
gap are one.
Added
-
QoS status events: message_lost and both matched events (#21).
message_lostcounts gaps in each publisher's sequence numbers, which every datagram already carries: datagrams the kernel or the sender dropped, plus large-payload descriptors whose payload was gone.matchedreports the endpoints of the other kind on the topic, recomputed from the registry when its generation moves, and an endpoint created into existing matches reports them, as DDS does. Both work for a waiting executor and through event callbacks; the listener watches the doorbell while a matched callback exists. This fixesros2 bag recordon jazzy, which exited at startup because rosbag2 always asks formessage_lost, and image_pipeline's lazy nodes and Nav2's costmap republish, which key offmatched. Deadline and liveliness (#24, #25), incompatible QoS and incompatible type (#92) stay refused. -
Listener thread for callback-driven delivery. An endpoint that
registers a listener callback is watched by one per-context thread
that drains its socket and fires the callback with no application
thread involved. It is started lazily, by the first callback
registration in the context, so an executor that waits registers
nothing and the process still starts no background thread:
SingleThreadedExecutorandMultiThreadedExecutorstill start none. Joined inrmw_shutdown. -
delivery_fd, so a watched endpoint can still sit in a wait set.
The listener signals this eventfd strictly after enqueueing and
rmw_waitdrains it strictly before scanning its queues, which is what stops a wait from sleeping on a socket the listener already emptied. Same ordering pair as the registry doorbell. One per wait set, created inrmw_create_wait_set: reading an eventfd drains its whole counter, so a single shared fd is a single credit that whichever wait set wakes first consumes — including one that gained no work and discards it. Creating it with the wait set also means a callback registered while a wait is already blocked still has an armed fd to signal. Its cost when no callback is ever registered: one eventfd per wait set, read once perrmw_wait. -
The listener holds up against the calls that race it. A
registration that lands while
rmw_shutdownruns cannot restart the thread (alistener_stoppingflag checked underlistener_mutex); a failed watch leaves no callback installed; thread exhaustion at start is returned as an error instead of thrown through the C API; a per-endpointdrain_mutex, held for the receive loop, keeps a publisher's messages in order when the listener and anrmw_wait/rmw_takedrain the same socket; andlistener_registration_mutexserialises concurrent set and clear calls on one endpoint so its callback and its socket watch always agree. -
ros2_tracing tracepoints (#74).
rmw_publisher_init,rmw_subscription_init,rmw_publishandrmw_takeare emitted as inrmw_cycloneddsandrmw_fastrtps, soros2 trace,tracetools_analysisand CARET follow a message across processes on this RMW. Both sides pass the timestamp already on the wire, so the wire format is unchanged; with no tracing session, each call site costs one branch. - aarch64 (arm64) support. CI builds and tests every distro on GitHub's arm64 runners as well as x86_64. No source change was needed: there is no arch-specific code, and the shared-memory atomics are asserted lock-free on both.
Changed
-
One socket drain instead of four.
drain_endpointreplacesdrain_subscription,drain_socket, and the inline copies inrmw_take_requestandrmw_take_response. Each copy had been deciding its own policy, which is where the delivery gaps lived.DrainTargetnow carries that policy per endpoint. -
Listener callbacks report a batch count. One notification per
drain carrying the number of entries the queue gained, rather than
one call of
1per datagram.rmw/event_callback_type.hdefinesnumber_of_eventsas the count since the callback was last called and allows> 1. The count is growth rather than datagrams read, because it is a take credit: an overflow that pushes 100 and pops 90 reports 10, not 100. - Request and response queues are capped at
SERVICE_QUEUE_DEPTH(100) wherever they are filled.rmw_waitalways applied that bound; the take-path drains had none. -
DESIGN.mddocuments the listener thread and thedelivery_fdordering, and narrows the no-background-threads claim to what it now guarantees. - CI and the release workflow no longer build Kilted, and it gets no bloom track: it reaches end of life around the end of 2026. Jazzy, Rolling and Lyrical remain.
Performance
- rmw_wait no longer reads every guard-condition eventfd (#85). It
File truncated at 100 lines see the full file
Package Dependencies
| Deps | Name |
|---|---|
| ament_cmake | |
| ament_cmake_gtest | |
| test_msgs | |
| rosidl_typesupport_cpp | |
| rcutils | |
| rcpputils | |
| rmw | |
| tracetools | |
| rosidl_runtime_c | |
| fastcdr | |
| rosidl_typesupport_fastrtps_c | |
| rosidl_typesupport_fastrtps_cpp |
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged rmw_unix_socket_cpp at Robotics Stack Exchange
|
rmw_unix_socket_cpp package from rmw_unix_socket_cpp repormw_unix_socket_cpp |
ROS Distro
|
Package Summary
| Version | 0.6.0 |
| License | Apache-2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/benaliabderrahmane/rmw_unix_socket_cpp.git |
| VCS Type | git |
| VCS Version | main |
| Last Updated | 2026-11-18 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Abderahmane BENALI
Authors
Changelog for package rmw_unix_socket_cpp
0.6.0 (2026-11-18)
The EventsExecutor release, with the message_lost and matched QoS
events, ros2_tracing tracepoints, aarch64 support and a faster receive
path. rclcpp's EventsExecutor — the default in performance_test
and ros2-benchmark-container — crashed on every pub/sub topology,
and fixing the crash only turned it into a silent hang: that executor
never calls rmw_wait, and delivery happened exclusively inside
rmw_wait, so nothing ever drained its sockets. Callback-driven
delivery now works, and the four copies of the receive loop that hid the
gap are one.
Added
-
QoS status events: message_lost and both matched events (#21).
message_lostcounts gaps in each publisher's sequence numbers, which every datagram already carries: datagrams the kernel or the sender dropped, plus large-payload descriptors whose payload was gone.matchedreports the endpoints of the other kind on the topic, recomputed from the registry when its generation moves, and an endpoint created into existing matches reports them, as DDS does. Both work for a waiting executor and through event callbacks; the listener watches the doorbell while a matched callback exists. This fixesros2 bag recordon jazzy, which exited at startup because rosbag2 always asks formessage_lost, and image_pipeline's lazy nodes and Nav2's costmap republish, which key offmatched. Deadline and liveliness (#24, #25), incompatible QoS and incompatible type (#92) stay refused. -
Listener thread for callback-driven delivery. An endpoint that
registers a listener callback is watched by one per-context thread
that drains its socket and fires the callback with no application
thread involved. It is started lazily, by the first callback
registration in the context, so an executor that waits registers
nothing and the process still starts no background thread:
SingleThreadedExecutorandMultiThreadedExecutorstill start none. Joined inrmw_shutdown. -
delivery_fd, so a watched endpoint can still sit in a wait set.
The listener signals this eventfd strictly after enqueueing and
rmw_waitdrains it strictly before scanning its queues, which is what stops a wait from sleeping on a socket the listener already emptied. Same ordering pair as the registry doorbell. One per wait set, created inrmw_create_wait_set: reading an eventfd drains its whole counter, so a single shared fd is a single credit that whichever wait set wakes first consumes — including one that gained no work and discards it. Creating it with the wait set also means a callback registered while a wait is already blocked still has an armed fd to signal. Its cost when no callback is ever registered: one eventfd per wait set, read once perrmw_wait. -
The listener holds up against the calls that race it. A
registration that lands while
rmw_shutdownruns cannot restart the thread (alistener_stoppingflag checked underlistener_mutex); a failed watch leaves no callback installed; thread exhaustion at start is returned as an error instead of thrown through the C API; a per-endpointdrain_mutex, held for the receive loop, keeps a publisher's messages in order when the listener and anrmw_wait/rmw_takedrain the same socket; andlistener_registration_mutexserialises concurrent set and clear calls on one endpoint so its callback and its socket watch always agree. -
ros2_tracing tracepoints (#74).
rmw_publisher_init,rmw_subscription_init,rmw_publishandrmw_takeare emitted as inrmw_cycloneddsandrmw_fastrtps, soros2 trace,tracetools_analysisand CARET follow a message across processes on this RMW. Both sides pass the timestamp already on the wire, so the wire format is unchanged; with no tracing session, each call site costs one branch. - aarch64 (arm64) support. CI builds and tests every distro on GitHub's arm64 runners as well as x86_64. No source change was needed: there is no arch-specific code, and the shared-memory atomics are asserted lock-free on both.
Changed
-
One socket drain instead of four.
drain_endpointreplacesdrain_subscription,drain_socket, and the inline copies inrmw_take_requestandrmw_take_response. Each copy had been deciding its own policy, which is where the delivery gaps lived.DrainTargetnow carries that policy per endpoint. -
Listener callbacks report a batch count. One notification per
drain carrying the number of entries the queue gained, rather than
one call of
1per datagram.rmw/event_callback_type.hdefinesnumber_of_eventsas the count since the callback was last called and allows> 1. The count is growth rather than datagrams read, because it is a take credit: an overflow that pushes 100 and pops 90 reports 10, not 100. - Request and response queues are capped at
SERVICE_QUEUE_DEPTH(100) wherever they are filled.rmw_waitalways applied that bound; the take-path drains had none. -
DESIGN.mddocuments the listener thread and thedelivery_fdordering, and narrows the no-background-threads claim to what it now guarantees. - CI and the release workflow no longer build Kilted, and it gets no bloom track: it reaches end of life around the end of 2026. Jazzy, Rolling and Lyrical remain.
Performance
- rmw_wait no longer reads every guard-condition eventfd (#85). It
File truncated at 100 lines see the full file
Package Dependencies
| Deps | Name |
|---|---|
| ament_cmake | |
| ament_cmake_gtest | |
| test_msgs | |
| rosidl_typesupport_cpp | |
| rcutils | |
| rcpputils | |
| rmw | |
| tracetools | |
| rosidl_runtime_c | |
| fastcdr | |
| rosidl_typesupport_fastrtps_c | |
| rosidl_typesupport_fastrtps_cpp |