Plan
The order in which the examples are built, from the host maps of the rigid motions and the core's two additions, through the Levenberg–Marquardt method, to the two examples and their place in CI.
Builds on Examples that run: Implementation
skoro-spatial#
- Add
host::pose_composeandhost::pose_transform, written with the module’scomposeandmatrix, with the graph’s sign convention for the quaternion. Tests:host_pose_maps_agree_with_the_graph.
skoro-core#
- Add
Layout::local, with the compiled inverse retraction cached per target in alocalsfield thatLayout::ofinitializes empty andCloneleaves empty. Tests:local_inverts_retract,local_refuses_as_retract_does. - Add
Observations::observe_value, which reads aPointsto the host and observes it one value per row, deferring a discrete value or a storage of the wrong size toValueShapewhen the set is used. Tests:generated_values_are_observed_row_by_row,a_discrete_generated_value_is_refused.
skoro-linearize#
- Add
Linearizer::objective, the negated density program’s forward pass at a point, per row. Tests:the_objective_is_the_negative_log_density. - Add
minimize.rswithLevenbergMarquardt,Status,Iterate,RowOutcome,Minimized, the privatemarquardt,nielsenandselect_rows, andminimizeitself: per-row damping by row-wise elimination, the trial batched and the decision per row, a row stopping on a step’s promise before its acceptance, and the Fisher assembly refused. Re-export them at the crate’s root. Tests:the_marquardt_diagonal_is_the_column_norms,the_schedule_is_nielsens,the_fisher_assembly_is_refused,non_convergence_is_an_outcome. - Test that the method reaches the mode, its stationarity checked by
decrement, the undamped promise per row (added withminimize.rs), in the terms the stopping rule bounds: the gradient against what a decrement of allows, the Gauss–Newton mode within in the metric of , the linear mode’s excess of in closed form. Tests:levenberg_marquardt_finds_the_mode_on_rotations,levenberg_marquardt_finds_the_linear_gaussian_mean. - Test the method’s behaviour across rows and rejections, on the crate’s own models. Tests:
rows_are_minimized_independently,a_rejected_step_keeps_the_point,rows_at_rounding_converge.
skoro (the examples)#
- Declare the examples’ dev-dependencies (
skoro-normal,skoro-spatial,skoro-linearize,skoro-elimination,faer) and an[[example]]for each ofpose_graphandsliding_windowwithtest = true, withexamples/common/mod.rsopening with#![allow(dead_code)]. Both examples compile as empty programs returningOk(()). - Write
common/scenario.rs:Scenario,Scales,circuit,open_pathwith the range of 8.5 m (refusing a landmark whose sightings are not an interval) andfirst_sightings. Tests:the_scenarios_are_sighted. - Write
common/model.rs:Tickandtick, every term of the model as oneNormal::on(...).score(...), the odometry addressed under the tick it retires with. - Write
common/laplace.rs:normalized_errors,Calibration,calibration, and the constantsCHI2_6_90,CHI2_3_90,SLOPE_6andSLOPE_3. Tests:the_chi_squared_constants. - Write
common/report.rs: the printing, and the checks as errors that name the figures. - Write
pose_graph.rs: the circuit generated for rows, the start on the host,minimize, the decrements, the bound on , the calibrations of the poses and the landmarks, and the report. Tests:pose_graph. Measure its run time in release and report it in the commit. - Write
common/live.rs(Live, the window’s handles, observed rows and landmark sightings) andsliding_window.rs: the window over the open path with , retirement and replacement at the window’s mode, the batch on the same path, and the filtering calibration and the gap reported and not checked. Tests:sliding_window.
CI and the checks#
- Add
cargo run --release -p skoro --example pose_graphand... --example sliding_windowto the Rust job of.github/workflows/ci.ymlaftercargo test, and the same two lines to the## Checkslist ofAGENTS.md.
Done when#
cargo fmt --all --check && cargo clippy --workspace --all-targets -- -D warningspasses.cargo test --workspacepasses, and so do both examples undercargo run --release.cargo test --workspace --features wgpupasses on a machine with an adapter, since the new forward passes and retractions run on it, and the commit that adds them says so.bin/wf checkpasses, and the site builds:cd site && pnpm check && pnpm lint && pnpm test && pnpm build.