Cooperative Driving Simulation: Bridging CARLA to ROS 2

A plain-language guide to cooperative autonomous driving in simulation: why vehicles share intent, how a CARLA to ROS 2 bridge works, and how to test several cars together.

In this article

  • The selfish car problem
  • Connected is not the same as cooperative
  • Why test this in a simulator
  • How the simulator is built: server and clients
  • The bridge: one node, two languages
  • From one vehicle to several
  • A worked example: the hidden cyclist
  • Trade-offs to keep in mind
  • A short checklist