This repository consists the python code required to set up a vehicle platoon and collect relevant data in CARLA simulation environment
Download LongitudinalAttackData.py and place it in the same folder as the examples provided for the Python API in CARLA. Modify the parameters for your own preference and run the code.