Vehicle lane change

Recently, I want to use Carla to simulate lane change. The first step is to collect data, such as the turning angle of the vehicle relative to the road, whether the left (right) Lane exists, and the distance between the vehicle and the left (right) lanes. Can I ask the code or document for the right reference? Novice on the road, many things do not understand, please give me your advice