You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2.3 KiB
2.3 KiB
[Plan] Shenron Model-Based Development (MBD) Integration
This plan shifts the integration to a Model-Based Development architecture. We will treat the isolated Shenron logic as a "strictly defined black box" (similar to a Simulink model) and enhance it to output "Rich" radar data.
User Review Required
[!IMPORTANT] Rich Point Cloud: We will modify the extraction logic to output more than just geometry. The new format will be:
[x, y, z, velocity, SNR, RCS_estimate].Source of Data:
- SNR: Extracted from the peak magnitude in the Range-Doppler heatmaps.
- RCS: Back-calculated from the return power logic in
Sceneset.- Noise: Sampled from the simulated noise floor in
ConfigureRadar.
Phase 1: Environment & Dependency Setup
... (Previously defined)
Phase 2: The "Black Box" Wrapper & Rich Extraction
[MODIFY] ISOLATE/sim_radar_utils/radar_processor.py
Modify convert_to_pcd() to preserve the magnitude of the detected peaks.
- Current: Returns
[x, y]. - New: Returns
[x, y, z, velocity, magnitude].
[NEW] ISOLATE/model_wrapper.py
The wrapper handles "Rich" data synthesis and telemetry:
- Call
Scenesetfor ground-truth physical power (RCS). - Call
HeatmapGenfor the noisy ADC stream. - Call
RadarProcessorto extract detected peaks. - Telemetry: New
get_signal_metrics()method exports SNR and noise floor data.
Phase 3: Modular Pipeline Integration
The automated pipeline now supports concurrent hardware simulation.
[MODIFY] scripts/generate_shenron.py
Loop through multiple hardware profiles:
- AWRL1432: Short-range, high-resolution.
- RadarBook: Long-range standard.
[MODIFY] scripts/data_to_mcap.py
UnifiedTopic Management:
/radar/native/radar/awrl1432/radar/radarbook
Verification Plan
Automated Verification
- Pilot Run: Record a 100-frame scenario with semantic LiDAR.
- Post-Process: Run
python scripts/generate_shenron.py. - Check Output: Verify
data/<session>/awrl1432/andradarbook/contain 100.npyfiles each.
Manual Verification
- Run
python scripts/data_to_mcap.py. - Open the MCAP in Foxglove and verify that the
/radar/radarbook/metricstopic shows stable telemetry curves.