mirror of
https://github.com/pollen-robotics/microduck.git
synced 2026-12-03 02:47:45 +08:00
The contact odometry picked its anchor from four hardcoded corners: the v1.5 sole bbox, ±27.0 x ±20.6 mm on the foot-site Z = 0 plane, a placeholder since the port. The alpha sole is 54 mm long, sits 7 mm forward of the site, and its bottom is canted 4.9° about X in the site frame, so those corners float 2 mm above the real contact on the low side and 3 mm under the mesh on the high side. `anchors.rs` is GENERATED by microduck_rl/scripts/odom_anchor_points.py, which drops a grid of vertical rays onto the sole collision mesh: V15 the legacy corners (unchanged behaviour) ALPHA4 the flat contact patch's four corners, on the mesh ALPHA16 a 4x4 grid over the whole footprint, bevels included `Odometry` takes an `&'static AnchorSet`; `Odometry::alpha()` still uses V15, so robotd is unchanged until the sets have been compared (infer_policy --odom-compare in microduck_rl). `alpha_with(&ALPHA16)` is the switch. Cost, `update_cost_per_anchor_set` on an x86 laptop: 484 ns per update with 4 points per foot, 951 ns with 16. On the Zero 3's A55 expect a handful of µs — nothing next to a 20 ms tick. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014ZPSQ6nCsfqannMDXwAKZ3