🤖 Autonomous Robots: A Primer (2D)
Top-down 2D lidar-and-potential-field robot navigation: a fan of sensor rays finds obstacles, an attractive/repulsive force blend steers the robot toward its goal.
This 2D companion runs the same sense-decide-act loop as the 3D original, drawn as a top-down floor plan: a fan of lidar rays measures distance to nearby obstacles, a potential field blends an attractive pull toward the goal with a repulsive push away from obstacles, and the robot turns and accelerates toward the resulting vector each frame.
Top-down 2D lidar-and-potential-field robot navigation: a fan of sensor rays finds obstacles, an attractive/repulsive force blend steers the robot toward its goal.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install