New Tool Makes Robot Cameras Faster Without DDS Tuning
Robots and self-driving cars could see and react faster, without expensive hardware upgrades.
Robot systems often use DDS (data distribution service) to send sensor data like camera images between programs. But DDS can be slow and tricky to tune, especially for large data. A new open-source tool called ros2_shm_sensor_transport solves this by storing big sensor payloads in shared memory and sending only small metadata messages via DDS. This means the heavy data doesn't go through DDS serialization and transport, making it faster and simpler.
The tool works with images, compressed images, and 3D point clouds. It supports both C++ and Python, and integrates with common ROS tools like RViz and image_transport. In benchmarks, it delivered all frames at high rates, while normal DDS subscriptions sometimes dropped frames. It also includes a rate limiter to help slow subscribers, like Python machine learning models, keep up without extra nodes.
The catch: it only works on Linux and still requires copying data into and out of shared memory. Also, slow subscribers can miss frames if they can't keep up. But for many robotics applications, this is a big win because it reduces latency and avoids DDS tuning headaches. The developer notes that DDS has its own shared-memory options, but they often require bounded message types, which standard ROS messages don't satisfy.
Overall, this tool could make robot vision systems more responsive and easier to develop, especially for those using ROS 2. It's available now, and the developer is sharing benchmarks and code for others to try.
- Speeds up robot vision by using shared memory for large sensor data, bypassing slow DDS settings.
- Works with images and 3D point clouds, and supports both C++ and Python.
- Benchmarks show it delivers all frames at high rates, while normal DDS sometimes drops frames.
Why It Matters
Faster robot vision means safer self-driving cars, quicker drones, and more responsive automation in factories.