Smooth and time-optimal S-curve trajectory planning for automated robots and machines. (July 2019)