Graph-Based Autonomous Navigation & SLAM in Duckietown
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
- Objective: Navigate between selected targets in a Duckietown urban environment.
- Approach: Directed graphs, A* planning and EKF / SLAM localization.
- Authors: Kirian Fink, Nils Klute and Arda Agacdelen · University of Tübingen
- Platforms: Physical Duckiebot DB21J4; virtual DB21M in Duckiematrix.
- Course: Autonomous Robotics with Duckietown, Department of Computer Science, Dr. Wenjing Bian
In Summary
The team recorded a drive, turned it into a map of the lanes and used A* to plan a route to a selected goal. They then tested how the Duckiebot’s estimate of its own position affected the journey. In Duckiematrix, it reached its destination more often with SLAM-based localization than with the team’s extended Kalman filter.
Figures and animation: Kirian Fink, Nils Klute and Arda Agacdelen. Project repository and technical report.
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.
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.
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.
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.
Institution: University of Tübingen. The project was completed in the Autonomous Vision Group’s Autonomous Robotics with Duckietown course (summer 2026).
Similar Work
Explore related Student Projects on EKF SLAM, intersection detection and graph-based route planning.



































