Autonomous vehicles are equipped with sensors that are used to collect information about the motion and surroundings of the vehicle. With the help of the information collected, our goal is to build a virtual map of the surroundings while simultaneously locating the vehicle in that map. A popular technique which is used for this task is called SLAM: Simultaneous Localization and Mapping. This project focuses on one of the approaches to solve the SLAM problem for a moving car and the advantages as well as disadvantages of the given implementation.
I have created master csv files syncing data of all the three sensors in different manner to fetch them needed.
These will automatically be created when the code file: synchronous_data.py runs
There are total four code files that needs to be run synchronously:
- pr2_utils.py
- synchronous_data.py
- motion_model.py
- Particle_filter.py
- First includes some utility functions required further.
- Second one needs to be run in order to generate the cdv files that are used in the codes later
- third file predicts the motion model without noise and plots the trajectory.
- fourth file is the mail file that contains all the transformation functions, map functions, plotting functions etc. and the mail loop of particle filter functions. It also plots the LiDAR scan visualization with or without noise.