Planning and tracking trajectories of land vehicles based on the direction control in a real environment