|
|
|
|
|
by a1k0n
4964 days ago
|
|
I'm using box2d (there are at least three box2d javascript implementations; the most impressive is the emscripten port from the actual C++ code: https://github.com/kripken/box2d.js but I'm using an older one for this). I wanted to prototype a simple balancing robot controller, and I hacked this up on the bus to work earlier this week in fact: http://www.a1k0n.net/code/balance.html Click to drop junk. (Sorry, this is totally off-topic, but...)
It's surprisingly easy to make a segway-like balancing robot with perfect sensors. My plan is to add noise in the sensors and limited motor torque, etc. Ideally it would estimate its own kinematic parameters and do an A* search for approximate optimal control. |
|
i don't think what you're saying is totally off topic. box2d is pretty awesome and it's surprisingly easy to get physics simulations up and running using the library.