Text this: A Trajectory Planning Method for Optimal Energy Consumption of the Hydraulic Excavator