HomeRobotics & KinematicsRobot Crowd Navigation 2D — Reciprocal Collision Avoidance

Robot Crowd Navigation 2D — Reciprocal Collision Avoidance

Interactive 2D top-down simulator: an event-security robot patrols a crowded plaza using reciprocal velocity obstacles (ORCA) to avoid moving pedestrians, with tunable yield-share, sensing radius, avoidance time horizon and live collision-avoidance readouts, plus drag-to-pan and scroll-to-zoom.

Robotics & Kinematics2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-robotics-topic-98 ↗ Open standalone

An event-security robot patrols the perimeter of a crowded plaza, viewed from directly above, while dozens of pedestrians wander between their own goals. Every agent — robot included — resolves collisions with the same reciprocal velocity-obstacle (ORCA) math used by real crowd-navigating robots and multi-agent path planners: nearby pairs compute a minimal avoidance vector, split responsibility for it, and iteratively project their preferred velocity onto the resulting half-plane constraints. Tune the crowd density, the robot's patrol speed, how far it senses neighbors, how much of the avoidance burden it takes on versus leaving to pedestrians, and its avoidance time horizon, then watch the live speed, nearest-neighbor distance, active-constraint and near-miss readouts respond in real time. Drag the plaza to pan and scroll to zoom; toggle velocity vectors and the robot's active constraint lines to see the linear-programming solve happen frame by frame.

⚙ Under the hood

Top-down 2D simulator: an event-security robot patrols a crowded plaza using reciprocal velocity obstacles (ORCA) to avoid moving pedestrians, with tunable yield-share, sensing radius, avoidance time horizon and live collision-avoidance readouts, plus drag-to-pan and scroll-to-zoom over the plaza.

roboticspath planningcollision avoidancemulti-agentORCAcrowd simulation

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

What did you find?

Add reproduction steps (optional)