-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question on how to implement simple kalman filter #20
Comments
Have you seen the examples, e.g. https://github.com/strawlab/adskalman-rs/blob/main/examples/src/bin/online_tracking.rs ? |
Thank you for your answer! Indeed, i did not see this example yet as I missed looking into the bin/ subfolder 😅 I assume the relevant lines are these: adskalman-rs/examples/src/bin/online_tracking.rs Lines 17 to 27 in f7c20fc
However, I am not sure what exactly I need to adjust here:
Please excuse me for my lack of understanding 😅 |
That model has a 4D state (2D XY position, 2D XY velocity) and 2D observation (XY position only). If that suits your case, yes, you can use this directly. Otherwise you'll have to implement your own transition model and observation model. You can use the rest of the example code as a basis, I hope. |
Dear @astraw, I managed to implement my own Kalman filter for a 2d state (1D position, 1D velocity). Now I would like to use it with actual time measurements but |
@Hoeze Glad to hear it. Yes, you can simply rebuild the motion model each time you have a new dt. You can check your math by ensuring that the covariance grows by the same amount if you have either A) two timesteps of half the duration vs B) a single timestep at normal duration. |
Hi, I am trying to build an ESP32-based scale, but I am struggling to use this library for improving the measurement estimates.
Basically, I try to implement a simple kalman filter as described in this C++ library:
https://github.com/denyssene/SimpleKalmanFilter
Could you maybe give me some guidance on how to translate this to your library?
Your help would be highly appreciated :)
The text was updated successfully, but these errors were encountered: