Plan
The core's types stored up to a group and their checks, the linearizer's refusal of a point that is not finite, skoro-spatial's Cayley chart and the maps of the groups, and the g2o reader, its tests and its example, built in that order, each task a commit with its tests.
Each task is one commit, and the workspace compiles and passes its tests after each. The design of
every item is in the implementation companion; the tests named are those of
its Tests, each in exactly one task, run at both precisions through precision_tests! wherever the companion compares a pass. After each task that touches
skoro-spatial, every file a site page quotes by line range stays at least as long as its ranges
reach, so that pnpm build passes until the publish stage rewrites the quotes.
The core (skoro-core)#
-
Linear, the signed permutations of a type’s storage, withnew,signs,storage,applyandthen;Embedded::stored_up_to,identificationandgroup, with the declaration’s new field, and its refusals; both re-exported fromskoro_core. Tests:stored_up_to_refuses_what_it_cannot_accept,group_closes_the_generators. - The group’s conditions in
check_embedded(freedom, the points’ images on the manifold, equivariance of R and P, invariance of Q) and incheck_volume(invariance of Λ), each failure naming the generator and the condition;testing::close_up_to; and the test declaration of the lines through the origin of ℝ², with its variant whose inverse reads the representative. Tests:the_checks_hold_on_the_lines,the_checks_name_a_broken_condition,close_up_to_compares_orbits.
The refusal (skoro-linearize)#
-
Error::NotFinite { term, row }and its display; the scan of each factor’s residual and Jacobian inLinearizer::atandat_in_chart, returning the first factor and row in the factors’ order. Tests:a_non_finite_residual_is_refused.
The groups (skoro-spatial)#
- The Cayley chart:
cayleyandcayley_inverseinalgebra.rsin place ofdeltaanddelta_inverse; the declarations’ retraction, inverse and log-volume, stored up to the quaternion’s sign; the documentation of the module, the markers and the inverse’s cut at the half-turns. The examplespose_graphandsliding_windowstill pass their checks. Tests:chart_is_cayley(in place ofchart_is_stereographic),volume_has_the_stated_mass,types_pass_the_core_checks,normal_density_on_rotations,normal_draws_on_rotations,the_term_is_the_same_at_either_sign. - The maps of the groups:
log,axis_angleandslerpof the rotations, the poses’log,interpolateandinterpolate_parts, and the extended poses’logandinterpolate, all of the shorter turn; every*_shortermethod and composite removed, and theshorter_turnflags oflog_stored,shorterandslerp_storedwith them;aligned_withdocumented as the identity on SO(3);host::logof the shorter turn andhost::canonical; the series check’s list andcomposites_pass_check_operationrenamed to match. Tests:exp_and_log,interpolations,motion_exp_and_log,maps_of_the_group_ignore_the_sign,host_maps_agree_with_the_graph.
Outside data (skoro)#
-
examples/common/g2o.rs, self-contained:Graph,Edge,read, the conversion of each edge’s information to skoro’s precision, andone_turn_loop, its vertices in the signs that composing the odometry gives; andtests/signs.rs, including it by path, with the model of a pose graph read from it. Tests:g2o_information_is_converted. - The estimates on outside signs, in
tests/signs.rs. Tests:a_one_turn_loop_closes,the_estimate_ignores_every_sign,a_half_turn_is_non_finite. - The example
examples/g2o.rs: a file’s path as its argument, orone_turn_loop(100, 0.01, SEED)without one, estimated by Levenberg–Marquardt with its convergence checked; andcargo run --release -p skoro --example g2oadded to the checks ofAGENTS.mdand.github/workflows/ci.yml. Tests: the example runs.
Done when#
bin/wf checkpasses.cargo fmt --all --check && cargo clippy --workspace --all-targets -- -D warningsare clean.cargo test --workspacepasses, every test above among it, at both precisions where it runs throughprecision_tests!.cargo run --release -p skoro --example pose_graph,--example sliding_windowand--example g2orun and pass their checks.node --test 'tools/*/*.test.ts' && site/node_modules/.bin/tsc -p toolspass, and insite/,pnpm check && pnpm lint && pnpm test && pnpm buildandSITE_CONTENT=test/content pnpm buildpass, the pages’ quotes of the changed files still within their files.- No change touches
skoro-tensor, a primitive’s kernel or a fused operation, so the wgpu run is not required; every new map is a composite.