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
Calibration! #12
Merged
Merged
Calibration! #12
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…el (boy this is a lot of code change)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
FormaK aims to combine symbolic modeling for fast, efficient system modelling with code generation to create performant code that is easy to use.
This design provides an extension to the fifth of the Five Keys "C++ interfaces to support a variety of model uses".
When defining a model, in theory everything can be estimated as a state or provided as a control input; however, having the ability to provide calibrations can be helpful or even essential. For example, in the NASA rocket dataset the position of the IMU on the rocket is calibrated ahead of time so it doesn't need to be estimated online.
For the case of a suite of ranging sensors (say ultra-wideband time of flight sensors), the calibration term allows for easily setting up a single model with different calibrations for the known positions of each sensor in the reference frame. Without the calibration, each pose would be arbitrary and require solving a problem beyond what is suited to a Kalman Filter. With the calibration, the sensor model can be defined once and then calibrated multiple times at runtime based on how the sensors are set up for a particular use case.
The Calibration use case also provides additional functionality on top of the Control inputs. The two categories conceptually overlap as "known" values that are accepted in the state update; however, the Calibration values are also available within the sensor model. With just a State and Control input, the state needs to accept control inputs as a pass through to sensor models. This adds a compute penalty for computations with the state.
Supporting calibration is a big step forward in functionality for FormaK that enables a variety of new model use cases.