README: three real trajectories in one 3D scene¶
The opening GIF overlays Ground Truth, libgnss++, and RTKLIB in a single PLATEAU/OpenStreetMap scene. The camera follows Ground Truth position and measured heading, so deviations are visible relative to one reference instead of being recentered independently in separate panes.
Legend and measurements¶
- White dashed: Ground Truth (Applanix reference).
- Mint solid: libgnss++
gnss_solvewith its default settings (the Odaiba benchmark's default arm). Mint and white overlap where the estimate agrees with the reference; their horizontal coordinates are never offset for legibility. - Orange solid: RTKLIB
demo5 b34kwith GPS, GLONASS, Galileo, QZSS and BeiDou (pos1-navsys = 61, GLONASS AR off), the same constellations as libgnss++.
The legend shows each method's current solution state and horizontal error for the same reference epoch (within 1 ms timestamp tolerance), plus its median horizontal error over the same 172 exactly matched reference/solver epochs. Selected-window median H is 0.38 m for libgnss++ versus 7.41 m for RTKLIB; P95 is 0.88 versus 12.52 m. Neither solver fixes much here: libgnss++ reports 177 FLOAT and three SPP epochs, RTKLIB 176 FLOAT, 14 DGPS and three FIXED. The difference is the FLOAT solution. The window follows a stationary deep-canyon stop (TOW 273750–273860) where both solvers are metres off. RTKLIB leaves it with a 7–11 m FLOAT bias that lasts about 35 s (median 0.74 m from TOW 273894), while libgnss++ is back within 0.9 m (P95) when the window starts.
Correction: RTKLIB now uses every constellation (2026-10-26)¶
Earlier versions of this GIF showed TOW 273700–273720 with RTKLIB run
GPS-only (scripts/rtklib_odaiba.conf had pos1-navsys = 1). There RTKLIB
could use five GPS satellites while the receiver reported 16–24 above its 15°
mask, and it stayed DGPS/FLOAT at 7.5 m. With every constellation RTKLIB fixes
147 of that window's 201 epochs (median H 0.01 m), as well as the opt-in libgnss++
recipe those versions displayed. The window was therefore reselected with the
same documented criteria against the corrected RTKLIB output. In the new window
libgnss++ needs no opt-in recipe. The full-run comparison is in
benchmarks: with the fair
baseline, demo5 fixes more epochs than the default profile, which keeps the lower
Hp95/Vp95.
Explicitly selected showcase¶
This is intentionally a favorable illustrative segment, selected to make the
solver differences visible. It is not a representative or independent benchmark.
The choice is reproducible with prepare_trace.py --select-showcase:
- Scan nominal 20-second windows on a two-second grid. Align the start to the first exact common epoch within one second after each grid point, so both current-position markers are available at the opening frame.
- Require at least 80% exact common-epoch coverage, no common gap above 2.501 s, reference motion above 1 m/s (forward 1.5-second displacement), and native common-epoch horizontal P95 at most 1 m.
- Rank eligible windows by descending RTKLIB common-epoch median H; break ties with the earliest start. These filters and the ranking deliberately favor showing the native solver's advantage; the full-run results remain linked below.
Of 147 eligible windows this selects GPS week 2032, TOW 273874.0–273894.0 s,
from the default libgnss++ output and the multi-GNSS RTKLIB output. There are 201
reference samples, 180 native solutions (177 FLOAT, three SPP) and 193 RTKLIB
solutions (176 FLOAT, 14 DGPS, three FIXED). Missing positions remain missing.
Gaps over 0.5 s are never joined, and a missing current position is labelled
NO SOLUTION; no gap filling, error scaling, or horizontal shifts are used.
The 20-second drive is played in 10 seconds (2×): 80 frames at 8 fps, 960 × 480 pixels. The camera stays 32 m behind and 8 m above the reference rendering plane, using measured reference heading even near turns. Ground Truth is supplied only to the visualization/scoring step, never to either solver.
Interpretation, data and rendering¶
This is an offline horizontal visualization, with prerecorded forward paths visible. A flat schematic ground plane at 42 m ellipsoidal height places all paths at 42.45 m; estimated heights are not visualized. Buildings retain their published geometry. This is not a vertical-accuracy or building-collision measurement. The official Minato-ku 2025 PLATEAU LOD2 buildings and the bridges of the zenith model, with the current OSM map, are context for the older drive, not a reconstruction of its collection date.
The measured trace, heading, errors and selection criteria are retained in odaiba_hero_trace.json. The shared OSM snapshot is odaiba_hero_basemap.png, assembled from 20 zoom-18 tiles. Input/solution hashes, full-run results and rendering details are in odaiba_hero_provenance.json.
Ground Truth zenith and model LOS/NLOS¶
The inset is a synthetic, north-up, 180° equidistant fisheye, not recorded camera footage. Each of the 201 reference epochs has its own building silhouette and satellite annotations; the street and sky views use the exact same reference epoch. The sky origin is the published reference ECEF point and height, not the street visualization's flattened display plane.
The displayed population is a fixed set of 25 satellites reported at least once during the selected clip. Every satellite is propagated from broadcast navigation at every Ground Truth epoch, independently of whether the receiver reported an observation then. It is not the complete broadcast constellation. A missing RINEX sample never makes a modeled LOS or NLOS satellite disappear. An actual horizon crossing may remove a satellite in other clips; all 25 remain above the horizon throughout this recorded interval. Missing ephemerides cause preparation to fail instead of silently dropping an ID.
The native library's NavigationData::calculateSatelliteState, calculateGeometry
and visibility::projFisheye compute the positions and ideal fisheye projection.
There are 5,025 geometry records (25 × 201), with 2,803 reported observations
and 2,222 unreported samples. The independent observed flag retains that fact.
An ID suffix * means no RINEX sample at this epoch; the marker and its
geometric LOS/NLOS color remain visible. The Rx counter counts reported
RINEX observations, separately from the geometric LOS/NLOS counts. It does not
claim tracking status or selection in either solver's final solution.
- Green filled dot — model LOS: no building hit along the eligible ray.
- Red × — model NLOS: a modeled building or bridge intersects that ray.
- Gray hollow dot — unassessed: elevation below 10° or an unhealthy ephemeris.
The model uses 238 most-detailed LOD2 tiles (553,555 triangles) from the official
2025 Minato, Koto, Chuo and Shinagawa datasets within 2 km of the clip, rather
than just the tiles visible to the street camera: 119 building (bldg) tiles and
119 bridge (brid) tiles. Bridges cover decks and elevated walkways, which block
the sky as solidly as buildings. The street view draws the same bridge tilesets.
Draco meshes, glTF node transforms, Y-up/Z-up conversion and CESIUM_RTC offsets
are decoded before raycasting in a local ENU frame, from both b3dm and glb (3D
Tiles 1.1) content. Decoded heights are checked against the published model
envelope. Raycasting uses a 2 km limit; the maximum model height and 10° elevation
cutoff are checked to ensure that a taller modeled structure beyond that range
cannot change an assessed ray. The sky image and direct satellite rays are computed
independently and checked for agreement away from silhouette edges. Each NLOS ray
records the class it hit (hit_class).
Effect of the bridge class. The bridge class was added for a deck that crossed the road in the earlier window (TOW 273710), where the receiver dropped to eight reported satellites. This window drives along an elevated structure that is also in the bridge class. Over its assessed samples:
| Model | LOS samples without a RINEX observation | NLOS samples with one |
|---|---|---|
| Buildings only | 1,103 of 3,598 (30.7%) | 111 of 1,226 (9.1%) |
| Buildings and bridges | 335 of 2,584 (13.0%) | 357 of 2,240 (15.9%) |
Bridges remove most of the model-LOS samples the receiver did not report. Their NLOS samples are reported more often than building NLOS: 23.4% (246 of 1,052) of bridge-blocked samples against 9.3% (111 of 1,188) of building-blocked ones. A signal can still arrive around an elevated deck or by reflection.
These are model predictions, not measured or ground-truth LOS/NLOS labels. They omit unmodeled objects (including trees), other model domains, radio reflections and multipath. No unprovided antenna lever arm is inferred; the origin is the published reference point. A clear modeled ray does not establish a clean received signal. Both the model and map are newer than the drive. Neither solver used these annotations. The inset supplies geometric context, not a causal explanation for the error difference or a 3D-aided solver claim.
The frozen atlas and exact-time satellite metadata are
odaiba_hero_sky.png and
odaiba_hero_sky.json. Metadata records the fixed cohort, independent observation flags, per-ray status,
intersection distance, model URLs/hashes and preparation inputs. Rendering rejects
mismatched trace/atlas hashes or an obsolete observation-filtered schema instead
of reusing a stale sky view. python3 tests/test_readme_hero_satellites.py -v
checks the real C04 observation-loss regression and the complete clip continuity;
the same tests are registered under the CTest core label.
Re-render the recorded trace¶
Run from the repository root on Linux with Python, npm, and Chromium installed
(the tested Chromium path is /usr/bin/chromium). No Cesium ion account is needed.
The renderer uses the inherited HTTPS proxy and TLS trust for public PLATEAU
assets, caches downloaded resources, and fails if scene resources do not load.
mkdir -p output/readme-hero
python3 -m venv --system-site-packages output/readme-hero/venv
. output/readme-hero/venv/bin/activate
python -m pip install numpy==2.3.5 Pillow==12.3.0 playwright==1.62.0
npm pack cesium@1.123.1 --cache output/readme-hero/npm-cache \
--pack-destination output/readme-hero
mkdir -p output/readme-hero/cesium
tar -xzf output/readme-hero/cesium-1.123.1.tgz \
-C output/readme-hero/cesium --strip-components=1
python scripts/readme_hero/render.py \
--cesium-dir output/readme-hero/cesium/Build/Cesium \
--output output/readme-hero/rebuilt.gif
GIF palette entries are reserved for the method colors and white reference. Frame delays alternate in centiseconds so 8 fps is actually 10 seconds rather than silently rounded faster. Rasterization and live PLATEAU assets can change; a rebuild is not promised to be byte-identical across browser versions. The raw trace snapshot is deterministic.
Re-run both solvers from public observations¶
Build gnss_solve using the repository's normal CMake instructions. Build
RTKLIB demo5 b34k at commit 55a0f2c742a605a3d27a90b17556b2cfdf98ad50
from rtklibexplorer/RTKLIB
(make LDLIBS=-lm in app/consapp/rnx2rtkp/gcc when no gfortran is installed).
scripts/rtklib_odaiba.conf selects every constellation (pos1-navsys = 61).
# Reads only the four required members, not the entire 4.45 GB ZIP.
# ZIP CRCs are checked; an existing differing input is never overwritten.
python scripts/readme_hero/fetch_inputs.py
python apps/gnss.py odaiba-benchmark \
--dataset-dir data/driving/Tokyo_Data/Odaiba \
--rtklib-bin /path/to/RTKLIB/app/consapp/rnx2rtkp/gcc/rnx2rtkp \
--base-position surveyed --mode kinematic --segment-epochs 0 \
--lib-pos output/readme-hero/libgnss.pos \
--lib-kml output/readme-hero/libgnss.kml \
--rtklib-pos output/readme-hero/rtklib.pos \
--comparison-png output/readme-hero/comparison.png \
--scorecard-png output/readme-hero/scorecard.png \
--social-card-png output/readme-hero/social.png \
--summary-json output/readme-hero/summary.json
python scripts/readme_hero/prepare_trace.py \
--reference-csv data/driving/Tokyo_Data/Odaiba/reference.csv \
--lib-pos output/readme-hero/libgnss.pos \
--rtklib-pos output/readme-hero/rtklib.pos \
--select-showcase --duration 20 \
--output docs/odaiba_hero_trace.json
python scripts/readme_hero/prepare_sky.py --satellites output/readme-hero/satellites.csv
The benchmark reproduces the default libgnss.pos byte-identically (SHA-256
400eb21f…) and the multi-GNSS rtklib.pos as 8d3f8cdd… when run from the
repository root with these relative input paths (RTKLIB writes them into its
header). The GPS-only rtklib.pos of earlier versions was 00df30b0….
Both solvers read the same rover/base/navigation files and use the same surveyed
base ECEF coordinate (-3961904.9530, 3348993.7578, 3698211.7553) m.
The default profile and GLONASS AR off match the existing Odaiba benchmark.
The selected trace is reproducible from the retained solver outputs and exact
reference epochs; both window selection and all displayed errors are checked. Full-run scoring gives 1,298 vs 5,839 FIX epochs and
4.777 vs 7.856 m horizontal P95 on each solver's matched epochs. The GIF's deliberately favorable short
window is illustrative; see benchmarks for the full context,
matching populations and limitations.
Rebuild the zenith assets (optional)¶
Normal re-rendering uses the frozen atlas and needs no geometry engine. To recalculate the sky from the same public inputs, first run the native build and input-download steps above. These preparation-only dependencies were tested:
python -m pip install trimesh==5.2.0 embreex==4.4.0.post1 DracoPy==2.2.0
# Point this at Eigen as used by the native build; commonly /usr/include/eigen3.
hero_eigen_include=/workspace/scratch/gnss-deps/include/eigen3
c++ -std=c++20 -O2 -Iinclude -I"$hero_eigen_include" \
scripts/readme_hero/satellite_geometry.cpp \
src/visibility/fisheye_camera.cpp src/visibility/proj_fisheye.cpp \
build/libgnss_lib.a build/libgnss_rtk_runtime.a build/libgnss_lib.a \
build/third_party/ginan-iers2010/libginan_iers2010.a \
build/third_party/sofa/libsofa.a -o output/readme-hero/satellite_geometry
output/readme-hero/satellite_geometry \
data/driving/Tokyo_Data/Odaiba/base.nav \
data/driving/Tokyo_Data/Odaiba/rover_trimble.obs \
data/driving/Tokyo_Data/Odaiba/reference.csv \
273874 273894 output/readme-hero/satellites.csv
python scripts/readme_hero/prepare_sky.py \
--satellites output/readme-hero/satellites.csv
The preparation uses the inherited proxy and TLS trust, retains content hashes,
and caches public model tiles under ignored output/readme-hero/resource-cache.
The helper build command matches the tested native, non-GTSAM Linux build. No
OpenCV installation is needed: the existing native camera/projection code is
compiled directly, and building visibility is tested with triangle rays.
After rebuilding the atlas, run the normal GIF-rendering command above.
Sources and attribution¶
- Drive/reference: UrbanNavDataset,
public Tokyo archive linked by the upstream project. Raw data is downloaded to
ignored
data/; it is not added to this PR. - Buildings: 国土交通省 Project PLATEAU, 港区 2025 建築物モデル LOD2, rendered with a uniform color in the street view; the zenith also uses the neighboring 江東区・中央区・品川区 2025 models. Exact tileset URLs are in the trace/sky metadata; discover datasets through the official catalog. See the PLATEAU site policy.
- Map image: © OpenStreetMap contributors, copyright and attribution. Map imagery and city-model derivatives retain their source licensing and are not relicensed under the repository's code license.
- Renderer: CesiumJS, Apache-2.0. Cesium is fetched from npm for rendering; its distribution is not vendored here.