Shared memory transport for ROS 2 images and point clouds
Overview
Maik13579 introduces ros2_shm_sensor_transport, a shared-memory library for ROS 2 that moves large sensor payloads without relying on DDS serialization. The tool supports Image, CompressedImage, and PointCloud2 types with C++ and Python APIs, offering benchmarks where C++ intra-process communication achieved 0.038 ms latency versus 0.417–0.857 ms for other paths under specific test conditions.
Generated from attributed reports · Updated
Event evidence and corrections
0 attributed source owners. Ownership does not establish independent confirmation. Quantities are reported separately and are never added together.
Reported quantity · frames received: 1200 other · reported trials
“comparing normal ROS subscriptions, direct SHM, a SHM relay, and C++ intra-process communication. The publisher is C++ in every case; subscribers are either C++ or Python. For 256 KiB at 240 Hz , every path received all 1,200 frames: Subscriber Normal ROS median latency Direct SHM Python 0.857 ms 0.666 ms C++ 0.417 ms 0.392 ms C++ intra-process communication was still much faster at 0.038 ms A bit of context for tho”
Exact source · revision 2Source owner not reported
Reported quantity · median latency (Direct SHM Python): 0.666 other · Basis not reported
“comparing normal ROS subscriptions, direct SHM, a SHM relay, and C++ intra-process communication. The publisher is C++ in every case; subscribers are either C++ or Python. For 256 KiB at 240 Hz , every path received all 1,200 frames: Subscriber Normal ROS median latency Direct SHM Python 0.857 ms 0.666 ms C++ 0.417 ms 0.392 ms C++ intra-process communication was still much faster at 0.038 ms A bit of context for tho”
Exact source · revision 2Source owner not reported
Reported quantity · median latency (Direct SHM C++): 0.417 other · Basis not reported
“comparing normal ROS subscriptions, direct SHM, a SHM relay, and C++ intra-process communication. The publisher is C++ in every case; subscribers are either C++ or Python. For 256 KiB at 240 Hz , every path received all 1,200 frames: Subscriber Normal ROS median latency Direct SHM Python 0.857 ms 0.666 ms C++ 0.417 ms 0.392 ms C++ intra-process communication was still much faster at 0.038 ms A bit of context for tho”
Exact source · revision 2Source owner not reported
Reported quantity · median latency (C++ intra-process): 0.038 other · Basis not reported
“comparing normal ROS subscriptions, direct SHM, a SHM relay, and C++ intra-process communication. The publisher is C++ in every case; subscribers are either C++ or Python. For 256 KiB at 240 Hz , every path received all 1,200 frames: Subscriber Normal ROS median latency Direct SHM Python 0.857 ms 0.666 ms C++ 0.417 ms 0.392 ms C++ intra-process communication was still much faster at 0.038 ms A bit of context for tho”
Exact source · revision 2Source owner not reported
Reported quantity · camera rate: 60 other · Basis not reported
“ed for other data. The sensor subscribers also have a built-in rate_limit_hz option. If your camera publishes at 60 Hz but you only want to run a Python machine learning model at 10 Hz, you can limit how often the processing callback runs directly on the subscriber. There’s no need for a separate throttle node, and other subscribers can keep processing at the full camera rate. One part I find especially handy is the”
Exact source · revision 2Source owner not reported
Reported quantity · model rate: 10 other · Basis not reported
“ed for other data. The sensor subscribers also have a built-in rate_limit_hz option. If your camera publishes at 60 Hz but you only want to run a Python machine learning model at 10 Hz, you can limit how often the processing callback runs directly on the subscriber. There’s no need for a separate throttle node, and other subscribers can keep processing at the full camera rate. One part I find especially handy is the”
Exact source · revision 2Source owner not reported
Report timeline
Follow attributed reports and material updates.
- ROS Discourse — Community updatesSignalShared memory transport for ROS 2 images and point clouds
Maik13579 introduces ros2_shm_sensor_transport, a shared-memory library for ROS 2 that moves large sensor payloads without relying on DDS serialization. The tool supports Image, CompressedImage, and PointCloud2 types with C++ and Python APIs, offering benchmarks where C++ intra-process communication achieved 0.038 ms latency versus 0.417–0.857 ms for other paths under specific test conditions.
Event coverage history
There is not enough continuous observation data to show a trend.
Timezone · UTC
Article dates follow your selected timezone. Briefing editions use Hong Kong time (UTC+8).