Quaxi

A small self-driving car my team built for a course at Queen’s. I wrote most of the code.

Project source

Getting from A to B

The map is 29 intersections and the roads between them. You give the car a spot on the map, it picks the nearest intersection, and A* finds the shortest way there.

A highlighted route runs from the lower-left start to the upper-right goal on the street graph.
Route from Pondside Ave. and Quack St. to Migration Ave. and Mallard St. (6 roads), rerun on my laptop after the course.
Read the route planner

Turning a route into driving

Each intersection stores how to get through it from one road to another: go straight this far, or turn this many degrees. The car looks those up along the route and runs them through a small state machine. The roundabout and parking states never got filled in.

Read the route follower

Finding the lane lines

Keep the yellow and white pixels, find their edges, ignore anything outside a triangle in front of the car, then find straight line pieces (a Hough transform) and average them into one line per side.

Two lane markings on a synthetic road surface.
Test image
Thin white edges follow the two lane markings inside the region of interest.
Edges in front of the car
Two green lines show the fitted lane boundaries over the original markings.
One line per side

These are from a test image I ran after the course.

Read the lane code

Spotting signs

A small TensorFlow Lite model on a Coral accelerator looks for stop, yield, no-entry, and one-way signs, and the camera turns to follow the closest one. A proximity sensor stops the car if something gets too close. The code that reacts to signs is there but switched off in the final version.

Read the detector code