Planning and real-time modifications of a trajectory using spline techniques | Synapse