Time-jerk optimal trajectory planning of hydraulic robotic excavator