Get the latest tech news

Model Predictive Control in the Browser with WebAssembly


Commentary on software, robotics, and computer vision.

One advantage of this approach is that changes in physical system parameters (masses, drag coefficients, etc) are naturally accounted for by the dynamics model $f$, provided they can be adequately measured. I found that values in this range empirically produced a reasonable tradeoff between fewer optimization iterations and keeping the number of decision variables comparatively low. Typically when I find an issue, I save a log of the system state to JSON and then load this offline in a Python script (the optimization is also wrapped via nanobind) for further exploration.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of browser

browser

Photo of model

model

Photo of predictive control

predictive control

Related news:

News photo

Show HN: Routing24 – Free route optimization in the browser

News photo

Mistakes from building a model to scalp concert tickets

News photo

GitHub’s Copilot goes multi-model and adds support for Anthropic’s Claude and Google’s Gemini