lucasw

@lucasw0.bsky.social

https://github.com/lucasw Interested in rust programming & robotics

The Jolt Physics 'VehicleConstraintsTest C++ wrapped in rust using cxx- it's working as well as I need it to though I'm not sure if wheel friction is right (are wheels spinning faster than vehicle speed over the ground?). The build process isn't ideal but is workable. github.com/lucasw/jolt_...

lucasw@lucasw0.bsky.social · 12mo ago

Starting over with getting a Jolt physics vehicle simulation into rust- going to try to put a big chunk of it into C++, then use cxx to manage that through a high level interface to supply inputs, step the sim, and get new state after the step update.

Starting over with getting a Jolt physics vehicle simulation into rust- going to try to put a big chunk of it into C++, then use cxx to manage that through a high level interface to supply inputs, step the sim, and get new state after the step update.

I didn't get far with vehicle physics using bevy & rapier physics when I tried a few months ago, but now diving back in- I need physics and I'm willing to wrap C++ for rust, perhaps with bullet, but it turns out there's Jolt github.com/jrouwe/JoltP... and jolt-rust github.com/SecondHalfGa...

GitHub - SecondHalfGames/jolt-rust: Rust bindings to Jolt Physics

Rust bindings to Jolt Physics. Contribute to SecondHalfGames/jolt-rust development by creating an account on GitHub.

github.com

Can send udp packets out of the stm32h753 with embassy now github.com/lucasw/misc_... (and the blinky leds are still blinking, which means the async is still asyncing)

lucasw@lucasw0.bsky.social · last yr.

This does blinky leds in embassy, has to use newer-than-released embassy because of github.com/embassy-rs/e... (maybe downgrading would have worked too?) github.com/lucasw/misc_... Next step is udp send/recv, after that the postcard & sntpc stuff should be easy.

Had a gig wrap up a little earlier than expected, I should have availability starting July or so. As always: if you need help with Embedded, Rust, or similar things, shoot me a message! If you're a user of postcard, p-rpc, or are interested in the more experimental new ergot: shoot me a message!

nalgebra with no_std got me the error "the trait `RealField` is not implemented for `f32` ... required for `f32` to implement `SimdRealField`" when trying to make a Rotation2 with an angle. Solution: use libm: nalgebra = { version = "0.33.2", default-features = false, features = ["libm"] }

Optional function as parameter to another function pub fn foo<F: Fn(f64) -> f64>( ... my_fn: Option<&F> ) call it with None like this: foo(..., None::<fn(f64) -> f64>.as_ref())