API extension for constants & fields #680
Replies: 4 comments 6 replies
-
This is wonderful, thanks for the write-up! I'm confident we can make this work :-) |
Beta Was this translation helpful? Give feedback.
-
TODOs (from 18fe0ec#r47000979)
|
Beta Was this translation helpful? Give feedback.
-
Hi @pvazteixeira , did we perhaps have a reason not to call the API ‘addField!’ instead? I’m thinking of passing an argument to indicate either Constant, MalleablePrior, or Unknown — from there either Scalar or Vector. |
Beta Was this translation helpful? Give feedback.
-
Hi @pvazteixeira , I got the boxy example to get a little further. There might be a odo relative correlator offset bug again: Caesar.jl/examples/dev/scalar/boxy.jl Lines 292 to 295 in 6edbdb4 The offset between x0a dn x4 is 5 units, and here is what we get out from the above histogram plot on I recall that changed back to Caesar.jl/examples/dev/scalar/boxy.jl Line 247 in 6edbdb4 do not include the estimated odo offset. So we just need to account for the odo somewhere at the last stages (probably after the correlator intensity has been calculated) before the Aliasing Scalar Sampler is built. |
Beta Was this translation helpful? Give feedback.
-
(follow-up on blue sky discussion with @dehann)
Consider the application of terrain-based localization, where elevation measurements are used in conjunction with a map to estimate position. What should the syntax look like in this case?
One way to do this would be to evaluate the measurement likelihood and add it as a factor, e.g.:
In this approach, the map is not captured explicitly through the factor graph, which may prove limiting when implementing new measurement models . One alternative could be to first add the map as a constant (i.e. a fixed/static) parameter:
ScalarField
would capture the elevation map and be used by the solver (by capturing thelikelihoodSampler
-based approach above inside the factor, for instance).The map would then be referenced explicitly when adding a measurement:
Constants stand in contrast to variables (i.e.
addVariable
), in that they are not parameters to be estimated.If, however, this isn't the case, the map should be added as a variable, for example:
In both cases (localization and mapping), the scalar fields are assumed to be static (no variation over time).
Beta Was this translation helpful? Give feedback.
All reactions