MRTKLIB: Modernized RTKLIB for Next-Generation GNSS¶
MRTKLIB is a completely modernized, thread-safe, and modularized C11 library for standard and precise GNSS positioning.
It is designed to overcome the architectural limitations of the original legacy RTKLIB, providing a robust foundation for next-generation GNSS applications.
-
Getting Started
Build from source and run your first positioning solution in minutes.
-
CLI Reference
Learn the
mrtkunified command-line interface and its subcommands. -
Configuration
Configure positioning modes, constellations, and correction sources via TOML.
-
Reference
Full configuration options reference with all available parameters.
Key Features¶
Architectural Overhauls¶
- Thread-Safe Design —
mrtk_ctx_tcontext structure replaces global variables, enabling parallel processing - POSIX & C11 Pure — No Win32 API; fully portable across Linux, macOS (Apple Silicon), and embedded ARM/RISC-V
- Modern Build System — Unified CMake with
find_package(LAPACK)for hardware-accelerated matrix operations - Domain-Driven Layout — Source organized into
src/core/,src/pos/,src/rtcm/,src/models/, etc.
QZSS Grand Integration¶
MRTKLIB unifies the fragmented QZSS augmentation ecosystem into a single, conflict-free library:
| Component | Description | Status |
|---|---|---|
| MALIB | MADOCA-PPP structural base (directory layout, threading, streams) | |
| MADOCALIB | PPP/PPP-AR engine, L6E SSR decoder, L6D ionospheric decoder | |
| CLASLIB | CLAS PPP-RTK, VRS-RTK, CSSR decoder |
Positioning Modes¶
| Mode | Post-Processing | Real-Time |
|---|---|---|
| SPP (Single Point) | ||
| PPP (Precise Point) | ||
| PPP-AR (Ambiguity Resolution) | ||
| PPP-AR + Ionosphere | ||
| PPP-RTK (CLAS) | ||
| VRS-RTK (CLAS) | — |
Quick Start¶
# Build
cmake --preset default
cmake --build build
# Post-processing (PPP)
mrtk post -k conf/madocalib/rnx2rtkp.toml obs.obs nav.nav correction.l6
# Real-time positioning (CLAS PPP-RTK)
mrtk run -s -o conf/claslib/rtkrcv.toml
See the Installation Guide for detailed build instructions.
License¶
MRTKLIB is licensed under the BSD 2-Clause License.
Upstream components (MALIB, MADOCALIB, CLASLIB, GSILIB) are each licensed under BSD 2-Clause by their respective authors (JAXA, TOSHIBA, Cabinet Office, Lighthouse Technology & Consulting, Mitsubishi Electric, and the Geospatial Information Authority of Japan).