Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

Multicalc: Scientific computing for real time embedded systems in no_std rust

Дата публикации: 28-07-2026 03:18:52



multicalc is my rust crate aimed at scientific computing for real-time embedded systems, built from scratch in one integrated package. Estimation, control, kinematics, Lie groups, calculus, autodiff and linear algebra in stable no_std Rust with no heap, no panics and no unsafe.
What you're seeing: A 2D robot that starts up not knowing where it is, then localized itself using a 2,000-particle filter on a noisy lidar. Then, a 5-state Extended Kalman Filter fuses wheel odometry, an IMU, and GPS into a centimetre-level pose for continous state estimation. Finally, a Follow-the-Gap controller laps a course of obstacles. I run this control loop at a 1kHz rate, observing zero collisions over 600,000 ticks.
Highlights
- 1 kHz loop rates: No heap, fixed-size types, bounded work per call. Results in a full robotics control loop at 1 kHz.
Tested on six embedded targets Every commit is built and tested on the x86_64 and aarch64 Linux hosts; and on four bare-metal ABIs (thumbv7em soft-float, thumbv7em hardware-FPU, thumbv6m, and riscv32imc). QEMU is used to test them in a no_std, no-alloc, and no-panic environment.
Measured against external references Each module's results are verified against established libraries like numpy, scipy, and filterpy fixtures within ~1 ulp, thus validating the rust implementation. See the benchmarks attached in the repo.
Pure, safe and panic-free. #![forbid(unsafe_code)], no C dependencies, and unwrap/panic denied on library paths; every fallible call returns a typed error. Types are fixed-size and stack-allocated, and iteration counts are bounded.
The community headline: multicalc is now past a dozen contributors overall! Extremely thankful to the support so far.
Where it's headed: A quadcopter/drone with 15-state error-state EKF with IMU bias estimation, LQR and geometric attitude control, minimum-snap trajectories through a flying course, and notch filters for rotor vibration. multicalc is also aiming to support importing models directly from the MuJoCo Menagerie, so the physics is already inline with industrial standards.
Come build it! There are 50+ open good first issues right now, each small and self-contained, out of 85 open issues total. If you like numerical methods, autodiff, embedded Rust, or robotics, I'd love the help!
* crates.io: crates.io: Rust Package Registry
* Github: GitHub - kmolan/multicalc-rust: Scientific computing that fits on a microcontroller. Estimation, control, kinematics, Lie groups, calculus, autodiff and linear algebra in stable no_std Rust with no heap, no panics and no unsafe. Run the same code on your laptop and your Cortex-M0. · GitHub
* Good first issues: Issues · kmolan/multicalc-rust · GitHub
2 posts - 2 participants
Read full topic

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Multicalc: Scientific computing for real-time embedded systems in no_std Rust014.3610-08-2026
2Multicalc 0.6.0: a no_std multivariable calculus library now looking for contributors5728-06-2026
3Qhull_rayon v0.1.0010.411-08-2026
4Maplike - Crate with traits for abstract containers and operations on them2706-07-2026
5My state lib PurrGress012.6213-08-2026
6Siffra - a GPUI calculator that supports dimensional analysis011.0407-08-2026
7My second crate :D : Karatepe, a localisation library06.8411-08-2026
8[Show] taetype: Pure Rust font engine with zero unsafe code010.1927-07-2026
9Tokcost — zero-dependency CLI for exact LLM token counts (hand-rolled BPE)012.7402-08-2026
10Mqtt-typed-client 0.2: a type-safe async MQTT client on top of rumqttc5708-07-2026

Классификация: . Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 9.4. Источник: users.rust-lang.org.