Inter-Process Communication (IPC) for Robotics: Shared Memory, Pipes & DDS

How robot processes talk: pipes, shared memory, sockets, message queues, and ROS 2 DDS with Linux examples and latency tradeoffs.

In this article

  • IPC in 30 Seconds
  • The Robot Communication Stack (All Layers)
  • IPC Mechanisms Compared
  • Pipes and FIFOs
  • Shared Memory on Linux
  • Message Queues
  • ROS 2 as Distributed IPC
  • Processes vs Threads vs Components
  • Microcontroller ↔ Linux: Not IP, Still IPC
  • Choosing the Right IPC
  • Debugging IPC on a Robot