Autonomous Road Crossing with a Mobile Robot
A behavior-tree controller that lets a mobile robot cross roads safely by detecting and tracking surrounding vehicles, deciding moment-to-moment whether it is safe to move forward. Evaluated across five simulated scenarios and validated on real hardware.
How it works
Perceive
The robot tracks the position and motion of every vehicle around it, projecting where each one will be over the next few seconds.
Decide
A behavior tree continuously evaluates whether moving forward would risk a collision. If so, it holds the robot in place and re-checks.
Cross
Once a sufficient gap appears, the robot commits and crosses at up to 1 m/s, keeping a safe clearance to every vehicle.
Simulation results
Each run shows the trajectory (robot in magenta, vehicles in other colours), the velocity profile, and the clearance to each vehicle over time. The minimum clearance is marked on the distance plot.
Three-lane traffic
The robot edges out, holds while three vehicles pass, then crosses. Closest approach 0.54 m.
No safe gap
Dense traffic with no sufficient gap. The controller correctly refuses to move forward (511 safety holds) and never crosses — it keeps a 1.74 m margin rather than risk a collision.
Tight gap
A gap opens after a short wait; the robot accepts it and crosses, keeping a 1.0 m margin.
Clear road
The road is clear at start — no holds triggered, so the robot crosses immediately in 4.3 s.
Crossing traffic
The robot waits out the approaching vehicles, then commits to the crossing with a comfortable 1.0 m margin.
Three vehicles
Three vehicles with staggered timing; the robot threads the gap after a brief hold.
Heavy waiting
The hardest run: 659 safety holds across 26 s before a gap finally allows a tight 0.52 m crossing.
Four vehicles
Four vehicles share the road; the robot sequences its move to cross safely with a 0.85 m margin.
Real-world validation
The same controller was deployed on a real mobile robot and tested on an outdoor road. The robot perceived passing vehicles, waited for a safe gap, and completed the crossing autonomously.
Part of my bachelor's thesis at CTU FEE, awarded the Dean's Award (2023).