01 / Trajectory
Jerk-limited move
A rest-to-rest move between two limits on velocity, acceleration and jerk. The profile is the shortest one that respects all three, which is why the acceleration ramps rather than steps.
Showcase
Each panel calls the library compiled to JavaScript. Move a control and the curve is recomputed in MoonBit, not in the page: the browser only draws the columns it receives.
01 / Trajectory
A rest-to-rest move between two limits on velocity, acceleration and jerk. The profile is the shortest one that respects all three, which is why the acceleration ramps rather than steps.
02 / Planning
Unit-cost edges on a four-connected grid. A* and Dijkstra return the same route when they both find one; A* reaches it after looking at fewer cells. Click a free cell to wall it off.
03 / Control
The controller drives a plant with a gain and a time constant. The integrator is held while the output is saturated and the error would push it further out, so a long call does not wind up.
04 / Estimation
A constant observed through noise. Process noise and measurement noise set how much the estimate trusts the model against the sensor; the band is two standard deviations of the filter's own covariance.
05 / Modern control
The same double integrator under an infinite-horizon gain and under a finite-horizon plan re-solved every step. The two agree on the shape and differ on how hard they push at the start.
06 / Path following
Both start off the path and drive a bicycle model. Pure pursuit aims at a point ahead on the circle; Stanley corrects heading and lateral offset. On a curve their steady behaviour differs.
07 / Kinematics
A body twist is turned into wheel speeds, then back into a twist, then integrated into a pose. The wheels run straight, then turn in place, then straight again.
08 / Trajectory
Two jerk-limited moves of different lengths, given the same limits, arrive together: the longer one sets the clock and the shorter one is stretched to it. Both keep their own shape, so the faster axis simply accelerates less.
09 / Planning
The same state space the car uses to join two poses is the one a sampling planner searches, so the route is made of arcs and reversals rather than straight lines. The two shortest-path modes ignore the wall, as a shortest path does; the tree threads the gap.
10 / Kinematics
Three parallel arms hold one platform, so a platform position has three arm angles and no single closed form per arm. The cell solves them by iterating on its own forward map, then reports where the platform actually landed.