Skip to content

Fix deg to rad - #598

Merged
JanuszBedkowski merged 1 commit into
MapsHD:mainfrom
mwlasiuk:mw/fix-deg-to-rad
Oct 31, 2026
Merged

JanuszBedkowski merged 1 commit into
MapsHD:mainfrom
mwlasiuk:mw/fix-deg-to-rad

Conversation

@mwlasiuk

Copy link
Copy Markdown
Collaborator

In other places when taking angle it was in radians

@JanuszBedkowski
JanuszBedkowski merged commit 71b787c into MapsHD:main Oct 31, 2026
7 checks passed
michalpelka added a commit that referenced this pull request Nov 22, 2026
#650)

Reverts 1ca7648 (#597, "Fix discarded decimation") and 547e517 (#598,
"Fix deg to rad").

With the decimation fix, the map buffer is decimated at every sliding-window
reset (sliding_window_trajectory_length_threshold, 200 m by default). On the
trial-1 recording the trajectory then diverges at the first reset (chunk 56,
~286 s) and runs ~81 m away from the start. v0.106 handles the same data.

Measured on trial-1 against v0.106 (session_ini_poses.mri, per chunk):
- v0.107:                         81.4 m max position difference, diverges
- v0.107 without #597:            9.7 mm max, no divergence
- v0.107 without #597 and #598:   0.0 mm (identical to v0.106)

So no other change between v0.106 and v0.107 affects the trajectory. The
deg-to-rad fix is reverted as well so results match v0.106 exactly; it should
come back together with a validated decimation change.


Claude-Session: https://claude.ai/code/session_0158FTTFdaEUtjG7Jvj6EGip

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
michalpelka added a commit that referenced this pull request Nov 23, 2026
long-corridor (62 m) never reaches the 200 m sliding-window reset, and the
step 1 trajectory on it depends on which point decimate() keeps per voxel:
Linux closes the loop, Windows slips 10 m, macOS is 8 cm off. Each platform
is repeatable, but the recording is too degenerate to be a reference.

calibration-room/trial-1 of the same Zenodo dataset (380 s, ~300 m) is the
recording v0.107 diverged on, so the check would have caught #597 and #598.
The golden trajectory is the v0.106 result on Linux; a second v0.106 run
matches it with an ATE of 0.00 mm and v0.107 is 38 m RMSE off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0158FTTFdaEUtjG7Jvj6EGip
michalpelka added a commit that referenced this pull request Nov 23, 2026
Each platform repeats its own trajectory with an ATE of 0.00 mm, so 1 cm
was looser than needed, and it would have let #598 (deg to rad) through on
its own: on calibration-room/trial-1 that change moves the trajectory by
2.49 mm RMSE (20.8 mm max). 1 mm catches it.

An exact checksum would be about as strict (the TUM file keeps 1 um), but
it reports nothing about the size of a difference.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0158FTTFdaEUtjG7Jvj6EGip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants