Set spline points based on csv input

Hi,

I have a csv file that contains data of a vehicle I want to simulate. It contains the location (x,y,z, heading) at t timestamp. I would like to create a spline based on this data that the vehicle can follow.

I already set up the vehicle being able to follow the track, however I am not sure how to set up the spline using a csv file.