This repository contains my solution to AMAG Technical Exercise.
The problem is to findout the leader and follwer and minimum TTC (time to collision)
to get the leader in each timestamp and also the minimum TTC run this on the terminal
python trajectory_processor.py path_to/trajectory1.csv path_to/trajectory2.csv
here csv file needs to be in this format:
Time (s) | Latitude | Longitude |
---|---|---|
2 | -27.93454934 | 0 |
3 | -27.93454934 | 0 |
Here is the flow diagram of the logic of the program