Skip to content

Latest commit

 

History

History
148 lines (88 loc) · 3.71 KB

File metadata and controls

148 lines (88 loc) · 3.71 KB

Converting Infineon BGT60TR13C Radar Raw Data to Range-Angle MAP

Converting I![enter image description here](matlab_fignfineon Radar Raw Data to Range-Angle Map using MATLAB

enter image description here

Overview

This guide outlines the process of converting raw radar data from an Infineon radar sensor into a range-angle map using MATLAB. The provided MATLAB script, convert_to_range_angle_map.m, serves as a starting point.

Steps Involved

  1. Load Raw Data:

    • Open the MATLAB script convert_to_range_angle_map.m.

    • Specify the path to your raw radar data file (.npy format) and configuration file (.json format) in the following lines:

      Matlab

      datasetnya = readNPY("sample_raw_radar_data\RadarIfxAvian_00\radar.npy");
      conf_fname = 'sample_raw_radar_data\RadarIfxAvian_00\config.json';
      
      
  2. Define Frame Range:

    • Specify the starting and ending frame indices for processing:

      Matlab

      start_frame = 1;
      last_frame = 99;
      
      
  3. Set Angle Acquisition Range:

    • Define the desired angle range for the map:

      Matlab

      start_angle = -90;
      stop_angle = 90;
      
      

Converting Raw Data to Range-Angle Map with Python

enter image description here

Prerequisites

  • Python 3.12 or later
  • Basic understanding of Python programming

Setting Up the Environment

1. Create a Virtual Environment

  • Windows:

    Bash

    python -m venv venv
    venv\Scripts\activate
    
    

    Use code with caution.

  • macOS/Linux:

    Bash

    python3 -m venv venv
    source venv/bin/activate
    
    

2. Install Required Packages

Create a requirements.txt file in your project directory with the following content:

numpy
scipy
matplotlib

Then install the packages:

Bash

pip install -r requirements.txt

Load and Visualize Range Angle Map

3. Load Raw Data

  • Open the Python script view_polar_dataset.py.
    • Specify the path to your raw radar data file (.npy format) and configuration file (.json format) in the following lines:

      Python

# open Dataset
datasetnya  =  "sample_raw_radar_data/RadarIfxAvian_00/radar.npy"
conf_fname  =  "sample_raw_radar_data/RadarIfxAvian_00/config.json"

4. Set Angle Acquisition Range:
- Define the desired angle range for the map: Python

    ```
    start_th  =  -np.pi/2
    stop_th  =  np.pi/2
    ```

Additional Considerations

  • Data Structure: The script assumes the raw data is stored in a NumPy array (.npy format) and the configuration data is in a JSON file.
  • Configuration File: The configuration file likely contains information about the radar sensor, such as antenna layout, sampling frequency, and other relevant parameters. These parameters are essential for accurate range-angle mapping.
  • Processing Algorithm: The core algorithm for converting raw data to a range-angle map is not provided in the snippet. You'll need to implement this based on the radar sensor's characteristics and desired output format.
  • Visualization: Once the range-angle map is generated, consider using MATLAB's plotting functions to visualize the results.