No version for distro humble showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

rmw_unix_socket_cpp package from rmw_unix_socket_cpp repo

rmw_unix_socket_cpp

ROS Distro
jazzy

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

Lightweight RMW implementation for ROS 2 using Unix domain sockets. Designed for localhost-only communication with minimal resource usage.

Additional Links

Maintainers

  • Abderahmane BENALI

Authors

No additional authors.
README
No README found. See repository README.
CHANGELOG

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_lost counts 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. matched reports 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 fixes ros2 bag record on jazzy, which exited at startup because rosbag2 always asks for message_lost, and image_pipeline's lazy nodes and Nav2's costmap republish, which key off matched. 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: SingleThreadedExecutor and MultiThreadedExecutor still start none. Joined in rmw_shutdown.
  • delivery_fd, so a watched endpoint can still sit in a wait set. The listener signals this eventfd strictly after enqueueing and rmw_wait drains 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 in rmw_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 per rmw_wait.
  • The listener holds up against the calls that race it. A registration that lands while rmw_shutdown runs cannot restart the thread (a listener_stopping flag checked under listener_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-endpoint drain_mutex, held for the receive loop, keeps a publisher's messages in order when the listener and an rmw_wait/rmw_take drain the same socket; and listener_registration_mutex serialises 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_publish and rmw_take are emitted as in rmw_cyclonedds and rmw_fastrtps, so ros2 trace, tracetools_analysis and 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_endpoint replaces drain_subscription, drain_socket, and the inline copies in rmw_take_request and rmw_take_response. Each copy had been deciding its own policy, which is where the delivery gaps lived. DrainTarget now 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 1 per datagram. rmw/event_callback_type.h defines number_of_events as 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_wait always applied that bound; the take-path drains had none.
  • DESIGN.md documents the listener thread and the delivery_fd ordering, 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

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rmw_unix_socket_cpp at Robotics Stack Exchange

Package symbol

rmw_unix_socket_cpp package from rmw_unix_socket_cpp repo

rmw_unix_socket_cpp

ROS Distro
jazzy

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

Lightweight RMW implementation for ROS 2 using Unix domain sockets. Designed for localhost-only communication with minimal resource usage.

Additional Links

Maintainers

  • Abderahmane BENALI

Authors

No additional authors.
README
No README found. See repository README.
CHANGELOG

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_lost counts 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. matched reports 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 fixes ros2 bag record on jazzy, which exited at startup because rosbag2 always asks for message_lost, and image_pipeline's lazy nodes and Nav2's costmap republish, which key off matched. 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: SingleThreadedExecutor and MultiThreadedExecutor still start none. Joined in rmw_shutdown.
  • delivery_fd, so a watched endpoint can still sit in a wait set. The listener signals this eventfd strictly after enqueueing and rmw_wait drains 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 in rmw_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 per rmw_wait.
  • The listener holds up against the calls that race it. A registration that lands while rmw_shutdown runs cannot restart the thread (a listener_stopping flag checked under listener_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-endpoint drain_mutex, held for the receive loop, keeps a publisher's messages in order when the listener and an rmw_wait/rmw_take drain the same socket; and listener_registration_mutex serialises 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_publish and rmw_take are emitted as in rmw_cyclonedds and rmw_fastrtps, so ros2 trace, tracetools_analysis and 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_endpoint replaces drain_subscription, drain_socket, and the inline copies in rmw_take_request and rmw_take_response. Each copy had been deciding its own policy, which is where the delivery gaps lived. DrainTarget now 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 1 per datagram. rmw/event_callback_type.h defines number_of_events as 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_wait always applied that bound; the take-path drains had none.
  • DESIGN.md documents the listener thread and the delivery_fd ordering, 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

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rmw_unix_socket_cpp at Robotics Stack Exchange

No version for distro kilted showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

rmw_unix_socket_cpp package from rmw_unix_socket_cpp repo

rmw_unix_socket_cpp

ROS Distro
jazzy

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

Lightweight RMW implementation for ROS 2 using Unix domain sockets. Designed for localhost-only communication with minimal resource usage.

Additional Links

Maintainers

  • Abderahmane BENALI

Authors

No additional authors.
README
No README found. See repository README.
CHANGELOG

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_lost counts 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. matched reports 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 fixes ros2 bag record on jazzy, which exited at startup because rosbag2 always asks for message_lost, and image_pipeline's lazy nodes and Nav2's costmap republish, which key off matched. 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: SingleThreadedExecutor and MultiThreadedExecutor still start none. Joined in rmw_shutdown.
  • delivery_fd, so a watched endpoint can still sit in a wait set. The listener signals this eventfd strictly after enqueueing and rmw_wait drains 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 in rmw_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 per rmw_wait.
  • The listener holds up against the calls that race it. A registration that lands while rmw_shutdown runs cannot restart the thread (a listener_stopping flag checked under listener_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-endpoint drain_mutex, held for the receive loop, keeps a publisher's messages in order when the listener and an rmw_wait/rmw_take drain the same socket; and listener_registration_mutex serialises 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_publish and rmw_take are emitted as in rmw_cyclonedds and rmw_fastrtps, so ros2 trace, tracetools_analysis and 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_endpoint replaces drain_subscription, drain_socket, and the inline copies in rmw_take_request and rmw_take_response. Each copy had been deciding its own policy, which is where the delivery gaps lived. DrainTarget now 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 1 per datagram. rmw/event_callback_type.h defines number_of_events as 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_wait always applied that bound; the take-path drains had none.
  • DESIGN.md documents the listener thread and the delivery_fd ordering, 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

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rmw_unix_socket_cpp at Robotics Stack Exchange

Package symbol

rmw_unix_socket_cpp package from rmw_unix_socket_cpp repo

rmw_unix_socket_cpp

ROS Distro
lyrical

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

Lightweight RMW implementation for ROS 2 using Unix domain sockets. Designed for localhost-only communication with minimal resource usage.

Additional Links

Maintainers

  • Abderahmane BENALI

Authors

No additional authors.
README
No README found. See repository README.
CHANGELOG

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_lost counts 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. matched reports 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 fixes ros2 bag record on jazzy, which exited at startup because rosbag2 always asks for message_lost, and image_pipeline's lazy nodes and Nav2's costmap republish, which key off matched. 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: SingleThreadedExecutor and MultiThreadedExecutor still start none. Joined in rmw_shutdown.
  • delivery_fd, so a watched endpoint can still sit in a wait set. The listener signals this eventfd strictly after enqueueing and rmw_wait drains 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 in rmw_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 per rmw_wait.
  • The listener holds up against the calls that race it. A registration that lands while rmw_shutdown runs cannot restart the thread (a listener_stopping flag checked under listener_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-endpoint drain_mutex, held for the receive loop, keeps a publisher's messages in order when the listener and an rmw_wait/rmw_take drain the same socket; and listener_registration_mutex serialises 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_publish and rmw_take are emitted as in rmw_cyclonedds and rmw_fastrtps, so ros2 trace, tracetools_analysis and 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_endpoint replaces drain_subscription, drain_socket, and the inline copies in rmw_take_request and rmw_take_response. Each copy had been deciding its own policy, which is where the delivery gaps lived. DrainTarget now 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 1 per datagram. rmw/event_callback_type.h defines number_of_events as 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_wait always applied that bound; the take-path drains had none.
  • DESIGN.md documents the listener thread and the delivery_fd ordering, 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

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rmw_unix_socket_cpp at Robotics Stack Exchange

Package symbol

rmw_unix_socket_cpp package from rmw_unix_socket_cpp repo

rmw_unix_socket_cpp

ROS Distro
rolling

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

Lightweight RMW implementation for ROS 2 using Unix domain sockets. Designed for localhost-only communication with minimal resource usage.

Additional Links

Maintainers

  • Abderahmane BENALI

Authors

No additional authors.
README
No README found. See repository README.
CHANGELOG

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_lost counts 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. matched reports 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 fixes ros2 bag record on jazzy, which exited at startup because rosbag2 always asks for message_lost, and image_pipeline's lazy nodes and Nav2's costmap republish, which key off matched. 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: SingleThreadedExecutor and MultiThreadedExecutor still start none. Joined in rmw_shutdown.
  • delivery_fd, so a watched endpoint can still sit in a wait set. The listener signals this eventfd strictly after enqueueing and rmw_wait drains 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 in rmw_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 per rmw_wait.
  • The listener holds up against the calls that race it. A registration that lands while rmw_shutdown runs cannot restart the thread (a listener_stopping flag checked under listener_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-endpoint drain_mutex, held for the receive loop, keeps a publisher's messages in order when the listener and an rmw_wait/rmw_take drain the same socket; and listener_registration_mutex serialises 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_publish and rmw_take are emitted as in rmw_cyclonedds and rmw_fastrtps, so ros2 trace, tracetools_analysis and 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_endpoint replaces drain_subscription, drain_socket, and the inline copies in rmw_take_request and rmw_take_response. Each copy had been deciding its own policy, which is where the delivery gaps lived. DrainTarget now 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 1 per datagram. rmw/event_callback_type.h defines number_of_events as 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_wait always applied that bound; the take-path drains had none.
  • DESIGN.md documents the listener thread and the delivery_fd ordering, 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

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rmw_unix_socket_cpp at Robotics Stack Exchange

No version for distro github showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

rmw_unix_socket_cpp package from rmw_unix_socket_cpp repo

rmw_unix_socket_cpp

ROS Distro
jazzy

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

Lightweight RMW implementation for ROS 2 using Unix domain sockets. Designed for localhost-only communication with minimal resource usage.

Additional Links

Maintainers

  • Abderahmane BENALI

Authors

No additional authors.
README
No README found. See repository README.
CHANGELOG

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_lost counts 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. matched reports 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 fixes ros2 bag record on jazzy, which exited at startup because rosbag2 always asks for message_lost, and image_pipeline's lazy nodes and Nav2's costmap republish, which key off matched. 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: SingleThreadedExecutor and MultiThreadedExecutor still start none. Joined in rmw_shutdown.
  • delivery_fd, so a watched endpoint can still sit in a wait set. The listener signals this eventfd strictly after enqueueing and rmw_wait drains 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 in rmw_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 per rmw_wait.
  • The listener holds up against the calls that race it. A registration that lands while rmw_shutdown runs cannot restart the thread (a listener_stopping flag checked under listener_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-endpoint drain_mutex, held for the receive loop, keeps a publisher's messages in order when the listener and an rmw_wait/rmw_take drain the same socket; and listener_registration_mutex serialises 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_publish and rmw_take are emitted as in rmw_cyclonedds and rmw_fastrtps, so ros2 trace, tracetools_analysis and 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_endpoint replaces drain_subscription, drain_socket, and the inline copies in rmw_take_request and rmw_take_response. Each copy had been deciding its own policy, which is where the delivery gaps lived. DrainTarget now 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 1 per datagram. rmw/event_callback_type.h defines number_of_events as 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_wait always applied that bound; the take-path drains had none.
  • DESIGN.md documents the listener thread and the delivery_fd ordering, 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

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rmw_unix_socket_cpp at Robotics Stack Exchange

No version for distro galactic showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

rmw_unix_socket_cpp package from rmw_unix_socket_cpp repo

rmw_unix_socket_cpp

ROS Distro
jazzy

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

Lightweight RMW implementation for ROS 2 using Unix domain sockets. Designed for localhost-only communication with minimal resource usage.

Additional Links

Maintainers

  • Abderahmane BENALI

Authors

No additional authors.
README
No README found. See repository README.
CHANGELOG

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_lost counts 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. matched reports 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 fixes ros2 bag record on jazzy, which exited at startup because rosbag2 always asks for message_lost, and image_pipeline's lazy nodes and Nav2's costmap republish, which key off matched. 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: SingleThreadedExecutor and MultiThreadedExecutor still start none. Joined in rmw_shutdown.
  • delivery_fd, so a watched endpoint can still sit in a wait set. The listener signals this eventfd strictly after enqueueing and rmw_wait drains 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 in rmw_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 per rmw_wait.
  • The listener holds up against the calls that race it. A registration that lands while rmw_shutdown runs cannot restart the thread (a listener_stopping flag checked under listener_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-endpoint drain_mutex, held for the receive loop, keeps a publisher's messages in order when the listener and an rmw_wait/rmw_take drain the same socket; and listener_registration_mutex serialises 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_publish and rmw_take are emitted as in rmw_cyclonedds and rmw_fastrtps, so ros2 trace, tracetools_analysis and 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_endpoint replaces drain_subscription, drain_socket, and the inline copies in rmw_take_request and rmw_take_response. Each copy had been deciding its own policy, which is where the delivery gaps lived. DrainTarget now 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 1 per datagram. rmw/event_callback_type.h defines number_of_events as 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_wait always applied that bound; the take-path drains had none.
  • DESIGN.md documents the listener thread and the delivery_fd ordering, 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

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rmw_unix_socket_cpp at Robotics Stack Exchange

No version for distro iron showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

rmw_unix_socket_cpp package from rmw_unix_socket_cpp repo

rmw_unix_socket_cpp

ROS Distro
jazzy

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

Lightweight RMW implementation for ROS 2 using Unix domain sockets. Designed for localhost-only communication with minimal resource usage.

Additional Links

Maintainers

  • Abderahmane BENALI

Authors

No additional authors.
README
No README found. See repository README.
CHANGELOG

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_lost counts 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. matched reports 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 fixes ros2 bag record on jazzy, which exited at startup because rosbag2 always asks for message_lost, and image_pipeline's lazy nodes and Nav2's costmap republish, which key off matched. 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: SingleThreadedExecutor and MultiThreadedExecutor still start none. Joined in rmw_shutdown.
  • delivery_fd, so a watched endpoint can still sit in a wait set. The listener signals this eventfd strictly after enqueueing and rmw_wait drains 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 in rmw_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 per rmw_wait.
  • The listener holds up against the calls that race it. A registration that lands while rmw_shutdown runs cannot restart the thread (a listener_stopping flag checked under listener_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-endpoint drain_mutex, held for the receive loop, keeps a publisher's messages in order when the listener and an rmw_wait/rmw_take drain the same socket; and listener_registration_mutex serialises 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_publish and rmw_take are emitted as in rmw_cyclonedds and rmw_fastrtps, so ros2 trace, tracetools_analysis and 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_endpoint replaces drain_subscription, drain_socket, and the inline copies in rmw_take_request and rmw_take_response. Each copy had been deciding its own policy, which is where the delivery gaps lived. DrainTarget now 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 1 per datagram. rmw/event_callback_type.h defines number_of_events as 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_wait always applied that bound; the take-path drains had none.
  • DESIGN.md documents the listener thread and the delivery_fd ordering, 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

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rmw_unix_socket_cpp at Robotics Stack Exchange

No version for distro melodic showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

rmw_unix_socket_cpp package from rmw_unix_socket_cpp repo

rmw_unix_socket_cpp

ROS Distro
jazzy

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

Lightweight RMW implementation for ROS 2 using Unix domain sockets. Designed for localhost-only communication with minimal resource usage.

Additional Links

Maintainers

  • Abderahmane BENALI

Authors

No additional authors.
README
No README found. See repository README.
CHANGELOG

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_lost counts 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. matched reports 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 fixes ros2 bag record on jazzy, which exited at startup because rosbag2 always asks for message_lost, and image_pipeline's lazy nodes and Nav2's costmap republish, which key off matched. 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: SingleThreadedExecutor and MultiThreadedExecutor still start none. Joined in rmw_shutdown.
  • delivery_fd, so a watched endpoint can still sit in a wait set. The listener signals this eventfd strictly after enqueueing and rmw_wait drains 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 in rmw_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 per rmw_wait.
  • The listener holds up against the calls that race it. A registration that lands while rmw_shutdown runs cannot restart the thread (a listener_stopping flag checked under listener_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-endpoint drain_mutex, held for the receive loop, keeps a publisher's messages in order when the listener and an rmw_wait/rmw_take drain the same socket; and listener_registration_mutex serialises 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_publish and rmw_take are emitted as in rmw_cyclonedds and rmw_fastrtps, so ros2 trace, tracetools_analysis and 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_endpoint replaces drain_subscription, drain_socket, and the inline copies in rmw_take_request and rmw_take_response. Each copy had been deciding its own policy, which is where the delivery gaps lived. DrainTarget now 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 1 per datagram. rmw/event_callback_type.h defines number_of_events as 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_wait always applied that bound; the take-path drains had none.
  • DESIGN.md documents the listener thread and the delivery_fd ordering, 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

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rmw_unix_socket_cpp at Robotics Stack Exchange

No version for distro noetic showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

rmw_unix_socket_cpp package from rmw_unix_socket_cpp repo

rmw_unix_socket_cpp

ROS Distro
jazzy

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

Lightweight RMW implementation for ROS 2 using Unix domain sockets. Designed for localhost-only communication with minimal resource usage.

Additional Links

Maintainers

  • Abderahmane BENALI

Authors

No additional authors.
README
No README found. See repository README.
CHANGELOG

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_lost counts 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. matched reports 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 fixes ros2 bag record on jazzy, which exited at startup because rosbag2 always asks for message_lost, and image_pipeline's lazy nodes and Nav2's costmap republish, which key off matched. 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: SingleThreadedExecutor and MultiThreadedExecutor still start none. Joined in rmw_shutdown.
  • delivery_fd, so a watched endpoint can still sit in a wait set. The listener signals this eventfd strictly after enqueueing and rmw_wait drains 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 in rmw_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 per rmw_wait.
  • The listener holds up against the calls that race it. A registration that lands while rmw_shutdown runs cannot restart the thread (a listener_stopping flag checked under listener_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-endpoint drain_mutex, held for the receive loop, keeps a publisher's messages in order when the listener and an rmw_wait/rmw_take drain the same socket; and listener_registration_mutex serialises 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_publish and rmw_take are emitted as in rmw_cyclonedds and rmw_fastrtps, so ros2 trace, tracetools_analysis and 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_endpoint replaces drain_subscription, drain_socket, and the inline copies in rmw_take_request and rmw_take_response. Each copy had been deciding its own policy, which is where the delivery gaps lived. DrainTarget now 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 1 per datagram. rmw/event_callback_type.h defines number_of_events as 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_wait always applied that bound; the take-path drains had none.
  • DESIGN.md documents the listener thread and the delivery_fd ordering, 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

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rmw_unix_socket_cpp at Robotics Stack Exchange