How harrylal/simulation-of-birds-eye-view-map-generation-from-rgbd-data works
Main Components
• Data Source/Input Layer:
• KITTI Dataset: Show both LiDAR data and RGB or depth images coming from the raw KITTI files.
• Configuration Module:
• Settings from config/settings.yaml that determine data paths (KITTI data, BiSeNet weights) and calibration details.
• Preprocessing & Calibration:
• Scripts like kitti_calibration.py and kitti_video.py handle sensor synchronization and calibration.
• Utility functions (e.g., utils/lidar.py) process raw LiDAR data.
• Semantic Segmentation Module:
• The BiSeNetv2 model contained in the models/BiSeNetv2 directory, including its training, testing, and demo scripts; it predicts semantic segmentation masks.
• Point Cloud Processing & Fusion:
• The pointpainting.py script is used to project LiDAR points onto the image plane to merge semantic information.
• Grid Map Generation:
• maps.py and main.py are likely central to taking the fused data and generating the bird’s-eye view occupancy grid map.
• Clustering and Tracking Module:
• Implementations such as DBSCAN for clustering (as mentioned in the key features) and temporal tracking (tracking objects over time) may be integrated directly into main.py or through other utility functions.
• Output/Visualization Layer:
• Assets (GIFs in the assets folder) likely show demonstration of the final output, and visualization scripts (like models/BiSeNetv2/visualization.py) could be used to display the segmentation and the BEV map.
Relationships & Interactions
• Data Flow:
• Raw data from the KITTI dataset (LiDAR & camera) is read (using settings from config/settings.yaml).
• Preprocessing/calibration modules process and align the sensor data.
• The preprocessed images are fed to the BiSeNetv2 segmentation component to obtain semantic masks.
• LiDAR data is processed (using utils/lidar.py) and fused with segmentation outputs through the pointpainting.py module.
• The fused output is used to generate the occupancy grid map (maps.py) and further processed for clustering and tracking.
• Control Flow:
• main.py functions as the entry point, orchestrating these diverse modules in the correct order.
Architectural Patterns & Design Principles
• Modular Design:
• Each major function (segmentation, calibration, fusion, mapping) is separated into individual modules, which helps in clarity and maintainability.
• Pipeline Architecture:
• The structure follows a clear pipeline: input data → preprocessing → segmentation → fusion → mapping → clustering/tracking → visualization.
• Configuration Driven:
• Settings in config/settings.yaml ensure that paths and parameters are easily manageable.