Forward kinematics: given joint angles → compute end-effector position.
Inverse kinematics (IK): given target position → compute joint angles. The arm uses CCD (Cyclic Coordinate Descent) — iteratively rotating each joint to minimise distance to target.
Drag the target (white circle) to see IK in action.
Joint Controls
Link 1 length100
Link 2 length80
Link 3 length60
IK iterations8
—End-X (px)
—End-Y (px)
—Dist to target
—Max reach
Mode
🧭 Path Planning Algorithms
A* (A-Star): finds the shortest path using a heuristic to guide search. Combines Dijkstra's cost-so-far with an estimated distance-to-goal (Manhattan/Euclidean).
RRT (Rapidly-Exploring Random Trees): randomly grows a tree from start, biased toward the goal. Ideal for high-dimensional configuration spaces.
Click canvas to place obstacles. Press Run to watch the algorithm find a path.
Algorithm
Grid size20
Animation speed8
—Steps explored
—Path length
👁 Computer Vision Pipeline
Robots "see" the world through a sequence of image processing steps:
Drag objects on the canvas to see real-time detection.
Vision Mode
Blur strength1.5
Edge threshold80
0Objects detected
60Processing FPS
🧠 Control Systems
PID Controller: the backbone of robot motion control. P (Proportional) — react to current error I (Integral) — correct accumulated error D (Derivative) — dampen oscillation
Reinforcement Learning: an agent learns to balance a cart-pole by receiving rewards for staying upright. The neural network maps state → action.
Drag the setpoint to challenge the controller.
Mode
PID Gains
Kp (Proportional)2.0
Ki (Integral)0.1
Kd (Derivative)1.5
—Current error
—PID output
🌐 Swarm Robotics
Swarm robots follow simple local rules that produce complex emergent behaviour:
Separation: avoid crowding neighbours Alignment: steer toward average heading Cohesion: move toward group centre
This is Boids flocking — also used to model fish schools, bird murmurations, and drone swarms. Each robot has no global knowledge, yet the group self-organises.