A tunneling trolley hole searching operation control method based on ILQR

By adopting the hole-finding operation control method of the tunneling trolley based on iLQR, the problems of difficulty in solving the inverse kinematics of heavy-duty multi-degree-of-freedom hydraulic drill arm and poor multi-joint coordination were solved, realizing efficient and reliable hole-finding control and improving operation efficiency and quality.

CN123133702APending Publication Date: 2026-11-20NANJING MEISHAN INTELLIGENT MINING TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610837288.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-10
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing technologies for borehole finding control of heavy-duty multi-degree-of-freedom hydraulic drill arms suffer from difficulties in inverse kinematics solution, easy divergence, poor multi-joint coordination, and the tendency of the underlying PID control to get stuck in ineffective fine-tuning for a long time, resulting in low operating efficiency.

Method used

An iLQR-based hole-finding operation control method for tunneling trolleys is adopted. Through calibration conversion, optimal control solution, collaborative control command execution, and real-time monitoring and judgment modules, a first-order discrete state model and hole-finding cost function are constructed. The iLQR algorithm is used for online rolling optimization to generate the optimal control sequence. Combined with the underlying EPEC closed-loop control, smooth synchronous motion of multiple joints is achieved.

Benefits of technology

It avoids the singularity risk of inverse kinematics solution, eliminates invalid fine-tuning at the bottom layer, realizes efficient and reliable multi-joint dynamic collaboration, and improves hole finding efficiency and operation quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123133702A_ABST
    Figure CN123133702A_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on iLQR (iterative linear quadratic regulator) boring trolley hole seeking operation control method, this method is first by calibration conversion and obtains the starting point of target hole position and pre-aim end point coordinate;In decision-making stage, design the cost function of fusion end position error, pre-aim end point error and joint limit index penalty term;The nonlinear cost function is locally quadratic approximation and rolling optimization solution using iLQR algorithm, obtains the optimal control sequence of normalization, the optimal control quantity is proportionally mapped to the physical execution range of each joint to generate target pose instruction, and is directly issued to the lower EPEC controller drive hydraulic actuator, when overall pose error is less than set threshold, it is judged that hole seeking is completed.The application avoids the singularity and multiple solution problem of traditional inverse kinematics analysis, realizes the high coordination and smooth motion of multi-joint, significantly improves the efficiency and safety of trolley hole seeking operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automated control technology for underground engineering equipment, and in particular to a control method for collaborative borehole finding operation of a tunneling trolley and drill arm based on iLQR (iterative linear quadratic regulator). Background Technology

[0002] With the deepening of smart mine construction, the automation and intelligentization of underground tunnel excavation operations have become an inevitable trend in the industry. As a key piece of equipment for underground mine blasting hole construction, the core task of the tunneling trolley is to achieve high-precision multi-point borehole locating operations in narrow and irregular underground environments. The essence of automatic borehole locating is to drive a heavy-duty multi-degree-of-freedom drill arm, accurately mapping its joint space to approximate the preset entry point coordinates and axis posture in the three-dimensional task space.

[0003] Currently, the mainstream drill arm control strategy in the industry generally adopts a "hierarchical control architecture." Specifically, at the kinematic level, the control system converts the target hole position into the angles of each joint through inverse kinematics calculations. Then, commands are issued, and the underlying actuators (such as the EPEC embedded hydraulic controller) combined with PID controllers drive the motors of each hydraulic joint sequentially to the desired position. However, when dealing with heavy-duty multi-degree-of-freedom hydraulic robotic arms, existing technologies have the following significant drawbacks:

[0004] First, solving the inverse kinematics is difficult and prone to divergence. As a seven-degree-of-freedom redundant system, the mapping from joint space to task space involves deep nesting of trigonometric functions, exhibiting strong geometric nonlinearity. When solving the analytical inverse kinematics, traditional control methods for multi-degree-of-freedom manipulators not only suffer from multiple solutions but also easily get trapped in Jacobian matrix singularities, leading to system divergence and reducing control reliability.

[0005] Secondly, the underlying hydraulic control is prone to prolonged ineffective fine-tuning. Due to the inherent dead zone, friction, and nonlinear fluid characteristics of hydraulic cylinders, such as system back pressure, the underlying PID controller is highly susceptible to oscillations or prolonged ineffective fine-tuning (i.e., "over-adjustment") within a very small error range when driving the joint to approach the target absolute position. This results in extremely long single hole-finding times, severely slowing down the overall construction progress.

[0006] Finally, the serial control mode leads to a lack of dynamic coordination between joints. Traditional hierarchical architectures sever the dynamic coupling between joints, and traditional sequential control requires strict waiting for all joints to fully converge to the absolute target value before being considered in position. However, in actual blasting hole drilling operations, the overall pose deviation of the drill arm's end effector is considered; slight deviations in some joints can be dynamically compensated for by the coordinated movement of other joints. Due to the lack of this global perspective and dynamic coordination, the movement of the existing trolley's robotic arm often appears stiff, making it difficult to meet the requirements of efficient and smooth hole-finding operations.

[0007] Therefore, how to avoid the singularity risk of inverse kinematics solution while ensuring the accuracy of end hole finding, and avoid unnecessary waiting and fine-tuning at the bottom of the joint, so as to comprehensively improve the hole finding and operation efficiency of the tunneling trolley, has become a key technical problem that urgently needs to be solved in this field. Summary of the Invention

[0008] This invention addresses the problems of difficulty in solving inverse kinematics and easy divergence, poor coordination of multiple joints, and low operation efficiency caused by long-term ineffective fine-tuning in the borehole-finding control process of existing underground tunneling trolley heavy-duty hydraulic drilling arms. It proposes a borehole-finding operation control method for tunneling trolleys based on iLQR.

[0009] To solve the above-mentioned technical problems, the present invention provides the following technical solution:

[0010] A hole-finding operation control method for a tunneling trolley based on iLQR is proposed. This method includes calibration conversion, optimal control solution, cooperative control command execution, and real-time monitoring and judgment modules, specifically comprising the following steps:

[0011] S1. Calibration conversion and target hole location acquisition

[0012] After the tunneling trolley is in place, the starting point coordinates of the target hole are determined first according to the preset drilling direction vector. With the target drilling depth Calculate and obtain the target hole position's pre-aiming endpoint coordinates in the working face coordinate system along this direction. Then, the alignment and calibration between the face coordinate system and the trolley base coordinate system are established, and the target hole position coordinates (i.e., target pose) of the drilling arm of the tunneling trolley to be drilled are obtained based on the trolley coordinate system.

[0013] S2. Construct a first-order discrete-time kinematic state transition model and a hole-finding cost function, stripping away the complex rigid-flexible coupling dynamics, and constructing a first-order discrete-time kinematic state transition model based on normalized control input. Define the system's extended state variables as follows: (in (For variables of each joint of the drill arm), define the system output as the control output of each joint. The DH parameter method is used to establish a nonlinear mapping from joint space to task space, and the coordinates of the current drill arm end point and the direction vector of the feed beam are calculated in real time. A stage cost function for the optimal control problem of hole finding is constructed, which includes three terms: a task space error term (composed of the current end point position and the...). Positional error, and the current aiming axis endpoint and The system includes a weighted calculation of angle preview error, a control energy smoothing constraint, and an exponential joint limit barrier penalty to prevent joint over-limit.

[0014] S3. Rolling optimization and target pose command generation based on iLQR: The iLQR (Iterative Linear Quadratic Regulator) algorithm is used to solve the stage cost function online: In each control cycle, a second-order Taylor expansion is performed on the highly nonlinear cost function along the nominal trajectory, and its local approximation is a linear quadratic subproblem; the optimal control feedback rate is obtained by solving the time-varying Riccati-like equation through backpropagation, and the normalized optimal control sequence is calculated by performing forward update; the optimal control quantity of the current cycle is proportionally mapped and amplified to the actual physical execution range of each hydraulic joint to generate the actual control quantity of each joint at the next moment, and the command is directly sent to the underlying EPEC hydraulic controller.

[0015] S4. The underlying EPEC closed-loop control and real-time calculation of actual pose: After receiving the control quantity transmitted through the CAN signal, the underlying EPEC controller drives each hydraulic proportional valve to make multiple hydraulic joints smoothly and synchronously approach the target pose. During the coordinated execution of actions by multiple joints, the current real pose value of each joint is obtained in real time through joint angle encoders or displacement sensors, and then combined with the DH forward kinematics method to calculate the actual spatial pose of the drilling rig end in the trolley coordinate system in real time.

[0016] S5. Hole-finding termination early judgment and execution switch: Based on the actual pose of the current real drill arm end calculated in real time by the DH algorithm, the overall position error and overall angle error between the drill arm and the target hole position are calculated; it is determined whether the overall position error and overall angle error are both less than the overall error threshold set in advance according to the process requirements; if so, the hole-finding is directly determined to be completed, the system immediately issues an instruction to lock the hydraulic cylinders of each joint, and enters the subsequent drilling links such as propulsion and impact; if not, it returns to step S3 to continue to enter the rolling optimization of the next control cycle.

[0017] The beneficial effects of the technical solutions provided in the embodiments of the present invention include at least the following:

[0018] Avoiding singularity issues and ensuring computational efficiency and reliability: The optimal control strategy, which embeds the forward nonlinear spatial mapping into the optimal cost function, completely eliminates the traditional inverse kinematics (IK) analytical solution process, fundamentally avoiding the risks of Jacobian matrix singularity and multiple solution divergence when solving heavy-duty redundant robotic arms; combined with the first-order kinematic model and local quadraticization technology, the computational load is significantly reduced, meeting the requirements of millisecond-level real-time control.

[0019] Multi-joint dynamic collaboration and smooth motion: This breaks away from the rigid control mode of sequential joint driving and isolation in traditional hierarchical control. Through global optimization of the cost function, the upper-level algorithm coordinates and plans the joint motion trajectory of all joints and sends it down to the lower-level EPEC controller for synchronous execution, making the drill arm movement smoother and more continuous, and effectively utilizing the redundancy compensation capability between joints.

[0020] Introducing pre-aiming error and physical limit barriers to ensure operation quality and safety: In response to the characteristics of deep hole operation, the pre-aiming endpoint error of deep hole is innovatively introduced into the optimization target, ensuring high-precision alignment of hole opening positioning and the axis inside the hole; at the same time, an exponential barrier function is used to soften the hard physical constraints into mathematical penalties, so that the algorithm can keep the continuous differentiable while prompting the joint to actively avoid mechanical limits, thus avoiding the collapse of the optimization process.

[0021] Eliminating ineffective fine-tuning at the bottom layer significantly improves hole-finding efficiency: The traditional mechanism of waiting for absolute convergence of the PID controller on a single joint is abandoned, and an early termination control strategy based on overall pose monitoring is proposed. At the end of the hole-finding process, control is cut off as soon as the overall error enters the allowable process range, completely eliminating the long-term integral fine-tuning and oscillation of the hydraulic system near the target point. This greatly shortens the single-hole alignment time of the trolley while ensuring hole quality. Attached Figure Description

[0022] Figure 1 This is a system framework diagram of the ILQR-based borehole finding control system for tunneling trolleys provided in the embodiments of this disclosure.

[0023] Figure 2 This is a schematic flowchart of the overall process flow of the ILQR-based hole-finding control method for tunneling trolleys provided in the embodiments of this disclosure. Detailed Implementation

[0024] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application. Rather, this application covers any substitutions, modifications, or equivalents made within the spirit and scope of this application as defined by the claims. Furthermore, to provide the public with a better understanding of this application, certain specific details are described in detail in the following description of the invention. Those skilled in the art will fully understand this application even without these detailed descriptions.

[0025] To facilitate understanding, the relevant terms involved in this invention will first be explained. Nonlinear spatial mapping refers to the highly nonlinear geometric transformation relationship between a heavy-duty drill arm and the joint space formed by its multiple rotational / translational joints, and the actual three-dimensional Cartesian task space. The cost function is a mathematical metric used to quantify the control performance of borehole locating operations. By describing indicators such as the spatial error of the drill arm end relative to the target hole position, the smoothness of control commands, and physical limit penalties, it helps the optimizer select the optimal control strategy.

[0026] In this disclosure, the following specific implementation steps are adopted to achieve efficient collaborative borehole finding of the tunneling trolley:

[0027] S1. Calibration Conversion and Acquisition of Target Hole Position Information

[0028] In automated rock drilling and blasting operations, the host computer's hole planning system typically uses the issued borehole diagram as its basis. The hole coordinates in the diagram are based on the roadway's global coordinate system (hereinafter referred to as the global reference coordinate system). To enable the underlying control algorithm to directly drive the robotic arm mounted on the trolley body, the target hole coordinates must be uniformly transformed to the trolley base coordinate system (vehicle coordinate system) as the standard input for the controller. The specific implementation process of this step is as follows:

[0029] 1. Based on the pre-designed underground tunnel blast hole construction drawings, the host computer analyzes and extracts the spatial geometric information of the target hole to be drilled, including the starting point coordinates of the target hole in the global reference coordinate system. and the corresponding endpoint coordinates The endpoint coordinates can be calculated from the starting point coordinates, the drilling direction vector, and the designed hole depth.

[0030]

[0031] 2. After the tunneling trolley travels to the working face and comes to a stable stop, the operator or calibration program drives the drill arm to move, so that the end of the drill arm (the front end of the advance beam) vertically abuts against the rock wall of the working face. Under this reference state, the axial direction of the end of the drill arm is consistent with the normal direction of the working face, thereby establishing the relative spatial orientation relationship between the trolley base coordinate system and the working face coordinate system.

[0032] 3. Maintaining the aforementioned baseline posture, the system synchronously acquires readings from the sensors at each joint of the drill arm (such as angle encoders and wire displacement sensors). Using the DH forward kinematics method, the homogeneous transformation matrix from the trolley base coordinate system to the drill arm end effector coordinate system is calculated. :

[0033]

[0034] For rotation matrix Inverse the matrix to obtain the coordinate transformation matrix. Since the rotation matrix... It is an orthogonal matrix (satisfying) Its inverse matrix is ​​equal to its transpose matrix, that is:

[0035]

[0036] This property makes matrix inversion degenerate into matrix transpose, resulting in extremely low computational complexity and eliminating the need for general matrix inversion operations. Utilizing... In addition to translation components, a complete inverse transformation matrix can be constructed to transform coordinate points in the face coordinate system to the trolley coordinate system:

[0037]

[0038]

[0039] After the above transformation, the coordinates of the target hole's starting point, expressed entirely in the trolley coordinate system, are obtained. These coordinates are then combined and used as the environmental constant input representing the hole-finding task objective in the subsequent control algorithm. This approach unifies spatial information in the vehicle coordinate system beforehand, completely eliminating the coordinate system confusion and redundant calculation burden that may occur during subsequent dynamics and kinematics solutions.

[0040] S2. Construct a control-oriented discrete-time state transition model for the drill arm and its forward kinematic space mapping.

[0041] To achieve automatic borehole finding based on optimal control algorithms, a mathematical model that accurately describes the drill arm's motion and possesses real-time computational capabilities must be established. This step involves defining a state space and introducing the DH parameter method to abstract the complex mechanical structure into a computable mathematical expression.

[0042] 1. In this embodiment, the core motion state of the drill arm and the target task information are modeled in a unified manner, and an augmented state vector is defined. for:

[0043]

[0044] in, This indicates that the seven dynamic decoupling joints of the drill arm are in The displacement or angle variable at any given moment; and These are the starting point coordinates and the pre-aiming end point coordinates of the target hole, obtained and transformed into the trolley coordinate system in step 1, respectively. Control vectors are defined synchronously. The normalized control input vector satisfies the physical constraints. The table shows the percentage of expected change rate for each joint during the current control cycle.

[0045] 2. Construct a first-order discrete-time kinematic state transition model based on normalized control input. Given the discrete control period... The state evolution relationship of the system is expressed as follows:

[0046]

[0047]

[0048] in, Scaling the joint velocity with a diagonal matrix is ​​used to normalize the dimensionless control. This parameter is mapped to the actual physical actuation rate of each hydraulic actuator. This parameter configuration ensures dimensional alignment and motion coordination between rotary and telescopic joints within the same optimization framework.

[0049] 4. Since the error constraints for hole finding are defined in a three-dimensional Cartesian task space, it is necessary to establish a framework based on joint variables. The nonlinear mapping relationship to the actual pose of the end effector. This embodiment establishes the drill arm spatial link coordinate system based on the DH parameter method. Adjacent links and The relative spatial relationships between them are determined by the homogeneous transformation matrix. The description, its general formula is:

[0050]

[0051] By continuously multiplying the above joint transformation matrices, the global homogeneous transformation matrix of the drill arm end relative to the trolley base can be derived.

[0052]

[0053] The current three-dimensional coordinates of the drill arm end can be extracted in real time using the overall transformation matrix. The third column vector of the attitude rotation matrix is ​​extracted as the direction vector reflecting the current orientation of the drilling rig's propulsion beam. The attitude matrix is ​​then converted into the current Euler angles, the specific expression of which is shown in the following formula:

[0054]

[0055] S3. Design a collaborative aperture-finding cost function based on pre-aiming error and safety barrier.

[0056] The optimal control objective of automatic hole finding is to drive the drill arm end effector to accurately converge to the target 3D pose with minimal motion cost, while satisfying the physical limits of each joint. This step involves constructing a comprehensive cost function that includes position error, attitude preview error, control smoothing penalty, and limit barriers.

[0057] 1. In blasting hole construction in narrow tunnels, drilling depths typically exceed 3 meters. Traditional control methods that only focus on the end-hole chisel coordinates and the direction vector of the feed beam can cause even small attitude angle errors to be significantly amplified at the bottom of the hole, leading to a decrease in blasting quality. Therefore, this embodiment introduces deep hole pre-aiming constraints. Under any attitude state of the drill arm... Next, based on the drill bit end coordinates obtained from the nonlinear mapping calculation in step 2... With the direction vector of the propulsion beam Calculate the coordinates of the pre-aimed hole bottom along the current axis of the drill pipe. :

[0058]

[0059] To simultaneously achieve precise hole positioning and strict alignment with the axis, the end position error is defined. Error with pre-aimed endpoint :

[0060]

[0061]

[0062] Through the above transformation, complex attitude angle errors and position errors are uniformly mapped to spatial coordinate distance errors, effectively avoiding the optimization imbalance caused by the inconsistency of the dimensions of distance errors and angle errors.

[0063] 2. Construct a fundamental stage cost function for constraining state deviation and control energy consumption during trajectory evolution. :

[0064]

[0065] in, and These are the precision weighting coefficients for the end position error and the pre-aiming axis error, respectively, which determine the degree of importance the algorithm attaches to the alignment of the target hole and the axis. To control the energy penalty term, To control the weights, a control energy penalty term is introduced to constrain the range of motion of the drive mechanism, ensuring the coordination and smoothness of the multi-joint movements and avoiding severe oscillations in the hydraulic system. In a preferred embodiment, the penalty weight for position error... and A value of 100.0 controls the smoothing weight. The value is 0.01.

[0066] 3. In actual underground operating environments, the movement stroke of each joint of the drill arm has a clearly defined physical boundary. Since the iLQR algorithm is essentially a gradient-based unconstrained optimization solver, directly imposing hard constraints on the solution space would cause the objective cost function to break at the physical boundary, losing its continuity and differentiability, and consequently causing the algorithm to diverge and collapse near the extreme pose. Therefore, this embodiment softens the "physical hard constraint" into a "mathematical penalty term," independently introducing an exponential boundary constraint regularization function on top of the basic cost function. :

[0067]

[0068] in, and The first The physical minimum and maximum displacement / angle limits of each joint; and The regularization coefficient, greater than 0, controls the base size and boundary steepness of the penalty term. When the joint state is within the feasible region, the barrier function value approaches zero; however, as any joint approaches its physical limit, the barrier function value increases exponentially, thus building a smooth "high wall" in the cost space, actively preventing the solver from generating out-of-limit instructions that violate physical or geometric boundaries. Finally, the base stage cost function is combined with the constraint penalty term to obtain the complete total stage cost function. :

[0069]

[0070] The complete cost function is globally continuous and differentiable, laying a solid mathematical foundation for efficient Taylor expansion and gradient differentiation using the iLQR algorithm.

[0071] S4. Online rolling optimization solution of iLQR based on finite prediction time domain

[0072] This disclosure constructs it as a finite-time optimal control problem (OCP) that can be solved online in real time within each control cycle. In order to efficiently cope with the strong geometric nonlinearity caused by the forward kinematics, this embodiment uses the iterative linear quadratic regulator (iLQR) algorithm for rolling solution.

[0073] 1. Within each control cycle, based on the current actual system state of the drill arm. As initial conditions, for the future The system behavior of the step (prediction domain) is prospectively optimized. In this embodiment, the prediction domain length is... The optimal value is 20. The goal of the optimization problem is to find the optimal normalized control sequence. This makes the total cost over the entire prediction domain... Minimum:

[0074]

[0075] in, The total stage cost function constructed in step 3, which includes the aiming error and the limiting barrier; This is the terminal cost function. The constraint is that the state transition must satisfy the kinematic model. .

[0076] 2. The iLQR algorithm iteration begins with forward simulation. In the initial stage of the algorithm, a warm start is performed using the optimal solution from the previous control cycle to obtain the initial nominal control sequence. In the current state Starting from the kinematic model By performing forward recursion, a nominal state trajectory is obtained. And calculate the initial total cost. Subsequently, along this nominal trajectory, at each discrete time point... Calculate the first-order gradient of the cost function with respect to the state and control. and second-order Hessian matrix Simultaneously calculate the Jacobian matrix of the kinematic model with respect to state and control. This embodiment uses an automatic differentiation framework (such as CasaADi) to perform symbolic-level compilation and solution of the above partial derivatives, avoiding the truncation error and high time consumption caused by traditional numerical difference.

[0077] 3. After completing the forward simulation, the algorithm enters the backpropagation phase. Starting from the end of the prediction time domain, the augmented cost function is quadratized point by point along the nominal trajectory, and the dynamic model is linearized. Then, by solving a series of time-varying Riccati-like equations, the feedback gain matrix used to correct the intermediate control variables is calculated. and feedforward terms :

[0078]

[0079] The Q-function is a local quadratic approximation of the total cost function, and its gradient incorporates the immediate cost of the current control and its indirect impact on all future time points. Based on the calculated feedback law, the algorithm enters the iterative optimization phase, refining and evaluating the intermediate control variable sequence. First, an initial search step size is set. A new sequence of candidate intermediate control variables is generated using the feedback law, and its update rule is as follows:

[0080] in, This represents the state deviation. Then, this candidate sequence... Repeat the forward simulation process to obtain a new total cost. .Will With the old price Comparison: If If the candidate sequence is correct, the update is accepted, and the candidate sequence is used as the new nominal sequence for the next iteration; otherwise, the sequence is updated according to the preset factor. Reduce search step size And try again. If If the cost does not decrease after being reduced to the threshold, the update is abandoned. This iterative cycle continues until the convergence condition is met or the maximum number of iterations is reached. Finally, after the iteration ends, the first element is extracted from the sequence of intermediate control variables obtained from the optimization. And use that as the final output of this step.

[0081] S5. Cooperative control command issuance and hole finding termination determination based on global pose

[0082] This step transforms the results of iLQR optimization into actual physical instructions for the underlying actuators, and introduces global perspective monitoring during execution. This breaks the inefficient mechanism in traditional hierarchical control that requires waiting for all joints to reach absolute accuracy one by one, thus achieving a highly efficient closed loop for the entire hole-finding operation.

[0083] 1. The optimal control sequence obtained from step 4, rolling optimization. Extract the first normalized control variable at the current moment. Combining the system state transition model with the velocity scaling matrix This is then mapped to actual control quantities. Subsequently, the processed expected control quantities for each joint are sent in real time to the underlying EPEC embedded hydraulic controller via the vehicle's CAN bus. The controller then issues drive commands to drive the movement of each hydraulic joint.

[0084] 2. During the coordinated execution of actions by each joint, the system uses joint attitude sensors (angle encoders and wire displacement sensors) installed on the drill arm to collect high-frequency readings of the current real attitude of each joint. Substituting the collected real joint variables into the drill arm model established in step 2, and based on the DH forward kinematics method, the homogeneous transformation matrix multiplication operation from the trolley base coordinate system to the drill arm end coordinate system is re-performed. Through this calculation, the actual three-dimensional coordinates and actual attitude direction vector of the current drill arm end are obtained in real time.

[0085] After acquiring the real-time pose, the control system performs a spatial difference calculation between it and the target hole position coordinates and angle requirements obtained in step 1 to obtain the overall "position error" and overall "angle error" of the end effector. The system pre-sets overall position error thresholds and angle error thresholds for hole-finding control based on the requirements of the drill-and-blast method. In the control loop, it continuously checks whether the position error and angle error of the current actual pose are both less than the set hole-finding error thresholds. When both errors meet the threshold conditions, from the overall macroscopic perspective of the robotic arm's task space, the current end effector alignment fully meets the process accuracy requirements for rock drilling. At this point, the system immediately interrupts all pending joint fine-tuning actions, determines "hole finding complete," locks the hydraulic cylinder valve cores of each joint, and directly issues a command signal to proceed to subsequent drilling stages (such as opening, advancing, and impact). If the error does not meet the threshold, the current actual pose is... Update to the new initial state, enter the next control cycle, and return to step 4 to continue rolling optimization.

[0086] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for controlling borehole finding operations on a tunneling trolley based on iLQR, characterized in that, The method includes the following steps: S1. Calibration conversion and acquisition of target hole location information. S2. Construct a control-oriented discrete-time state transition model for the drill arm and a forward kinematic space mapping. S3. Design a collaborative aperture-finding cost function based on pre-aiming error and safety barrier. S4. Online rolling optimization solution of iLQR based on finite prediction time domain S5, Cooperative control command issuance and hole finding termination determination based on global pose.

2. The method for controlling borehole finding operations of a tunneling trolley based on iLQR as described in claim 1, characterized in that, S1. Calibration conversion and target hole location information acquisition, as detailed below. 1) Based on the pre-designed underground tunnel blast hole construction drawings, the host computer analyzes and extracts the spatial geometric information of the target hole to be drilled, including the starting point coordinates of the target hole in the global reference coordinate system. and the corresponding endpoint coordinates The endpoint coordinates can be obtained from the starting point coordinates and the drilling direction vector. and design hole depth It can be deduced that, 2) After the tunneling trolley travels to the working face and comes to a stable stop, the operator or calibration program drives the drill arm to move so that the end of the drill arm (the front end of the advance beam) vertically contacts the rock wall of the working face. Under this reference state, the axial direction of the end of the drill arm is consistent with the normal direction of the working face, thereby establishing the relative spatial orientation relationship between the trolley base coordinate system and the working face coordinate system. 3) Maintaining the above reference posture, the system synchronously collects the readings of the sensors at each joint of the drill arm. Using the DH forward kinematics method, the homogeneous transformation matrix from the trolley base coordinate system to the drill arm end effector coordinate system is calculated. : For rotation matrix Inverse the matrix to obtain the coordinate transformation matrix. Since the rotation matrix... It is an orthogonal matrix (satisfying) Its inverse matrix is ​​equal to its transpose matrix, that is: This property makes matrix inversion degenerate into matrix transpose, resulting in extremely low computational complexity. It eliminates the need for a general matrix inversion operation. Including translation components, construct a complete inverse transformation matrix to transform coordinate points in the face coordinate system to the trolley coordinate system: After the above transformation, the coordinates of the target hole starting point, which are completely expressed in the trolley coordinate system, are obtained. These coordinates are then combined and used as the environmental constant input representing the target hole-finding task in the subsequent control algorithm.

3. The method for controlling borehole finding operations of a tunneling trolley based on iLQR according to claim 2, characterized in that, S2. Construct a control-oriented discrete-time state transition model for the drill arm and its forward kinematic space mapping, as detailed below. 1) By defining a state space and introducing the DH parameter method, complex mechanical structures are abstracted into computable mathematical expressions. The core motion state of the drill arm is modeled in a unified manner with the target task information, and an augmented state vector is defined. for: in, This indicates that the seven dynamic decoupling joints of the drill arm are in The displacement or angle variable at any given moment; and The starting point coordinates and the pre-aiming end point coordinates of the target hole, obtained and transformed into the trolley coordinate system in step 1, are defined simultaneously, along with the control vector. The normalized control input vector satisfies the physical constraints. The table shows the expected percentage change rate for each joint during the current control cycle. 2) Construct a first-order discrete-time kinematic state transition model based on normalized control input, given the discrete control period. The state evolution relationship of the system is expressed as follows: in, Scaling the joint velocity with a diagonal matrix is ​​used to normalize the dimensionless control. Mapped to the actual physical execution rate of each hydraulic actuator, this parameter configuration ensures dimensional alignment and motion coordination between rotary and telescopic joints within the same optimization framework. These represent the current discrete time step and the next discrete time step, respectively. : for Normalized control input commands issued in real time Let the discrete time step of the control system be _____. : represents the generalized state vector of the system in the task space. : Represents the nonlinear mapping function for the state transition of the system. 3) Since the error constraints for hole finding are defined in a three-dimensional Cartesian task space, it is necessary to establish a framework based on joint variables. The nonlinear mapping relationship to the actual pose of the end effector is established based on the DH parameter method to create a spatial link coordinate system for the drill arm, with adjacent links... and The relative spatial relationships between them are determined by the homogeneous transformation matrix. The description, its general formula is: By continuously multiplying the transformation matrices of each joint mentioned above, the global homogeneous transformation matrix of the drill arm end relative to the trolley base can be derived. The current three-dimensional coordinates of the drill arm end are extracted in real time using the overall transformation matrix. The third column vector of the attitude rotation matrix is ​​extracted as the direction vector reflecting the current orientation of the drilling rig's propulsion beam. The attitude matrix is ​​then converted into the current Euler angles, the specific expression of which is shown in the following formula: , in, , , Representing rotation matrices respectively The three orthogonal column vectors represent the projections of the X, Y, and Z axes of the local coordinate system at the end of the drill arm onto the base coordinate system. The Euler angles, calculated by inverse rotation matrix, correspond to the roll, pitch, and yaw angles in spatial attitude, respectively. They intuitively describe the specific rotational state of the drilling rig's propulsion beam relative to the reference attitude.

4. The method for controlling borehole finding operations of a tunneling trolley based on iLQR according to claim 1, characterized in that, S3. Design a collaborative aperture-finding cost function based on pre-aiming error and safety barrier, as follows: By constructing a comprehensive cost function that includes position error, attitude preview error, control smoothing penalty, and limit barrier, 1) In any posture state of the drill arm Next, based on the drill bit end coordinates obtained from the nonlinear mapping calculation in step 2... With the direction vector of the propulsion beam Calculate the coordinates of the pre-aimed hole bottom along the current axis of the drill pipe. : To simultaneously achieve precise hole positioning and strict alignment with the axis, the end position error is defined. Error with pre-aimed endpoint : Through the above transformation, the complex attitude angle error and position error are uniformly mapped to spatial coordinate distance error, which effectively avoids the optimization imbalance caused by the inconsistency of the dimensions of distance error and angle error. 2) Construct the basic stage cost function for constraining state deviation and control energy consumption during trajectory evolution. : in, and These are the precision weighting coefficients for the end position error and the pre-aiming axis error, respectively, which determine the degree of importance the algorithm attaches to the alignment of the target hole and the axis. To control the energy penalty term, To control the weights, a control energy penalty term is introduced to constrain the range of motion of the drive mechanism, ensure the coordination and smoothness of the multi-joint motion, and avoid violent oscillations in the hydraulic system. 3) Introduce an exponential boundary constraint regularization function independently on top of the basic cost function. : in, and The first The physical minimum and maximum displacement / angle limits of each joint; and The regularization coefficient, greater than 0, controls the base size and boundary steepness of the penalty term. When the joint state is within the feasible region, the barrier function value approaches zero; however, as any joint approaches its physical limit, the barrier function value increases exponentially, thus building a smooth "high wall" in the cost space. This actively prevents the solver from generating out-of-limit instructions that violate physical or geometric boundaries. Finally, the base stage cost function is combined with the limit penalty term to obtain the complete total stage cost function. : , The complete cost function is globally continuous and differentiable, laying a solid mathematical foundation for efficient Taylor expansion and gradient differentiation using the iLQR algorithm.

5. The method for controlling borehole finding operations of a tunneling trolley based on iLQR according to claim 4, characterized in that, S4. Online rolling optimization solution for iLQR based on finite prediction time domain, as detailed below. A rolling solution is performed using the Iterative Linear Quadratic Regulator (iLQR) algorithm. 1) Within each control cycle, based on the current actual system state of the drill arm. As initial conditions, for the future Proactively optimize the system behavior of the step (prediction domain), and the prediction domain length. Given a value of 20, the goal of the optimization problem is to find the optimal normalized control sequence. This makes the total cost over the entire prediction domain... Minimum: in, The total stage cost function constructed in step 3, which includes the aiming error and the limiting barrier; The terminal cost function is given, and the constraint is that the state transition must satisfy the kinematic model. , 2) The iteration of the iLQR algorithm begins with forward simulation. In the initial stage of the algorithm, a warm start is performed using the optimal solution of the previous control cycle to obtain the initial nominal control sequence. , in the current state Starting from the kinematic model By performing forward recursion, a nominal state trajectory is obtained. And calculate the initial total cost. Subsequently, along this nominal trajectory, at each discrete time point Calculate the first-order gradient of the cost function with respect to the state and control. and second-order Hessian matrix Simultaneously calculate the Jacobian matrix of the kinematic model with respect to state and control. , 3) After completing the forward simulation, the algorithm enters the backpropagation phase. Starting from the end of the prediction time domain, the augmented cost function is quadratized point by point along the nominal trajectory, and the dynamic model is linearized. Then, by solving a series of time-varying Riccati-like equations, the feedback gain matrix used to correct the intermediate control variables is calculated. and feedforward terms : The Q-function is a local quadratic approximation of the total cost function. Its gradient combines the immediate cost of the current control with its indirect impact on all future times. Based on the calculated feedback law, the algorithm enters the iterative optimization phase, correcting and evaluating the intermediate control variable sequence. First, an initial search step size is set. A new sequence of candidate intermediate control variables is generated using the feedback law, and its update rule is as follows: in, For the state deviation, then, for this candidate sequence Repeat the forward simulation process to obtain a new total cost. ,Will With the old price Comparison: If If the candidate sequence is correct, the update is accepted, and the candidate sequence is used as the new nominal sequence for the next iteration; otherwise, the sequence is updated according to the preset factor. Reduce search step size And retry, if If the cost does not decrease after being reduced to the threshold, the update is abandoned. This iterative cycle continues until the convergence condition is met or the maximum number of iterations is reached. Finally, after the iteration ends, the first element is extracted from the sequence of intermediate control variables obtained from the optimization. And use that as the final output of this step.

6. The method for controlling borehole finding operations of a tunneling trolley based on iLQR according to claim 1, characterized in that, S5. Issuance of collaborative control commands and determination of hole finding termination based on global pose. This step transforms the iLQR optimization solution into actual physical commands for the underlying actuators, and introduces global perspective monitoring during execution. This breaks away from the inefficient mechanism of traditional hierarchical control, which requires waiting for all joints to reach absolute accuracy one by one, thus achieving a highly efficient closed loop for the entire hole-finding operation. 1) The optimal control sequence obtained from step 4, rolling optimization Extract the first normalized control variable at the current moment. Combining the system state transition model with the velocity scaling matrix This is mapped to actual control quantities. Subsequently, the processed desired control quantities for each joint are sent in real time to the underlying EPEC embedded hydraulic controller via the vehicle's CAN bus. The controller then issues drive commands to drive the movement of each hydraulic joint. 2) During the coordinated execution of actions by each joint, the system uses joint attitude sensors mounted on the drill arm to collect high-frequency readings of the current real attitude of each joint. Substituting the collected real joint variables into the drill arm model established in step 2, and based on the DH forward kinematics method, the homogeneous transformation matrix multiplication operation from the trolley base coordinate system to the drill arm end coordinate system is re-performed. Through this calculation, the actual three-dimensional coordinates and actual attitude direction vector of the current drill arm end are obtained in real time. After acquiring the real-time pose, the control system performs a spatial difference calculation with the target hole position coordinates and angle requirements acquired in step 1 to obtain the overall "position error" and overall "angle error" of the end effector. The system pre-sets the overall position error threshold and angle error threshold for hole-finding control according to the requirements of the drill-and-blast method. In the control loop, it judges in real time whether the position error and angle error of the current actual pose are both less than the set hole-finding error threshold. When both of the above errors meet the threshold conditions, from the overall macroscopic perspective of the robot arm's task space, the current end effector alignment state has fully met the process accuracy requirements of rock drilling. At this time, the system immediately interrupts all joint fine-tuning actions to be executed, determines "hole finding completed", locks the valve core of each joint hydraulic cylinder, and directly issues a command signal to enter the subsequent drilling stage. If the error does not meet the threshold, then the current actual state will be changed. Update to the new initial state, enter the next control cycle, and return to step 4 to continue rolling optimization.