Sense, plan, estimate and control in stable no_std Rust in one integrated package, with no heap and no unsafe. Run the same code from your laptop to a Cortex-M4.
A simulated demo: A Franka Panda loaded from its MuJoCo model, on 1 kHz computed-torque control. It carries a payload that its model does not know about, also gets random pushes every 4 seconds. A momentum observer detects the pushes from the joint readings alone, and the hand holds its path. Open it in your browser.
What's new
- Arm kinematics: kinematic trees, Jacobians with singularity checks, damped least-squares IK, and collision queries.
- Arm dynamics: RNEA, CRBA and ABA, validated against Pinocchio.
- Arm control: computed torque, joint and Cartesian impedance, and sensorless contact detection.
- Motion and planning: trapezoid and S-curve profiles, A*, Theta*, RRT*, PRM and occupancy mapping, all with no heap.
- MLP inference: run a learned policy straight from its flat weight buffer.
- Model loading:
multicalc-robot-modelloads MJCF and URDF files, now on crates.io.
Still true, and still enforced by CI
- Tested on real silicon. The Franka dynamics agree with Pinocchio to
1e-10on a Cortex-M4F, a Cortex-M33 and an RV32IMC. The full arm tick takes 0.70 ms inf32on a 100 MHz Cortex-M4F. - Six targets.
x86_64andaarch64Linux hosts plus four bare-metal ABIs under QEMU. - Measured against external references. 183 checks against NumPy, SciPy, MuJoCo, Pinocchio, mpmath and FilterPy.
The community headline: 27 contributors so far, and 14 of them in this release. Thank you all!
Where it's headed: analytical IK for 6-DoF arms, LQR gains tuned by the exact gradient of a closed-loop rollout, and showcases for planning and MLP policies.
Come build it. 23 open good first issues right now, each small and self-contained. If you like embedded Rust, robotics, autodiff or numerical methods, I'd love the help.
- Site and browser demos: multicalc · Robotics for microcontrollers
- crates.io: crates.io: Rust Package Registry
- GitHub: GitHub - kmolan/multicalc-rust: Robotics for microcontrollers. Sense, plan, estimate and control in no_std Rust in one integrated package. Tested on real hardware: run the same code from your laptop to a Cortex-M4. · GitHub
- Good first issues: Issues · kmolan/multicalc-rust · GitHub
1 post - 1 participant
![[AI] Cargo prune - delete old incremental build artifacts](https://emoji.discourse-cdn.com/twitter/wink.png?v=16)