I. Introduction
Automation of heavy machinery, especially hydraulic excavators for its versatility, has been a steady research topic over a few decades. Various types of tasks, for example, soil digging [1], [2], rock moving [3], [4], and truck loading [5], are studied for excavator automation. To perform one of the most fundamental operation among such tasks, soil excavation, trajectory planning complying to operational constraints (e.g. swept volume constraint during digging or bucket tip pose constraint during grading) and physical constraints (e.g. actuator force/torque limit, pump flow rate limit, or power limit) is essential. To achieve such objective of planning a constrained reference trajectory, trajectory optimization has been widely applied [6]–[9]. However, since most existing works via trajectory optimization optimize the entire trajectory at once offline, they are vulnerable to instantaneous disturbance during operation. Furthermore, external disturbances to hydraulic excavators such as soil-bucket interaction and hydraulic friction are usually intractable and unignorable; accordingly, such unmodelable dynamics could result in sub-optimality and even constraint violation. Therefore, a new trajectory planning approach to consider constraints and compensate real-time disturbance is required.