A model prediction and feedback compensation-based excavator mechanical arm online planning control system and method
By improving the multi-objective particle swarm optimization algorithm and nonlinear hydraulic model, and combining it with Lagrange dynamics, an online planning and control system for excavator robotic arms was constructed. This solved the problems of slow calculation and insufficient accuracy in unmanned excavator systems, and achieved efficient and precise control of the robotic arms.
Patent Information
- Application Number
- CN202611395421.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-09
- Publication Date
- 2026-11-20
AI Technical Summary
Existing unmanned excavator systems suffer from problems such as slow single-objective planning calculations, large discrepancies between hydraulic model output and reality, large errors in robotic arm dynamics modeling, and chaotic signal transmission, resulting in low work efficiency and insufficient accuracy.
An online planning and control system for excavator manipulators based on model prediction and feedback compensation is adopted, including a manipulator kinematics module, an online trajectory planning module, a model prediction and feedback compensation controller module, a generalized Newtonian identification method hydraulic system module, a Lagrange manipulator dynamics module, and a sensor feedback module. Optimized control is achieved by improving the multi-objective particle swarm optimization algorithm, the nonlinear hydraulic model, and the Lagrange dynamics model.
It improves the working efficiency of excavators, reduces energy consumption, enhances trajectory tracking accuracy and system stability, reduces the debugging process of robotic arms, and improves control performance under complex working conditions.
Smart Images

Figure CN123129160A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of artificial intelligence, robot kinematics, physical dynamics, automatic control technology, sensor technology, and computer science, specifically to an online planning and control system and method for an excavator robotic arm based on model prediction and feedback compensation. Background Technology
[0002] As a core piece of equipment in earthmoving engineering, the precision of the excavator's robotic arm directly determines construction efficiency and quality. Traditional manually operated excavators rely on the driver's visual feedback to manually adjust the control levers, resulting in significant human error, high fatigue from prolonged operation, and an inability to achieve standardized, high-precision, repetitive excavation operations. With the iteration of unmanned and intelligent construction machinery technologies, the industry is gradually adopting automatic control algorithms to replace manual operation. Achieving intelligent motion control for excavators is a practical and feasible solution to the aforementioned problems and to realize unmanned excavation operation.
[0003] However, existing unmanned excavator systems generally suffer from technical shortcomings. Firstly, the industry primarily employs traditional optimization algorithms such as single-objective programming and interpolation, which are limited in function and computationally slow, failing to meet operational demands. Secondly, the hydraulic cylinder control system is modeled using coarse linear methods, leading to significant discrepancies between model outputs and actual hydraulic outputs. Thirdly, the dynamic modeling of the robotic arm is overly simplified, resulting in substantial position estimation errors. Furthermore, the industry predominantly uses traditional control methods such as PID, fuzzy control, and single-model control, resulting in poor tracking performance. Finally, in practice, combined systems considering multiple components often suffer from chaotic signal transmission, excessively long calculation intervals, and low work efficiency. Therefore, in-depth analysis and research into model prediction and feedback compensation control of excavator robotic arms are crucial to adapt to various complex working conditions. Summary of the Invention
[0004] To address the aforementioned problems, this invention discloses an online planning and control system and method for excavator manipulators based on model prediction and feedback compensation. The system mainly consists of a manipulator kinematics module, an online trajectory planning module, a model prediction and feedback compensation controller module, a hydraulic system module based on the generalized Newtonian identification method, a manipulator dynamics module based on Lagrange multiplication, a manipulator module, and a sensor feedback module. It achieves model predictive control of the hydraulic excavator manipulator, optimizes the manipulator's trajectory, and reduces tracking errors. This effectively improves the excavator's working efficiency, reduces operating energy consumption, significantly extends the excavator's service life, and solves the control problem of stable and safe operation of the excavator manipulator under various complex material working conditions.
[0005] Technical solution:
[0006] An online planning and control system for an excavator manipulator based on model prediction and feedback compensation is disclosed. The system mainly consists of a manipulator kinematics module, an online trajectory planning module, a model prediction and feedback compensation controller module, a hydraulic system module based on the generalized Newtonian method, a manipulator dynamics module based on Lagrange multiplication, a manipulator module, and a sensor feedback module. The manipulator kinematics module is responsible for calculating the actual three-dimensional end-effector position of the shovel tip. This module establishes a four-DOF forward model of the boom, stick, bucket, and swing arm based on the DH coordinate system, receives measured joint angle information from sensors, and outputs the end-effector position coordinates to the online trajectory planning module. The online trajectory planning module is responsible for iteratively solving for the optimal reference trajectory online in real time based on the manipulator's physical constraints. This module receives the end-effector position from the manipulator kinematics module in real time and performs optimal solution using an improved multi-objective particle swarm optimization algorithm. When the maximum number of iterations is reached, the reference trajectory parameters are output to the model prediction and feedback compensation controller module. The model prediction and feedback compensation controller module is responsible for solving the hydraulic control signal. This module takes the reference angle, measured angle, and predicted angle as inputs, integrates hydraulic nonlinear constraints to construct a quadratic cost function, and uses CasADi numerical calculation... The online rolling optimization of the solver obtains the optimal control signal and combines it with the compensation result calculated by load feedback, finally outputting the control signal to the robotic arm module. The hydraulic system module based on the generalized Newton's identification method is responsible for solving the hydraulic driving force. This module receives the model prediction and the iterative intermediate values from the feedback compensation controller module. By integrating four parts—the pilot valve dead zone model, the saturated flow model of the spool valve, the continuous flow model of the asymmetric cylinder, and the piston force balance model—a nonlinear hydraulic model is constructed using the generalized Newton's identification method, outputting the real-time hydraulic cylinder driving force to the Lagrange-based robotic arm dynamics module. The module is responsible for solving the motion state of the robotic arm. It receives the hydraulic driving force, derives the dynamic equations based on the Jacobian matrix and the system's kinetic and potential energy, and outputs the predicted joint angle for the next moment to form the main closed loop of the model prediction and feedback compensation controller module. The Lagrange-based robotic arm module is responsible for rotating the robotic arm angle based on the control signal. The sensor feedback module is responsible for measuring the physical state of the robotic arm in real time through high-precision sensors and transmitting the physical parameters back to the robotic arm kinematics module. The entire process forms a single high-precision position closed-loop control link, which ultimately constitutes the model prediction and feedback compensation control system of the excavator robotic arm.
[0007] The robotic arm kinematics module is responsible for calculating the three-dimensional coordinates of the excavator's robotic arm's end effector; this module includes modules for calculating the effective boom length, stick length, bucket length, swing height, and two-dimensional... The system comprises three modules: a 2D axis position calculation module, a 3D end-effector position calculation module, and a 3D end-effector position calculation module. This module receives boom joint angles, stick joint angles, bucket joint angles, and chassis slewing joint angles from sensor feedback modules. By establishing a DH coordinate system for the robotic arm, it first divides the boom, stick, and bucket into three parts on a 2D plane using geometric methods for separate calculations. The boom effective length calculation module receives the boom joint angles, the stick effective length calculation module receives the boom joint angles and stick joint angles, and the bucket effective length calculation module receives the boom joint angles, stick joint angles, and bucket joint angles. Then, the calculation results from the three modules are transmitted to a 2D end-effector position calculation module. The system includes a shaft position calculation module and a two-dimensional shaft position calculation module. A separate module for calculating the effective length of the slewing joint receives the chassis slewing joint angle. Finally, a three-dimensional end-effector position calculation module is established using a projection method. This module receives two-dimensional... The calculation results from the axis position calculation module, the two-dimensional axis position calculation module, and the effective height calculation module of the rotary joint are used to calculate the position coordinates of the robotic arm end effector in the three-dimensional coordinate system, and then transmit them to the online trajectory planning module.
[0008] The online trajectory planning module employs an improved multi-objective particle swarm optimization (PSO) algorithm to solve for the optimal trajectory in real time. This module includes the improved PSO algorithm, a criterion for determining whether the trajectory meets physical constraints, and a criterion for minimizing the objective function value. The module receives the shovel tip position coordinates and the start and end coordinates of the operation from the robotic arm's kinematics output in real time. It then uses the improved PSO algorithm to perform online calculations, generating batches of candidate particle trajectories. Each candidate trajectory is then verified to meet the hardware constraints of maximum joint travel, maximum velocity, and maximum angular acceleration. Invalid trajectories are discarded, and the calculation is recalculated. The improved algorithm enhances the global search capability in the early stages of iteration and the local search capability in the later stages by setting the inertia weight and learning factor in the particle velocity update expression to linear changes, thus improving the convergence of results. A multi-objective cost function is constructed with operation energy consumption and single operation duration as optimization objectives. Trajectories that meet physical constraints are substituted into the target cost function for calculation. Particle positions and velocities are iteratively updated until the target cost function converges to its minimum value. Finally, the globally optimal reference angle trajectory is output to the model prediction and feedback compensation controller module.
[0009] The model prediction and feedback compensation controller module constructs constraints and cost functions, and uses the CasADi numerical solver to achieve real-time solution of the optimal control signal. This module includes models of the robot arm's angle, angular velocity, and angular acceleration, adds dynamic / boundary constraints, a quadratic cost function, the CasADi optimization solver, and a feedback compensation module. First, this module obtains the reference angle trajectory from the online trajectory planning module and the actual joint angles from the robot arm's kinematics module, and performs corresponding solutions using the robot arm's angle, angular velocity, and angular acceleration models. Then, the module designs boundary constraints by adding angle constraint ranges, angular velocity constraint ranges, and angular acceleration constraint ranges for each joint of the excavator. A quadratic cost function with joint angles and angular velocities as objectives was constructed. The CasADi optimization solver achieves prediction by obtaining the joint angles of the robotic arm predicted by the Lagrangian-based robotic arm dynamics module. The predicted angles are obtained by adding dynamic / boundary constraints and calculating the quadratic cost function of joint angles and angular velocities. The final result is substituted into the CasADi optimization solver, and the control signal that meets the tracking accuracy is solved iteratively. The feedback compensation module calculates the control signal compensation value by obtaining the actual joint angles of the robotic arm kinematics module, which can effectively compensate for the prediction error caused by model defects. The control signal and the control signal compensation value finally constitute the optimal control signal and are sent to the robotic arm module.
[0010] The hydraulic system module based on the generalized Newtonian method predicts the hydraulic driving force under the current control signal by establishing a hydraulic model through the generalized Newtonian method identification. This module includes an electromagnetic proportional valve model, a spool valve load-flow model, a hydraulic cylinder flow continuity model, a hydraulic cylinder force balance model, generalized Newtonian parameter identification, and a nonlinear hydraulic model. The traditional hydraulic model is constructed by simultaneously establishing the electromagnetic proportional valve model, the spool valve load-flow model, the hydraulic cylinder flow continuity model, and the hydraulic cylinder force balance model. The electromagnetic proportional valve model characterizes the dead zone nonlinearity of the electro-hydraulic proportional valve and establishes the equations corresponding to the control signal and valve core displacement. The spool valve load-flow model characterizes the valve flow saturation nonlinearity and constructs the load-flow equations for the rodless and rod-side chambers. The hydraulic cylinder flow continuity model characterizes the static... Asymmetric characteristics are used to establish a two-chamber flow continuity equation; a hydraulic cylinder force balance model characterizes the cylinder's dynamic asymmetry and nonlinear friction, and the load force in the equation includes inertial force, viscous damping force, cylinder wall friction force, elastic force, and excavation random load force; after establishing a coupled model of control signal, piston displacement, and output driving force by simultaneously solving four sets of equations, a nonlinear hydraulic model is finally established by importing a large amount of experimental data and using the generalized Newton parameter method for parameter identification; the nonlinear hydraulic system module predicts the corresponding hydraulic driving force by obtaining the intermediate values of the model prediction and feedback compensation controller module during the iteration process, and outputs the results to the Lagrange-based robotic arm dynamics module to assist the model prediction and feedback compensation controller module in solving for the optimal control signal.
[0011] The Lagrange-based robotic arm dynamics module uses the Lagrange equation to construct a robotic arm dynamics model to predict the joint angles of the robotic arm under a certain hydraulic driving force. This module includes constructing a DH coordinate system, deriving the angle-cylinder length Jacobian, solving for total kinetic energy and gravitational potential energy, differentiating the Lagrange function, and predicting the end-effector position. First, the module establishes a unified four-degree-of-freedom DH coordinate system for the excavator and derives the Jacobian transformation matrix between the joint rotation angle and the hydraulic cylinder extension length. Then, by solving for the kinetic energy and gravitational potential energy of each link, the Lagrange function of the entire robotic arm is constructed. Finally, by differentiating the second order of the Lagrange function, the complete differential equation of robotic arm dynamics is obtained. This module receives the hydraulic driving force from the hydraulic system module based on the generalized Newton identification method, solves for the predicted end-effector angle of the robotic arm at the next moment through numerical iterative integration, and transmits the result back in real time to the model prediction and feedback compensation controller module to achieve rolling prediction solution.
[0012] The robotic arm module is the physical execution unit of the entire machine, consisting of three parts: an industrial control computer, a hydraulic cylinder drive unit, and the excavator robotic arm body. The industrial control computer is the actual carrier for algorithm and information integration. It is responsible for transmitting information upwards and downwards, and is the actual control unit. The hydraulic cylinder drive unit is the actual power module. Its input signal is the output control signal of the model prediction and feedback compensation controller module. Then, through voltage-driven pilot proportional valve, it changes the opening of the spool valve, regulates the extension and retraction of the hydraulic cylinder piston, and drives the boom, stick, bucket, and swing joints to complete the rotation action. The robotic arm body consists of the boom pitch joint, stick pitch joint, bucket pitch joint, and swing joint.
[0013] The sensor feedback module integrates a multi-channel angle encoder acquisition link to acquire four-degree-of-freedom joint angles in real time. These angles are then sent to the robotic arm kinematics module to calculate the three-dimensional end coordinates of the shovel tip. Simultaneously, the joint angles are sent to the model prediction and feedback compensation controller module, forming a complete position closed-loop feedback control path.
[0014] The beneficial effects of this invention are:
[0015] (1) Compared with the previous single-objective planning, this system adopts an improved multi-objective particle swarm optimization algorithm, which simultaneously constrains joint stroke, speed and acceleration, and optimizes multiple objectives such as operation energy consumption and trajectory time, which greatly reduces the operating consumption of the excavator and improves the working efficiency of the excavator. Moreover, the improved algorithm is less likely to get stuck in local optima than the previous intelligent algorithm by setting time-varying coefficients, and the convergence speed is faster. At the same time, this system adopts online real-time planning, which better meets the actual engineering needs compared with the previous offline planning.
[0016] (2) The nonlinear hydraulic system model of this system fully covers four nonlinearities: valve dead zone, flow saturation, asymmetric cylinder, and friction. It is constructed based on mechanism through the generalized Newton identification method. Compared with the previous linear hydraulic model or pure data fitting hydraulic model, this simulation model is more in line with the dynamic characteristics of the actual hydraulic system. This not only improves the stability margin of the system and makes the trajectory tracking more accurate, but also greatly reduces the debugging process of the actual robotic arm.
[0017] (3) The robotic arm dynamics module builds a complete multi-rigid-body prediction model based on Lagrange dynamics. Compared with the previous model, the error is smaller and the output results are more consistent with the actual structure. This module outputs the joint angle of the next moment in advance to the model prediction controller for rolling optimization, realizes the deviation compensation in advance, and ensures that the tracking error accumulation is small when the long trajectory is continuously operated.
[0018] (4) The controller of this system adopts a model prediction and feedback compensation control scheme, which is different from traditional PID and linear model prediction control. The tracking accuracy and dynamic response performance are greatly improved under variable load and strong nonlinear hydraulic conditions. The feedback compensation module can effectively compensate for model error and make up for the shortcomings of model prediction control. Attached Figure Description
[0019] Figure 1 This is a schematic diagram of the overall structure of the present invention;
[0020] Figure 2 This is a schematic diagram of the kinematics module of the robotic arm of the present invention;
[0021] Figure 3 This is a schematic diagram of the online trajectory planning module of the present invention;
[0022] Figure 4 This is a schematic diagram of the model prediction and feedback compensation controller module of the present invention;
[0023] Figure 5 This is a schematic diagram of the hydraulic system module based on the generalized Newtonian identification method of the present invention;
[0024] Figure 6 This is a schematic diagram of the Lagrange-based robotic arm dynamics module of the present invention;
[0025] Figure 7 The image is an iterative image of the trajectory planning algorithm of this invention;
[0026] Figure 8 This is the reference trajectory for trajectory planning in this invention;
[0027] Figure 9(a) shows the bucket angle tracking curve under linear model predictive control;
[0028] Figure 9(b) shows the tracking angle error curve under linear model predictive control;
[0029] Figure 9(c) shows the bucket angle tracking curve under the nonlinear model prediction and feedback compensation control of the present invention;
[0030] Figure 9(d) shows the tracking angle error curve under the nonlinear model prediction and feedback compensation control of the present invention. Detailed Implementation
[0031] The present invention will be further illustrated below with reference to the accompanying drawings and specific embodiments. It should be understood that the following specific embodiments are for illustrative purposes only and are not intended to limit the scope of the invention. It should be noted that the terms "front," "rear," "left," "right," "up," and "down" used in the following description refer to directions in the accompanying drawings, and the terms "inner" and "outer" refer to directions toward or away from the geometric center of a specific component, respectively.
[0032] like Figure 1 As shown, this embodiment is an online planning and control system for an excavator robotic arm based on model prediction and feedback compensation. The system consists of seven parts: a robotic arm kinematics module, an online trajectory planning module, a model prediction and feedback compensation controller module, a hydraulic system module based on the generalized Newtonian identification method, a robotic arm dynamics module based on Lagrange, a robotic arm module, and a sensor feedback module.
[0033] The sensor feedback module is responsible for collecting the angle information of each joint of the robotic arm and the pressure information of the hydraulic system in real time. These physical parameters are sent to the robotic arm kinematics module. Based on the pre-established DH coordinate system, the robotic arm kinematics module performs forward kinematics calculations on the four degrees of freedom of the boom, stick, bucket, and slewing to obtain the actual three-dimensional end position of the shovel tip, and outputs this coordinate to the online trajectory planning module.
[0034] The online trajectory planning module is responsible for solving the optimal reference trajectory online in real time based on the physical constraints of the robotic arm. This module receives the tip position of the shovel from the kinematics module in real time and performs the optimal solution through an improved multi-objective particle swarm optimization algorithm. When the maximum number of iterations is reached, the reference joint angle trajectory is output to the model prediction and feedback compensation controller module.
[0035] The model prediction and feedback compensation controller module takes the reference joint angle trajectory, measured joint angle, and predicted joint angle as inputs, integrates hydraulic nonlinear constraints to construct a quadratic cost function, obtains the optimal control signal through online rolling optimization using the CasADi numerical solver, and combines it with the compensation result calculated by load feedback, finally outputting the control signal to the robotic arm module.
[0036] The hydraulic system module based on the generalized Newton identification method receives the model prediction and the iterative intermediate values of the feedback compensation controller module. By integrating four parts—the pilot valve dead zone model, the saturated flow model of the spool valve, the continuous flow model of the asymmetric cylinder, and the piston force balance model—a nonlinear hydraulic model is constructed using the generalized Newton identification method, and the real-time driving force is output to the Lagrange-based robotic arm dynamics module.
[0037] The Lagrange-based robotic arm dynamics module receives the driving force, derives the dynamic equations based on the Jacobian matrix and the system's kinetic and potential energy, and outputs the predicted joint angle for the next moment, forming a main closed loop with the model prediction and feedback compensation controller module. The robotic arm module rotates the arm angle based on the control signal, and its onboard sensors provide real-time feedback of physical parameters.
[0038] The sensor feedback module measures the physical state of the robotic arm in real time through high-precision sensors and transmits the physical parameters back to the robotic arm kinematics module, forming a single-path high-precision position closed-loop control link throughout the process, which ultimately constitutes the model prediction and feedback compensation control system of the excavator robotic arm.
[0039] like Figure 2 As shown, the robotic arm kinematics module includes a boom effective length calculation module, a stick effective length calculation module, a bucket effective length calculation module, a slewing effective height calculation module, a two-dimensional x-axis position calculation module, a two-dimensional y-axis position calculation module, and a three-dimensional end effector position calculation module.
[0040] This module receives boom joint angles, stick joint angles, bucket joint angles, and chassis slewing joint angles from the sensor feedback module, and establishes a DH coordinate system for the robotic arm. First, on a two-dimensional plane, the boom, stick, and bucket are divided into three parts using a geometric method for separate solutions:
[0041] The effective boom length calculation module receives the boom joint angle and calculates the effective projected length of the boom on a two-dimensional plane.
[0042] The effective length calculation module for the stick receives the boom joint angle and the stick joint angle, and calculates the effective projection length of the stick on a two-dimensional plane.
[0043] The effective length calculation module for the bucket receives the boom joint angle, stick joint angle, and bucket joint angle to calculate the effective projected length of the bucket on a two-dimensional plane.
[0044] The calculation results from the three modules are transmitted to the 2D x-axis position calculation module and the 2D y-axis position calculation module, while the effective length calculation module for the rotary joint receives the angle of the chassis rotary joint separately. Finally, a 3D end-effector position calculation module is established using the projection method. This module receives the calculation results from the 2D x-axis position calculation module, the 2D y-axis position calculation module, and the effective height calculation module for the rotary joint, calculates the position coordinates of the robotic arm end-effector in the 3D coordinate system, and transmits them to the online trajectory planning module.
[0045] like Figure 3 As shown, the online trajectory planning module includes an improved multi-objective particle swarm algorithm submodule, a trajectory physical constraint judgment submodule, and an objective function value judgment submodule.
[0046] This module receives the shovel tip position coordinates and the start and end target coordinates from the robotic arm's kinematics output in real time. It then uses an improved multi-objective particle swarm optimization algorithm to generate candidate particle trajectories online in batches. The candidate trajectories are described using a fifth-order polynomial to represent the angle functions of the boom, stick, and bucket joints, while the slewing joint uses a uniform rotation model.
[0047] After generating candidate trajectories, the trajectory physics constraint judgment submodule verifies whether each candidate trajectory meets the hardware constraints of maximum joint travel, maximum motion velocity, and maximum angular acceleration, discarding invalid trajectories and recalculating. Subsequently, the objective function value judgment submodule constructs a multi-objective cost function with operation energy consumption and single operation duration as optimization objectives, and substitutes the trajectories that meet the physical constraints into the objective cost function for calculation. By iteratively updating particle positions and velocities until the objective cost function converges to its minimum value, the globally optimal reference joint angle trajectory is finally output to the model prediction and feedback compensation controller module.
[0048] like Figure 4 As shown, the model prediction and feedback compensation controller module includes: a robotic arm motion state model submodule, a dynamic / boundary constraint addition submodule, a quadratic cost function submodule, a CasaADi optimization solver submodule, and a feedback compensation submodule.
[0049] This module acquires the reference joint angle trajectory from the online trajectory planning module and the actual joint angles from the sensor feedback module, and performs corresponding solutions using the robot arm angle, angular velocity, and angular acceleration models. This module designs boundary constraints by adding constraints on the angle, angular velocity, and angular acceleration ranges of each excavator joint, and constructs a quadratic cost function with the robot arm joint angles and angular velocities as objectives.
[0050] The CasADi optimization solver achieves its prediction function by acquiring the joint angles of the robotic arm predicted by the Lagrange-based robotic arm dynamics module. The predicted angles are obtained by adding dynamic / boundary constraints and calculating quadratic cost functions for joint angles and angular velocities, which are then substituted into the CasADi optimization solver to iteratively solve for the basic control signals that meet tracking accuracy. The feedback compensation module calculates the compensation values for the control signals by acquiring the actual joint angles from the robotic arm kinematics module. The basic control signals and the compensation values ultimately constitute the optimal control signal and are sent to the robotic arm module.
[0051] like Figure 5 As shown, the hydraulic system module based on the generalized Newtonian identification method includes: an electromagnetic proportional valve model submodule, a spool valve load flow model submodule, a hydraulic cylinder flow continuous model submodule, a hydraulic cylinder force balance model submodule, a generalized Newtonian parameter identification submodule, and a nonlinear hydraulic model submodule.
[0052] The electromagnetic proportional valve model characterizes the dead zone nonlinearity of the electro-hydraulic proportional valve, establishing equations corresponding to the control signal and valve core displacement. The spool valve load-flow model characterizes the valve flow saturation nonlinearity, constructing load-flow equations for the rodless and rod-side chambers. The hydraulic cylinder flow continuity model characterizes the static asymmetry of the asymmetric cylinder, establishing flow continuity equations for both chambers. The hydraulic cylinder force balance model characterizes the cylinder's dynamic asymmetry and nonlinear friction; the load force equations include inertial force, viscous damping force, cylinder wall friction force, elastic force, and excavation random load force.
[0053] A coupled model of the control signal, piston displacement, and output driving force is established by simultaneously solving the above four sets of equations. By importing multiple sets of experimental data and employing the generalized Newtonian parameter method for parameter identification and formula simplification, a nonlinear hydraulic model is finally established. This module predicts the corresponding driving force by obtaining the intermediate values during the iteration process of the model prediction and feedback compensation controller module, and outputs the results to the Lagrange-based robotic arm dynamics module.
[0054] like Figure 6 As shown, the Lagrange-based robotic arm dynamics module is used to construct the DH coordinate system and derive the Jacobian transformation matrix between the joint rotation angle and the hydraulic cylinder extension length. Then, by solving for the kinetic energy and gravitational potential energy of each link, the Lagrange function of the entire robotic arm is constructed, and the second derivative of the Lagrange function is obtained to obtain the complete differential equation of robotic arm dynamics.
[0055] After receiving the hydraulic driving force from the hydraulic system module based on the generalized Newtonian identification method, this module solves for the angular acceleration of each joint through the differential equation of the robot arm dynamics, and solves for the predicted angle of the robot arm at the next moment through angle integration. The results are then transmitted back to the model prediction and feedback compensation controller module in real time to achieve the rolling prediction solution.
[0056] The robotic arm module is the physical execution unit of the entire machine, consisting of three parts: an industrial control computer, a hydraulic cylinder drive unit, and the excavator robotic arm body. The industrial control computer is the actual carrier for algorithm and information integration, responsible for transmitting information upwards and downwards; it is the actual control unit. The hydraulic cylinder drive unit is the actual power module. Its input signal is the output control signal from the model prediction and feedback compensation controller module. Through voltage-driven pilot proportional valves, it changes the opening of the spool valve, regulates the extension and retraction of the hydraulic cylinder piston, and drives the boom, stick, bucket, and swing joints to complete the rotational movements. The robotic arm body consists of the boom pitch joint, stick pitch joint, bucket pitch joint, and swing joint.
[0057] The sensor feedback module integrates a multi-channel angle encoder acquisition link to acquire four-degree-of-freedom joint angles in real time. These angles are then sent to the robotic arm kinematics module to calculate the three-dimensional end coordinates of the shovel tip. Simultaneously, the joint angles are sent to the model prediction and feedback compensation controller module, forming a complete position closed-loop feedback control path.
[0058] This embodiment also provides an online planning and control method for excavator robotic arms based on model prediction and feedback compensation, implemented using the above system, including the following steps:
[0059] Step S1: Collect the angles of each joint of the excavator's robotic arm in real time, and use a forward kinematics model based on the DH coordinate system to calculate the actual position of the blade tip.
[0060] The kinematic forward model based on the DH coordinate system is a four-degree-of-freedom forward model, which includes four joints: boom, stick, bucket, and slewing.
[0061] Specifically, the sensor feedback module collects angle signals from the four joints of the boom, stick, bucket, and swing arm in real time via an angle encoder, and transmits the signals to the PLC controller, which then sends them to the PC calculation output terminal via a CAN communicator. The PC calculation output terminal performs forward solving on the four degrees of freedom based on a pre-established DH coordinate system to obtain the actual three-dimensional end position of the shovel tip.
[0062] Step S2: Using the actual position of the end point as the initial state, an improved multi-objective particle swarm optimization algorithm is used to generate candidate trajectories in batches. Each candidate trajectory is checked to see if it meets the hardware constraints of the maximum joint stroke, maximum velocity, and maximum angular acceleration. Invalid trajectories are eliminated. A multi-objective cost function is constructed with the optimization objectives of operation energy consumption and single operation duration. Trajectories that meet the physical constraints are substituted into the objective cost function for calculation. The particle position and velocity are iteratively updated until the objective cost function converges to the minimum value, and the globally optimal reference trajectory is output.
[0063] In step S2, the improved multi-objective particle swarm optimization algorithm sets the inertia weight and learning factor in the particle velocity update expression as dynamic parameters that change linearly with the number of iterations; the candidate trajectory uses a fifth-order polynomial to describe the angle functions of the boom, stick, and bucket joints, and the slewing joint uses a uniform rotation model; the multi-objective cost function takes the shortest total operation time and the lowest system energy consumption as optimization objectives.
[0064] The candidate trajectory expression is as follows:
[0065] ;
[0066] in, , , These are the angle functions of the three joints: boom, stick, and bucket, described by a fifth-order polynomial. - , - , - These are the fifth-order polynomial coefficients for the boom, stick, and bucket joints, respectively. For the angle function of the rotary joint, The initial angle of rotation, It is a function of rotational angular velocity. The movement time of the excavator's robotic arm;
[0067] The parameter update formula for the improved multi-objective particle swarm optimization algorithm is as follows:
[0068] ;
[0069] ;
[0070] ;
[0071] in, It is inertial weight. As a global learning factor, For local learning factors, Represents the number of iterations. Represents the total number of iterations;
[0072] The multi-objective cost function is:
[0073] ;
[0074] ;
[0075] ;
[0076] in, It is the time fitness function, representing the time of all trajectories and minimizing it. The total number of segments in the trajectory. For the first The running time of the segment trajectory, It is the energy fitness function, representing the minimum total energy consumption of the excavator's robotic arm. For the first Energy consumption of robotic arm motion along segment trajectory. , The normalization coefficient is... , These are weighting coefficients used to balance the priorities of time and energy consumption;
[0077] The physical constraints are:
[0078] ;
[0079] ;
[0080] ;
[0081] =1,2,3,4:
[0082] in, , and Representing joints The maximum angle, maximum angular velocity, and maximum angular acceleration. , and Representing joints The minimum angle, minimum angular velocity, and minimum angular acceleration.
[0083] Step S3: Input the reference joint angle trajectory and the measured joint angle into the model predictive controller, and solve the corresponding problems using the robot arm angle, angular velocity, and angular acceleration models; add boundary constraints for each joint angle, angular velocity, and angular acceleration, and construct a quadratic cost function with the joint angle and angular velocity as the objectives; obtain the joint angle predicted by the robot arm dynamics module based on Lagrange, and solve the basic control signal that meets the tracking accuracy by using the CasADi numerical solver rolling iteration and the hydraulic system module based on the generalized Newton identification method; at the same time, calculate the feedback compensation value based on the measured joint angle, and superimpose the basic control signal and the feedback compensation value to generate the final control signal.
[0084] In this step, the quadratic cost function is:
[0085] ;
[0086] in Indicates the prediction time step. This represents the weighting coefficient for joint angle tracking. This indicates the penalty weight for intermediate control quantities. Indicates the first Step 1 Regarding the reference joint angle, Indicates the first Step 1 Joint reference joint angular velocity, Indicates the first Step 1 Regarding the prediction of joint angles, Indicates the first Step 1 Predicting joint angular velocity, This indicates the optimization of intermediate control quantities;
[0087] The recursive equation for the prediction model is:
[0088] ;
[0089] in Represents the measured / predicted value at the current time. Initial value of joint angle, The joint angle function is calculated by the Lagrange-based robotic arm dynamics module. express Minimum joint angle express Maximum joint angle , Indicates the upper and lower limits of intermediate variables. , This represents the maximum change of an intermediate variable in a single step. This indicates that the cost function The smallest intermediate quantity, Basic control signal;
[0090] The feedback compensation control law shown is:
[0091] ;
[0092] in Indicates the first Time of the first Joint angle error, Indicates the first Time of the first Joint PI integral term, This indicates the lower limit of the integral limit. Indicates the upper limit of the points limit. Indicates proportional feedback gain. Indicates integral feedback gain. Indicates the sampling period of the control system. This represents the control signal compensation value. This represents the optimal control signal after superimposed compensation;
[0093] The nonlinear model of the hydraulic system module is as follows:
[0094] The dead zone model of an electromagnetic proportional valve is as follows:
[0095] ;
[0096] in Indicates the displacement of the valve core in an electro-hydraulic proportional valve. This represents the input voltage signal for proportional valve control. This represents the dead-zone threshold voltage of the proportional valve. This indicates the valve core displacement-voltage proportional gain.
[0097] The spool valve load flow model characterizes the valve flow saturation nonlinearity, and constructs the load flow equations for the rodless chamber and the rod chamber:
[0098] ;
[0099] in This indicates the load flow rate of the rodless chamber of the hydraulic cylinder. This indicates the load flow rate of the rod chamber in the hydraulic cylinder. Indicates the flow coefficient of the slide valve. This represents the gradient of the valve orifice area of the spool valve. Indicates the density of hydraulic oil. Indicates the system oil supply pressure. Indicates the pressure in the return oil line. This indicates the pressure inside the rodless chamber of the hydraulic cylinder. This indicates the pressure inside the rod chamber of the hydraulic cylinder. Indicates valve core displacement;
[0100] A continuous flow model for hydraulic cylinders characterizes the static asymmetry of asymmetric cylinders, and a continuous flow equation for the two chambers is established:
[0101] ;
[0102] in This indicates the effective working area of the piston in the rodless chamber of the hydraulic cylinder. This indicates the effective working area of the piston in the rod chamber of a hydraulic cylinder. Indicates the displacement of the hydraulic cylinder piston. Indicates the piston's speed. This indicates the effective bulk modulus of elasticity of hydraulic oil. This represents the initial volume of the rodless chamber when the piston is in the zero position. This indicates the initial volume of the rod chamber when the piston is in the zero position. This represents the internal leakage coefficient of the hydraulic cylinder. This represents the external leakage coefficient of the hydraulic cylinder. This represents the rate of change of pressure in the rodless chamber. This indicates the rate of change of pressure in the rod chamber;
[0103] The hydraulic cylinder force balance model characterizes the cylinder's dynamic asymmetry and nonlinear friction. The load force equation includes inertial force, viscous damping force, cylinder wall friction force, elastic force, and excavation random load force.
[0104] ;
[0105] ;
[0106] in This represents the equivalent total mass of the piston, piston rod, and external load. Indicates the acceleration of the piston. This represents the viscous damping coefficient of the hydraulic cylinder. This represents the system's equivalent elastic stiffness. This represents the nonlinear frictional force on the cylinder wall of a hydraulic cylinder. This represents the random external load force during the excavation operation. Indicates the pressure in the rodless chamber. Indicates the pressure in the rod chamber. , This indicates the working area of the two chambers of the hydraulic cylinder. This represents the maximum static friction force. Represents Coulomb friction. Indicates characteristic velocity, Indicates the engineering coefficient. Indicates the coefficient of viscous friction. This indicates the piston speed.
[0107] The generalized Newtonian identification nonlinear hydraulic model is as follows:
[0108] ;
[0109] in Indicates the first Time of the first Intermediate control values during joint iteration. , , Represents the intermediate state variables of the hydraulic model. , Represents the coefficients of a static nonlinear model. This indicates that historical steps should be retained. Indicates the first in history Step coefficient, Indicates the first Joint history Step-by-step control input, Indicates a piecewise nonlinear threshold. , , This indicates the piecewise output nonlinear coefficients. Indicates the first Sampling time number The hydraulic cylinder outputs hydraulic driving force.
[0110] The Lagrange-based robotic arm dynamics model is as follows:
[0111] ;
[0112] in, For the first Kinetic energy of the rod, This is the joint angle vector of the robotic arm. The inertia matrix, This is the joint angular velocity vector;
[0113] ;
[0114] in, For the first Gravitational potential energy of the rod Indicates the first Member quality, It is the acceleration due to gravity. The height of the bar's center of mass;
[0115] ;
[0116] in, It is a Lagrange function;
[0117] ;
[0118] in, For the first Each joint angle Output joint drive force / torque vector to the hydraulic system module;
[0119] After receiving the hydraulic driving force from the hydraulic system module based on the generalized Newtonian identification method, this module solves for the angular acceleration of each joint through the differential equation of the robot arm's dynamics, and calculates the predicted angle of the robot arm at the next moment through angle integration. This information is then transmitted back in real time to the model prediction and feedback compensation controller module to achieve the rolling prediction solution.
[0120]
[0121] in Represents a joint angle function. Indicates the current time Initial angle values of the joint Indicates the control time interval.
[0122] Step S4: Send the final control signal to the robotic arm module, change the opening of the spool valve through the voltage-driven pilot proportional valve, regulate the extension and retraction of the hydraulic cylinder piston, and drive the boom, stick, bucket, and swing joints to complete the rotation.
[0123] Specifically, the PC output terminal sends the superimposed and compensated optimal control signal to the PLC controller via the CAN communicator. The PLC controller converts the control signal into a PWM pulse width modulation signal to drive the pilot proportional valve. The pilot proportional valve changes the spool opening according to the control signal, regulates the flow into the hydraulic cylinder, drives the hydraulic cylinder piston to extend and retract, thereby causing the boom, stick, bucket, and swing joints to complete the rotational action according to the desired trajectory.
[0124] Step S5: The four-degree-of-freedom joint angles are collected in real time through the sensor feedback module and sent to the robotic arm kinematics module to calculate the three-dimensional end coordinates of the shovel tip. At the same time, the joint angles are sent to the model prediction and feedback compensation controller module, and the process returns to step S1 to form a complete position closed-loop feedback control path.
[0125] Specifically, angle sensors located on each rotary joint acquire the actual joint angles of the robotic arm in real time. One input is sent to the robotic arm kinematics module to calculate the three-dimensional end-effector position coordinates of the shovel tip for trajectory planning, and the other input is sent to the model prediction and feedback compensation controller module for closed-loop control. The system repeats steps S1 to S5 at a preset sampling frequency (e.g., 100Hz) to form a continuous position closed-loop feedback control path.
[0126] Experimental verification:
[0127] I. Setting up the environment and experiment
[0128] The method in this embodiment is implemented based on the ROS robot operating system and the industrial control computer of the unmanned excavator. To ensure the fairness of the comparison, all comparison algorithms are tested using the same simulation model, sampling period, and weight parameters. Statistical analysis employs multiple sets of repeated simulation experiments, that is, multiple sets of simulations are run repeatedly on the preset working trajectory, with each set of simulations using different initial joint states and external random excavation loads; each test records various evaluation indicators, and the experimental results output the mean and standard deviation of each tracking performance evaluation indicator.
[0129] To verify the effectiveness of the control system of this invention, comparative experiments were conducted on prototypes under various typical excavator operating conditions, including planar excavation and rotary unloading. These test conditions covered different motion speed ranges, cylinder working stroke ranges, and external excavation disturbance loads, enabling a comprehensive evaluation of the control system's trajectory tracking accuracy, anti-disturbance capability, and generalization performance in actual operations.
[0130] II. Simulation and Experimental Data Results
[0131] Figure 7 The figure shows a comparison of the iterative solutions of the improved multi-objective particle swarm optimization algorithm of this invention and the traditional multi-objective particle swarm optimization algorithm (MOPSO). The vertical axis represents the trajectory planning value function value, which is better the smaller it is, and the horizontal axis represents the number of iterations. As can be seen from the figure, the former converges faster than the latter and the final result is better, demonstrating the superiority of this algorithm in terms of not being easily trapped in local conditions and its convergence speed.
[0132] Figure 8 The image shown is a simulated 3D image of the reference trajectory for the unmanned excavator's robotic arm trajectory planning. It represents the coordinate curve trajectory of the robotic arm's end effector during unmanned excavator operation. It passes through points A, B, C, D, E, F, and G in sequence, and finally returns to A, realizing the cyclical process of shoveling, digging, shoveling out, lifting, rotating, dumping, and resetting.
[0133] The bucket angle tracking data from five actual excavation cycles under two control methods—traditional linear model predictive control and nonlinear model predictive and feedback compensation control—are presented in Figures 9(a) and 9(b), which represent the bucket angle and tracking angle errors under linear model predictive control, with maximum errors of -18° and 10°, respectively. Figures 9(c) and 9(d) represent the bucket angle and tracking angle errors under nonlinear model predictive and feedback compensation control, with maximum errors of -12° and 4°, respectively. This demonstrates that the nonlinear model predictive and feedback compensation control method of this invention has an advantage in tracking accuracy compared to traditional linear model predictive control.
[0134] The technical means disclosed in this invention are not limited to those disclosed in the above embodiments, but also include technologies composed of any combination of the above technical features.
Claims
1. An online planning and control system for an excavator robotic arm based on model prediction and feedback compensation, characterized in that: The system includes a robotic arm kinematics module, an online trajectory planning module, a model prediction and feedback compensation controller module, a hydraulic system module based on the generalized Newtonian identification method, a robotic arm dynamics module based on Lagrange, a robotic arm module, and a sensor feedback module. The robotic arm kinematics module is used to establish a four-degree-of-freedom forward model of the boom, stick, bucket, and slewing based on the DH coordinate system, receive joint angle information measured by sensors, calculate the actual three-dimensional end position of the shovel tip, and output it to the online trajectory planning module. The online trajectory planning module is used to solve the optimal reference trajectory online in real time based on the physical constraints of the robotic arm. It receives the tip position of the shovel from the kinematics module of the robotic arm in real time, and performs the optimal solution through an improved multi-objective particle swarm optimization algorithm. When the maximum number of iterations is reached, the reference joint angle trajectory is output to the model prediction and feedback compensation controller module. The model prediction and feedback compensation controller module is used to construct a quadratic cost function by integrating hydraulic nonlinear constraints with reference joint angle trajectory, measured joint angle and predicted joint angle as input, obtain the optimal control signal through online rolling optimization by the CasADi numerical solver, and combine it with the compensation result calculated by load feedback, and finally output the control signal to the robotic arm module. The hydraulic system module based on the generalized Newton identification method is used to receive the iterative intermediate values of the model prediction and feedback compensation controller module. By integrating four parts—pilot valve dead zone model, spool valve saturated flow model, asymmetric cylinder flow continuous model, and piston force balance model—a nonlinear hydraulic model is constructed using the generalized Newton identification method, and the real-time driving force is output to the Lagrange-based robotic arm dynamics module. The Lagrange-based robotic arm dynamics module is used to receive the driving force, derive the dynamic equations based on the Jacobian matrix and the system's kinetic and potential energy, and output the predicted joint angle at the next moment to form the main closed loop of the model prediction and feedback compensation controller module. The robotic arm module is used to rotate the robotic arm angle based on the control signal; The sensor feedback module is used to measure the physical state of the robotic arm in real time through high-precision sensors and transmit the physical parameters back to the robotic arm kinematics module, forming a single-path high-precision position closed-loop control link throughout the process.
2. The online planning and control system for excavator robotic arms based on model prediction and feedback compensation according to claim 1, characterized in that: The robotic arm kinematics module includes a boom effective length calculation module, a stick effective length calculation module, a bucket effective length calculation module, a slewing effective height calculation module, a two-dimensional x-axis position calculation module, a two-dimensional y-axis position calculation module, and a three-dimensional end effector position calculation module. This module receives boom joint angles, stick joint angles, bucket joint angles, and chassis slewing joint angles from sensor feedback modules. By establishing a DH coordinate system for the robotic arm, it first uses a geometric method on a two-dimensional plane to divide the boom, stick, and bucket into three parts for separate calculations. The boom effective length calculation module receives the boom joint angles and the stick effective length calculation module. The calculation module receives the boom joint angle and stick joint angle, while the effective bucket length calculation module receives the boom joint angle, stick joint angle, and bucket joint angle. The calculation results from these three modules are transmitted to the two-dimensional x-axis position calculation module and the two-dimensional y-axis position calculation module. The effective length calculation module for the slewing joint receives the chassis slewing joint angle separately. Finally, a three-dimensional end-effector position calculation module is established using the projection method. This module receives the calculation results from the two-dimensional x-axis position calculation module, the two-dimensional y-axis position calculation module, and the effective height calculation module for the slewing joint, calculates the position coordinates of the robotic arm end-effector in the three-dimensional coordinate system, and transmits them to the online trajectory planning module.
3. The online planning and control system for excavator robotic arms based on model prediction and feedback compensation according to claim 1, characterized in that: The online trajectory planning module includes an improved multi-objective particle swarm algorithm submodule, a trajectory physical constraint judgment submodule, and an objective function value judgment submodule; This module receives the shovel tip position coordinates and the start and end target coordinates of the operation from the kinematic output of the robotic arm in real time. It calculates online using an improved multi-objective particle swarm optimization algorithm, generates candidate particle trajectories in batches, verifies whether each candidate trajectory meets the hardware constraints of maximum joint stroke, maximum motion speed, and maximum angular acceleration, eliminates invalid trajectories, and recalculates. It constructs a multi-objective cost function with operation energy consumption and single operation duration as optimization objectives, substitutes the trajectories that meet the physical constraints into the target cost function for calculation, and updates the particle position and velocity through iterative loops until the target cost function converges to the minimum value. Finally, it outputs the globally optimal reference joint angle trajectory to the model prediction and feedback compensation controller module.
4. The online planning and control system for excavator robotic arms based on model prediction and feedback compensation according to claim 1, characterized in that: The model prediction and feedback compensation controller module includes: a robotic arm motion state model submodule, a dynamic / boundary constraint addition submodule, a quadratic cost function submodule, a CasADi optimization solver submodule, and a feedback compensation submodule. This module acquires the reference joint angle trajectory from the online trajectory planning module and the actual joint angles from the sensor feedback module, and performs corresponding solutions using the robotic arm angle, angular velocity, and angular acceleration models. This module designs boundary constraints by adding constraints on the angle, angular velocity, and angular acceleration ranges of each excavator joint, and constructs a quadratic cost function targeting the robotic arm joint angles and angular velocities. The CasADi optimization solver achieves prediction by acquiring the robotic arm joint angles predicted by the Lagrange-based robotic arm dynamics module. The predicted angles are obtained by adding dynamic / boundary constraints and calculating the quadratic cost function of joint angles and angular velocities, then substituted into the CasADi optimization solver to iteratively solve for the basic control signal that satisfies the tracking accuracy. The feedback compensation module calculates the control signal compensation value by acquiring the actual joint angles from the robotic arm kinematics module. The basic control signal and the control signal compensation value ultimately constitute the optimal control signal and are sent to the robotic arm module.
5. The online planning and control system for excavator robotic arms based on model prediction and feedback compensation according to claim 1, characterized in that: The hydraulic system module based on the generalized Newtonian identification method includes: an electromagnetic proportional valve model submodule, a spool valve load flow model submodule, a hydraulic cylinder flow continuity model submodule, a hydraulic cylinder force balance model submodule, a generalized Newtonian parameter identification submodule, and a nonlinear hydraulic model submodule. The electromagnetic proportional valve model characterizes the dead zone nonlinearity of the electro-hydraulic proportional valve and establishes the equation corresponding to the control signal and valve core displacement. The spool valve load flow model characterizes the saturation nonlinearity of the valve flow and constructs the load flow equations for the rodless chamber and the rod chamber. The hydraulic cylinder flow continuity model characterizes the static asymmetry characteristics of the asymmetric cylinder and establishes the flow continuity equation for the two chambers. The hydraulic cylinder force balance model characterizes the dynamic asymmetry and nonlinear friction of the cylinder. A coupling model of the control signal, piston displacement, and output driving force is established by simultaneously solving four sets of equations. By importing multiple sets of experimental data and using the generalized Newtonian parameter method for parameter identification and formula simplification, a nonlinear hydraulic model is finally established. This module predicts the corresponding driving force by obtaining the intermediate values of the model prediction and feedback compensation controller module during iteration and outputs the results to the Lagrange-based robotic arm dynamics module.
6. The online planning and control system for excavator robotic arms based on model prediction and feedback compensation according to claim 1, characterized in that: The Lagrange-based robotic arm dynamics module is used to construct the DH coordinate system and derive the Jacobian transformation matrix between joint rotation angles and hydraulic cylinder extension lengths. Then, by solving for the kinetic energy and gravitational potential energy of each link, the Lagrange function of the entire robotic arm is constructed, and the second derivative of the Lagrange function is obtained to obtain the complete robotic arm dynamics differential equation. After receiving the hydraulic driving force from the hydraulic system module based on the generalized Newton identification method, this module solves for the angular acceleration of each joint through the robotic arm dynamics differential equation, and solves for the predicted angle of the robotic arm at the next moment by angle integration. The result is then fed back to the model prediction and feedback compensation controller module in real time to achieve rolling prediction solution.
7. The online planning and control system for excavator robotic arms based on model prediction and feedback compensation according to claim 1, characterized in that: The robotic arm module is the physical execution unit of the entire machine, consisting of three parts: an industrial control computer, a hydraulic cylinder drive unit, and the excavator robotic arm body. The industrial control computer is the actual carrier for algorithm and information integration. The hydraulic cylinder drive unit is the actual power module, whose input signal is the output control signal of the model prediction and feedback compensation controller module. It changes the opening of the spool valve through voltage-driven pilot proportional valve, regulates the extension and retraction of the hydraulic cylinder piston, and drives the boom, stick, bucket, and swing joints to complete the rotation action. The robotic arm body consists of the boom pitch joint, stick pitch joint, bucket pitch joint, and swing joint. The sensor feedback module integrates a multi-channel angle encoder acquisition link to collect the angles of the four degrees of freedom joints in real time, which are sent to the robotic arm kinematics module to calculate the three-dimensional end coordinates of the shovel tip. At the same time, the joint angles are sent to the model prediction and feedback compensation controller module to form a complete position closed-loop feedback control path.
8. An online planning and control method for an excavator robotic arm based on model prediction and feedback compensation, employing the system described in any one of claims 1 to 7, characterized in that, Includes the following steps: Step S1: Real-time acquisition of the angles of each joint of the excavator's robotic arm, and calculation of the actual position of the tip of the shovel using a forward kinematics model based on the DH coordinate system; the forward kinematics model based on the DH coordinate system is a four-degree-of-freedom forward kinematics model, which includes four joints: boom, stick, bucket, and swing. Step S2: Using the actual position of the end as the initial state, an improved multi-objective particle swarm optimization algorithm is used to generate candidate trajectories in batches. Each candidate trajectory is checked to see if it meets the hardware constraints of the maximum joint stroke, maximum velocity, and maximum angular acceleration. Invalid trajectories are eliminated. A multi-objective cost function with the objectives of operation energy consumption and single operation time is established. The particle position and velocity are updated iteratively until the objective cost function converges to the minimum value. The globally optimal reference trajectory is then output. Step S3: Input the reference joint angle trajectory and the measured joint angle into the model predictive controller, and solve the corresponding problems using the robot arm angle, angular velocity, and angular acceleration models; add boundary constraints for each joint angle, angular velocity, and angular acceleration, and construct a quadratic cost function with the joint angle and angular velocity as the objectives; obtain the joint angle predicted by the robot arm dynamics module based on Lagrange, and solve the basic control signal that meets the tracking accuracy by using the CasADi numerical solver rolling iteration and the hydraulic system module based on the generalized Newton identification method; at the same time, calculate the feedback compensation value based on the measured joint angle, and superimpose the basic control signal and the feedback compensation value to generate the final control signal; Step S4: Send the final control signal to the robotic arm module, change the opening of the slide valve through the voltage-driven pilot proportional valve, regulate the extension and retraction of the hydraulic cylinder piston, and drive the boom, stick, bucket, and swing joints to complete the rotation. Step S5: The four-degree-of-freedom joint angles are collected in real time through the sensor feedback module and sent to the robotic arm kinematics module to calculate the three-dimensional end coordinates of the shovel tip. At the same time, the joint angles are sent to the model prediction and feedback compensation controller module, and the process returns to step S1 to form a complete position closed-loop feedback control path.
9. The online planning and control method for excavator robotic arms based on model prediction and feedback compensation according to claim 8, characterized in that, In step S2, the improved multi-objective particle swarm optimization algorithm sets the inertia weight and learning factor in the particle velocity update expression as dynamic parameters that change linearly with the number of iterations; the candidate trajectory uses a fifth-order polynomial to describe the angle functions of the boom, stick, and bucket joints, and the slewing joint uses a uniform rotation model; the multi-objective cost function takes the shortest total operation time and the lowest system energy consumption as optimization objectives. The candidate trajectory expression is as follows: ; in, , , These are the angle functions of the three joints: boom, stick, and bucket, described by a fifth-order polynomial. - , - , - These are the fifth-order polynomial coefficients for the boom, stick, and bucket joints, respectively. For the angle function of the rotary joint, The initial angle of rotation, It is a function of rotational angular velocity. The movement time of the excavator's robotic arm; The parameter update formula for the improved multi-objective particle swarm optimization algorithm is as follows: ; ; ; in, It is inertial weight. As a global learning factor, For local learning factors, Represents the number of iterations. Represents the total number of iterations; The multi-objective cost function is: ; ; ; in, It is the time fitness function, representing the time of all trajectories and minimizing it. The total number of segments in the trajectory. For the first The running time of the segment trajectory, It is the energy fitness function, representing the minimum total energy consumption of the excavator's robotic arm. For the first Energy consumption of robotic arm motion along segment trajectory. , The normalization coefficient is... , These are weighting coefficients used to balance the priorities of time and energy consumption; The physical constraints are: ; ; ; =1,2,3,4: in, , and Representing joints The maximum angle, maximum angular velocity, and maximum angular acceleration. , and Representing joints The minimum angle, minimum angular velocity, and minimum angular acceleration.
10. The online planning and control method for an excavator robotic arm based on model prediction and feedback compensation according to claim 8, characterized in that, In step S3, the specific expressions for the quadratic cost function, the prediction model recursion, the constraints, the feedback compensation control law, the hydraulic system model, and the dynamic model are as follows: Quadratic cost function: ; in Indicates the prediction time step. This represents the weighting coefficient for joint angle tracking. This indicates the penalty weight for intermediate control quantities. Indicates the first Step 1 Regarding the reference joint angle, Indicates the first Step 1 Joint reference joint angular velocity, Indicates the first Step 1 Regarding the prediction of joint angles, Indicates the first Step 1 Predicting joint angular velocity, This indicates the optimization of intermediate control quantities; The recursive equation for the prediction model is: ; in Represents the measured / predicted value at the current time. Initial value of joint angle, The joint angle function is calculated by the Lagrange-based robotic arm dynamics module. express Minimum joint angle express Maximum joint angle , Indicates the upper and lower limits of intermediate variables. , This represents the maximum change of an intermediate variable in a single step. This indicates that the cost function The smallest intermediate quantity, Basic control signal; The feedback compensation control law shown is: ; in Indicates the first Time of the first Joint angle error, Indicates the first Time of the first Joint PI integral term, This indicates the lower limit of the integral limit. Indicates the upper limit of the points limit. Indicates proportional feedback gain. Indicates integral feedback gain. Indicates the sampling period of the control system. This represents the control signal compensation value. This represents the optimal control signal after superposition and compensation. The nonlinear model of the hydraulic system module is as follows: The dead zone model of an electromagnetic proportional valve is as follows: ; in Indicates the displacement of the valve core in an electro-hydraulic proportional valve. This represents the input voltage signal for proportional valve control. This represents the dead-zone threshold voltage of the proportional valve. This indicates the valve core displacement-voltage proportional gain; The spool valve load flow model characterizes the valve flow saturation nonlinearity, and constructs the load flow equations for the rodless chamber and the rod chamber: ; in This indicates the load flow rate of the rodless chamber of the hydraulic cylinder. This indicates the load flow rate of the rod chamber in the hydraulic cylinder. Indicates the flow coefficient of the slide valve. This represents the gradient of the valve orifice area of the spool valve. Indicates the density of hydraulic oil. Indicates the system oil supply pressure. Indicates the pressure in the return oil line. This indicates the pressure inside the rodless chamber of the hydraulic cylinder. This indicates the pressure inside the rod chamber of the hydraulic cylinder. Indicates valve core displacement; A continuous flow model for hydraulic cylinders characterizes the static asymmetry of asymmetric cylinders, and a continuous flow equation for the two chambers is established: ; in This indicates the effective working area of the piston in the rodless chamber of the hydraulic cylinder. This indicates the effective working area of the piston in the rod chamber of a hydraulic cylinder. Indicates the displacement of the hydraulic cylinder piston. Indicates the piston's speed. This indicates the effective bulk modulus of elasticity of hydraulic oil. This represents the initial volume of the rodless chamber when the piston is in the zero position. This indicates the initial volume of the rod chamber when the piston is in the zero position. This represents the internal leakage coefficient of the hydraulic cylinder. This represents the external leakage coefficient of the hydraulic cylinder. This represents the rate of change of pressure in the rodless chamber. This indicates the rate of change of pressure in the rod chamber; The hydraulic cylinder force balance model characterizes the cylinder's dynamic asymmetry and nonlinear friction. The load force equation includes inertial force, viscous damping force, cylinder wall friction force, elastic force, and excavation random load force. ; ; in This represents the equivalent total mass of the piston, piston rod, and external load. Indicates the acceleration of the piston. This represents the viscous damping coefficient of the hydraulic cylinder. This represents the system's equivalent elastic stiffness. This represents the nonlinear frictional force on the cylinder wall of a hydraulic cylinder. This represents the random external load force during the excavation operation. Indicates the pressure in the rodless chamber. Indicates the pressure in the rod chamber. , This indicates the working area of the two chambers of the hydraulic cylinder. This represents the maximum static friction force. Represents Coulomb friction. Indicates characteristic velocity, Indicates the engineering coefficient. Indicates the coefficient of viscous friction. The piston velocity is represented by the generalized Newtonian identification nonlinear hydraulic model as follows: ; in Indicates the first Time of the first Intermediate control values during joint iteration. , , Represents the intermediate state variables of the hydraulic model. , Represents the coefficients of a static nonlinear model. This indicates that historical steps should be retained. Indicates the first in history Step coefficient, Indicates the first Joint history Step-by-step control input, Indicates a piecewise nonlinear threshold. , , This indicates the piecewise output nonlinear coefficients. Indicates the first Sampling time number The hydraulic cylinder outputs hydraulic driving force. The Lagrange-based robotic arm dynamics model is as follows: ; in, For the first Kinetic energy of the rod This is the joint angle vector of the robotic arm. The inertia matrix, This is the joint angular velocity vector; ; in, For the first Gravitational potential energy of the rod Indicates the first Member quality, It is the acceleration due to gravity. The height of the bar's center of mass; ; in, It is a Lagrange function; ; in, For the first Each joint angle Output joint drive force / torque vector to the hydraulic system module; After receiving the hydraulic driving force from the hydraulic system module based on the generalized Newtonian identification method, this module solves for the angular acceleration of each joint through the differential equation of the robot arm's dynamics, and calculates the predicted angle of the robot arm at the next moment through angle integration. This information is then transmitted back in real time to the model prediction and feedback compensation controller module to achieve the rolling prediction solution. ; in Represents a joint angle function. Indicates the current time Initial angle values of the joint Indicates the control time interval.
