FIR filters for online trajectory planning with time- and frequency-domain specifications