Work machine posture correction method, device, and work machine

By employing defogging enhancement processing and fusion pose calculation methods, the stability problem in the pose detection and correction of cantilever tunneling machines was solved, achieving synchronous high-precision correction of the machine body and cantilever pose, thus meeting the needs of intelligent tunneling and precise cutting in coal mines.

CN123175264APending Publication Date: 2026-11-27CHINA ENERGY GRP NINGXIA COAL IND CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611052338.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-15
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies have poor stability in the position and posture detection and correction of cantilever tunneling machines, and cannot achieve synchronous correction of the cutting cantilever posture, thus failing to meet the needs of intelligent tunneling and precise cutting in coal mines.

Method used

An environmental image-based dehazing enhancement process and fusion pose calculation method are adopted, including the perspective-n-point method and the bundle adjustment method. Combined with inertial navigation, drift error correction is performed to achieve synchronous calculation and correction of the fuselage and cantilever pose.

Benefits of technology

In environments with high dust, low light, and strong vibration, the synchronous high-precision correction of the machine body and cantilever posture was achieved, improving visual anti-interference capabilities and meeting the technical requirements of intelligent tunneling and precise cutting in coal mines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123175264A_ABST
    Figure CN123175264A_ABST
Patent Text Reader

Abstract

The application provides a pose correction method and device of a working machine and the working machine, and relates to the technical field of intelligent coal mining. The method comprises the following steps: performing a defogging enhancement processing on an environment image based on the dust blur degree of all pixel points of the environment image and a set illumination compensation amount; performing pose calculation based on a first three-dimensional feature point coordinate set, a first two-dimensional image pixel coordinate set, a second three-dimensional feature point coordinate set and a second two-dimensional image pixel coordinate set by using a fusion pose calculation method to obtain a first pose calculation result of a machine body and a second pose calculation result of a cantilever; and performing drift error correction of inertial navigation on the first pose calculation result and the second pose calculation result to obtain a pose correction result of the machine body and a pose correction result of the cantilever. The application solves the problem that the stability is extremely poor in the pose detection and correction of a cantilever type heading machine in the prior art, and the synchronous correction of the cutting cantilever attitude cannot be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent coal mining technology, specifically to a posture correction method for operating machinery, a posture correction device for operating machinery, and the operating machinery itself. Background Technology

[0002] With the rapid development of coal mine tunneling towards intelligence and unmanned operation, coal mine machinery, such as cantilever tunneling machines, as the core equipment for roadway excavation, requires real-time and accurate perception and dynamic correction of the machine's posture (position X, Y, Z and heading angle, pitch angle, roll angle) and cutting cantilever attitude. This is a key prerequisite for realizing automatic directional tunneling, intelligent cutting control, roadway shaping optimization, and multi-equipment collaborative operation, and directly determines tunneling efficiency, roadway quality, and operational safety.

[0003] Current underground cantilever tunneling machine posture detection and correction technology mainly relies on a combination of inertial navigation and laser orientation: the core relies on the inertial navigation module to calculate the posture, and the laser orientation assists in calibration. The drawback is that the laser orientation is easily blocked by dust, water mist and vibration interference, resulting in extremely poor stability. Moreover, it cannot achieve synchronous correction of the cutting cantilever posture, and cannot meet the core technical requirements of intelligent tunneling and precise cutting in coal mines. Summary of the Invention

[0004] The purpose of this invention is to provide a method, device, and machine for correcting the posture of a working machine, in order to solve the problem that the existing technology has extremely poor stability in the posture detection and correction of cantilever tunneling machines and cannot achieve synchronous correction of the posture of the cutting cantilever.

[0005] To achieve the above objectives, embodiments of the present invention provide a method for correcting the posture of a working machine, the working machine including a body and a cantilever movably connected to the body; the method includes: Acquire environmental images of the coal mine tunneling face; the environmental images include a first two-dimensional image pixel coordinate set corresponding to the first three-dimensional feature point coordinate set of the machine body and a second two-dimensional image pixel coordinate set corresponding to the second three-dimensional feature point coordinate set of the cantilever. The environmental image is dehazing and enhanced based on the dust blurring of all pixels in the environmental image and a set illuminance compensation amount. The pose calculation method is used to calculate the first pose of the fuselage and the second pose of the cantilever by using the first three-dimensional feature point coordinate set, the first two-dimensional image pixel coordinate set, the second three-dimensional feature point coordinate set, and the second two-dimensional image pixel coordinate set. The fusion pose calculation method is constructed based on the perspective-n-point method and the bundle adjustment method. The first pose calculation result and the second pose calculation result are subjected to inertial navigation drift error correction to obtain the pose correction result of the fuselage and the pose correction result of the cantilever.

[0006] Optionally, the dehazing and enhancement processing of the environmental image based on the dust blurring of all pixels in the environmental image and a set illumination compensation amount includes: The dehazing weight of each pixel is determined based on the dust blur and environmental adaptation coefficient of each pixel. Based on the pixel value of each pixel, the dehazing weight, and the set illumination compensation amount, the updated pixel value of each pixel is calculated; the image formed by all the updated pixel values ​​is used as the environmental image after dehazing enhancement processing.

[0007] Optionally, the step of using the fusion pose calculation method to perform pose calculation based on the first three-dimensional feature point coordinate set, the first two-dimensional image pixel coordinate set, the second three-dimensional feature point coordinate set, and the second two-dimensional image pixel coordinate set to obtain the first pose calculation result of the fuselage and the second pose calculation result of the cantilever includes: The initial pose value of the fuselage is obtained by using the perspective-n-point method based on the first three-dimensional feature point set corresponding to the fuselage, the first two-dimensional image pixel coordinate set, and a set scale factor. The pose of the cantilever is calculated using the perspective-n-point method based on the second three-dimensional feature point set corresponding to the cantilever, the second two-dimensional image pixel coordinate set, and a set scale factor, to obtain the initial pose value of the cantilever. Using the bundle adjustment method, global nonlinear optimization is performed based on the initial pose values ​​of the fuselage, the initial pose values ​​of the cantilever, the first two-dimensional image pixel coordinate set, and the second two-dimensional image pixel coordinate set to obtain the first pose calculation result and the second pose calculation result.

[0008] Optionally, the step of using the perspective-n-point method to calculate the pose based on the first three-dimensional feature point set corresponding to the fuselage, the first two-dimensional image pixel coordinate set, and a set scale factor to obtain the initial pose value of the fuselage includes: Using a perspective projection function, a first mapping is constructed to transform the first three-dimensional feature point set into two-dimensional image pixel coordinates based on the first three-dimensional feature point set and the set scale factor; A first objective function is constructed based on the first mapping and the first two-dimensional image pixel coordinate set; the first objective function is used to minimize the deviation between the first mapping and the first two-dimensional image pixel coordinate set; Solve the first objective function to obtain the initial pose value of the fuselage.

[0009] Optionally, the step of using the perspective-n-point method to calculate the pose based on the second three-dimensional feature point set corresponding to the cantilever, the second two-dimensional image pixel coordinate set, and a set scale factor to obtain the initial pose value of the cantilever includes: Using the perspective projection function, a second mapping is constructed to transform the second three-dimensional feature point set into two-dimensional image pixel coordinates based on the second three-dimensional feature point set and the set scale factor; A second objective function is constructed based on the second mapping and the second two-dimensional image pixel coordinate set; the second objective function is used to minimize the deviation between the second mapping and the second two-dimensional image pixel coordinate set; Solve the second objective function to obtain the initial pose of the cantilever.

[0010] Optionally, the step of using the bundle adjustment method to perform global nonlinear optimization based on the initial pose values ​​of the fuselage, the initial pose values ​​of the cantilever, the first two-dimensional image pixel coordinate set, and the second two-dimensional image pixel coordinate set to obtain the first pose calculation result and the second pose calculation result includes: Based on the initial pose values ​​of the fuselage and the cantilever, a parameter vector to be optimized is constructed, and a projection vector is constructed based on the first two-dimensional image pixel coordinates in the first two-dimensional image pixel coordinate set and the second two-dimensional image pixel coordinates in the second two-dimensional image pixel coordinate set. A third objective function is constructed based on the parameter vector to be optimized, the projection vector, the predicted coordinates of the three-dimensional feature points, the set parameter correction amount, and the regularization coefficient; the third objective function is used to minimize the projection residuals of the first three-dimensional feature point coordinate set and the second three-dimensional feature point coordinate set; Solve the third objective function to obtain the first pose calculation result and the second pose calculation result.

[0011] Optionally, the step of correcting the drift error of the first pose calculation result and the second pose calculation result for inertial navigation to obtain the pose correction result of the fuselage and the pose correction result of the cantilever includes: Based on the deviation between the visually calculated pose and the inertial navigation predicted pose, the historical drift error estimate, and the set error observation gain, the iterative drift error estimate is determined; the visually calculated pose is constructed based on the first pose calculation result and the second pose calculation result. Based on the iterative drift error estimate, the set pose deviation change rate, the set proportional adjustment coefficient, the set integral adjustment coefficient, and the set derivative adjustment coefficient, the pose correction results of the fuselage and the pose correction results of the cantilever are determined.

[0012] Optionally, the method further includes: A fourth objective function is constructed based on feature matching loss, dust fuzzing residual loss, and illuminance equalization loss; the fourth objective function is used to minimize feature matching loss, dust fuzzing residual loss, and illuminance equalization loss. Solving the fourth objective function yields the iterative values ​​of the environmental adaptive coefficients and the iterative values ​​of the set illuminance compensation amount, which are used as iterative calculation parameters for the defogging enhancement process. A fifth objective function is constructed based on visual reprojection loss, beam adjustment canonicalization loss, inertial temporal matching loss, and visual observation matching loss; the fifth objective function is used to minimize visual reprojection loss, beam adjustment canonicalization loss, inertial temporal matching loss, and visual observation matching loss. Solving the fifth objective function yields the iterative values ​​of the set scale factor and regularization coefficient, which are used as iterative calculation parameters for pose determination. A sixth objective function is constructed based on the steady-state drift error loss, dynamic overshoot suppression loss, observation gain matching loss, and correction energy consumption loss; the sixth objective function is used to minimize the steady-state drift error loss, dynamic overshoot suppression loss, observation gain matching loss, and correction energy consumption loss. Solve the sixth objective function to obtain the iterative calculation parameters for pose correction: the iterative values ​​of the set error observation gain, the set proportional adjustment coefficient, the set integral adjustment coefficient, and the set derivative adjustment coefficient.

[0013] On the other hand, embodiments of the present invention also provide a posture correction device for a working machine, the working machine including a body and a cantilever movably connected to the body; the device includes: The acquisition module is used to acquire environmental images collected from the coal mine tunneling face; the environmental images include a first two-dimensional image pixel coordinate set corresponding to the first three-dimensional feature point coordinate set of the machine body and a second two-dimensional image pixel coordinate set corresponding to the second three-dimensional feature point coordinate set of the cantilever. The dehazing module is used to perform dehazing enhancement processing on the environmental image based on the dust blur of all pixels in the environmental image and a set illuminance compensation amount; The calculation module is used to perform pose calculation based on the first three-dimensional feature point coordinate set, the first two-dimensional image pixel coordinate set, the second three-dimensional feature point coordinate set, and the second two-dimensional image pixel coordinate set using a fusion pose calculation method to obtain the first pose calculation result of the fuselage and the second pose calculation result of the cantilever; the fusion pose calculation method is constructed based on the perspective-n-point method and the bundle adjustment method; The correction module is used to correct the drift error of inertial navigation on the first pose calculation result and the second pose calculation result to obtain the pose correction result of the fuselage and the pose correction result of the cantilever.

[0014] On the other hand, embodiments of the present invention also provide a working machine, including: A visual sensor is used to acquire environmental images of the coal mine tunneling face. A processor, electrically connected to the vision sensor, is used to acquire environmental images collected from the coal mine tunneling face. The environmental images include a first two-dimensional image pixel coordinate set corresponding to a first three-dimensional feature point coordinate set of the machine body and a second two-dimensional image pixel coordinate set corresponding to a second three-dimensional feature point coordinate set of the cantilever of the machine. The environmental images are then subjected to defogging enhancement processing based on the dust blurring of all pixels and a set illumination compensation amount. A fusion pose calculation method is used to calculate the pose based on the first three-dimensional feature point coordinate set, the first two-dimensional image pixel coordinate set, the second three-dimensional feature point coordinate set, and the second two-dimensional image pixel coordinate set, obtaining the first pose calculation result for the machine body and the second pose calculation result for the cantilever. The fusion pose calculation method is constructed based on the perspective-n-point method and the bundle adjustment method. Inertial navigation drift error correction is applied to the first pose calculation result and the second pose calculation result to obtain the pose correction result for the machine body and the pose correction result for the cantilever. An actuator, electrically connected to the processor, is used to perform correction on the fuselage based on the pose correction result of the fuselage, and to perform correction on the cantilever based on the pose correction result of the cantilever.

[0015] Through the above technical solution, this embodiment of the invention performs dehazing and enhancement processing on the environmental image based on the dust blurring of all pixels and a set illumination compensation amount, thereby achieving image clarity and robust feature extraction under high dust, low illumination, and strong vibration environments, and improving visual anti-interference capabilities. This embodiment of the invention also utilizes a fusion pose calculation method to perform pose calculation based on the first three-dimensional feature point coordinate set, the first two-dimensional image pixel coordinate set, the second three-dimensional feature point coordinate set, and the second two-dimensional image pixel coordinate set, to obtain the first pose calculation result of the machine body and the second pose calculation result of the cantilever, and performs pose correction. This embodiment of the invention achieves synchronous correction of the machine body pose and cantilever pose of the working machinery. This embodiment of the invention solves the problem of extremely poor stability and the inability to achieve synchronous correction of the cutting cantilever posture in the existing technology for cantilever tunneling machine pose detection and correction.

[0016] Other features and advantages of the embodiments of the present invention will be described in detail in the following detailed description section. Attached Figure Description

[0017] The accompanying drawings are provided to further illustrate embodiments of the present invention and form part of the specification. They are used together with the following detailed description to explain the embodiments of the present invention, but do not constitute a limitation thereof. In the drawings: Figure 1 This is one of the flowcharts illustrating the posture correction method for operating machinery provided by the present invention; Figure 2 This is the second flowchart illustrating the posture correction method for the working machinery provided by the present invention; Figure 3 This is a schematic diagram of the posture correction device for the working machinery provided by the present invention; Figure 4 This is a schematic diagram of the working machinery provided by the present invention. Detailed Implementation

[0018] The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit the scope of the present invention.

[0019] Method Implementation Examples Please refer to Figure 1 This invention provides a method for correcting the posture of a working machine, the working machine including a body and a cantilever movably connected to the body; the method includes: Step 100: Acquire environmental images of the coal mine tunneling face; the environmental images include a first two-dimensional image pixel coordinate set corresponding to the first three-dimensional feature point coordinate set of the machine body and a second two-dimensional image pixel coordinate set corresponding to the second three-dimensional feature point coordinate set of the cantilever.

[0020] In this invention, the working machinery can be any type of machinery with two independently moving rigid bodies connected by a movable link. For example, the working machinery in this invention can be a cantilever tunneling machine. A cantilever tunneling machine includes a body and a cutting cantilever (referred to as the cantilever). Traditional pose calculation schemes can only calculate the pose of a single rigid body; for example, they can only output a set of rotation matrices and translation vectors, corresponding to the position and attitude angles of a single device. For cantilever tunneling machines in coal mines, conventional algorithms can only calculate the 6-DOF basic pose of the tunneling machine body (position X, Y, Z; attitude angles: heading angle, pitch angle, roll angle), and cannot identify the motion characteristics of the tunneling machine's special structure, nor can they calculate the attitude of the independently moving cutting cantilever, thus failing to meet the collaborative control requirements for intelligent cutting and precise roadway formation.

[0021] This invention breaks through the traditional single-rigid-body solution logic, modeling the cantilever tunneling machine as two coupled moving rigid bodies: the machine body and the cutting cantilever. For example, the tunneling machine body and the cutting cantilever are hinged coupling structures, and they have relative motion, belonging to independent moving rigid bodies. In this embodiment of the invention, they are modeled separately and matched with exclusive feature points: Rigid body of the machine body: Bound to the machine body's exclusive three-dimensional feature points (first three-dimensional feature point coordinate set), which only move and rotate with the entire tunneling machine, corresponding to global pose parameters. This is used to calculate the fuselage's X / Y / Z position, heading, pitch, and roll angles. The first set of 3D feature point coordinates includes the spatial coordinates of multiple dedicated 3D feature points on the fuselage. Each 3D feature point corresponds to a 2D image pixel coordinate in the environmental image. The 2D image pixel coordinates corresponding to all the 3D feature point coordinates of the fuselage form the first set of 2D image pixel coordinates. For example, the dedicated 3D feature points of the fuselage could be the 3D spatial coordinates of a reflector or calibration target pre-placed on a tunnel wall, and the 2D image pixel coordinates are the image pixel coordinates of the reflector or calibration target in the camera's image.

[0022] Cut cantilever rigid body: Binds dedicated 3D feature points (second 3D feature point coordinate set) to the cantilever. While moving globally with the body, it can independently perform pitch and swing movements, corresponding to local attitude parameters. This is used to calculate the working posture of the truncated cantilever. The second 3D feature point coordinate set includes the spatial coordinates of multiple dedicated 3D feature points of the cantilever. Each 3D feature point spatial coordinate of the cantilever corresponds to a 2D image pixel coordinate in the environmental image. The 2D image pixel coordinates corresponding to all the 3D feature point spatial coordinates of the cantilever form the second 2D image pixel coordinate set. The dedicated 3D feature points of the cantilever can be the 3D spatial coordinates of the cantilever itself.

[0023] In one embodiment, the present invention may arrange a set of binocular explosion-proof vision cameras on the top of the cantilever tunneling machine to acquire images of the underground coal mine environment (including first three-dimensional feature points and second three-dimensional feature points). The present invention may also arrange an IMU inertial module and a tilt sensor at the center of gravity of the machine to acquire machine motion attitude data. The present invention may also arrange a mileage encoder on the traveling mechanism of the cantilever tunneling machine to acquire traveling distance data. All sensors are explosion-proof, adaptable to the strong electromagnetic interference environment underground, and the data acquisition frequency is set to 100Hz to ensure real-time data. After synchronous acquisition of multi-source data, data preprocessing is performed. By employing binocular vision + IMU inertial + tilt + encoder multi-source sensor fusion, the invention adapts to the harsh underground environment, achieving data redundancy and fault tolerance.

[0024] Step 200: Perform dehazing enhancement processing on the environmental image based on the dust blurring of all pixels and the set illumination compensation amount.

[0025] To address the problems of image blurring, severe fogging, and unclear features caused by high dust, low illumination, and strong vibration in underground mining environments, this invention proposes an adaptive image enhancement and dehazing algorithm for harsh underground environments, achieving image sharpening and robust feature extraction. In one embodiment, the environmental image is dehazed and enhanced based on the dust blurring of all pixels and a set illumination compensation amount. This includes: determining the dehazing weight of each pixel based on its dust blurring and an environmental adaptation coefficient; calculating the updated pixel value of each pixel based on its pixel value, the dehazing weight, and the set illumination compensation amount; and using the image formed by all the updated pixel values ​​as the environmental image after dehazing enhancement.

[0026] Specifically, the formula for calculating the dehazing weight is as follows: ; in, D ing ( x,y ) is a pixel in the environment image. x,y The dust blurring at point () is calculated using the image grayscale variance. ω dust ( x,y The defogging weight is dynamically adjusted according to the dust ambiguity. α、β For environmental adaptive coefficients (e.g.) α The possible values ​​are 0.3 to 0.5. β The value can be 0.8 to 1.2, which is suitable for environments with different dust concentrations.

[0027] Based on the pixel value of each pixel, the dehazing weight, and the set illumination compensation amount, the formula for calculating the updated pixel value of each pixel is as follows: ; in, L in ( x,y ) represents the pixel value of a single pixel in the environment image, Δ L illum ( x,y This is used to set the illumination compensation amount to correct the image brightness in low-light environments and ensure the stability of feature extraction. L enh ( x,yThe updated pixel value is the pixel value after dehazing enhancement. All pixels in the environmental image are calculated using the aforementioned formulas for calculating dehazing weights and updating pixel values ​​to obtain the dehazing-enhanced environmental image. Through the dehazing enhancement processing of this invention, images remain clear even in environments with dust concentrations ≥500mg / m³, illuminance ≤50lx, and vibration frequencies ≤10Hz, achieving a feature extraction success rate ≥98%, effectively solving the problem of weak anti-interference capability in traditional visual algorithms. Through the above adaptive image enhancement and dehazing algorithm for harsh underground environments, this invention specifically addresses the image failure problem caused by high dust, low illumination, and strong vibrations in underground environments, improving visual anti-interference capability.

[0028] Step 300: Using the fusion pose calculation method, pose calculation is performed based on the first three-dimensional feature point coordinate set, the first two-dimensional image pixel coordinate set, the second three-dimensional feature point coordinate set, and the second two-dimensional image pixel coordinate set to obtain the first pose calculation result of the fuselage and the second pose calculation result of the cantilever; the fusion pose calculation method is constructed based on the perspective-n-point method and the bundle adjustment method.

[0029] The embodiments of the present invention adopt a fusion pose calculation method of "adaptive PnP calculation (perspective-n-point method) + bundle adjustment method optimization" to simultaneously calculate the 6-DOF pose of the cantilever tunneling machine (position X, Y, Z, attitude angles: heading angle, pitch angle, roll angle) and the cutting cantilever attitude (cutting arm pitch angle, swing angle).

[0030] In some embodiments, the method of using a fusion pose calculation method to calculate pose based on the first three-dimensional feature point coordinate set, the first two-dimensional image pixel coordinate set, the second three-dimensional feature point coordinate set, and the second two-dimensional image pixel coordinate set to obtain the first pose calculation result of the fuselage and the second pose calculation result of the cantilever includes: using the perspective-n-point method to calculate pose based on the first three-dimensional feature point set corresponding to the fuselage, the first two-dimensional image pixel coordinate set, and a set scale factor to obtain the initial pose value of the fuselage; using the perspective-n-point method to calculate pose based on the second three-dimensional feature point set corresponding to the cantilever, the second two-dimensional image pixel coordinate set, and a set scale factor to obtain the initial pose value of the cantilever; and using the bundle adjustment method to perform global nonlinear optimization based on the initial pose value of the fuselage, the initial pose value of the cantilever, the first two-dimensional image pixel coordinate set, and the second two-dimensional image pixel coordinate set to obtain the first pose calculation result and the second pose calculation result.

[0031] First, the global rotation matrix of the fuselage is solved using the fuselage feature point set (the first three-dimensional feature point set). Translation vector The initial pose values ​​of the fuselage with 6 degrees of freedom are obtained. For example, the use of the perspective-n-point method to calculate the pose based on the first three-dimensional feature point set corresponding to the fuselage, the first two-dimensional image pixel coordinate set, and a set scale factor to obtain the initial pose values ​​of the fuselage includes: constructing a first mapping from the first three-dimensional feature point set to the two-dimensional image pixel coordinates using a perspective projection function based on the first three-dimensional feature point set and the set scale factor; constructing a first objective function based on the first mapping and the first two-dimensional image pixel coordinate set; the first objective function is used to minimize the deviation between the first mapping and the first two-dimensional image pixel coordinate set; solving the first objective function to obtain the initial pose values ​​of the fuselage.

[0032] In one embodiment, the formula for the first objective function of fuselage pose calculation using the perspective-n-point method is as follows: ; The parameters are explained as follows: : Rigid body rotation matrix of the fuselage; : Rigid body translation vector of the fuselage; The total number of 3D feature points in the first 3D feature point set for environmental image matching; Adaptive scale factor (set scale factor) is used to compensate for imaging scale distortion caused by downhole dust, low illumination, and image blur. The camera's perspective projection function maps and transforms the spatial coordinates of 3D feature points to pixel coordinates in a 2D image. : Spatial coordinates of three-dimensional feature points in the first set of three-dimensional feature points. The two-dimensional image pixel coordinates corresponding to the spatial coordinates of the three-dimensional feature points. This represents the first mapping from the first three-dimensional feature point set to the pixel coordinates of a two-dimensional image. Given the constructed first objective function, the least squares method can be used to solve for the first objective function, yielding the transformation matrix T of the world coordinate system relative to the fuselage. WC Then, based on the transformation matrix T relative to the fuselage in the world coordinate system... WC With the known camera-to-body transformation matrix T CB The product of these terms determines the initial pose T of the fuselage. WB =T WC *T CB That is, position X, Y, Z, attitude angles: heading angle, pitch angle, roll angle.

[0033] Then, based on the calculated global pose of the fuselage, and combined with the feature point set of the cantilever (the second three-dimensional feature point set), the local rotation matrix of the cantilever relative to the fuselage is solved. Translation vector The initial pose value of the truncated cantilever is obtained. For example, the use of the perspective-n-point method to calculate the pose based on the second three-dimensional feature point set corresponding to the cantilever, the second two-dimensional image pixel coordinate set, and a set scale factor to obtain the initial pose value of the cantilever includes: constructing a second mapping from the second three-dimensional feature point set to the two-dimensional image pixel coordinates using a perspective projection function based on the second three-dimensional feature point set and the set scale factor; constructing a second objective function based on the second mapping and the second two-dimensional image pixel coordinate set; the second objective function is used to minimize the deviation between the second mapping and the second two-dimensional image pixel coordinate set; solving the second objective function to obtain the initial pose value of the cantilever.

[0034] In one embodiment, the formula for the second objective function of cantilever pose calculation using the perspective-n-point method is as follows: ; The parameters are explained as follows: : Rigid body rotation matrix of the cantilever; : Rigid body translation vector of the cantilever; The total number of three-dimensional feature points in the second set of three-dimensional feature points; Adaptive scale factor (set scale factor) is used to compensate for imaging scale distortion caused by downhole dust, low illumination, and image blur. The camera's perspective projection function maps and transforms the spatial coordinates of 3D feature points to pixel coordinates in a 2D image. : Spatial coordinates of three-dimensional feature points in the second set of three-dimensional feature points. The two-dimensional image pixel coordinates corresponding to the spatial coordinates of the three-dimensional feature points. This represents the second mapping, transforming the second set of three-dimensional feature points into two-dimensional image pixel coordinates. Given the constructed second objective function, the least squares method can be used to solve for it, yielding the transformation matrix T of the camera relative to the cantilever. AC Then, based on the transformation matrix T of the camera relative to the cantilever body AC With the known camera-to-body transformation matrix T CB The product of these factors determines the initial pose T of the cantilever. AB =T AC *T CB That is, the pitch angle and swing angle of the cantilever. The scale factor can compensate for the imaging distortion of three-dimensional feature points at different positions of the fuselage and cantilever in high dust and low illumination environments, ensuring the effectiveness of the initial values ​​of the two types of attitudes.

[0035] Finally, this embodiment of the invention utilizes the bundle adjustment method to perform global nonlinear optimization on the dual attitude initial values ​​(fuselage attitude initial value and cantilever attitude initial value) output by the perspective-n-point method, thereby achieving synchronous and accurate correction of the fuselage attitude and cantilever attitude, which is the core guarantee for synchronous dual attitude output. For example, using bundle adjustment, global nonlinear optimization is performed based on the initial pose values ​​of the fuselage and the cantilever, the first two-dimensional image pixel coordinate set, and the second two-dimensional image pixel coordinate set to obtain the first pose calculation result and the second pose calculation result. This includes: constructing a parameter vector to be optimized based on the initial pose values ​​of the fuselage and the cantilever; constructing a projection vector based on the first two-dimensional image pixel coordinates in the first two-dimensional image pixel coordinate set and the second two-dimensional image pixel coordinates in the second two-dimensional image pixel coordinate set; constructing a third objective function based on the parameter vector to be optimized, the projection vector, the predicted coordinates of three-dimensional feature points, a set parameter correction amount, and a regularization coefficient; the third objective function is used to minimize the projection residuals of the first three-dimensional feature point coordinate set and the second three-dimensional feature point coordinate set; solving the third objective function to obtain the first pose calculation result and the second pose calculation result.

[0036] In one embodiment, the present invention constructs a parameter vector to be optimized based on the initial pose values ​​of the fuselage and the cantilever. ξ Parameter vector to be optimized ξ This includes fuselage pose parameters (initial pose values ​​for the fuselage) and cantilever pose parameters (initial pose values ​​for the cantilever). The fuselage pose parameters include the global fuselage rotation matrix. Translation vector (All parameters of the fuselage's 6 degrees of freedom). The cantilever attitude parameters include the cantilever's local rotation matrix. Local translation vector (Core attitude parameters of the cantilever: pitch angle, yaw angle). In this embodiment of the invention, a projection vector is constructed based on the first two-dimensional image pixel coordinates in the first two-dimensional image pixel coordinate set and the second two-dimensional image pixel coordinates in the second two-dimensional image pixel coordinate set. In one embodiment, the formula for the third objective function is as follows: ; in, Represents the vector of parameters to be optimized. Represents the predicted coordinates of three-dimensional feature points. Represents the vector of parameters to be optimized. This represents the projection vector. This represents the regularization coefficient, used to constrain the parameter update step size and prevent optimization divergence and oscillation. The third objective function formula simultaneously minimizes the projection residuals of the fuselage's 3D feature points and the projection residuals of the cantilever's 3D feature points, with the regularization term... This represents the correction step size for all parameters to be uniformly constrained, avoiding optimization errors caused by downhole image noise. Through global nonlinear optimization using the bundle adjustment method, synchronous and accurate correction of the fuselage pose and cantilever attitude is achieved. Finally, two sets of core data are output, which are high-precision and synchronously adaptable: the first pose calculation result and the second pose calculation result of the fuselage 6-DOF pose and the truncated cantilever attitude.

[0037] Existing methods only support single-rigid-body attitude calculation, which cannot adapt to the dual-motion structural characteristics of cantilever tunneling machines. This invention, through dual-rigid-body modeling modification, integrates the attitude parameters of the machine body and cantilever into the algorithm solution system. Adaptive PnP calculation is used to solve for the initial values ​​of the dual attitudes, and bundle adjustment is used for global joint optimization, breaking through the limitations of traditional methods. This achieves synchronous and high-precision calculation of the tunneling machine body pose and the cutting cantilever attitude, meeting the core technical requirements of intelligent tunneling and precise cutting in coal mines. This invention, through a dual-attitude synchronous calculation algorithm, uses adaptive PnP + bundle adjustment optimization to synchronously calculate the 6-DOF pose of the machine body and the cantilever attitude, meeting the requirements of intelligent cutting. This invention eliminates visual calculation errors through bundle adjustment optimization and integrates IMU inertial data to improve dynamic response speed. The pose calculation accuracy reaches a position error ≤ ±10mm and an attitude angle error ≤ ±0.1°, achieving synchronous calculation of the machine body and cantilever attitudes with a response time ≤10ms.

[0038] Step 400: Perform inertial navigation drift error correction on the first pose calculation result and the second pose calculation result to obtain the pose correction result of the fuselage and the pose correction result of the cantilever.

[0039] This invention constructs a vision-inertial error observer. Based on the first and second pose calculation results, it estimates the cumulative drift error of inertial navigation in real time and combines an adaptive correction law to achieve real-time error compensation, completely eliminating pose drift. For example, the step of correcting the drift error of inertial navigation based on the first and second pose calculation results to obtain the pose correction results of the fuselage and the cantilever includes: determining an iterative drift error estimate based on the deviation between the visually calculated pose and the inertial navigation predicted pose, historical drift error estimates, and a set error observation gain; the visually calculated pose is constructed based on the first and second pose calculation results; and the pose correction results of the fuselage and the cantilever are determined based on the iterative drift error estimate, a set pose deviation change rate, a set proportional adjustment coefficient, a set integral adjustment coefficient, and a set derivative adjustment coefficient.

[0040] In one embodiment, the formula for calculating the iterative drift error estimate e(k) is: e(k) = e(k-1) + K (Zvis(k) Zimu(k)); Where e(k) is the estimated iterative drift error at time k, Zimu(k) is the inertial navigation predicted pose at time k, and Zvis(k) is the visually calculated pose at time k. The visually calculated pose is constructed based on the first pose calculation result and the second pose calculation result. Zvis(k) Zimu(k) represents the deviation between the visually calculated pose and the inertial navigation predicted pose, e(k-1) represents the estimated historical drift error at time k-1, and K represents the set error observation gain.

[0041] Zimu(k) represents the inertial navigation predicted pose at time k, containing the 6-DOF pose data (3D position + 3-axis attitude angles) of the cantilever tunneling machine. It is calculated in real-time by the IMU inertial module onboard the system, without relying on visual image information, and is considered high-frequency prediction data. The specific acquisition logic of Zimu(k) is as follows: The IMU inertial module collects raw angular velocity and acceleration data during the tunneling machine's operation in real time. Through an inertial navigation differential iterative algorithm, it integrates and recursively extrapolates the optimal pose state from the previous time step to predict the current pose state at time k. This parameter has a fast response speed and strong real-time performance, but it accumulates drift errors over time and cannot maintain high accuracy for long periods. It is the core observation object for system error observation and correction.

[0042] e(k-1) represents the optimal drift error estimate at the (k-1)th historical time (i.e., the historical drift error estimate), which is a historical cache parameter for the system's time-series iteration. e(k-1) is obtained as follows: During real-time system operation, after completing error observation, pose correction, and model optimization at time (k-1), the optimal drift error estimate output at that time is stored and cached. During error iteration calculation at time k, this historical parameter is directly called to constrain the convergence of the current error iteration, avoid oscillations in error estimation caused by single visual noise, and ensure the stability and continuity of system drift compensation. At the initial system operation time, the initial zero error or initial environmental calibration value can be manually calibrated as the initial value of e(k-1).

[0043] The visually calculated pose Zvis(k) is a high-precision pose coordinate (including the fuselage 6-DOF pose and the truncated cantilever pose) calculated using the aforementioned fusion algorithm of "adaptive PnP calculation + bundle adjustment global optimization". It is not the result of a traditional single vision algorithm and serves as the drift-free high-precision pose observation benchmark in this embodiment of the invention. The complete calculation process of the visually calculated pose Zvis(k) is as follows: Step 1: Image preprocessing. The environmental images acquired downhole are optimized using adaptive image dehazing, dust suppression, illumination enhancement, and motion blur removal algorithms to robustly extract feature points of the fuselage and cantilever. Step 2: Initial value calculation. Adaptive PnP (perspective-n-point method) is used to combine three-dimensional feature point coordinates and two-dimensional pixel coordinates to solve for the initial poses of the fuselage and cantilever, i.e., the initial pose values ​​of the fuselage and the cantilever. Downhole imaging distortion is compensated by a scale factor. Step 3: Global optimization. A global optimization algorithm, Bundle Adjustment (BA), is introduced to minimize the projection residual. This algorithm performs nonlinear global optimization on the initial pose values ​​of the tunnel boring machine (TBM) and the cantilever, correcting feature point matching errors and pose calculation deviations. The fourth step is outputting the results. The final output is a high-precision, drift-free visually calculated pose Zvis(k), including the three-dimensional position coordinates of the TBM body, three-axis attitude angles, and the attitude parameters of the cutting cantilever. Compared to existing methods, this fusion algorithm solves the problems of low calculation accuracy and poor robustness caused by high dust, low illumination, and strong vibration in underground drilling. The output Zvis(k) has stable accuracy (position error ≤ ±10mm, attitude angle error ≤ ±0.1°), with no long-term cumulative drift, and can serve as a true benchmark for observing inertial navigation drift errors, providing core data support for accurate calculation of e(k) and adaptive pose correction.

[0044] e(k) is the optimal estimate of the inertial navigation drift error at time k (iterative drift error estimate), which is the core output parameter of the system's vision-inertial error observer. It is used to compensate for the IMU's cumulative drift in real time. It is not directly acquired, but calculated through a dynamic iterative observation formula. The core logic for calculating e(k) is as follows: based on the residual between the high-precision drift-free visual pose (visually calculated pose) and the inertial navigation predicted pose, iteratively updates the estimate by combining the historical drift error estimate from the previous time step. The core iterative logic is as follows: using a set error observation gain K to correct the pose deviation between the visually calculated pose and the inertial navigation predicted pose at the current time step, and superimposing the convergence characteristics of the historical drift error estimate, the cumulative drift error e(k) of the inertial navigation system at the current time step is finally calculated, which is the iterative drift error estimate, providing a precise error basis for subsequent adaptive correction.

[0045] Wherein, Zimu(k): obtained by IMU inertial integral recursion, high frequency and real-time, with cumulative drift; Zvis(k): obtained by adaptive PnP+ beam adjustment optimization, high precision and no drift, serving as the observation benchmark; e(k): obtained by iterative observation based on the pose residual of Zvis(k) and Zimu(k) and the historical error e(k-1), serving as the core parameter for drift correction; e(k-1): the optimal error estimate cache value of the previous moment, ensuring stable convergence of the iterative process.

[0046] In one embodiment, the formulas for calculating the pose correction results of the fuselage and the cantilever are: Acom=Kp*e(k)+Ki*∫e(k)dt+Ka* ; Where Acom is the real-time correction quantity composed of the pose correction result of the fuselage and the pose correction result of the cantilever; Kp, Ki, and Ka are the set proportional adjustment coefficient, the set integral adjustment coefficient, and the set differential adjustment coefficient, respectively; e(k) is the estimated value of the iterative drift error; ∫e(k)dt is the pose deviation integral term; This represents the rate of change of pose deviation.

[0047] The aforementioned adaptive correction law formula can suppress the cumulative drift of inertial navigation in real time, achieving long-term zero-drift attitude maintenance. Even during long-term continuous operation (≥24 hours), the attitude error of the fuselage and cantilever remains within ±10mm. This embodiment of the invention, by constructing a visual-inertial error observer and an adaptive correction law, eliminates the cumulative drift of inertial navigation in real time, achieving long-term zero-drift operation.

[0048] The corrected pose data (the pose correction results of the machine body and the pose correction results of the cantilever) are transmitted in real time to the closed-loop execution and control module. This module is linked with the tunneling machine's servo control system and automatically adjusts the tunneling machine's traveling direction, body attitude, and cantilever cutting angle based on the pose correction results of the machine body and the cantilever, achieving precise pose control. This invention first decouples the total drift error into three independent components: traveling heading error, body attitude error, and cantilever cutting attitude error; and machine position error. Then, through preset and adaptively updated correction coefficients for each dimension, the unified error is transformed into a dedicated adjustment increment for the corresponding actuator, which is finally superimposed on the target control quantity of the corresponding dimension, achieving conflict-free and high-precision correction of multi-dimensional parameters.

[0049] In this embodiment of the invention, error decoupling is first performed by decoupling and decomposing the real-time correction quantity Acom according to the 6-DOF pose of the fuselage and the cantilever attitude, obtaining the deviation of each independent dimension. Then, dimensional mapping is performed: for different dimensions such as angle and length, the corresponding adaptive correction coefficients are called to convert the error quantity into a dedicated adjustment increment that can be recognized by the servo system. Then, incremental correction is performed by superimposing the dedicated adjustment increment onto the original target attitude / position parameters (initial pose values ​​of the fuselage and cantilever) obtained by vision-inertial fusion calculation to generate the final servo control command. Finally, the three independent servo channels of the walking mechanism, fuselage leveling mechanism and cantilever cutting mechanism execute the commands independently without coupling or interference.

[0050] The travel direction corresponds to the heading angle of the entire cantilever roadheader, used to control the tunnel excavation direction, and only affects the travel servo mechanism. For example, the system optimizes the solution using adaptive PnP + bundle adjustment to obtain a standard tunneling heading target value of 0°; affected by underground vibration and inertial drift, decoupling yields a heading deviation (heading angle pose correction result) of 0.8°. The system generates a reverse adjustment increment of 0.8° through a heading angle-specific correction coefficient, resulting in a final servo command heading of -0.8°. The cantilever roadheader fine-tunes the travel direction through differential steering of the tracks to offset yaw errors and ensure straight travel along the tunnel centerline. This correction only adjusts the overall machine travel heading and does not change the machine's horizontal attitude or cantilever cutting attitude.

[0051] The machine's attitude includes pitch and roll angles, used to ensure the tunneling machine's stability and levelness, corresponding to the machine's hydraulic leveling mechanism. Taking pitch angle as an example, if the standard horizontal pitch target value is 0° after fusion calculation, the machine may experience a pitch drift error of 0.6° due to undulations in the tunnel floor. The system matches a dedicated correction coefficient for the machine's attitude, generates a leveling increment of 0.6°, outputs a servo leveling command, controls the extension and retraction of the machine's support cylinders, and corrects the machine's tilt angle to the horizontal reference. This adjustment independently corrects the machine's attitude without interfering with the travel direction or boom movement.

[0052] The cantilever cutting angle, including the horizontal swing angle and the vertical pitch angle, directly determines the accuracy of the roadway cross-section forming, corresponding to the cantilever's independent hydraulic servo mechanism. For example, the standard pitch target angle of the cantilever in the intelligent cutting plan is 15°; strong underground vibrations cause the cantilever attitude to deviate, and the decoupling results in a cutting pitch angle deviation of 1.0°. The system generates an adjustment increment of 1.0° through a cantilever-specific correction coefficient, correcting the cantilever target angle to 14°, driving the cantilever cylinder to precisely fine-tune the cutting head attitude, compensating for attitude deviations, and preventing over-excavation and under-excavation problems in the roadway.

[0053] The fuselage's X / Y / Z three-dimensional position is measured in length dimensions and is calibrated completely independently from angle parameters, resolving the multi-dimensional adaptation problem. For example, the fused calculation yields a standard fuselage Y-axis position of 2000mm; long-term inertial drift results in a positional deviation of 10mm. The system generates displacement increments through position-dimension-specific correction coefficients, controlling the walking mechanism to complete displacement compensation and correcting the fuselage position to the standard range. In this embodiment of the invention, the length and angle dimensions employ completely independent mapping models and control channels, thoroughly avoiding the problem of dimensional mismatch.

[0054] This invention decomposes the coupled pose error into independent components of position, fuselage angle, and cantilever angle, achieving separation of parameters with different dimensions and degrees of freedom from the source. For different physical quantities such as angle and length, it configures dedicated, self-learning, and up-to-date correction coefficients to adapt to the motion characteristics of different actuators, achieving precise error conversion. This invention also implements multi-channel independent servo control: walking, fuselage leveling, and cantilever cutting are three independent execution systems. Correction commands are issued and executed independently in separate zones, eliminating parameter crosstalk and motion conflicts.

[0055] Meanwhile, the feedback optimization module of this embodiment of the invention collects the corrected pose data and equipment operation data in real time, optimizes the core parameters of each module through parameter self-learning algorithm, updates the model, and improves the system adaptability and correction accuracy. In addition, the system adopts a multi-source sensor redundancy design. When a sensor fails, it automatically switches to the backup sensor to achieve fault tolerance and network interruption recovery, ensuring long-term stable operation of the system.

[0056] In other aspects of embodiments of the present invention, the method further includes: A fourth objective function is constructed based on feature matching loss, dust fuzzing residual loss, and illuminance equalization loss; the fourth objective function is used to minimize feature matching loss, dust fuzzing residual loss, and illuminance equalization loss. Solving the fourth objective function yields the iterative values ​​of the environmental adaptive coefficients and the iterative values ​​of the set illuminance compensation amount, which are used as iterative calculation parameters for the defogging enhancement process. A fifth objective function is constructed based on visual reprojection loss, beam adjustment canonicalization loss, inertial temporal matching loss, and visual observation matching loss; the fifth objective function is used to minimize visual reprojection loss, beam adjustment canonicalization loss, inertial temporal matching loss, and visual observation matching loss. Solving the fifth objective function yields the iterative values ​​of the set scale factor and regularization coefficient, which are used as iterative calculation parameters for pose determination. A sixth objective function is constructed based on the steady-state drift error loss, dynamic overshoot suppression loss, observation gain matching loss, and correction energy consumption loss; the sixth objective function is used to minimize the steady-state drift error loss, dynamic overshoot suppression loss, observation gain matching loss, and correction energy consumption loss. Solve the sixth objective function to obtain the iterative calculation parameters for pose correction: the iterative values ​​of the set error observation gain, the set proportional adjustment coefficient, the set integral adjustment coefficient, and the set derivative adjustment coefficient.

[0057] The feedback optimization module in this invention is equipped with a dedicated parameter self-learning algorithm. It abandons the traditional method of fixed parameters and manual calibration in underground equipment. Relying on multi-dimensional feedback data such as environmental data, pose calculation residuals, servo execution deviations, and roadway forming errors throughout the entire tunneling operation, it iteratively optimizes the key parameters of each core functional module in real time, synchronously updating the algorithm models of each module to achieve dynamic adaptive adaptation across all operating conditions. The following examples illustrate the parameter self-learning and model update process of each module under typical complex underground operating conditions.

[0058] First, the adaptive image preprocessing module (dehazing and enhancement) undergoes parameter self-learning. The set of adjustable core parameters for dehazing and enhancement is: Θ img ={α,β,γ,L comp}; where α and β are the dust adaptive weight environmental coefficients, with values ​​ranging from α∈[0.3,0.5] and β∈[0.8,1.2]; γ is the image blur suppression adjustment coefficient; L comp This is the baseline for image illuminance compensation, i.e., setting the illuminance supplement.

[0059] The optimization objective of the fourth objective function is to minimize the feature matching loss, dust blurring residual loss, and illuminance equalization loss. The formula for the fourth objective function is as follows: ; in, For feature matching loss term, M is the number of effective feature points in a single frame image; F out (x,y) represents the feature descriptors extracted from the preprocessed image; F ref (x,y) represents the standard feature template for the roadway; λ1 represents the feature loss weight coefficient; L2 norm is used to quantify the feature extraction bias to ensure the stability of feature extraction under high dust and low illumination conditions.

[0060] This represents the dust fuzzing residual loss term.

[0061] W and H are the image pixel width and height, respectively; W dust (x,y)=1 αe ( β·Dimg(x,y)) This is the dehazing weight calculation formula for an embodiment of the present invention; D img (x,y) represents the dust blur of a pixel; λ2 is the dust suppression loss weight, used to constrain the dust residual error of the adaptive defogging algorithm.

[0062] Illuminance equalization loss term, L target λ represents the standard target illuminance in the well; λ3 is the illuminance loss weight, used to dynamically correct the illuminance compensation parameters to adapt to real-time illumination changes. enh (x,y)=L in (x,y)·W dust (x,y)+L comp This is the formula for calculating the updated pixel value of each pixel in this invention.

[0063] This invention uses a parameter gradient descent update rule and sets an iteration step size η. img Iterative update formula: After iterative convergence, the updated α, β (iterative values ​​of environmental adaptive coefficients), updated γ (optional), and updated L are... comp (Set illumination compensation iteration value) Automatically write back to the defogging weight calculation formula and the calculation formula for the updated pixel value of each pixel, completing the adaptive parameter tuning for the downhole environment. After the update, the defogging enhancement processing can adapt to harsh working conditions with high dust and low illumination, significantly improving image clarity and restoring the feature extraction success rate to over 98%, completely solving the problems of visual imaging failure and feature loss in harsh environments.

[0064] Next, we will perform parameter self-learning for pose calculation. The set of adjustable core parameters for pose calculation is as follows: Θ fuse ={λ ba s i , σ imu , σ vis}; Where, λ ba : Regularization coefficient of bundle adjustment; s i : Set the scaling factor; σ imu : IMU inertial data noise weight; σ vis Binocular visual observation noise weights.

[0065] The fifth objective function minimizes the visual reprojection loss, bundle adjustment canonicalization loss, inertial temporal matching loss, and visual observation matching loss. In one embodiment, the formula for the fifth objective function is as follows: ; in, The visual reprojection loss term corresponds to the original optimization objective of the adaptive PnP (perspective-n-point method) pose calculation; N is the total number of 3D feature points in the image; R is the rotation matrix, t is the translation vector; π(·) is the perspective projection function; X i Let u be the coordinates of the three-dimensional feature point. iFor 2D image pixel coordinates; quantize the visual pose calculation deviation.

[0066] ξ is the loss term for the regularization constraint of the beam adjustment, corresponding to the function parameter in the third objective function of the beam adjustment method; ξ is the parameter vector to be optimized in the pose solution, and Δξ is the set parameter correction amount used to suppress overfitting of the pose solution model.

[0067] Z represents the inertial timing matching loss term, where T is the total timing sampling length; fuse (k) represents the fused pose; Z imu (k) represents the inertial navigation predicted pose; ∥·∥ σimu λ is the noisy weighted Mahalanobis distance; λ4 is the inertial error weight, used to balance the inertial dynamic response error.

[0068] Z represents the visual observation matching loss term. vis (k) represents the visually calculated pose; ∥·∥ σvis λ5 is the visual noise-weighted Mahalanobis distance; λ5 is the visual error weight, used to balance the static observation error of binocular vision.

[0069] This invention employs a parameter gradient descent update rule, setting an iteration step size η. fuse The iterative update formula is: The regularization coefficients (iterative values ​​of regularization coefficients), scale factors (iterative values ​​of scale factors), and multi-source sensor noise weights (optional) of the iteratively updated bundle adjustment method are automatically written back to the second and third objective functions for parameter updates, simultaneously optimizing the 6-DOF pose of the fuselage and the dual-attitude solution model of the truncated cantilever. Through parameter self-learning in pose calculation, the stability of pose calculation is significantly improved, with position errors stably controlled within ±8mm and attitude angle errors controlled within ±0.08°, eliminating the problem of calculation accuracy exceeding tolerance under strong interference conditions.

[0070] Next, we will perform self-learning of pose correction parameters. The set of adjustable core parameters for pose correction includes: Θ ctrl ={K p K i K a K obs}

[0071] Among them, K p K i K a The formula parameters for setting the proportional adjustment coefficient, integral adjustment coefficient, and derivative adjustment coefficient of the adaptive correction law, corresponding to the calculation formulas for the posture correction results of the fuselage and the cantilever. K obsThe formula parameters for setting the error observation gain and corresponding iterative drift error estimates are used.

[0072] The sixth objective function minimizes the steady-state drift error loss, dynamic overshoot suppression loss, observation gain matching loss, and correction energy consumption loss. In one embodiment, the formula for the sixth objective function is as follows: ; λ6 is the steady-state drift error loss term, e(k) is the estimated value of the iterative drift error at time k; λ6 is the steady-state error weight, used to constrain the cumulative drift of inertial navigation under long-term operation.

[0073] This is the loss term for dynamic overshoot suppression. (k) represents the pose deviation rate; λ7 is the overshoot loss weight, used to avoid oscillation and overshoot during the fuselage and cantilever correction process.

[0074] K represents the observer gain matching loss term. obs,targe λ8 represents the optimal observation gain benchmark value corresponding to the current downhole vibration and dust conditions; λ8 is the gain matching weight, used to eliminate the error estimation lag problem.

[0075] To correct for energy loss, A com (t) represents the real-time correction value; λ9 represents the energy consumption weight; the correction output amplitude is limited to prevent the servo system from frequently impacting and damaging the equipment.

[0076] This invention employs a parameter gradient descent update rule, setting an iteration step size η. ctrl Iterative update formula: The iteratively optimized PID correction coefficients (setting iterative values ​​of proportional control coefficient, integral control coefficient, and derivative control coefficient) and the iteratively optimized set error observation gain (setting error observation gain iterative value) are automatically written back to the calculation formula of the iterative drift error estimate and the real-time correction amount for parameter updates, dynamically adapting to changes in the downhole environment and ensuring that the pose error is stably controlled within ±10mm during 24-hour continuous operation. Through parameter self-learning of pose correction, the problem of poor adaptability of fixed parameters is completely solved, avoiding over-correction oscillation in low-interference conditions and solving the problem of correction lag in high-drift conditions, realizing real-time and accurate compensation for cumulative drift of inertial navigation, and ensuring long-term zero-drift operation of the system.

[0077] The feedback optimization module collects corrected pose data, equipment operation data, raw binocular image data, and inertial time-series data in real time. It then substitutes these data into the three types of objective functions in parallel to solve for gradients and independently updates the core parameters within the three modules: adaptive image preprocessing, vision-inertial fusion pose calculation, and pose error estimation and adaptive correction. After parameter iteration and updates, the module automatically writes back to each algorithm model, achieving end-to-end unmanned self-iterative optimization. Simultaneously, the system monitors the residuals of multi-source sensor data in real time. When a single sensor outputs anomaly or the residual exceeds limits, a redundancy switching mechanism is automatically triggered, shielding faulty data from participating in parameter self-learning iteration. This achieves fault-tolerant parameter updates, ensuring long-term stable and high-precision adaptive correction operation of the system under complex downhole conditions.

[0078] In other embodiments, this invention can also perform parameter self-learning and model updating of the closed-loop execution and control module. The servo correction coefficients for the travel heading, fuselage attitude, and cantilever cutting angle are initially calibrated to fixed values, and the incremental adjustment ratios for each channel are constant, which cannot adapt to dynamic underground working conditions. Frequent undulations in the tunnel floor and dynamic changes in the cutting load mean that fixed servo correction parameters result in delayed cantilever cutting fine-tuning response and insufficient fuselage attitude leveling accuracy, leading to slight under-excavation and over-excavation of the tunnel. By using a self-learning algorithm (e.g., parameter gradient descent), tunnel forming errors, servo execution response deviations, and attitude adjustment residual errors are collected, and the correction ratio coefficients and response delay parameters for the three independent channels—travel heading, fuselage leveling, and cantilever cutting—are iteratively optimized. The parameters of the multi-dimensional channel correction model are updated, and the error mapping and incremental adjustment logic for different dimensions and units (position mm, angle °) are optimized to adapt to the dynamic response characteristics of each actuator. Therefore, the servo adjustment response speed of this invention is faster and more accurate, and the dynamic correction deviation of the travel direction, body posture and cantilever cutting angle is greatly reduced, effectively eliminating the problems of over-excavation and under-excavation of the roadway and improving the roadway forming quality.

[0079] In other embodiments, this invention can also perform self-learning and model updating of the fault-tolerance parameters of the acquisition sensors. Sensor data weights and fault judgment thresholds are fixed parameters; when a single sensor data is abnormal, the redundancy switching response is slow. Strong electromagnetic interference occurs frequently underground, occasionally resulting in single-frame IMU data jitter or minor encoder data anomalies. Fixed thresholds can easily lead to misjudgments or untimely fault tolerance. Through a self-learning algorithm (which can also be implemented in this embodiment), the fluctuation patterns of each sensor's data and the intensity of environmental interference are statistically analyzed over a long period, adaptively optimizing the sensor fault judgment threshold and multi-source data fusion weights. The multi-source data redundancy fusion model and fault-tolerance switching logic are updated, increasing the fusion weights for stable sensors and dynamically decreasing the weights for sensors susceptible to interference. Thus, the system fault tolerance capability of this invention is significantly improved, accurately identifying abnormal sensor data, achieving seamless redundancy switching, and ensuring that minor failures or data jitters of a single sensor do not affect the overall system operation, guaranteeing continuous equipment operation.

[0080] This invention employs a self-learning optimization process as a closed-loop iterative process: the system collects downhole environmental parameters, sensing data, calculates residuals, control deviations, and shaping errors in real time, optimizes core parameters through parameter self-learning, and updates various algorithm models and control models; the optimized parameters and models directly participate in the pose sensing, calculation, correction, and control of the next cycle, continuously iterating and converging to achieve dynamic adaptive optimization across all modules, the entire process, and without human intervention, completely solving the core pain point of traditional technologies where fixed parameters cannot adapt to complex dynamic working conditions downhole.

[0081] Please refer to Figure 2 In one embodiment, the posture correction method for the working machinery of the present invention includes the following steps: Step 1: Multi-source data acquisition (binocular image + inertial + tilt angle + encoder); Step 2: Adaptive image preprocessing (dehazing → deblurring → illumination enhancement → feature extraction); Step 3: Visual-inertial fusion pose calculation (adaptive PnP + bundle adjustment optimization); Step 4: Real-time estimation of pose error (visual-inertial error observer). Step 5: Adaptive correction law calculation → Real-time drift compensation; Step 6: Coordinated correction of fuselage and cantilever attitude → Closed-loop control output; Step 7: Feedback optimization (parameter self-learning + model self-updating).

[0082] In summary, the embodiments of this invention form a fully closed-loop system of "perception-computation-correction-control-feedback", realizing fully automatic unmanned intervention and dynamic adaptive optimization. Through the core design of "vision-led + inertial fusion + adaptive correction + fully closed-loop control", it far surpasses existing solutions in terms of accuracy, anti-interference ability, adaptive ability, degree of automation and robustness. It can simultaneously solve all the pain points of existing technologies and meet the needs of intelligent and unmanned tunneling in coal mines, and has extremely high practicality and industrialization promotion value.

[0083] This invention constructs a vision-driven, multi-source fusion pose calculation and closed-loop correction system. It achieves long-term zero-drift pose maintenance by correcting inertial navigation drift in real time through vision, solving the problem of long-term cumulative pose drift. Furthermore, it proposes an adaptive image preprocessing algorithm to achieve image clarity and robust feature extraction under high dust, low illumination, and strong vibration environments, improving visual anti-interference capabilities and solving the problem of visual failure in harsh downhole environments. It also designs a vision-inertial fusion pose calculation algorithm to achieve synchronous high-precision calculation of the 6-DOF pose of the fuselage and the attitude of the cutting cantilever, solving the problem of the inability to synchronously calculate the attitudes of the fuselage and the cantilever. Finally, it establishes a system based on… The dynamic adaptive correction strategy based on environmental perception requires no manual intervention and can automatically adapt to changes in the downhole environment to achieve real-time correction, solving the problem of non-adaptive pose correction. Furthermore, it constructs a fully closed-loop system of "pose calculation - error estimation - real-time correction - control feedback - model optimization" to achieve dynamic optimization and continuous improvement of correction accuracy, solving the problem of existing methods lacking a fully closed-loop correction mechanism. It also adopts a multi-source sensor redundancy design, which is multi-source redundancy and fault tolerance. The failure of a single sensor does not affect the operation of the system, adapting to long-term stable operation under complex downhole conditions, achieving fault tolerance and network interruption recovery, ensuring long-term stable operation of the system, and solving the problem of insufficient system robustness.

[0084] Device Examples Please refer to Figure 3 On the other hand, embodiments of the present invention also provide a posture correction device for a working machine, the working machine including a body and a cantilever movably connected to the body; the device includes: The acquisition module 301 is used to acquire environmental images collected from the coal mine tunneling face; the environmental images include a first two-dimensional image pixel coordinate set corresponding to the first three-dimensional feature point coordinate set of the machine body and a second two-dimensional image pixel coordinate set corresponding to the second three-dimensional feature point coordinate set of the cantilever. Dehazing module 302 is used to perform dehazing enhancement processing on the environmental image based on the dust blur of all pixels of the environmental image and a set illuminance compensation amount; The calculation module 303 is used to perform pose calculation based on the first three-dimensional feature point coordinate set, the first two-dimensional image pixel coordinate set, the second three-dimensional feature point coordinate set, and the second two-dimensional image pixel coordinate set using a fusion pose calculation method to obtain the first pose calculation result of the fuselage and the second pose calculation result of the cantilever; the fusion pose calculation method is constructed based on the perspective-n-point method and the bundle adjustment method; The correction module 304 is used to perform inertial navigation drift error correction on the first pose calculation result and the second pose calculation result to obtain the pose correction result of the fuselage and the pose correction result of the cantilever.

[0085] Optionally, the dehazing and enhancement processing of the environmental image based on the dust blurring of all pixels in the environmental image and a set illumination compensation amount includes: The dehazing weight of each pixel is determined based on the dust blur and environmental adaptation coefficient of each pixel. Based on the pixel value of each pixel, the dehazing weight, and the set illumination compensation amount, the updated pixel value of each pixel is calculated; the image formed by all the updated pixel values ​​is used as the environmental image after dehazing enhancement processing.

[0086] Optionally, the step of using the fusion pose calculation method to perform pose calculation based on the first three-dimensional feature point coordinate set, the first two-dimensional image pixel coordinate set, the second three-dimensional feature point coordinate set, and the second two-dimensional image pixel coordinate set to obtain the first pose calculation result of the fuselage and the second pose calculation result of the cantilever includes: The initial pose value of the fuselage is obtained by using the perspective-n-point method based on the first three-dimensional feature point set corresponding to the fuselage, the first two-dimensional image pixel coordinate set, and a set scale factor. The pose of the cantilever is calculated using the perspective-n-point method based on the second three-dimensional feature point set corresponding to the cantilever, the second two-dimensional image pixel coordinate set, and a set scale factor, to obtain the initial pose value of the cantilever. Using the bundle adjustment method, global nonlinear optimization is performed based on the initial pose values ​​of the fuselage, the initial pose values ​​of the cantilever, the first two-dimensional image pixel coordinate set, and the second two-dimensional image pixel coordinate set to obtain the first pose calculation result and the second pose calculation result.

[0087] Optionally, the step of using the perspective-n-point method to calculate the pose based on the first three-dimensional feature point set corresponding to the fuselage, the first two-dimensional image pixel coordinate set, and a set scale factor to obtain the initial pose value of the fuselage includes: Using a perspective projection function, a first mapping is constructed to transform the first three-dimensional feature point set into two-dimensional image pixel coordinates based on the first three-dimensional feature point set and the set scale factor; A first objective function is constructed based on the first mapping and the first two-dimensional image pixel coordinate set; the first objective function is used to minimize the deviation between the first mapping and the first two-dimensional image pixel coordinate set; Solve the first objective function to obtain the initial pose value of the fuselage.

[0088] Optionally, the step of using the perspective-n-point method to calculate the pose based on the second three-dimensional feature point set corresponding to the cantilever, the second two-dimensional image pixel coordinate set, and a set scale factor to obtain the initial pose value of the cantilever includes: Using the perspective projection function, a second mapping is constructed to transform the second three-dimensional feature point set into two-dimensional image pixel coordinates based on the second three-dimensional feature point set and the set scale factor; A second objective function is constructed based on the second mapping and the second two-dimensional image pixel coordinate set; the second objective function is used to minimize the deviation between the second mapping and the second two-dimensional image pixel coordinate set; Solve the second objective function to obtain the initial pose of the cantilever.

[0089] Optionally, the step of using the bundle adjustment method to perform global nonlinear optimization based on the initial pose values ​​of the fuselage, the initial pose values ​​of the cantilever, the first two-dimensional image pixel coordinate set, and the second two-dimensional image pixel coordinate set to obtain the first pose calculation result and the second pose calculation result includes: Based on the initial pose values ​​of the fuselage and the cantilever, a parameter vector to be optimized is constructed, and a projection vector is constructed based on the first two-dimensional image pixel coordinates in the first two-dimensional image pixel coordinate set and the second two-dimensional image pixel coordinates in the second two-dimensional image pixel coordinate set. A third objective function is constructed based on the parameter vector to be optimized, the projection vector, the predicted coordinates of the three-dimensional feature points, the set parameter correction amount, and the regularization coefficient; the third objective function is used to minimize the projection residuals of the first three-dimensional feature point coordinate set and the second three-dimensional feature point coordinate set; Solve the third objective function to obtain the first pose calculation result and the second pose calculation result.

[0090] Optionally, the step of correcting the drift error of the first pose calculation result and the second pose calculation result for inertial navigation to obtain the pose correction result of the fuselage and the pose correction result of the cantilever includes: Based on the deviation between the visually calculated pose and the inertial navigation predicted pose, the historical drift error estimate, and the set error observation gain, the iterative drift error estimate is determined; the visually calculated pose is constructed based on the first pose calculation result and the second pose calculation result. Based on the iterative drift error estimate, the set pose deviation change rate, the set proportional adjustment coefficient, the set integral adjustment coefficient, and the set derivative adjustment coefficient, the pose correction results of the fuselage and the pose correction results of the cantilever are determined.

[0091] Optionally, the device further includes: The update module is used to construct a fourth objective function based on feature matching loss, dust blurring residual loss, and illuminance equalization loss; the fourth objective function is used to minimize the feature matching loss, dust blurring residual loss, and illuminance equalization loss; solving the fourth objective function yields the iterative values ​​of the environmental adaptation coefficient and the iterative values ​​of the set illuminance compensation amount as iterative calculation parameters for the defogging enhancement processing; a fifth objective function is constructed based on visual reprojection loss, beam adjustment regularization loss, inertial temporal matching loss, and visual observation matching loss; the fifth objective function is used to minimize the visual reprojection loss, beam adjustment regularization loss, inertial temporal matching loss, and visual observation loss. Matching loss; solving the fifth objective function to obtain the iterative values ​​of the set scale factor and regularization coefficient as iterative calculation parameters for pose calculation; constructing a sixth objective function based on steady-state drift error loss, dynamic overshoot suppression loss, observation gain matching loss, and correction energy consumption loss; the sixth objective function is used to minimize the steady-state drift error loss, dynamic overshoot suppression loss, observation gain matching loss, and correction energy consumption loss; solving the sixth objective function to obtain the iterative values ​​of the set error observation gain, the set proportional adjustment coefficient, the set integral adjustment coefficient, and the set differential adjustment coefficient as iterative calculation parameters for pose correction.

[0092] The posture correction device for the operating machinery includes a processor and a memory. The aforementioned acquisition module 301, defogging module 302, calculation module 303, and correction module 304 are all stored as program units in the memory. The processor executes these program units stored in the memory to achieve the corresponding functions. The processor contains a kernel, which retrieves the corresponding program units from the memory. One or more kernels may be provided. The memory may include non-permanent memory in computer-readable media, random access memory (RAM), and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. The memory includes at least one memory chip.

[0093] On the other hand, embodiments of the present invention also provide a working machine, including: A visual sensor is used to acquire environmental images of the coal mine tunneling face. A processor, electrically connected to the vision sensor, is used to acquire environmental images collected from the coal mine tunneling face. The environmental images include a first two-dimensional image pixel coordinate set corresponding to a first three-dimensional feature point coordinate set of the machine body and a second two-dimensional image pixel coordinate set corresponding to a second three-dimensional feature point coordinate set of the cantilever of the machine. The environmental images are then subjected to defogging enhancement processing based on the dust blurring of all pixels and a set illumination compensation amount. A fusion pose calculation method is used to calculate the pose based on the first three-dimensional feature point coordinate set, the first two-dimensional image pixel coordinate set, the second three-dimensional feature point coordinate set, and the second two-dimensional image pixel coordinate set, obtaining the first pose calculation result for the machine body and the second pose calculation result for the cantilever. The fusion pose calculation method is constructed based on the perspective-n-point method and the bundle adjustment method. Inertial navigation drift error correction is applied to the first pose calculation result and the second pose calculation result to obtain the pose correction result for the machine body and the pose correction result for the cantilever. An actuator, electrically connected to the processor, is used to perform correction on the fuselage based on the pose correction result of the fuselage, and to perform correction on the cantilever based on the pose correction result of the cantilever.

[0094] Please refer to Figure 4 In one embodiment, the visual sensor is implemented using a multi-source sensing module. The multi-source sensing module includes a binocular explosion-proof visual camera, an IMU inertial module, a tilt sensor, and an odometer encoder. The binocular explosion-proof visual camera is used to acquire images of the underground coal mine environment (including first three-dimensional feature points and second three-dimensional feature points). In this embodiment, an IMU inertial module and a tilt sensor can also be arranged at the machine's center of gravity to acquire machine motion attitude data. In this embodiment, an odometer encoder can also be arranged on the traveling mechanism of the cantilever tunneling machine to acquire traveling distance data. All sensors are explosion-proof, adaptable to the strong electromagnetic interference environment underground, and the data acquisition frequency is set to 100Hz to ensure real-time data transmission. After synchronous acquisition of multi-source data, data preprocessing is performed. By employing binocular vision + IMU inertial + tilt + encoder multi-source sensor fusion, it adapts to the harsh underground environment, achieving data redundancy and fault tolerance.

[0095] The operating machinery comprises a core architecture of "vision-driven + inertial fusion + adaptive correction + full closed-loop control," constructing a vision-based adaptive correction system and method for the pose of cantilever tunneling machines in complex underground environments. Through the collaborative work of six functional modules, it systematically addresses the pain points of existing technologies, achieving high precision, real-time performance, adaptability, and full automation in pose detection and correction. The processor includes an adaptive image preprocessing module, a vision-inertial fusion pose calculation module, a pose error estimation and adaptive correction module, a closed-loop execution and control module, and a feedback optimization module. The adaptive image preprocessing module is used for defogging, deblurring, illumination enhancement, dust suppression, and robust feature extraction. The vision-inertial fusion pose calculation module performs adaptive PnP calculation, bundle adjustment optimization, and dual-attitude synchronous output. The pose error estimation and adaptive correction module performs a vision-inertial error observer, adaptive correction law, and real-time drift compensation. The closed-loop execution and control module performs yaw / pitch / roll angle correction, cantilever attitude collaborative control, and pose output. The feedback optimization module is used to perform parameter self-learning, model self-updating, fault tolerance, and redundancy switching. The operating machinery is used to execute the posture correction method of the operating machinery described in the above method embodiment. In this embodiment of the invention, the seven functional modules and the fully closed-loop working logic are linked sequentially, from multi-source data acquisition, preprocessing, posture calculation, error estimation, adaptive correction, to closed-loop control and feedback optimization, achieving fully automated operation without manual intervention, adapting to complex downhole environments.

[0096] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0097] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0098] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for correcting the position and posture of a working machine, characterized in that, The operating machinery includes a machine body and a cantilever movably connected to the machine body; the method includes: Acquire environmental images of the coal mine tunneling face; the environmental images include a first two-dimensional image pixel coordinate set corresponding to the first three-dimensional feature point coordinate set of the machine body and a second two-dimensional image pixel coordinate set corresponding to the second three-dimensional feature point coordinate set of the cantilever. The environmental image is dehazing and enhanced based on the dust blurring of all pixels in the environmental image and a set illuminance compensation amount. The pose calculation method is used to calculate the first pose of the fuselage and the second pose of the cantilever by using the first three-dimensional feature point coordinate set, the first two-dimensional image pixel coordinate set, the second three-dimensional feature point coordinate set, and the second two-dimensional image pixel coordinate set. The fusion pose calculation method is constructed based on the perspective-n-point method and the bundle adjustment method. The first pose calculation result and the second pose calculation result are subjected to inertial navigation drift error correction to obtain the pose correction result of the fuselage and the pose correction result of the cantilever.

2. The position and posture correction method for operating machinery according to claim 1, characterized in that, The process of dehazing and enhancing the environmental image based on the dust blurring of all pixels and a set illuminance compensation amount includes: The dehazing weight of each pixel is determined based on the dust blur and environmental adaptation coefficient of each pixel. Based on the pixel value of each pixel, the dehazing weight, and the set illumination compensation amount, the updated pixel value of each pixel is calculated; the image formed by all the updated pixel values ​​is used as the environmental image after dehazing enhancement processing.

3. The position and posture correction method for operating machinery according to claim 1, characterized in that, The method of using fusion pose calculation to calculate pose based on the first three-dimensional feature point coordinate set, the first two-dimensional image pixel coordinate set, the second three-dimensional feature point coordinate set, and the second two-dimensional image pixel coordinate set, to obtain the first pose calculation result of the fuselage and the second pose calculation result of the cantilever, includes: The initial pose value of the fuselage is obtained by using the perspective-n-point method based on the first three-dimensional feature point set corresponding to the fuselage, the first two-dimensional image pixel coordinate set, and a set scale factor. The pose of the cantilever is calculated using the perspective-n-point method based on the second three-dimensional feature point set corresponding to the cantilever, the second two-dimensional image pixel coordinate set, and a set scale factor, to obtain the initial pose value of the cantilever. Using the bundle adjustment method, global nonlinear optimization is performed based on the initial pose values ​​of the fuselage, the initial pose values ​​of the cantilever, the first two-dimensional image pixel coordinate set, and the second two-dimensional image pixel coordinate set to obtain the first pose calculation result and the second pose calculation result.

4. The position and posture correction method for operating machinery according to claim 3, characterized in that, The method of using perspective-n-point to calculate the pose of the fuselage based on the first three-dimensional feature point set corresponding to the fuselage, the first two-dimensional image pixel coordinate set, and a set scale factor, to obtain the initial pose value of the fuselage, includes: Using a perspective projection function, a first mapping is constructed to transform the first three-dimensional feature point set into two-dimensional image pixel coordinates based on the first three-dimensional feature point set and the set scale factor; A first objective function is constructed based on the first mapping and the first two-dimensional image pixel coordinate set; the first objective function is used to minimize the deviation between the first mapping and the first two-dimensional image pixel coordinate set; Solve the first objective function to obtain the initial pose value of the fuselage.

5. The posture correction method for operating machinery according to claim 3, characterized in that, The method of using perspective-n-point to calculate the pose of the cantilever based on the second three-dimensional feature point set corresponding to the cantilever, the second two-dimensional image pixel coordinate set, and a set scale factor, to obtain the initial pose value of the cantilever, includes: Using the perspective projection function, a second mapping is constructed to transform the second three-dimensional feature point set into two-dimensional image pixel coordinates based on the second three-dimensional feature point set and the set scale factor; A second objective function is constructed based on the second mapping and the second two-dimensional image pixel coordinate set; the second objective function is used to minimize the deviation between the second mapping and the second two-dimensional image pixel coordinate set; Solve the second objective function to obtain the initial pose of the cantilever.

6. The posture correction method for operating machinery according to claim 3, characterized in that, The method of using bundle adjustment to perform global nonlinear optimization based on the initial pose values ​​of the fuselage, the cantilever, the first two-dimensional image pixel coordinate set, and the second two-dimensional image pixel coordinate set, to obtain the first pose calculation result and the second pose calculation result, includes: Based on the initial pose values ​​of the fuselage and the cantilever, a parameter vector to be optimized is constructed, and a projection vector is constructed based on the first two-dimensional image pixel coordinates in the first two-dimensional image pixel coordinate set and the second two-dimensional image pixel coordinates in the second two-dimensional image pixel coordinate set. A third objective function is constructed based on the parameter vector to be optimized, the projection vector, the predicted coordinates of the three-dimensional feature points, the set parameter correction amount, and the regularization coefficient; the third objective function is used to minimize the projection residuals of the first three-dimensional feature point coordinate set and the second three-dimensional feature point coordinate set; Solve the third objective function to obtain the first pose calculation result and the second pose calculation result.

7. The method for correcting the position and posture of a working machine according to claim 1, characterized in that, The step of correcting the drift error of the first pose calculation result and the second pose calculation result for inertial navigation to obtain the pose correction result of the fuselage and the pose correction result of the cantilever includes: Based on the deviation between the visually calculated pose and the inertial navigation predicted pose, the historical drift error estimate, and the set error observation gain, the iterative drift error estimate is determined; the visually calculated pose is constructed based on the first pose calculation result and the second pose calculation result. Based on the iterative drift error estimate, the set pose deviation change rate, the set proportional adjustment coefficient, the set integral adjustment coefficient, and the set derivative adjustment coefficient, the pose correction results of the fuselage and the pose correction results of the cantilever are determined.

8. The position and posture correction method for operating machinery according to claim 1, characterized in that, The method further includes: A fourth objective function is constructed based on feature matching loss, dust fuzzing residual loss, and illuminance equalization loss; the fourth objective function is used to minimize feature matching loss, dust fuzzing residual loss, and illuminance equalization loss. Solving the fourth objective function yields the iterative values ​​of the environmental adaptive coefficients and the iterative values ​​of the set illuminance compensation amount, which are used as iterative calculation parameters for the defogging enhancement process. A fifth objective function is constructed based on visual reprojection loss, beam adjustment canonicalization loss, inertial temporal matching loss, and visual observation matching loss; the fifth objective function is used to minimize visual reprojection loss, beam adjustment canonicalization loss, inertial temporal matching loss, and visual observation matching loss. Solving the fifth objective function yields the iterative values ​​of the set scale factor and regularization coefficient, which are used as iterative calculation parameters for pose determination. A sixth objective function is constructed based on the steady-state drift error loss, dynamic overshoot suppression loss, observation gain matching loss, and correction energy consumption loss; the sixth objective function is used to minimize the steady-state drift error loss, dynamic overshoot suppression loss, observation gain matching loss, and correction energy consumption loss. Solve the sixth objective function to obtain the iterative calculation parameters for pose correction: the iterative values ​​of the set error observation gain, the set proportional adjustment coefficient, the set integral adjustment coefficient, and the set derivative adjustment coefficient.

9. A posture correction device for a working machine, characterized in that, The operating machinery includes a body and a cantilever movably connected to the body; the device includes: The acquisition module is used to acquire environmental images collected from the coal mine tunneling face; the environmental images include a first two-dimensional image pixel coordinate set corresponding to the first three-dimensional feature point coordinate set of the machine body and a second two-dimensional image pixel coordinate set corresponding to the second three-dimensional feature point coordinate set of the cantilever. The dehazing module is used to perform dehazing enhancement processing on the environmental image based on the dust blur of all pixels in the environmental image and a set illuminance compensation amount; The calculation module is used to perform pose calculation based on the first three-dimensional feature point coordinate set, the first two-dimensional image pixel coordinate set, the second three-dimensional feature point coordinate set, and the second two-dimensional image pixel coordinate set using a fusion pose calculation method to obtain the first pose calculation result of the fuselage and the second pose calculation result of the cantilever; the fusion pose calculation method is constructed based on the perspective-n-point method and the bundle adjustment method; The correction module is used to correct the drift error of inertial navigation on the first pose calculation result and the second pose calculation result to obtain the pose correction result of the fuselage and the pose correction result of the cantilever.

10. A type of operating machinery, characterized in that, include: A visual sensor is used to acquire environmental images of the coal mine tunneling face. The processor, electrically connected to the vision sensor, is used to acquire environmental images collected from the coal mine tunneling face; the environmental images include a first two-dimensional image pixel coordinate set corresponding to a first three-dimensional feature point coordinate set of the machine body and a second two-dimensional image pixel coordinate set corresponding to a second three-dimensional feature point coordinate set of the cantilever of the machine. The environmental image is dehazing and enhanced based on the dust blurring of all pixels in the environmental image and a set illuminance compensation amount. A fusion pose calculation method is used to calculate the pose based on the first three-dimensional feature point coordinate set, the first two-dimensional image pixel coordinate set, the second three-dimensional feature point coordinate set, and the second two-dimensional image pixel coordinate set, to obtain the first pose calculation result of the fuselage and the second pose calculation result of the cantilever; the fusion pose calculation method is constructed based on the perspective-n-point method and the bundle adjustment method; the first pose calculation result and the second pose calculation result are corrected for drift error of inertial navigation to obtain the pose correction result of the fuselage and the pose correction result of the cantilever; An actuator, electrically connected to the processor, is used to perform correction on the fuselage based on the pose correction result of the fuselage, and to perform correction on the cantilever based on the pose correction result of the cantilever.