ROS 2 Accelerated Memory Transport: Keeping Data on the GPU

A concept guide to ROS 2 accelerated memory transport: the buffer type, vendor backends, CPU fallback, the CUDA pool and event handling, and when GPU-resident messages pay off.

In this article

  • Key idea and when to use it
  • The problem: ROS does not know where the data lives
  • A buffer type instead of a byte array
  • Fallback is the compatibility story
  • What the CUDA implementation adds
  • What subscriber code looks like
  • The latency argument
  • When it is worth the trouble
  • A community library with the same goal
  • Our take: where this fits
  • Further reading
  • Open questions