A **Radar** **Sim**ulator for **Py**thon

There are 7 modules in this package:

`Radar`

: Defines radar parameters`simulator`

: Simulates and generates raw time domain baseband data`processing`

: Basic radar signal processing`tools`

: Receiver operating characteristic analysis`lidar_scene`

: Simulates LiDAR’s point cloud based on a 3D environment model with ray tracing`rcs`

: Simulates target’s radar cross section (RCS) based on the 3D model with ray tracing`scene`

: Simulates radar’s response signal in a 3D enviroment model with ray tracing

## Dependence

- numpy
- scipy
- numpy-stl

## Installation

Contact me if you are interested in this module.

To use the module, please put the radarsimpy folder within your project folder as shown below.

Windows

- your_project.py
- your_project.ipynb
- radarsimpy

- __init__.py
- radarsimc.dll
- scene.xxx.pyd
- …

Linux

- your_project.py
- your_project.ipynb
- radarsimpy

- __init__.py
- libradarsimc.so
- scene.xxx.so
- …

## Coordinate Systems

### Scene Coordinate

- axis (m):
*[x, y, z]* - phi (deg): angle on x-y plane. Positive x-axis is 0 deg, positive y-axis is 90 deg
- theta (deg): angle on z-x plane. Positive z-axis is 0 deg, x-y plane is 90 deg
- azimuth (deg): azimuth -90 ~ 90 deg equal to phi -90 ~ 90 deg
- elevation (deg): elevation -90 ~ 90 deg equal to theta 180 ~ 0 deg

### Object’s Local Coordinate

- axis (m):
*[x, y, z]* - yaw (deg): rotation along z-axis. Positive yaw rotates object from positive x-axis to positive y-axis
- pitch (deg): rotation along y-axis. Positive pitch rotates object from positive x-axis to positive z-axis
- roll (deg): rotation along x-axis. Positive roll rotates object from positive z-axis to negative y-axis
- origin (m):
*[x, y, z]* - rotation (deg):
*[yaw, pitch, roll]* - rotation (deg/s): rate
*[yaw rate, pitch rate, roll rate]*

## Usage

Radar system simulation

Target simulation

Radar system and scene simulation with ray tracing

LIDAR (Experimental)

Characterization

## 10 Comments

## Shawn Sun · August 20, 2019 at 3:39 am

Dear Dr. Peng ,

Excellent work on radar sensing. Your papers and blogs are helpful for our working on 77 GHz scanning radar. We also carried out radar simulation with Matlab. It would be appreciate if you can share this python module or provide some suggestions.

Regards,

Shawn

## Gh Wu · October 30, 2019 at 9:17 am

Dear Dr. Peng ,

Hi !

I have tried you codes about Antenna Array Analysis ,and it really help me a lot!!!

I want to do some simulation about CS imaging with Sparse MIMO radar, but I don’t like Matlab’s phased array toolbox.

Could you share some moudle about your Radar simulation system?

May I join your project in github?

Regards,

GH

## Gh Wu · October 30, 2019 at 9:19 am

May I become a contributor of this project?

## Zhengyu Peng · October 30, 2019 at 10:23 am

I can share the compiled module to you and you can use it with the Jupyter notebooks here: https://github.com/rookiepeng/radar-simulation-notebooks

I am not accepting contribution for radarsimpy, but you are welcome to contribute to https://github.com/rookiepeng/radar-simulation-notebooks or any other public projects on my GitHub.

## Lin Wan · January 17, 2020 at 10:50 am

Dear Dr. Peng ,

Nice demo shown in the Jupyter notebooks!

We are now carrying out radar simulation with Matlab. Is is possible that you can share this python module?

Best regards,

Lin

## Zhengyu Peng · January 18, 2020 at 10:43 pm

Hi Lin,

I just shared it with you through Google Drive.

Thanks,

Zhengyu

## Chen Ruihai · February 3, 2020 at 10:36 am

Dear Dr.Peng ,

Really Excellent work the demo you put on the github!

I’m now working on radar simulation with AI based on Matlab.Is it possible that you can share the python module?I really appreciate it.

Best wishs,

Chen

## Zhengyu Peng · February 4, 2020 at 9:32 am

I just shared it through Google Drive.

## xiaobao · February 17, 2020 at 11:35 pm

Dear Dr.Peng ,

I have tried Antenna Array Analysis, but it report an error “ModuleNotFoundError: No module named ‘antarray'”, how to solve it?

Best wishs,

## Zhengyu Peng · February 18, 2020 at 3:16 pm

https://github.com/rookiepeng/antarray

This is antarray.