changed reference trajectory type