Robot Convoys in ROS 2: Breadcrumb Trails, Gap Control, Failover and a CBF Safety Layer

A plain-language guide to robot convoys: why the trail belongs in the odom frame, how feed-forward plus gap feedback keeps spacing steady, what to do when the leader fails, and how a barrier function keeps formations collision-free.

In this article

  • The core idea: follow the trail, not the leader
  • Where you store the trail matters
  • Holding a steady gap
  • When the leader fails
  • Formations, and why they need a safety layer
  • What I would check first on your own convoy