Home▸Robotics & Kinematics▸Autonomous Systems: Sense-Plan-Act Simulator (2D)

🚗 Autonomous Systems: Sense-Plan-Act Simulator (2D)

2D top-down sense-plan-act loop: a lidar fan of rays finds obstacles, a reactive controller steers the vehicle around them. Tune sensor range, steering gain, speed and obstacle density.

Robotics & Kinematics2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-autonomous-systems ↗ Open standalone

This 2D companion drives the same lidar-fan sense-plan-act loop as the 3D original, viewed from directly above: a vehicle runs an elliptical track while a fan of seven virtual lidar rays scans ahead for obstacles, and a reactive controller converts what the rays see into a lateral steering offset — the same avoidance formula, just rendered on a flat canvas instead of an orbitable WebGL scene.

⚙ Under the hood

2D top-down sense-plan-act loop: a lidar fan of rays finds obstacles, a reactive controller steers the vehicle around them. Tune sensor range, steering gain, speed and obstacle density.

autonomousroboticslidarself-drivingcontrol systems

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)