A posture leveling system and control method of a mobile span-bridge arm vehicle

By integrating sensor arrays, edge computing units, and control layers, and combining an improved Kalman filter and fuzzy PID algorithm, the attitude detection and leveling control problems of the mobile gantry crane's attitude leveling system under complex working conditions were solved, achieving high precision and stability, and improving construction safety and quality.

CN123177541APending Publication Date: 2026-11-27STATE GRID SHANDONG ELECTRIC POWER CO +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611665535.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-27
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

The existing mobile gantry crane's attitude leveling system has a low degree of automation, making it difficult to adapt to complex working conditions. Its attitude detection accuracy and leveling control stability are poor, which can easily lead to attitude deviation and equipment overturning risks, and it cannot meet the requirements of high-load and high-precision operation.

Method used

An integrated solution of sensor array, edge computing unit and control layer is adopted, which combines nine-axis IMU sensor, lidar, tilt sensor and other sensors. Through improved Kalman filter and fuzzy PID algorithm, high-precision attitude detection and fast stable leveling are achieved, which can adapt to changes in load, slope and wind speed and suppress attitude drift and signal distortion.

Benefits of technology

It improves attitude detection accuracy and system robustness, ensuring high-precision, high-stability and high-reliability leveling control under complex construction conditions, reducing the risk of equipment overturning, and improving construction safety and quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123177541A_ABST
    Figure CN123177541A_ABST
Patent Text Reader

Abstract

The application relates to a posture leveling system and a control method of a mobile crossing frame arm vehicle, and belongs to the technical field of posture leveling. The posture executing mechanism is uniformly modeled by simultaneously using four-dimensional data states of an inclination, an inclination rate, a cylinder displacement and a displacement rate. Meanwhile, parameter design is performed to realize parameter self-setting, so that the equipment can realize real-time optimization filtering according to loads, slopes and wind speeds. Compared with traditional Kalman filtering, the design can significantly improve posture detection accuracy and system robustness, effectively suppresses posture drift and signal distortion caused by load fluctuation, uneven road surface and vibration noise, and enables the leveling system to still have high precision, high stability and high reliability under complex construction conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a posture leveling system and control method for a mobile gantry crane, belonging to the field of posture leveling technology. Background Technology

[0002] Mobile boom lifts are core equipment in power construction and high-altitude operations. During operation, they rely on the extension, luffing, and rotation of the boom to perform tasks such as crossing obstacles and erecting structures at height. The horizontal alignment of the vehicle and boom directly determines operational accuracy, equipment safety, and construction efficiency. In actual working conditions, construction sites are often outdoor uneven surfaces (such as mountains, hills, and temporary construction sites), which can easily cause the vehicle to roll and pitch. Simultaneously, factors such as boom extension and contraction, load changes, and external wind disturbances can further exacerbate these attitude deviations, resulting in excessive positional deviations at the boom's end working point, uneven stress distribution, and even risks such as equipment overturning and construction accidents.

[0003] Existing mobile boom lifts employ purely mechanical leveling mechanisms, relying on manual operation of outrigger extension and retraction. This low level of automation results in low overall leveling efficiency and accuracy, making it difficult to adapt to dynamic changes in posture during operation. Furthermore, if the control system uses traditional PID control, fixed parameters are often employed, making the equipment unable to adapt to time-varying nonlinear conditions such as fluctuating vehicle loads and sudden changes in road slope. This can lead to overshoot, jitter, or integral saturation, significantly reducing leveling stability. Additionally, traditional leveling systems use only a single sensor or a limited number of sensors with few parameter types. This detection method is susceptible to interference from vibration and temperature drift, resulting in low posture detection accuracy. Distorted feedback signals from the leveling control further degrade the leveling effect. If the equipment uses a multi-outrigger leveling mechanism and the designers have not considered the coupling of outrigger movements, problems such as repeated leveling and localized overload can easily occur, failing to meet the stringent requirements of high-load, high-precision operations.

[0004] Therefore, developing a solution that can adapt to complex working conditions, possesses high-precision attitude detection, rapid and stable leveling control, and multi-leg collaborative decoupling capabilities is crucial for improving equipment operation safety and construction quality, and has significant engineering application value. Summary of the Invention

[0005] To address the shortcomings of existing technologies, this invention provides a posture leveling system and control method for a mobile gantry crane. By simultaneously using four-dimensional data states—tilt angle, tilt rate, cylinder displacement, and displacement rate—the posture actuator is modeled in a unified manner. Furthermore, the parameter design performs parameter self-tuning, enabling the equipment to optimize filtering in real time based on load, slope, and wind speed. Compared to traditional Kalman filtering, this design significantly improves posture detection accuracy and system robustness, effectively suppressing posture drift and signal distortion caused by load fluctuations, uneven road surfaces, and vibration noise. This ensures the leveling system maintains high precision, high stability, and high reliability even under complex construction conditions.

[0006] The technical solution of the present invention is as follows:

[0007] A mobile gantry crane's attitude leveling system includes a sensor group, an edge computing unit, and a control layer connected in sequence. Both the sensor group and the control layer are connected to the controlled object, wherein:

[0008] The sensor group includes several types of sensors used to collect real-time data;

[0009] The edge computing unit includes an improved Kalman filter and a condition clustering module, which outputs standardized parameters;

[0010] The control layer is used to output optimal control parameters and send them to the controlled objects.

[0011] According to a preferred embodiment of the present invention, the sensor group includes a nine-axis IMU sensor, a lidar, a tilt sensor, a cylinder displacement sensor, a force sensor, and a wind speed sensor. The real-time data collected includes ambient wind speed, operating load, tilt angle, tilt angle change rate, cylinder displacement, and cylinder displacement change rate.

[0012] According to a further preferred embodiment of the present invention, the nine-axis IMU sensor is installed 10-15 cm above the end point of the boom and includes a three-axis accelerometer, a three-axis gyroscope, and a three-axis magnetometer (three-axis magnetic field sensor). The three-axis accelerometer measures the linear acceleration and gravitational component of the boom to assist in calculating the tilt angle. The three-axis gyroscope captures the angular velocity of the boom rotation to track dynamic attitude changes in real time. The three-axis magnetometer senses the direction of the Earth's magnetic field to calibrate the yaw angle and suppress long-term drift. All of the above-mentioned detection quantities have three spatial degrees of freedom, thereby forming a nine-degree-of-freedom sensing capability.

[0013] The control method for the attitude leveling system of the aforementioned mobile gantry crane is as follows:

[0014] S1, the sensor group collects real-time data and transmits all the collected raw data to the improved Kalman filter of the edge computing unit according to the corresponding frequency. Before Kalman filtering, mean filtering and sliding window filtering techniques are used to process the data to remove abnormal interference data.

[0015] S2, the edge computing unit acquires three types of working condition input parameters: boom extension length, working load, and ambient wind speed. First, the three types of parameters are standardized without dimension, mapping data with different dimensions to a unified calculation range to eliminate the influence of dimension differences on the clustering results. Then, the K-means clustering algorithm is used to cluster the standardized parameters according to the working conditions. Based on the typical working scenarios of the boom truck, the working conditions are divided into three typical working conditions: light load, small extension, and low wind speed; medium load, medium extension, and medium wind speed; and heavy load, large extension, and high wind speed. At the same time, the real-time interference level is judged by comprehensively integrating the data returned by the three-axis magnetometer of the nine-axis IMU sensor, and the current working status is accurately matched and identified.

[0016] S3, the parameter self-tuner adapts to the working conditions and optimizes the parameters for the magnetic environment. Based on the wind speed and interference level at this time, the parameter self-tuner iteratively generates the optimal parameters through a fuzzy PID algorithm. When the interference is weak, the weight of the three-axis magnetometer is reduced (the influence coefficient of the three-axis magnetometer output data on the final attitude calculation result is proportional to the dependence of the calculation result on the magnetic field data). When the interference is strong, the lidar is used to replace the three-axis magnetometer, providing the raw data required to calculate the yaw angle, and outputting the parameter combination that minimizes the leveling error to the parameter self-tuner.

[0017] S4, the parameter self-tuner feeds back the optimal parameters to the main control PLC. The updated fuzzy PID controller fuses four-dimensional data of tilt angle, tilt angle change rate, cylinder displacement and cylinder displacement change rate through an improved Kalman filter. Combined with the control signal generated by the fuzzy PID algorithm, it drives the electro-hydraulic servo valve to adjust the hydraulic oil flow and pressure of the cylinder, correct the boom posture deviation, and achieve high-precision leveling under multiple working conditions and strong magnetic environment without interrupting the leveling operation.

[0018] According to a preferred embodiment of the present invention, the specific operations of mean filtering and sliding window filtering in step S1 are as follows:

[0019] The average value of N data points continuously collected by the sensor is taken to quickly suppress random interference such as quantization noise and circuit noise of the sensor itself. Then, a sliding window of fixed length is set to retain only the data within the window and remove outliers that exceed the threshold to avoid sudden interference from affecting subsequent analysis. This type of filtering has low computational load and fast response, and can run quickly in edge computing units. It can perform preliminary processing and noise reduction on the original data without occupying too much computing power, and obtain stable and clean data.

[0020] According to a preferred embodiment of the present invention, in step S2, the interference level judgment method is as follows: the edge computing unit continuously collects magnetic field strength and yaw angle data through the triaxial magnetometer, calculates two indicators in real time: the variance of magnetic field strength and the deviation between the measured value and the theoretical value of yaw angle. The judgment is made according to a preset threshold. When the variance of magnetic field strength is less than the set threshold and the deviation between the measured value and the theoretical value of yaw angle is within the allowable range, it is judged as weak interference; when the variance of magnetic field strength exceeds the limit or the deviation between the measured value and the theoretical value of yaw angle continues to be large, it is judged as strong interference. In this way, the availability of the triaxial magnetometer is judged online.

[0021] According to a preferred embodiment of the present invention, in step S3, the introduced fuzzy PID solves the K-factor problem of traditional PID. p ,K i ,K d The setpoint is a fixed value. However, under conditions of slope, heavy load, or vibration, the system may experience jitter or even overshoot, significantly reducing control accuracy. The fuzzy PID controller uses the deviation e(k) between the tilt angle setpoint and the measured value, and the rate of change of the deviation e... c (k) is taken as input, and after fuzzification, fuzzy quantities E and EC are obtained. Then, ∆K is output through fuzzy inference. p ∆K i ∆K d This enables online adaptive correction of PID parameters to obtain optimal parameters.

[0022] According to a further preferred embodiment of the present invention, the deviation and the rate of change of deviation are first calculated:

[0023]

[0024]

[0025]

[0026] In the formula, θ ref (k) is the given value of the inclination angle, θ fb (k) is the feedback tilt angle after filtering, T is the sampling period, and y(k) is the output attitude. Then, the precise system input is mapped to the fuzzy universe of discourse, and the fuzzification process is performed according to the following formula:

[0027]

[0028]

[0029]

[0030] In the formula, K p K i K dBased on the control gain, the input variables are divided into fuzzy intervals using a triangular membership function. Fuzzy inference can be completed using only a small number of fuzzy subsets and simplified rules, resulting in high computational efficiency and suitability for real-time operation on embedded platforms. To obtain accurate incremental control values, the centroid method is used to perform defuzzification operations, yielding an analytical form of the incremental output.

[0031]

[0032]

[0033] In the formula, L is the feature parameter of the fuzzy interval, e p (k) represents the attitude deviation at time k, e v (k) represents the rate of change of the attitude deviation, K p K i K d These are the parameter values ​​in the PID controller, K. yd The output differential term matching coefficient is one of the MOGA optimization parameters; Δy(k) is the actual attitude output change of the controlled object, Δu PI (k) and Δu D (k) represents the analytical increment output of the fuzzy PI and fuzzy D units, respectively;

[0034] The final overall control output is:

[0035]

[0036] In the formula, u PI K is the cumulative output value of the periodic fuzzy PI unit. u PI and K u D represents the output weight coefficients of the PI and differential D units, respectively, and both are optimization parameters of the multi-objective genetic algorithm MOGA. The aforementioned key parameter K... p K i K d L, K u PI, K u D and K are optimized globally using the multi-objective genetic algorithm MOGA, with the optimization objectives being to minimize overshoot, settling time, and steady-state error, to obtain the optimal parameter combination.

[0037] According to a preferred embodiment of the present invention, in step S4, the improved Kalman filter first discretizes the thought data to obtain discretized state equations and observation equations. Let the sampling period be T, and the vector be... Where x1 is the boom tilt angle, x2 is the rate of change of tilt angle, x3 is the cylinder displacement, and x4 is the rate of change of cylinder displacement, the discretized state equation is expressed as:

[0038]

[0039] In the formula, G(T) is the discretized state transition matrix, H(T) is the discretized input matrix, and U... k-1 W is the displacement control quantity of the solenoid valve spool. k-1 To account for process noise, the observation equation uses the tilt angle signal acquired by the sensor as the observation, and is expressed as:

[0040]

[0041] In the formula, Y k The boom tilt angle observations are the result of two stages of noise reduction processing: mean filtering and sliding window filtering. The observation matrix N = [1 0 0 0] is used to accurately extract the tilt angle components from the four-dimensional state vector as observations. k Zero-mean Gaussian observation noise is used to quantify measurement errors such as sensor quantization noise, circuit noise, and environmental electromagnetic interference. Based on this, the Kalman filter recursive process is initiated to complete state prediction based on the dynamic model.

[0042]

[0043] Estimation of the optimal state at the previous moment Based on this, the discretized state transition matrix G(T) and the control input U are combined. k-1 The prior state estimate at the current time can be derived from the corresponding input matrix H(T). This enables the prediction of boom attitude and cylinder displacement, providing an initial benchmark for subsequent observation and correction, and simultaneously updating the predicted covariance.

[0044]

[0045] In the formula, P is the prior error covariance matrix, used to quantify the uncertainty of prior state estimation; k-1 is the posterior error covariance matrix of the previous time step; Q is the process noise covariance matrix, used to model process uncertainties such as unmodeled dynamics, parameter perturbations and external disturbances in the system. Its value directly determines the degree of confidence of the system in the model prediction.

[0046] Subsequently, the Kalman gain matrix is ​​calculated based on the prior covariance and observation noise characteristics:

[0047]

[0048] In the formula, K kK is the Kalman gain, a core parameter that balances the weights of the model's predicted information and the sensor's observed information. Its value determines the magnitude of the correction of the state estimate by the observation residuals. R is the observation noise covariance matrix, used to quantify the intensity of sensor measurement noise. Under common operating conditions, it can be considered that the system is stable when R is in the interval [0.01, 0.1], and when R is greater than this interval, K... k The value of K will decrease accordingly, and the system will rely more on the model's prediction results; when R is less than this range, K... k This will increase accordingly, and the system will trust the sensor observation data more, thereby achieving a dynamic optimal trade-off between prediction and observation;

[0049]

[0050] in, The observation residual represents the deviation between the prior state estimate and the actual observation, and the Kalman gain K is... k The residual is distributed to each state component with optimal weights, and the Kalman gain K is... k This is a four-dimensional vector, corresponding to the tilt angle, tilt angle change rate, cylinder displacement, and optimal correction coefficient for the cylinder displacement change rate. This is achieved by interpolating the observed residuals with K. k By multiplying dimension by dimension, the deviation is distributed to each state component with optimal weights and corrections are performed to achieve unbiased correction of boom tilt angle, tilt angle change rate, cylinder displacement, cylinder displacement, and cylinder displacement change rate, thus obtaining the optimal state estimate for the current moment. ;

[0051]

[0052] In the formula, I is the identity matrix with the same dimension as the state vector. By using the linear transformation of the Kalman gain and the observation matrix, the uncertainty of the updated state estimate is quantified, providing an initial covariance benchmark for the state prediction at the next moment. Through the above recursive formula, the optimal estimation of the boom attitude and cylinder displacement state is achieved.

[0053] The beneficial effects of this invention are as follows:

[0054] This invention uses four-dimensional data states—tilt angle, tilt rate, cylinder displacement, and cylinder displacement rate—to uniformly model the attitude actuator. Simultaneously, the parameter design performs self-tuning, enabling the device to optimize filtering in real time based on load, slope, and wind speed. Compared to traditional Kalman filtering, this design significantly improves attitude detection accuracy and system robustness, effectively suppressing attitude drift and signal distortion caused by load fluctuations, uneven road surfaces, and vibration noise. This ensures the leveling system maintains high precision, high stability, and high reliability even under complex construction conditions. Attached Figure Description

[0055] Figure 1This is a system operation flowchart of the present invention;

[0056] Figure 2 This is a schematic diagram of the system structure of the present invention;

[0057] Figure 3 This is a flowchart of the method of the present invention. Detailed Implementation

[0058] The present invention will be further described below with reference to the embodiments and accompanying drawings, but is not limited thereto.

[0059] Example 1:

[0060] like Figures 1-2 As shown, this embodiment provides an attitude leveling system for a mobile gantry crane, including a sensor group, an edge computing unit, and a control layer connected in sequence. Both the sensor group and the control layer are connected to the controlled object, wherein:

[0061] The sensor group includes several types of sensors used to collect real-time data;

[0062] The edge computing unit includes an improved Kalman filter and a condition clustering module, which outputs standardized parameters;

[0063] The control layer, including parameter self-tuners, fuzzy PID controllers, and a main control PLC, is used to output optimal control parameters and send them to the controlled object.

[0064] The sensor group includes a nine-axis IMU sensor, lidar, tilt sensor, cylinder displacement sensor, force sensor, and wind speed sensor. The real-time data collected includes ambient wind speed, operating load, tilt angle, tilt angle change rate, cylinder displacement, and cylinder displacement change rate.

[0065] The nine-axis IMU sensor is installed 10-15cm above the end point of the boom and includes a three-axis accelerometer, a three-axis gyroscope, and a three-axis magnetometer (three-axis magnetic field sensor). The three-axis accelerometer measures the linear acceleration and gravitational component of the boom to help calculate the tilt angle. The three-axis gyroscope captures the angular velocity of the boom's rotation to track dynamic attitude changes in real time. The three-axis magnetometer senses the direction of the Earth's magnetic field to calibrate the yaw angle and suppress long-term drift. All of the above-mentioned detection quantities have three spatial degrees of freedom, thus forming a nine-degree-of-freedom sensing capability.

[0066] The controlled objects are the leveling cylinder, the electro-hydraulic servo valve, and the outrigger mechanism.

[0067] The control method for the attitude leveling system of the aforementioned mobile gantry crane is as follows:

[0068] S1, the sensor group collects real-time data and transmits all the collected raw data to the improved Kalman filter of the edge computing unit according to the corresponding frequency. Before Kalman filtering, mean filtering and sliding window filtering techniques are used to process the data and remove abnormal interference data.

[0069] The specific operations of mean filtering and sliding window filtering are as follows:

[0070] The average value of N data points continuously collected by the sensor is taken to quickly suppress random interference such as quantization noise and circuit noise of the sensor itself. Then, a sliding window of fixed length is set to retain only the data within the window and remove outliers that exceed the threshold to avoid sudden interference from affecting subsequent analysis. This type of filtering has low computational load and fast response, and can run quickly in edge computing units. It can perform preliminary processing and noise reduction on the original data without occupying too much computing power, and obtain stable and clean data.

[0071] S2, the edge computing unit acquires three types of working condition input parameters: boom extension length, working load, and ambient wind speed. First, the three types of parameters are standardized without dimension, mapping data with different dimensions to a unified calculation range to eliminate the influence of dimension differences on the clustering results. Then, the K-means clustering algorithm is used to cluster the standardized parameters according to the working conditions. Based on the typical working scenarios of the boom truck, the working conditions are divided into three typical working conditions: light load, small extension, and low wind speed; medium load, medium extension, and medium wind speed; and heavy load, large extension, and high wind speed. At the same time, the real-time interference level is judged by comprehensively integrating the data returned by the three-axis magnetometer of the nine-axis IMU sensor, and the current working status is accurately matched and identified.

[0072] The interference level is determined as follows: The edge computing unit continuously collects magnetic field strength and yaw angle data from the triaxial magnetometer, and calculates two indicators in real time: the variance of magnetic field strength and the deviation between the measured and theoretical values ​​of yaw angle. Based on preset thresholds, it is judged as weak interference when the variance of magnetic field strength is less than the set threshold and the deviation between the measured and theoretical values ​​of yaw angle is within the allowable range; when the variance of magnetic field strength exceeds the limit or the deviation between the measured and theoretical values ​​of yaw angle is continuously large, it is judged as strong interference. This enables online determination of the availability of the triaxial magnetometer.

[0073] S3, the parameter self-tuner adapts to the working conditions and optimizes the parameters for the magnetic environment. Based on the wind speed and interference level at this time, the parameter self-tuner iteratively generates the optimal parameters through a fuzzy PID algorithm. When the interference is weak, the weight of the three-axis magnetometer is reduced (the influence coefficient of the three-axis magnetometer output data on the final attitude calculation result is proportional to the dependence of the calculation result on the magnetic field data). When the interference is strong, the lidar is used to replace the three-axis magnetometer, providing the raw data required to calculate the yaw angle, and outputting the parameter combination that minimizes the leveling error to the parameter self-tuner.

[0074] The introduced fuzzy PID solves the problem of K in traditional PID.p ,K i ,K d The setpoint is a fixed value. However, under conditions of slope, heavy load, or vibration, the system may experience jitter or even overshoot, significantly reducing control accuracy. The fuzzy PID controller uses the deviation e(k) between the tilt angle setpoint and the measured value, and the rate of change of the deviation e... c (k) is taken as input, and after fuzzification, fuzzy quantities E and EC are obtained. Then, ∆K is output through fuzzy inference. p ∆K i ∆K d This enables online adaptive correction of PID parameters to obtain optimal parameters.

[0075] Specifically, first calculate the deviation and the rate of change of deviation:

[0076]

[0077]

[0078]

[0079] In the formula, θ ref (k) is the given value of the inclination angle, θ fb (k) is the feedback tilt angle after filtering, T is the sampling period, and y(k) is the output attitude. Then, the precise system input is mapped to the fuzzy universe of discourse, and the fuzzification process is performed according to the following formula:

[0080]

[0081]

[0082]

[0083] In the formula, K p K i K d Based on the control gain, the input variables are divided into fuzzy intervals using a triangular membership function. Fuzzy inference can be completed using only a small number of fuzzy subsets and simplified rules, resulting in high computational efficiency and suitability for real-time operation on embedded platforms. To obtain accurate incremental control values, the centroid method is used to perform defuzzification operations, yielding an analytical form of the incremental output.

[0084]

[0085]

[0086] In the formula, L is the feature parameter of the fuzzy interval, e p (k) represents the attitude deviation at time k, e v (k) represents the rate of change of the attitude deviation, Kp K i K d These are the parameter values ​​in the PID controller, K. yd The output differential term matching coefficient is one of the MOGA optimization parameters; Δy(k) is the actual attitude output change of the controlled object, Δu PI (k) and Δu D (k) represents the analytical increment output of the fuzzy PI and fuzzy D units, respectively;

[0087] The final overall control output is:

[0088]

[0089] In the formula, u PI K is the cumulative output value of the periodic fuzzy PI unit. u PI and K u D represents the output weight coefficients of the PI and differential D units, respectively, and both are optimization parameters of the multi-objective genetic algorithm MOGA. The aforementioned key parameter K... p K i K d L, K u PI, K u D and K are optimized globally using the multi-objective genetic algorithm MOGA, with the optimization objectives being to minimize overshoot, settling time, and steady-state error, to obtain the optimal parameter combination.

[0090] Finally, the analytical control law is directly applied to closed-loop regulation without the need for online fuzzy inference. Through this analytical and optimized fuzzy PID strategy, the controller can quickly respond and correct deviations when there are large deviations, smoothly suppress oscillations when there are small deviations, and maintain stable and efficient leveling under conditions of varying load, varying slope, strong vibration, and strong magnetic interference, further improving the system's adaptive capability and control accuracy.

[0091] S4, the parameter self-tuner feeds back the optimal parameters to the main control PLC. The updated fuzzy PID controller fuses four-dimensional data of tilt angle, tilt angle change rate, cylinder displacement and cylinder displacement change rate through an improved Kalman filter. Combined with the control signal generated by the fuzzy PID algorithm, it drives the electro-hydraulic servo valve to adjust the hydraulic oil flow and pressure of the cylinder, correct the boom posture deviation, and achieve high-precision leveling under multiple working conditions and strong magnetic environment without interrupting the leveling operation.

[0092] The improved Kalman filter technology, in addition to processing tilt angle and angular velocity in traditional filtering techniques, introduces cylinder displacement and cylinder displacement change rate, thus constructing a four-dimensional state vector. This allows for comprehensive estimation of attitude and actuator properties, resulting in filtering that better aligns with leveling control and achieves higher accuracy. Furthermore, the covariance matrix Q / R and magnetic interference fusion strategy in the Kalman filter both possess self-tuning capabilities. The magnetic interference module can use lidar instead of a traditional magnetometer for measurement and calculation in environments with extremely strong magnetic field interference. Finally, this improved Kalman filter works in conjunction with the fuzzy PID self-tuning module to form an integrated "sensing-filtering-control" mode, resulting in a faster and more stable response for the entire system.

[0093] According to a preferred embodiment of the present invention, in step S4, the improved Kalman filter first discretizes the thought data to obtain discretized state equations and observation equations. Let the sampling period be T, and the vector be... Where x1 is the boom tilt angle, x2 is the rate of change of tilt angle, x3 is the cylinder displacement, and x4 is the rate of change of cylinder displacement, the discretized state equation is expressed as:

[0094]

[0095] In the formula, G(T) is the discretized state transition matrix, H(T) is the discretized input matrix, and U... k-1 W is the displacement control quantity of the solenoid valve spool. k-1 To account for process noise, the observation equation uses the tilt angle signal acquired by the sensor as the observation, and is expressed as:

[0096]

[0097] In the formula, Y k The boom tilt angle observations are the result of two stages of noise reduction processing: mean filtering and sliding window filtering. The observation matrix N = [1 0 0 0] is used to accurately extract the tilt angle components from the four-dimensional state vector as observations. k Zero-mean Gaussian observation noise is used to quantify measurement errors such as sensor quantization noise, circuit noise, and environmental electromagnetic interference. Based on this, the Kalman filter recursive process is initiated to complete state prediction based on the dynamic model.

[0098]

[0099] Estimation of the optimal state at the previous moment Based on this, the discretized state transition matrix G(T) and the control input U are combined. k-1 The prior state estimate at the current time can be derived from the corresponding input matrix H(T). This enables the prediction of boom attitude and cylinder displacement, providing an initial benchmark for subsequent observation and correction, and simultaneously updating the predicted covariance.

[0100]

[0101] In the formula, P is the prior error covariance matrix, used to quantify the uncertainty of prior state estimation; k-1 is the posterior error covariance matrix of the previous time step; Q is the process noise covariance matrix, used to model process uncertainties such as unmodeled dynamics, parameter perturbations and external disturbances in the system. Its value directly determines the degree of confidence of the system in the model prediction.

[0102] Subsequently, the Kalman gain matrix is ​​calculated based on the prior covariance and observation noise characteristics:

[0103]

[0104] In the formula, K k K is the Kalman gain, a core parameter that balances the weights of the model's predicted information and the sensor's observed information. Its value determines the magnitude of the correction of the state estimate by the observation residuals. R is the observation noise covariance matrix, used to quantify the intensity of sensor measurement noise. Under common operating conditions, it can be considered that the system is stable when R is in the interval [0.01, 0.1], and when R is greater than this interval, K... k The value of K will decrease accordingly, and the system will rely more on the model's prediction results; when R is less than this range, K... k This will increase accordingly, and the system will trust the sensor observation data more, thereby achieving a dynamic optimal trade-off between prediction and observation;

[0105]

[0106] in, The observation residual represents the deviation between the prior state estimate and the actual observation, and the Kalman gain K is... k The residual is distributed to each state component with optimal weights, and the Kalman gain K is... k This is a four-dimensional vector, corresponding to the tilt angle, tilt angle change rate, cylinder displacement, and optimal correction coefficient for the cylinder displacement change rate. This is achieved by interpolating the observed residuals with K. k By multiplying dimension by dimension, the deviation is distributed to each state component with optimal weights and corrections are performed to achieve unbiased correction of boom tilt angle, tilt angle change rate, cylinder displacement, cylinder displacement, and cylinder displacement change rate, thus obtaining the optimal state estimate for the current moment. ;

[0107]

[0108] In the formula, I is the identity matrix with the same dimension as the state vector. By linearly transforming the Kalman gain and the observation matrix, the uncertainty of the updated state estimate is quantified, providing an initial covariance benchmark for the state prediction at the next moment. Through the above recursive formula, the optimal estimation of the boom attitude and cylinder displacement is achieved, effectively suppressing sensor random noise, gyroscope zero-bias drift and environmental electromagnetic interference, providing accurate and smooth state feedback signals for subsequent fuzzy PID adaptive control, and ensuring the high precision and stability of the boom leveling system under multiple working conditions and strong magnetic environments.

Claims

1. A posture leveling system for a mobile gantry crane, characterized in that, It includes a sensor group, an edge computing unit, and a control layer connected in sequence. Both the sensor group and the control layer are connected to the controlled object, wherein: The sensor group includes several types of sensors used to collect real-time data; The edge computing unit includes an improved Kalman filter and a condition clustering module, which outputs standardized parameters; The control layer, including parameter self-tuners, fuzzy PID controllers, and a main control PLC, is used to output optimal control parameters and send them to the controlled object.

2. The attitude leveling system of the mobile gantry crane as described in claim 1, characterized in that, The sensor group includes a nine-axis IMU sensor, lidar, tilt sensor, cylinder displacement sensor, force sensor, and wind speed sensor. The real-time data collected includes ambient wind speed, operating load, tilt angle, tilt angle change rate, cylinder displacement, and cylinder displacement change rate.

3. The attitude leveling system of the mobile traverse boom vehicle as described in claim 2, characterized in that, The nine-axis IMU sensor includes a three-axis accelerometer, a three-axis gyroscope, and a three-axis magnetometer. The three-axis accelerometer measures the boom's linear acceleration and gravitational components, the three-axis gyroscope captures the boom's rotational angular velocity and tracks dynamic attitude changes in real time, and the three-axis magnetometer senses the direction of the Earth's magnetic field to calibrate the yaw angle and suppress long-term drift.

4. The control method for the attitude leveling system of the mobile gantry crane as described in claim 3, characterized in that, The steps are as follows: S1, the sensor group collects real-time data and transmits all the collected raw data to the improved Kalman filter of the edge computing unit according to the corresponding frequency. Before Kalman filtering, mean filtering and sliding window filtering techniques are used to process the data and remove abnormal interference data. S2, the edge computing unit acquires three types of working condition input parameters. First, it performs dimensionless standardization on the three types of parameters, mapping data with different dimensions to a unified calculation range. Then, it uses the K-means clustering algorithm to cluster the standardized parameters according to working conditions. At the same time, it integrates the data returned by the three-axis magnetometer of the nine-axis IMU sensor to determine the real-time interference level and complete the matching and identification of the current working state. S3, the parameter self-tuner generates the optimal parameters iteratively through a fuzzy PID algorithm based on the wind speed and interference level at this time. When the interference is weak, the weight of the three-axis magnetometer is reduced, and when the interference is strong, the lidar is used to replace the three-axis magnetometer, providing the raw data required to calculate the yaw angle, and the output parameter combination is sent to the parameter self-tuner. S4, the parameter self-tuner feeds back the optimal parameters to the main control PLC. The updated fuzzy PID controller fuses four-dimensional data of tilt angle, tilt angle change rate, cylinder displacement and cylinder displacement change rate through an improved Kalman filter. Combined with the control signal generated by the fuzzy PID algorithm, it drives the electro-hydraulic servo valve to adjust the hydraulic oil flow and pressure of the cylinder, correct the boom posture deviation, and realize leveling under multiple working conditions and strong magnetic environment without interrupting the leveling operation.

5. The control method for the attitude leveling system of the mobile gantry crane as described in claim 4, characterized in that, In step S1, the specific operations of mean filtering and sliding window filtering are as follows: The average value of N data points continuously collected by the sensor is taken to suppress random interference from the sensor itself. Then, a sliding window of fixed length is set to retain only the data within the window and remove outliers that exceed the threshold.

6. The control method for the attitude leveling system of the mobile traverse boom vehicle as described in claim 5, characterized in that, In step S2, the input parameters for the three types of working conditions are boom extension length, working load, and ambient wind speed.

7. The control method for the attitude leveling system of the mobile traverse boom vehicle as described in claim 6, characterized in that, In step S2, the interference level is determined as follows: the edge computing unit continuously collects magnetic field strength and yaw angle data through a triaxial magnetometer, and calculates two indicators in real time: the variance of magnetic field strength and the deviation between the measured and theoretical values ​​of yaw angle. The interference level is judged according to a preset threshold. When the variance of magnetic field strength is less than the set threshold and the deviation between the measured and theoretical values ​​of yaw angle is within the allowable range, it is judged as weak interference. When the variance of magnetic field strength exceeds the limit or the deviation between the measured and theoretical values ​​of yaw angle is continuously large, it is judged as strong interference.

8. The control method for the attitude leveling system of the mobile gantry crane as described in claim 7, characterized in that, In step S3, the fuzzy PID controller uses the deviation e(k) between the tilt angle setpoint and the measured value, and the rate of change of the deviation e c (k) is taken as input, and after fuzzification, fuzzy quantities E and EC are obtained. Then, ∆K is output through fuzzy inference. p ∆K i ∆K d This enables online adaptive correction of PID parameters to obtain optimal parameters.

9. The control method for the attitude leveling system of the mobile gantry crane as described in claim 8, characterized in that, The specific processing procedure of the fuzzy PID controller is as follows: First, calculate the deviation and the rate of change of deviation: ; ; ; In the formula, θ ref (k) is the given value of the inclination angle, θ fb (k) is the feedback tilt angle after filtering, T is the sampling period, and y(k) is the output attitude. Then, the precise system input is mapped to the fuzzy universe of discourse, and the fuzzification process is performed according to the following formula: ; ; ; In the formula, K p K i K d Based on the control gain, the input variables are divided into fuzzy intervals using a triangular membership function, and the centroid method is used to complete the defuzzification operation, resulting in an analytical incremental output: ; ; In the formula, L is the feature parameter of the fuzzy interval, and e p (k) represents the attitude deviation at time k, e v (k) represents the rate of change of the attitude deviation, K p K i K d These are the parameter values ​​in the PID controller, K. yd The output differential term matching coefficient is one of the MOGA optimization parameters; Δy(k) is the actual attitude output change of the controlled object, Δu PI (k) and Δu D (k) represents the analytical increment output of the fuzzy PI and fuzzy D units, respectively; The final overall control output is: ; In the formula, u PI K is the cumulative output value of the periodic fuzzy PI unit. u PI and K u D represents the weighting coefficients of the PI and differential D units, respectively, and the aforementioned key parameter K... p K i K d L, K u PI, K u D and K are optimized globally using the multi-objective genetic algorithm MOGA, with the optimization objectives being to minimize overshoot, settling time, and steady-state error, to obtain the optimal parameter combination.

10. The control method for the attitude leveling system of the mobile gantry crane as described in claim 9, characterized in that, In step S4, the improved Kalman filter first discretizes the thought data to obtain discretized state equations and observation equations. Let the sampling period be T, and the vector be... Where x1 is the boom tilt angle, x2 is the rate of change of tilt angle, x3 is the cylinder displacement, and x4 is the rate of change of cylinder displacement, the discretized state equation is expressed as: ; In the formula, G(T) is the discretized state transition matrix, H(T) is the discretized input matrix, and U... k-1 W is the displacement control quantity of the solenoid valve spool. k-1 To account for process noise, the observation equation uses the tilt angle signal acquired by the sensor as the observation, and is expressed as: ; In the formula, Y k The boom tilt angle observations are the result of two stages of noise reduction processing: mean filtering and sliding window filtering. The observation matrix N = [1 0 0 0] is used to accurately extract the tilt angle component as the observation from the four-dimensional state vector. Z k Given zero-mean Gaussian observation noise, a Kalman filter recursive process is initiated to complete state prediction based on the dynamic model: ; Estimation of the optimal state at the previous moment Based on this, the discretized state transition matrix G(T) and the control input U are combined. k-1 The prior state estimate at the current time can be derived from the corresponding input matrix H(T). This enables the prediction of boom attitude and cylinder displacement, providing an initial benchmark for subsequent observation and correction, and simultaneously updating the predicted covariance. ; In the formula, P is the prior error covariance matrix, used to quantify the uncertainty of prior state estimation; k-1 Let be the posterior error covariance matrix of the previous time step; Q is the process noise covariance matrix. Subsequently, the Kalman gain matrix is ​​calculated based on the prior covariance and observation noise characteristics: ; In the formula, K k K is the Kalman gain; R is the observation noise covariance matrix. The system is stable when R is in the interval [0.01, 0.1]. When R is greater than this interval, K... k The value of K will decrease accordingly, and the system will rely more on the model's prediction results; when R is less than this range, K... k The system will trust sensor observation data more, which will increase accordingly. ; in, The observation residual represents the deviation between the prior state estimate and the actual observation, and the Kalman gain K is... k The residual is distributed to each state component with optimal weights, and the Kalman gain K is... k This is a four-dimensional vector, corresponding to the tilt angle, tilt angle change rate, cylinder displacement, and optimal correction coefficient for the cylinder displacement change rate. This is achieved by interpolating the observed residuals with K. k By multiplying dimension by dimension, the deviation is distributed to each state component with optimal weights and corrections are performed to achieve unbiased correction of boom tilt angle, tilt angle change rate, cylinder displacement, cylinder displacement, and cylinder displacement change rate, thus obtaining the optimal state estimate for the current moment. ; ; In the formula, I is the identity matrix with the same dimension as the state vector. By using the linear transformation of the Kalman gain and the observation matrix, the uncertainty of the updated state estimate is quantified, providing an initial covariance benchmark for the state prediction at the next moment. Through the above recursive formula, the optimal estimation of the boom attitude and cylinder displacement state is achieved.