Graph-Based Autonomous Navigation & SLAM in Duckietown

Duckiematrix camera view beside the project’s directed navigation graph and planned route.

University of Tübingen, Germany: A robot that can follow a lane still needs a way to choose a destination and reach it. Kirian Fink, Nils Klute and Arda Agacdelen tackled that challenge in their Autonomous Robotics with Duckietown class project: graph-based autonomous navigation & SLAM for a Duckiebot, connecting localization, route planning and intersection control.

Their system builds on Duckietown’s indefinite navigation pipeline, connecting lane following and intersection handling to a selected destination. A map and a direction-aware graph guide the robot’s existing driving behaviors along the planned route. The team developed it for the Master’s practical in the Autonomous Vision Group, University of Tübingen, in summer 2026.

Project Resources

From recorded motion to a navigation graph

To build the map, the team recorded a drive and used RTAB-Map to combine camera observations with estimates of motion from the wheels. When the Duckiebot returned to a place it had already visited, the team linked the two visits by hand. These links, known as loop closure, helped correct the drift that had accumulated along the way.

The recording contained many more positions than the route planner needed. The team grouped nearby positions when their headings agreed, keeping opposite lanes distinct even where they ran close together. They then connected the groups in the direction of travel and filtered out shortcuts that crossed the track. The resulting graph showed which roads the Duckiebot could take from each point on the map.

Simulation demonstration from the project, showing the camera view and navigation interface. Kirian Fink, Nils Klute and Arda Agacdelen. Watch on YouTube.

Planning a route and choosing a turn

Once the Duckiebot knew roughly where it was and which way it faced, the planner could match it to a lane on the graph. It used A* to find a route to the target while ruling out sharp reversals. If the robot strayed, the planner could calculate a new route from its updated position.

At a junction, the next point on the route could be too close to tell the robot which way to turn. The planner looked several points farther ahead, where the direction of the outgoing lane was clearer. Comparing that direction with the Duckiebot’s heading produced a left, straight or right command.

The camera supplied a different piece of information: which branches were visible at the junction. The team used DBSCAN to group red markings in the image. Their positions and angles indicated which branches were present, while the planned route told the robot which one it needed.

To execute the turn, the controller switched from lane following to a calibrated steering command for a fixed time, then resumed lane following. Because the command ran for a preset duration, the robot’s starting angle mattered.

Graph diagram with a red localized node, gold route, orange lookahead node and magenta turn-angle line.
Lookahead-based turn selection. Figure from the project report by Kirian Fink, Nils Klute and Arda Agacdelen.
Finite-state-machine diagram showing the navigation states and transition conditions.
Finite-state machine connecting lane following and intersection maneuvers. Project figure by Kirian Fink, Nils Klute and Arda Agacdelen.

Two localization approaches, one planning problem

The team compared two ways to estimate the Duckiebot’s position and heading: their extended Kalman filter (EKF) combined wheel encoder measurements with position estimates from AprilTags, while their SLAM-based approach localized the robot against the map they had prepared.

In their technical report, the authors tested both approaches on the same 18 start–target pairs across nine regions in Duckiematrix. The Duckiebot reached its target 38% of the time with the EKF and 83% with SLAM-based localization. An arrival still counted if the robot had replanned along the way.

The authors also measured how often the robot successfully took the turn the planner requested. It did so 78% of the time with the EKF and 96% with SLAM-based localization. Both comparisons describe performance in simulation.

Table comparing EKF and SLAM metrics: Arrival Accuracy is 0.38 for EKF and 0.83 for SLAM; Intersection Turn Precision is 0.78 for EKF and 0.96 for SLAM.
Authors’ simulation comparison of EKF and SLAM localization. Quantitative results from the technical report.

Integrating mapping, perception and control

The project identifies concrete opportunities to improve the navigation pipeline. For example, observing that manual loop closure improved the map preparation, that tilted Duckiebot poses at stop lines can affect fixed turn profiles as well as AprilTag (signs) detection, and red vertical traffic signs can produce false stop-line detections. These observations connect navigation performance to the perception and control stages that execute each route.

The team also tried fitting Duckietown road tiles to a smoothed driving trajectory to reconstruct the street layout. For future work, they proposed letting the robot explore and map unfamiliar intersections on its own.

Two rows compare smoothed and template-fitted trajectories, tile classifications and reconstructed street graphs.
Alternative mapping pipeline: trajectory smoothing, tile fitting and refinement. Project figure by Kirian Fink, Nils Klute and Arda Agacdelen.

Explore the implementation

For students building autonomous systems, try following one intersection through the team’s graph-navigation repository. Start with the route the planner selected. Where did it expect the Duckiebot to be, which branches did the camera detect, and which steering command followed? Tracing that one decision through the code shows how perception, planning and control worked together.

The repository includes the project report, demonstrations and setup instructions if you’d like to try the system yourself.

Authors

Kirian Fink, Nils Klute and Arda Agacdelen developed the project for the University of Tübingen’s Autonomous Robotics with Duckietown practical in summer 2026.

Kirian Fink

Kirian Fink contributed online mapping, trajectory smoothing, tile fitting and belief-propagation refinement.

Nils Klute

Nils Klute worked on SLAM mapping and localization, identified branches at intersections and calibrated the robot’s turns. He also helped integrate the system and evaluate it in the experiments.

Arda Agacdelen

Arda Agacdelen is an AI engineering student at Hacettepe University. For this project, Arda developed the graph and A* planning components, worked on lookahead turns and replanning, and integrated these decisions into the robot’s state machine and interactive interface.

Institution: University of Tübingen. The project was completed in the Autonomous Vision Group’s Autonomous Robotics with Duckietown course (summer 2026).

Learn More