The robot is put inside an unknown environment, and the goal is to map the maze autonomously. From the occupancy grid map, the points at the edge of the known region are grouped together using Agglomerative hierarchical clustering, and the closest centroid is chosen as the next goal point.
Link to code: [ Ссылка ]
Ещё видео!