Nonlinear Filters for the Generation of Smooth Trajectories