Skip to content

Optional lossless mLAZ writer next to LAZ (off by default) - #6

Open
siju-mf wants to merge 8 commits into
mainfrom
feature/mlaz-writer
Open

siju-mf wants to merge 8 commits into
mainfrom
feature/mlaz-writer

Conversation

@siju-mf

@siju-mf siju-mf commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Adds an mLAZ writer (codec as submodule 3rd/mlaz, tag 1.0.2) next to LAZ.
Off by default: without "point_format" in /media/usb/mandeye_config.json the
controller calls saveLaz exactly as before. "mlaz" or "both" enable it for
LIVOX_SDK2 only; other LiDARs or unknown values fall back to LAZ with a warning
on the web page. A failed mLAZ save falls back to LAZ. The format of each chunk
is reported in statusNNNN.json and on the web page.

Test without LiDAR SDKs: test/mlaz (see README) - decoded .mlaz equals the
uncompressed LAS from saveLaz except generating_software; LAZ records (laspy)
equal mLAZ records; empty buffer and decimation covered.
Not built here: the full control_program (no pistache/gpiod on the build machine).

dlubom and others added 6 commits December 1, 2026 17:17
Report pre-decimation counts for each discovered head, including silent heads. Keep the existing LiDAR plugin ABI and support older recorder browsers.
saveMlaz() writes exactly the LAS records and header saveLaz() writes for the
same buffer (same decimation, bounds, quantization), except generating_software
= "Mandeye mLAZ <version>". Codec from the 3rd/mlaz submodule pinned to 1.0.2;
zstd and zlib from the system. test/mlaz builds without LiDAR SDKs and compares
saveMlaz against saveLaz byte for byte (records decoded by laspy/lazrs).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"point_format" in /media/usb/mandeye_config.json, read at start: laz (default,
also when missing), mlaz, both. Unknown value or a LiDAR SDK other than
LIVOX_SDK2 -> LAZ and a warning on the web page. In both mode LAZ is written
first; a failed mLAZ-only save falls back to LAZ. The .mlaz file stores the
same LiDAR list as lidarNNNN.sn. statusNNNN.json reports point_format
(configured, effective, warning, last_chunk) and lastMlazStatus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… path

The web server thread starts before the config is read, so point_format is set
and reported under lastMlazMutex. test_save_mlaz checks that a failed mLAZ save
returns nullopt without throwing and leaves no file behind (LAZ fallback relies
on it). README: full commands for the test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dlubom
dlubom changed the base branch from codex/livox-zero-xyz to main December 4, 2026 19:47
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