# Attack and Defences on LiDAR-based Perception Documentation
#### Release 0.0.1
###### 02 September 2021
<divstyle="page-break-after: always;"></div>
*Attack and Defences Repository* explores different LiDAR-based perception module, namely PIXOR, PointRCNN and PointPillar - in the form of Baidu Apollo v6.0
<divstyle="page-break-after: always;"></div>
# Table of Contents
* PIXOR
* Dependencies
* File Structure
* Getting Started
* Download Kitti Dataset
* Run PIXOR Perception Module
* View Results
* PointRCNN
* Dependencies
* Baidu Apollo
* Docker load
<divstyle="page-break-after: always;"></div>
# PIXOR
##### Dependencies:
- Python 3.5(3.6)
- Pytorch (Follow Official Installation Guideline)
- Tensorflow (see their website)
- Numpy, MatplotLib, OpenCV3
- PyKitti (for running on KITTI raw dataset)
- gcc
Note: All requirements are preloaded into pixorenv
#### File Structure
```
attack_and_defences...
├── PIXOR
│ ├── Kitti_Dataset
| | ├── raw_data_downloader.sh
| | ├── 2011_09_26
| | ...
| ├── PIXOR
| | ├── srcs
| | ... ├── run_kitti.py
| ├── pixorenv
│ │ ├── bin
| | | ├── activate
| | | ....
```
##### Getting Started
Ensure that virtualenv is installed
$ pip install virtualenv
>
Activate PIXOR virtual environment
$ cd PIXOR
$ source pixorenv/bin/activate
##### Download Kitti Dataset
$ cd Kitti_Dataset
$ ./raw_data_downloader.sh
##### Run PIXOR Perception Module
$ cd PIXOR
$ cd srcs
$ python run_kitti.py
##### View Results
Depending on the video that was processed, typically located in PIXOR/Kitti_Dataset/2011_09_26/ ...
<divstyle="page-break-after: always;"></div>
# PointRCNN
##### Dependencies:
All the codes are tested in the following environment:
* Linux (tested on Ubuntu 14.04/16.04)
* Python 3.6+
* PyTorch 1.0
Note: All requirements are preloaded into conda environment