How cocel-postech/genz-lio works
GenZ-LIO estimates LiDAR-inertial odometry from recorded sequences or live ROS streams. In Python, the CLI selects configuration and a dataset reader; the pipeline feeds scan/IMU frames to the compiled estimator and can write trajectories or visualize results. The C++ estimator performs preprocessing, IMU propagation and deskewing, adaptive voxelization, hybrid-metric filtering, and map updates. ROS wraps the same estimator for live input and output. Some internal calls and ROS wiring are unsampled, so only documented or indexed relationships are shown.
Main entry points: OdometryServer.hpp Odometry server · pipeline.py Replay pipeline · GenZLIO.hpp Odometry pipeline · cli.py CLI and config
Components 27
Python replay
- CLI and config
python/genz_lio/cli.py - Dataset readers
python/genz_lio/datasets - Replay pipeline
python/genz_lio/pipeline.py - Python bindings
python/genz_lio/pybind/genz_lio_pybind.cpp - Pose writers
python/genz_lio/tools/pose_writers.py - Visualizer
python/genz_lio/tools/visualizer.py - Camera panel
python/genz_lio/tools/camera_panel.py
Odometry estimation
- Odometry pipeline
cpp/genz_lio/core/GenZLIO.hpp - Configuration IO
cpp/genz_lio/config/ConfigIo.cpp - Scan preprocessing
cpp/genz_lio/core/Preprocessor.hpp - IMU propagation
cpp/genz_lio/core/ImuProcessor.hpp - Adaptive voxelization
cpp/genz_lio/core/ScaleAwareVoxelizer.hpp - Hybrid metric update
cpp/genz_lio/core/HybridMetricUpdate.hpp - Voxel map
cpp/genz_lio/core/VoxelMap.hpp - Voxel correspondence search
cpp/genz_lio/core/VoxelPrunedSearch.hpp
ROS interface
- ROS node
ros/src/genz_lio_node_ros2.cpp - Odometry server
ros/src/OdometryServer.hpp - Cloud conversion
ros/src/CloudConversion.hpp - Map visualizer
ros/src/VoxelMapVisualizer.hpp - ROS compatibility
ros/src/RosCompat.hpp
Filter foundations
- Iterated error-state filter
cpp/genz_lio/3rdparty/IKFoM_toolkit/esekfom/esekfom.hpp - Manifold state math
cpp/genz_lio/3rdparty/IKFoM_toolkit/mtk/types/vect.hpp
Other components
- Operator
- Recorded data
- ROS bag source
- Live sensor streams
- Trajectory output
Connections 27
- Operator → CLI and config: runs
README.md - Recorded data → Dataset readers: reads
README.md - CLI and config → Replay pipeline: starts
python/genz_lio/cli.py - CLI and config → Configuration IO: loads config
python/genz_lio/cli.py - Replay pipeline → Dataset readers: consumes frames
python/genz_lio/pipeline.py - Replay pipeline → Python bindings: registers scans
python/genz_lio/pipeline.py - Replay pipeline → Pose writers: writes poses
python/genz_lio/pipeline.py - Replay pipeline → Visualizer: updates display
python/genz_lio/pipeline.py - Visualizer → Camera panel: uses
python/genz_lio/tools/visualizer.py - ROS bag source → Dataset readers: provides recordings
README.md - Live sensor streams → ROS node: publishes streams
- ROS node → Odometry server: starts
ros/src/genz_lio_node_ros2.cpp - Odometry server → Cloud conversion: converts clouds
ros/src/OdometryServer.cpp - Odometry server → Configuration IO: loads config
- Odometry server → Odometry pipeline: registers scans
ros/src/OdometryServer.hpp - Odometry server → Map visualizer: publishes map
ros/src/OdometryServer.cpp - Odometry server → ROS compatibility: uses ROS API
ros/src/OdometryServer.hpp - Odometry pipeline → Scan preprocessing: preprocesses scans
cpp/genz_lio/core/GenZLIO.hpp - Odometry pipeline → IMU propagation: propagates IMU
cpp/genz_lio/core/GenZLIO.hpp - Odometry pipeline → Adaptive voxelization: voxelizes scan
cpp/genz_lio/core/GenZLIO.hpp - Odometry pipeline → Hybrid metric update: updates state
cpp/genz_lio/core/GenZLIO.hpp - Odometry pipeline → Voxel map: updates map
cpp/genz_lio/core/GenZLIO.hpp - Hybrid metric update → Voxel correspondence search: builds residuals
- Hybrid metric update → Iterated error-state filter: filters measurements
- Iterated error-state filter → Manifold state math: uses state math
cpp/genz_lio/3rdparty/IKFoM_toolkit/esekfom/esekfom.hpp - Replay pipeline → Trajectory output: produces
python/genz_lio/pipeline.py - Odometry server → Trajectory output: publishes poses
ros/src/OdometryServer.hpp