Repository navigation
dotbot/cli: add calibrate-lh2 show --next-round - #331
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #331 +/- ##
==========================================
+ Coverage 88.46% 88.56% +0.09%
==========================================
Files 230 230
Lines 37135 37623 +488
Branches 2323 2367 +44
==========================================
+ Hits 32850 33319 +469
- Misses 4281 4300 +19
Partials 4 4
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
geonnave
force-pushed
the
lh2-multi-active
branch
from
October 4, 2026 02:23
86d8510 to
4f6668e
Compare
geonnave
force-pushed
the
lh2-multi-active
branch
from
October 14, 2026 18:22
4f6668e to
d091e17
Compare
This was referenced Oct 14, 2026
geonnave
force-pushed
the
lh2-multi-active
branch
from
October 15, 2026 11:26
00fbb9f to
978a8cd
Compare
geonnave
force-pushed
the
lh2-multi-active
branch
3 times, most recently
from
October 16, 2026 13:23
1d1b2b0 to
ea61527
Compare
AI-assisted: Claude Opus 5.5
AI-assisted: Claude Opus 5.5
AI-assisted: Claude Opus 5.5
… join AI-assisted: Claude Opus 5.5
…angles A station that never sees part of the site yields no sweep pair there, so the extent drops nothing a station could solve, whereas the box around its spins dropped areas such as a staging strip the robots never spun in. AI-assisted: Claude Opus 5.5
AI-assisted: Claude Opus 5.5
geonnave
force-pushed
the
lh2-multi-active
branch
from
October 16, 2026 13:43
ea61527 to
ef884a7
Compare
A robot with no heading first gets a 40 mm probe move toward its first point, and its batch once it has a heading and the probe is done. While waypoints_awaiting_heading is set, the waypoint report and the mode are the probe's, so a client watching mode alone sees an early arrival. AI-assisted: Claude Opus 5.5
AI-assisted: Claude Opus 5.5
AI-assisted: Claude Opus 5.5
AI-assisted: Claude Opus 5.5
AI-assisted: Claude Opus 5.5
…overage AI-assisted: Claude Opus 5.5
AI-assisted: Claude Opus 5.5
AI-assisted: Claude Opus 5.5
AI-assisted: Claude Opus 5.5
AI-assisted: Claude Opus 5.5
geonnave
force-pushed
the
lh2-multi-active
branch
from
October 16, 2026 14:07
ef884a7 to
fbaba59
Compare
AI-assisted: Claude Opus 5.5
This file contains hidden or 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
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.
Based on
main(#325 has merged).Merge order. Push confirmation compares
lh2_station_mask, which released swarmit 0.11.0 does not report, so this PR merges after DotBots/swarmit#175 (and DotBots/swarmit#173). Until then every push reports its robots as stale after the timeout, which fails safe.After a round, the operator should not have to guess where more spins help.
dotbot swarm calibrate-lh2 show CALIBRATION --next-round Nprints where N robots should spin in the nextcollect --spin --appendround, in the calibration's frame (where robots running this calibration report their positions):Each line names the stations that see the point, by index and channel, and why it was picked. A calibration a round cannot be appended to (placed, anchored or corner) is refused, since
--appendwould refuse it. Driving the robots there is left to the operator (waypoints or by hand).Validation, in simulation: two synthetic stations tied by two spins only 350 mm apart; spinning four robots where suggested lowers the worst predicted error more than four random spins (averaged over five draws), and the first two suggestions sit at the ends of the overlap.
show --next-roundruns over a faked swarm and for real on a channels 3 and 9 file. Full suite: 1756 passed;pre-commitclean.dotbot/calibration/multi_station.pydotbot/cli/swarm_lh2.pydotbot/tests/test_calibration_multi_station.pydotbot/tests/test_calibration_spin.pyUpdate: rebased on main, plus what the two-station bench asked for
The whole stack (#322 to #325 and this PR) is rebased on
mainwith no change to the existing commits. This PR gains ten commits on top, all from the first bench run with two stations and three robots:site init --from-calibration) now gives every station the site extent as its rectangle, instead of the box around its spins grown by 300 mm. On the bench site that box cut off the bottom of the staging area. A free solve has no site frame and keeps the box.spin_radius_mmper site.site.tomlcan set the photodiode's circle radius on that floor, used unless--spin-radiusoverrides it, and carried over REST with the site model. The model's 51.4 mm made a spin calibration 6.3 % larger than the corner reference on a floor measuring 53.1 mm.waypoints_awaiting_heading(REST and stream), and the console shows it as under way, waiting for a heading. The flag clears only once the robot advertises the released batch's id, not when the probe ends, so a client waiting onMANUALand not awaiting no longer stops before the batch runs.[stations]site-pack schema commit is the same patch as dotbot/cli: add site stations list, assign and set for LH2 base station channels #337's first commit and was needed under the spin radius change. Whichever PR merges second drops it on rebase.dotbot/tests/test_controller.pydotbot/controller.pydotbot/console-web/src/fleetViews.test.tsxdotbot/console-web/src/botFacts.tsdotbot/console-web/src/viewChrome.tsxBotMarker.tsx,Footer.tsx,GridView.tsx,Inspector.tsx,ListView.tsx,LocalizationPanel.tsx,MapView.tsx,botChrome.test.tsx,heldWaypoints.test.ts,heldWaypoints.ts,inspector.test.ts,localization.ts,missions.test.ts,pushTarget.test.tsx,types.tsscenario_harness.py,test_calibration_conics.py,test_calibration_multi_station.py,test_calibration_spin.py,test_cli_site.py,test_qrkey_app.py,test_scenarios.py,test_server.pycalibration/conics.py,cli/swarm_lh2.py,config.py,examples/labyrinth/labyrinth.py,examples/motions/motions.py,models.py,site.pyValidation.
test_camera_service::test_a_registration_without_controls_warns_about_nothing,test_controller::test_controller_dotbot_simulator; both environment failures on this machine, unrelated to the stack). Console vitest: 831 passed,tscclean.pushandshowran against the real robots throughout. The waypoint hold has not yet run on the bench.Update: a failed LH2 sensor in the inspector, and a stricter push check
Two commits added after a bench session:
lh2_flagsbit 2, set by the bootloader in device/bootloader: retry the LH2 sensor init after an LH-EN power cycle swarmit#178); with an older bootloader the bit is never set and nothing changes. The console bundle has to be rebuilt to show it.calibrate-lh2 pushpasses a robot only once a device-info generation later than the one read before the push reports the file's id and its stations. A re-push to a robot already on that id used to pass at once, without the robot having stored anything. The session's fake robot now reboots on a push, as a real one does.dotbot/tests/test_calibration_push.pydotbot/calibration/push.pydotbot/calibration/driver.py,dotbot/cli/swarm_lh2.py,dotbot/console-web/src/Inspector.tsx,dotbot/console-web/src/inspector.test.ts,dotbot/tests/test_calibration_session.pyValidation. Push and session tests: 81 passed. Console inspector tests: 63 passed. On the bench, with a bootloader forced to fail its LH2 init,
swarm infoshowed the failed sensor and its loaded stations; the inspector change itself was checked by its unit tests only.