A method, system and storage medium for measuring the angle of a digging implement

By arranging attitude sensors on the boom, stick, and bucket of the excavator and using a weighted fusion method of acceleration angle and angular velocity angle, the accuracy problem of excavator joint angle measurement under dynamic working conditions is solved, achieving high-precision and low-cost attitude data acquisition, which is suitable for retrofitting existing excavators.

CN123133451APending Publication Date: 2026-11-20LICHE (SHANGHAI) CONTROL SYST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing excavator joint angle measurement technology is not accurate enough under dynamic working conditions, especially under rotation and swing conditions, it is prone to attitude calculation deviation and data drift, and the sensor modification cost is high and the versatility is poor.

Method used

By arranging first, second, and third attitude sensors at the relevant connection points of the boom, stick, and bucket, and by weighted fusion of acceleration angle and angular velocity angle, combined with the mean square error and angular velocity component to dynamically calculate the weight, centripetal force interference is suppressed, and accurate measurement of attitude angle is achieved without the need to integrate magnetostrictive sensors inside the hydraulic cylinder.

Benefits of technology

It improves the measurement accuracy and stability of excavator joint angles, adapts to the retrofitting of existing excavators, reduces retrofitting costs, and provides reliable attitude data to support automated control functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123133451A_ABST
    Figure CN123133451A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of automatic control of excavators, and discloses an excavator joint angle measurement method, a system and a storage medium. The method is based on first, second and third posture sensors which are respectively installed between a movable arm, a bucket rod and a connecting point between a bucket and the bucket rod. Each sensor measures an axis angular velocity and two axis accelerations. Acceleration angles and angular velocity integral angles are weighted and summed to obtain movable arm angles, bucket rod angles and bucket angles. According to this, excavator posture data is matched and output from a preset angle posture database. The application suppresses the interference of centripetal force on the gravity reference of the accelerometer during slewing and swinging, avoids calculation deviation and drift, and improves the joint angle measurement accuracy, real-time performance and stability. The application does not need to integrate magnetostrictive sensors in the oil cylinder, and has flexible installation, strong universality and low modification cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of excavator automatic control, and in particular to a method, system and storage medium for measuring the joint angle of an excavator. Background Technology

[0002] With the iterative upgrades of intelligent technologies in construction machinery, automated control and unmanned operation technologies for excavators have become core directions for industry development, widely applied in various engineering scenarios such as earthwork construction, mining, and infrastructure renovation. Automatic control technology for excavators can effectively reduce human error, improve operational accuracy and construction efficiency, while mitigating safety risks associated with high-risk operating environments. Currently, the precision control capabilities of intelligent excavator operations continue to improve, leading to increasingly stringent requirements for the attitude perception and detection accuracy of the entire machine's working devices.

[0003] The joint angles of the working device are core parameters characterizing the working posture of an excavator. Accurate and real-time measurement of joint angles is a necessary prerequisite for realizing automated control functions such as automatic leveling, trajectory planning, and precise digging of the excavator, and is also a key link in ensuring the stability and reliability of intelligent excavator operation. Currently, the industry mainly uses two mainstream technologies for detecting excavator joint angles: one is the cylinder-integrated detection method, which uses a magnetostrictive sensor installed inside the excavator cylinder to collect the cylinder's extension and retraction displacement data in real time, and then combines it with the mechanical structure parameters of the working device to calculate the rotation angle of each joint through an algorithm; the other is the external posture detection method, which uses accelerometers installed on the excavator's boom, stick, bucket, and other working devices to directly collect the posture data of the working devices and calculate the corresponding joint angle parameters.

[0004] However, the built-in detection solution using magnetostrictive sensors requires integrating the sensor into the hydraulic cylinder, making it only suitable for factory-installed scenarios. Its compatibility with aftermarket modifications to existing excavators is extremely poor, resulting in high difficulty, cost, and limited versatility. While the direct measurement solution using accelerometers relies on a gravity direction reference for angle calculation, excavators experience numerous instances of body rotation and dynamic swaying during operation. The working device continuously generates centripetal force during operation, which interferes with the accelerometer's gravity reference recognition, causing attitude calculation deviations and data drift. (See reference...) Figure 1 This ultimately leads to a significant decrease in the accuracy of joint angle measurements. Summary of the Invention

[0005] To improve the accuracy of joint angle measurement by the IMU on an excavator, this application provides a method, system, and storage medium for measuring the joint angle of an excavator.

[0006] In a first aspect, this application provides a method for measuring the joint angle of an excavator, employing the following technical solution:

[0007] A method for measuring the joint angle of an excavator, based on a first attitude sensor, a second attitude sensor, and a third attitude sensor, each attitude sensor measuring the angular velocity of one axis and the acceleration of two axes, with the three axes perpendicular to each other in pairs; the first attitude sensor is fixedly mounted on the boom of the excavator, the second attitude sensor is fixedly mounted on the stick of the excavator, and the third attitude sensor is fixedly mounted between the connection point of the bucket and the stick and the connection point of the bucket and the telescopic component on the stick; the method includes the following steps:

[0008] In the attitude sensor, the angle is calculated from the acceleration of two axes as the acceleration angle, and the angle is calculated from the integration of the angular velocity of one axis as the angular velocity angle; the attitude angle corresponding to the attitude sensor is obtained by weighted summation of the acceleration angle and the angular velocity angle.

[0009] The first attitude sensor measures the boom angle, the second attitude sensor measures the stick angle, and the third attitude sensor measures the bucket angle. Based on the boom angle, stick angle, and bucket angle, the corresponding excavator attitude data is matched from a preset angle attitude database and then output.

[0010] By adopting the above technical solution, using first, second, and third attitude sensors respectively arranged at the relevant connection parts of the boom, stick, and bucket, the angular velocity of one axis and the acceleration of two axes are measured in real time. The acceleration angle and the integral angle of the angular velocity are weighted and fused to obtain the attitude angles. This can effectively suppress the interference of centripetal force on the gravity reference of the accelerometer under dynamic working conditions such as excavator rotation and swing, and avoid attitude calculation deviation and data drift, thereby significantly improving the measurement accuracy, real-time performance, and stability of the boom, stick, and bucket joint angles. At the same time, this solution does not require the integration of magnetostrictive sensors inside the cylinder, making it flexible in installation, highly versatile, and low in modification cost, especially suitable for aftermarket retrofitting of existing excavators. Furthermore, based on the fused boom angle, stick angle, and bucket angle, it can quickly match and output excavator attitude data from a preset angle attitude database, providing reliable attitude basis for automated control functions such as automatic leveling, trajectory planning, and precision digging, thereby improving the accuracy, efficiency, and safety of intelligent excavator operation.

[0011] Optionally, the step of obtaining the attitude angle corresponding to the attitude sensor by weighted summation of the acceleration angle and angular velocity angle includes the following sub-steps:

[0012] Attitude angle = α × angular velocity angle + (1-α) × acceleration angle, where α is the weight of the angular velocity angle, 1-α is the weight of the acceleration angle, and 0 < α ≤ 1;

[0013] The excavator's motion status is acquired, and the corresponding motion intensity value b is matched from the preset motion status database based on the excavator's motion status. α is adjusted according to the motion intensity value b. Specifically, the larger the motion intensity value b is, the larger α is, and the smaller the motion intensity value b is, the smaller α is.

[0014] By adopting the above technical solution, when b is larger, α is larger and more emphasis is placed on the angular velocity integral angle; when b is smaller, α is smaller and more emphasis is placed on the acceleration angle. This effectively suppresses attitude calculation offset and data drift caused by centripetal force interference of the accelerometer under severe dynamic conditions such as rotation and oscillation. Under stable conditions, the acceleration angle is used to correct the angular velocity integral drift, so as to realize the adaptive optimization of the fusion weight according to the actual working situation.

[0015] Optionally, the step of obtaining the excavator's motion status includes the following sub-steps:

[0016] Based on the X-axis acceleration ACC_X and Y-axis acceleration ACC_Y from the attitude sensor, and the excavator attitude angle Roll, the mean square error (MSE) at time k is calculated. k The formula is as follows:

[0017] ;

[0018] In the formula, k represents the k-th time, and n represents the MSE window size; ACC_X k-i and ACC_Y k-i Let X and Y be the accelerations along the X and Y axes respectively at time ki, and Roll be the excavator's attitude angle;

[0019] Calculated MSE k This shows the operating posture of the excavator.

[0020] By adopting the above technical solution, when MSE k The larger the value of α, the more likely the excavator is to be in a slewing or violent motion state. A larger value of 'b' indicates a greater intensity of motion, leading to an increase in α and a reduction in the proportion of acceleration angle (AngleA). When MSE... k The smaller the value, the more likely the excavator is to be in a stationary or slow, uniform motion state. The smaller the matched motion intensity value b, the faster α decays, so as to use the high-precision static characteristics of the accelerometer to calibrate the angular velocity integral error.

[0021] Optionally, the method further includes the following steps:

[0022] At time k, the weight α k The calculation formula is:

[0023] ;

[0024] In the formula, k1 and k2 are adjustable parameters, and MSEk Let Swing_ω be the mean square error at time k. k Let be the angular velocity component measured by the attitude sensor at time k.

[0025] By adopting the above technical solution, the intensity of the excavator's translational movement can be simultaneously considered (through MSE). k (Reflection) and the intensity of rotation / oscillation (via Swing_ω) k This reflects the ability to perform multi-dimensional, precise, and dynamic quantification of weighting coefficients, thereby ensuring a rapid increase in α under dynamic operating conditions. k By focusing on the integral angle of angular velocity and suppressing centripetal force disturbances, α decays rapidly under steady operating conditions. k By focusing on acceleration angle correction of integral drift, the adaptive capability and measurement accuracy of joint angle calculation under complex working conditions are improved.

[0026] Optionally, the specific adjustment method for the adjustable parameter k1 is as follows:

[0027] Obtain the impact magnitude parameter of the manually input action, and adjust k1 according to the impact magnitude parameter of the manually input action. The larger the impact magnitude parameter of the manually input action, the larger k1 is.

[0028] or,

[0029] Obtain vibration data from the vibration sensor at the bucket, and adjust k1 according to the vibration data; the larger the vibration data, the larger k1.

[0030] or,

[0031] Within a set period, the attitude acceleration of the attitude angle is calculated, and k1 is adjusted according to the attitude acceleration. The greater the attitude acceleration, the larger k1 is.

[0032] By adopting the above technical solution, three optional parameter adjustment methods are provided: manual input, bucket vibration sensor detection, and attitude acceleration calculation based on attitude angle. This makes the determination of k1 flexible and complementary. Manual input can be flexibly intervened based on field experience, vibration data can directly and accurately reflect the real impact at the bucket, and attitude acceleration can be automatically adjusted without additional hardware.

[0033] Alternatively, the specific adjustment method for the adjustable parameter k2 is as follows:

[0034] k2 is adjusted based on the distance of the attitude sensor from the excavator's slewing center: the farther away from the slewing center, the larger k2 is. Among them, k2 is the largest for the bucket, followed by k2 for the stick, and the smallest for the boom.

[0035] By adopting the above technical solution, an adjustable parameter k2 is set according to the difference in distance between the attitude sensor and the excavator's rotation center. The component farther from the rotation center and with greater dynamic influence corresponds to a larger k2 (bucket largest, stick second, boom smallest), thereby adjusting the weight α. k The calculation focuses more on the integral angle of angular velocity for components far from the center of rotation, effectively suppressing the interference of centripetal force on the gravity reference of the accelerometer during rotation.

[0036] Optionally, the process of acquiring the excavator's motion status, matching the corresponding motion intensity value b from a preset motion status database based on the excavator's motion status, and adjusting α according to the motion intensity value b, wherein the larger the motion intensity value b, the larger α is, and the smaller the motion intensity value b, the smaller α is, further includes the following sub-steps:

[0037] Acquire excavator operation command data, and obtain motion characteristic data based on the operation command data;

[0038] Based on the action feature data, the corresponding action intensity value b is matched from the preset action state database, where 0 < b < 2. The more intense the excavator's action state, the larger the action intensity value b; the more stable the excavator's action state, the smaller the action intensity value b.

[0039] The weight α is updated based on the intensity value b of the action: the updated α' = α × b, and the updated α' satisfies 0 < α' ≤ 1;

[0040] Where α×b is greater than 1, we take α'=1; when α×b is less than or equal to 1, α'=α×b.

[0041] By adopting the above technical solution, the excavator's operation command data is used to predict the action status and obtain the action intensity value b. The weight α is dynamically updated in a multiplicative manner, making the weight adjustment more forward-looking and real-time. Thus, the angular velocity angle weight is increased before the violent action occurs, and the accelerometer is suppressed by centripetal force interference. During smooth action, the angular velocity angle weight is quickly reduced, and the integral drift is calibrated using the accelerometer, further improving the accuracy of joint angle measurement and dynamic response capability.

[0042] Optionally, the method further includes the following steps:

[0043] Calculate the fluctuation level of the excavator's attitude sensor data, and dynamically adjust the step size of the motion severity value b based on the fluctuation level:

[0044] When the fluctuation is large, increase the step size of the intensity value b; when the fluctuation is small, decrease the step size of the intensity value b.

[0045] By adopting the above technical solution, the step size of the intensity value b of the movement can be dynamically adjusted so that b can be adjusted quickly or slowly according to the actual rate of change of the movement.

[0046] Secondly, this application provides an excavator joint angle measurement system, which adopts the following technical solution:

[0047] An excavator joint angle measurement system includes a processor that performs the steps of the excavator joint angle measurement method as described in any of the preceding claims.

[0048] Thirdly, this application provides a storage medium, which adopts the following technical solution:

[0049] A storage medium storing a program that, when executed by a processor, implements the steps of the excavator joint angle measurement method described in any one of the preceding claims.

[0050] In summary, this application includes at least one of the following beneficial technical effects: by arranging attitude sensors at the relevant connection points of the boom, stick, and bucket, the attitude angles of each joint are obtained by weighted fusion of acceleration angles and angular velocity integral angles, and the mean square error (MSE) and angular velocity component Swing_ω are introduced. k Dynamically calculate weight α k By combining adjustable parameters k1 and k2 with operation command data to adaptively correct the weights, the interference of centripetal force on the accelerometer gravity reference under dynamic working conditions such as excavator rotation and swing is effectively suppressed, avoiding attitude calculation offset and data drift. At the same time, there is no need to integrate the magnetostrictive sensor inside the cylinder, which is flexible in installation, highly versatile, and has low modification cost. Attached Figure Description

[0051] Figure 1 This is a graph showing the effect of rotation on the output angle of the attitude sensor.

[0052] Figure 2 This is a schematic diagram of the measurement axis definition for the attitude sensor.

[0053] Figure 3 This is a top view of the vehicle body attitude sensor mounting location.

[0054] Figure 4 This is a side view of the mounting position of the attitude sensor of the working device.

[0055] Figure 5 This is a schematic diagram illustrating the principle of attitude angle weighted fusion calculation.

[0056] Figure 6 This is a comparison chart of the algorithm's analytical values ​​and the attitude sensor output under rotation conditions.

[0057] Figure 7A comparison chart of algorithm analysis values ​​and attitude sensor output under non-rotation conditions. Detailed Implementation

[0058] The embodiments of this application are described in detail below, and examples of the embodiments are shown in the accompanying drawings.

[0059] In the description of this specification, the references to "certain embodiments," "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples" refer to specific features, structures, materials, or characteristics described in connection with the described embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0060] This application discloses a method for measuring the joint angle of an excavator, implemented based on a first attitude sensor, a second attitude sensor, and a third attitude sensor. In this embodiment, each attitude sensor is used to measure the angular velocity of one axis and the acceleration of two axes, with the three measurement axes being mutually perpendicular.

[0061] Commonly available attitude sensors typically provide 2-axis angle, 3-axis angular velocity, and 3-axis acceleration outputs. However, since excavator working devices usually only move within one plane, their angular velocity only needs to be measured around an axis perpendicular to the center plane, and resolving the plane angle only requires 2-axis acceleration data. Therefore, referring to... Figure 2 In this embodiment, the attitude sensor preferably adopts a simplified version of IMU with low cost and low power consumption, that is, it only has the measurement capability of 1-axis angular velocity and 2-axis acceleration, so as to effectively reduce system cost and power consumption while meeting measurement requirements.

[0062] Specifically, refer to Figure 3 and Figure 4 The first attitude sensor is fixedly installed on the boom of the excavator, the second attitude sensor is fixedly installed on the stick of the excavator, and the third attitude sensor is fixedly installed between the connection point of the bucket and the stick and the connection point of the telescopic component on the bucket and the stick.

[0063] After acquiring the attitude sensor data, the vehicle body attitude angle is calculated as follows:

[0064] ;

[0065] ;

[0066] In the formula, g is the acceleration due to gravity, ACC_X is the acceleration along the X-axis of the attitude sensor, ACC_Y is the acceleration along the Y-axis of the attitude sensor, Roll is the roll angle, and Pitch is the pitch angle.

[0067] Reference Figure 5 In this embodiment, the angle calculation between the working device and the horizontal plane is based on the fusion of two sets of data. First, in the attitude sensor, the acceleration angle Angle is calculated based on the acceleration data of the two axes. A Due to the characteristics of accelerometers, their accuracy is high under static or uniform motion conditions, but decreases under complex motion conditions. Secondly, in attitude sensors, the angular velocity angle Angle is calculated based on the integral of the angular velocity of one axis. G This angle has a fast dynamic response and high accuracy in a short time, but it is prone to drift during long-term integration. In order to obtain high-precision and fast-response angle data, this embodiment performs a weighted summation of the acceleration angle and the angular velocity angle to obtain the attitude angle Angle corresponding to the attitude sensor.

[0068] Specifically, the formula for calculating the attitude angle Angle is as follows:

[0069] Attitude angle Angle = α × angular velocity angle Angle G +(1-α)×acceleration angle Angle A ;

[0070] Where α is the weight of the angular velocity angle, 1-α is the weight of the acceleration angle, and 0<α≤1.

[0071] Furthermore, the attitude angles of the first attitude sensor are the boom angle, the second attitude sensor is the stick angle, and the third attitude sensor is the bucket angle. Based on the boom angle, stick angle, and bucket angle, the corresponding excavator attitude data is matched from a preset angle attitude database and output. The preset angle attitude database is pre-constructed through kinematic modeling or actual calibration, storing the mapping relationship between the combination of boom angle, stick angle, and bucket angle and the overall machine attitude data (such as bucket tooth tip position coordinates, digging depth, working radius, etc.) in the form of a data table or lookup table. During matching, a lookup is performed in the database based on the currently calculated boom, stick, and bucket angles. This database allows for rapid retrieval of excavator attitude data via a lookup method, eliminating the need for complex kinematic forward kinematics calculations in real-time during each control cycle, significantly reducing the processor's computational load and improving data output efficiency and system response speed.

[0072] In the weighted fusion calculation of attitude angles (Angle), using constant weights is difficult to adapt to the changing actual working conditions of excavators, which may lead to a decrease in attitude calculation accuracy. Therefore, in this embodiment, the weight coefficients are dynamically calculated based on the actual working conditions of the excavator.

[0073] Specifically, the excavator's motion status is acquired, and the corresponding motion intensity value b is matched from the preset motion status database based on the excavator's motion status. α is adjusted according to the motion intensity value b, where the larger b is, the larger α is, and the smaller the motion intensity value b is, the smaller α is.

[0074] In a preferred embodiment, the step of obtaining the excavator's motion status specifically includes the following sub-steps:

[0075] Based on the X-axis acceleration ACC_X and Y-axis acceleration ACC_Y from the attitude sensor, and the excavator attitude angle Roll, the mean square error (MSE) at time k is calculated. k The calculation formula is as follows:

[0076] ;

[0077] In the formula, k represents the k-th time, and n represents the MSE window size; ACC_X k-i and ACC_Y k-i Let X and Y be the X-axis and Y-axis accelerations at time ki, respectively, and Roll be the excavator attitude angle; the calculated MSE... k This is a quantitative representation of the excavator's movement posture.

[0078] Furthermore, at time k, the weight α k The calculation formula is:

[0079] ;

[0080] In the formula, MSE k Let Swing_ω be the mean square error at time k. k At time k, the angular velocity component corresponding to the attitude sensor is shown. k1 and k2 are adjustable parameters. k1 can be adjusted according to the magnitude of the impact of the action, and k2 can be adjusted according to the distance from the center of rotation. Generally, k2 is the largest for the bucket, the second largest for the stick, and the smallest for the boom. The specific adjustment can be made according to the actual working conditions.

[0081] Specifically, the adjustable parameter k1 is mainly used to adapt the weight distribution under different impact intensities of the excavator's actions. The adjustment methods for k1 include the following implementation methods:

[0082] The first method: a specific implementation based on human experience and gear mapping.

[0083] The human-machine interface in the excavator cab has four preset working condition levels: "light load, normal, heavy load, and impact". Each level corresponds to a preset base value of k1. For example, light load corresponds to 0.1, normal corresponds to 0.3, heavy load corresponds to 0.6, and impact corresponds to 0.9.

[0084] Specifically, this includes: acquiring the impact magnitude parameter manually input by the operator through the human-machine interface, i.e., the gear selection; and directly retrieving the k1 value corresponding to that gear according to a preset mapping table. Additionally, a fine-tuning knob can be set, such as an input range of 0-10, and the final k1 is calculated using k1=k1_base+N×0.05 (where N is the fine-tuning input value). This method is suitable for scenarios where the hardness of the work object or the operating mode is known (such as crushing operations or heavy-duty excavation), and allows for flexible intervention based on field experience.

[0085] The second method: a specific implementation method based on vibration sensor data at the bucket.

[0086] A MEMS piezoelectric vibration sensor was installed at the bucket pin, with a sampling frequency set to 1kHz. Specific processing steps included:

[0087] Signal preprocessing: The raw vibration data collected by the vibration sensor are sequentially processed by bandpass filtering from 10Hz to 500Hz and absolute value envelope detection.

[0088] Feature extraction: Calculate the root mean square value of vibration amplitude Vrms (i.e., vibration data) within a set time window (e.g., 100ms).

[0089] Segmented mapping: Set a first threshold Vth1 = 2g and a second threshold Vth2 = 8g; if Vrms < Vth1 (stable), take k1 = 0.1; if Vth1 ≤ Vrms ≤ Vth2 (moderate impact), take k1 = 0.5; if Vrms > Vth2 (severe impact), take k1 = 0.9; or use the continuous mapping formula k1 = 0.1 × ln(Vrms + 1) for real-time calculation. This method can directly and accurately reflect the actual impact at the bucket.

[0090] The third method: a specific implementation method based on attitude acceleration algorithm calculation.

[0091] It requires no additional hardware and is calculated through software algorithms. The specific steps include:

[0092] Data acquisition: Obtain the time series of the attitude angles Angle calculated above;

[0093] First-order filtering: Perform a first-order low-pass filter (cutoff frequency 5Hz) on the attitude angle sequence to filter out high-frequency noise;

[0094] Second-order difference differentiation: Using a sliding window, calculate the second-order difference 'a' of the attitude angle. angle The calculation formula is:

[0095]

[0096] Where Δt is the sampling period (e.g., 0.01s); a angle This represents the attitude acceleration (i.e., the second derivative of the attitude angle) at time k, in degrees per second. 2 (° / s) 2 The larger this value, the more drastic the change in the working device's posture and the greater the impact of the movement. K: represents the index of the discrete-time sampling point (the k-th sampling moment), and is a positive integer. Angle k Angle: Represents the attitude angle calculated by the weighted fusion algorithm at time k (the current time), in degrees. k-1 Angle: Represents the attitude angle calculated at time k-1 (the previous time step), in degrees. k-2 : Represents the attitude angle calculated at time k-2 (the first two time points), in degrees.

[0097] Mapping adjustment: Calculate a within a set period (e.g., 1 second). angle absolute average Set interval mapping rules: If <2° / s 2 Let k1 = 0.1; if 2° / s 2 ≤ ≤10° / s 2 Let k1 = 0.5; if >10° / s 2 Let k1 = 0.9. This method achieves automated adjustment through pure software.

[0098] k2 is primarily used to adapt the sensitivity of attitude sensors to rotational motion at different installation locations. Specifically, k2 is adjusted based on the distance of the attitude sensor from the excavator's rotation center:

[0099] The specific implementation method is as follows: the equivalent slewing radius r from the installation point of each attitude sensor to the center of rotation is pre-calibrated. For example, the distance from the first attitude sensor (boom) to the center of rotation is r1=3.5m, the distance from the second attitude sensor (stick) to the center of rotation is r2=6.0m, and the distance from the third attitude sensor (bucket) to the center of rotation is r3=8.5m.

[0100] According to the formula k2=λ×r 2 Calculate the value of k2, where λ is a preset scaling factor (e.g., 0.005). From this, we can obtain:

[0101] The value of k2 corresponding to the bucket is approximately 0.005 × 8.52 ≈ 0.36 (maximum).

[0102] The corresponding k2 for the stick is 0.005 × 6.02 ≈ 0.18 (second best);

[0103] The minimum value for the boom is k2 = 0.005 × 3.52 ≈ 0.06.

[0104] Furthermore, considering the differences in mass distribution among the various working devices, a mass compensation coefficient β can be introduced (the bucket has the largest mass, followed by the boom, and the stick has the smallest mass), ultimately resulting in k2 = λ × r. 2 ×β, which can be fine-tuned according to the actual model.

[0105] Through the specific adjustments of k1 and k2 described above, this embodiment can adaptively adjust the weight α for different components and different impact types. k : In severe impact (such as Vrms > 8g or a angle >10° / s 2 In conditions where the angular velocity angle is far from the center of rotation (e.g., bucket k2=0.36), the proportion of the angular velocity angle is rapidly increased to suppress centripetal force interference; in stable conditions, the proportion of the acceleration angle is rapidly increased to calibrate integral drift.

[0106] In a further embodiment, the step of acquiring the excavator's motion status, matching the corresponding motion intensity value b from a preset motion status database based on the excavator's motion status, and adjusting α according to the motion intensity value b, wherein the larger the motion intensity value b, the larger α is, and the smaller the motion intensity value b, the smaller α is, further includes the following sub-steps:

[0107] The system acquires the excavator's operation command data, which consists of the displacement or pilot pressure value of the control handle. Based on this displacement or pilot pressure value, it matches the corresponding action severity value 'b' from a preset action state database. The preset action state database stores a mapping relationship between the control handle displacement (or pilot pressure value) and the action severity value 'b', where 0 < b < 2. A larger control handle displacement indicates a more severe action, and the matched 'b' is larger; a smaller control handle displacement indicates a smoother action, and the matched 'b' is smaller.

[0108] For example, the database can use the following segmented mapping rules: when the handle displacement is less than 30%, it is determined to be a stable working condition, and b=0.5 is taken; when the handle displacement is between 30% and 70%, it is determined to be a medium working condition, and b=1.0 is taken; when the handle displacement is greater than 70%, it is determined to be a severe working condition, and b=1.5 is taken.

[0109] Subsequently, the weight α is updated based on the intensity value b of the action: α' = α × b, and 0 < α' ≤ 1. Specifically, when α × b is greater than 1, α' = 1; when α × b is less than or equal to 1, α' = α × b.

[0110] This simple method allows for quick assessment of the action status and adjustment of weights using the displacement of the control handle. During intense operation, the angular velocity weight is increased to suppress centripetal force interference, while during stable operation, the acceleration weight is increased to calibrate integral drift, thereby improving the accuracy and response speed of joint angle measurement.

[0111] In order to balance the response speed of the motion intensity value b with system stability and avoid frequent switching of weight α due to sudden changes in the b value, which would cause oscillations in the joint angle calculation, the method in this embodiment also includes calculating the fluctuation of the excavator posture sensor data and dynamically adjusting the step size Δb of the motion intensity value b according to the fluctuation.

[0112] Specifically, when the fluctuation is large, it indicates that the current working condition is changing drastically. At this time, the step size Δb of the drastic action value b is increased so that b can quickly approach the target value corresponding to the current working condition. When the fluctuation is small, it indicates that the current working condition is becoming stable. At this time, the step size Δb of the drastic action value b is decreased so that b changes slowly to ensure the smooth transition of the weight α.

[0113] The specific implementation steps include:

[0114] Step 1: Calculate the degree of fluctuation in the attitude sensor data.

[0115] Acquire data from the attitude sensor within a set sliding window (such as attitude angle Angle, angular velocity ω, or acceleration ACC), and calculate its fluctuation level, Vark. In one specific embodiment, the standard deviation of the attitude angle Angle within the sliding window is used as the fluctuation level, and the calculation formula is as follows:

[0116] ;

[0117] In the formula, Vark represents the degree of attitude data fluctuation at time k; n is the size of the sliding window (for example, taking n=10 corresponds to a sampling frequency of 100Hz and a duration of 0.1 seconds); Angle k-i Let be the attitude angle at time ki; This represents the average pose angle within the sliding window.

[0118] Step 2: Determine the step size adjustment coefficient based on the degree of fluctuation.

[0119] Set a first fluctuation threshold Varth1 (e.g., 0.1°) and a second fluctuation threshold Varth2 (e.g., 1.0°). Determine the step size Δb based on the comparison between Varth and the thresholds:

[0120] If Vark ≤ Varth1 (small fluctuation), the current condition is determined to be stable, and the minimum step size Δb = 0.01 is taken;

[0121] If Vark ≥ Varth2 (significant fluctuation), it is determined that the current operating condition is drastically changing, and the maximum step size Δb = 0.1 is taken;

[0122] If Varth1 < Vark < Varth2 (moderate fluctuation), linear interpolation is used to calculate the step size:

[0123] .

[0124] Step 3: Update the intensity value b of the movement based on the step length.

[0125] Get the intensity value b of the target action obtained from the operation command or database matching. target and the estimated value b from the previous moment. k-1 Perform a step update with amplitude limiting based on the step size Δb:

[0126] If b k-1 <b target Then b k =min(b k-1 +Δb,b target );

[0127] If b k-1 >b target Then b k =max(b k-1 -Δb,b target );

[0128] If b k-1 =b target Then b k =b target Where 0 < b k <2.

[0129] Subsequently, based on the updated bk, according to α'=α×b k (And satisfying 0 < α' ≤ 1) The weight α is updated by multiplication. Through the above dynamic step size adjustment, the value of b can be adaptively adjusted quickly or slowly according to the actual rate of change of motion. It can rapidly increase α under severe conditions to suppress the centripetal force interference of the accelerometer, and smoothly transition under stable conditions to avoid sudden changes in weight.

[0130] To verify the effectiveness of the excavator joint angle measurement method in the embodiments of this application, refer to Figure 6 and Figure 7 The algorithm calculation results of the embodiments of this application were compared with the actual output of the angle sensor.

[0131] in, Figure 6 The comparison curves of the algorithm's analytical values ​​and the attitude sensor's output values ​​under the rotation condition are shown. Figure 7 The comparison curves of the algorithm's analytical values ​​and the attitude sensor's output values ​​are shown when only the working device moves (non-rotational condition).

[0132] Depend on Figure 6 and Figure 7 The comparison results show that the algorithm parsing value of this application embodiment can closely track the actual output value of the angle sensor. Specifically:

[0133] Under slewing conditions (refer to) Figure 6 When the excavator rotates, the sensor output value relying solely on the accelerometer shows significant drift and fluctuation. However, the algorithm analysis value of this application embodiment still smoothly and accurately tracks the actual attitude angle, indicating that the weighted fusion algorithm of acceleration angle and angular velocity angle of this application can effectively eliminate the influence of centripetal acceleration generated by rotation on the measurement results.

[0134] In non-rotational operating conditions where only the working device moves (refer to...) Figure 7 In this embodiment, the algorithm's parsed value and the sensor's output value are highly consistent, and the algorithm's dynamic tracking effect is good.

[0135] Further quantitative analysis of the test data revealed that the average tracking error of the algorithm in this embodiment was 0.008613125 degrees, the root mean square error (RMSE) was 0.050855299 degrees, and the dynamic tracking error was less than 0.1 degrees. Experimental data demonstrates that the excavator joint angle measurement method of this embodiment possesses extremely high measurement accuracy, excellent dynamic response characteristics, and strong anti-interference capabilities, meeting the stringent requirements of excavator automation control for precise joint angle sensing.

[0136] This application also discloses an excavator joint angle measurement system, including a processor, which executes the steps of the excavator joint angle measurement method as described in any of the above embodiments.

[0137] This application also discloses a storage medium storing a program that, when executed by a processor, implements the steps of the excavator joint angle measurement method described in any of the above embodiments.

[0138] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.

Claims

1. A method for measuring the joint angle of an excavator, characterized in that, Based on a first attitude sensor, a second attitude sensor, and a third attitude sensor, each attitude sensor measures the angular velocity of one axis and the acceleration of two axes, with the three axes perpendicular to each other in pairs. The first attitude sensor is fixedly mounted on the boom of the excavator, the second attitude sensor is fixedly mounted on the stick of the excavator, and the third attitude sensor is fixedly mounted between the connection point between the bucket and the stick, and between the connection point between the bucket and the telescopic component on the stick. The method includes the following steps: In the attitude sensor, the angle is calculated from the acceleration of two axes as the acceleration angle, and the angle is calculated from the integration of the angular velocity of one axis as the angular velocity angle; the attitude angle corresponding to the attitude sensor is obtained by weighted summation of the acceleration angle and the angular velocity angle. The first attitude sensor measures the boom angle, the second attitude sensor measures the stick angle, and the third attitude sensor measures the bucket angle. Based on the boom angle, stick angle, and bucket angle, the corresponding excavator attitude data is matched from a preset angle attitude database and then output.

2. The method for measuring the joint angle of an excavator according to claim 1, characterized in that, The step of obtaining the attitude angle corresponding to the attitude sensor by weighted summation of acceleration angle and angular velocity angle includes the following sub-steps: Attitude angle = α × angular velocity angle + (1-α) × acceleration angle, where α is the weight of the angular velocity angle, 1-α is the weight of the acceleration angle, and 0 < α ≤ 1; The excavator's motion status is acquired, and the corresponding motion intensity value b is matched from the preset motion status database based on the excavator's motion status. α is adjusted according to the motion intensity value b. Specifically, the larger the motion intensity value b is, the larger α is, and the smaller the motion intensity value b is, the smaller α is.

3. The method for measuring the joint angle of an excavator according to claim 2, characterized in that, The steps for obtaining the excavator's motion status include the following sub-steps: Based on the X-axis acceleration ACC_X and Y-axis acceleration ACC_Y from the attitude sensor, and the excavator attitude angle Roll, the mean square error (MSE) at time k is calculated. k The formula is as follows: ; In the formula, k represents the k-th time, and n represents the MSE window size; ACC_X k-i and ACC_Y k-i Let X and Y be the accelerations along the X and Y axes respectively at time ki, and Roll be the excavator's attitude angle. ; Calculated MSE k This shows the operating posture of the excavator.

4. The method for measuring the joint angle of an excavator according to claim 3, characterized in that, The method also includes the following steps: At time k, the weight α k The calculation formula is: ; In the formula, k1 and k2 are adjustable parameters, and MSE k Let Swing_ω be the mean square error at time k. k Let be the angular velocity component measured by the attitude sensor at time k.

5. The method for measuring the joint angle of an excavator according to claim 4, characterized in that, The specific method for adjusting parameter k1 is as follows: Obtain the impact magnitude parameter of the manually input action, and adjust k1 according to the impact magnitude parameter of the manually input action. The larger the impact magnitude parameter of the manually input action, the larger k1 is. or, Obtain vibration data from the vibration sensor at the bucket, and adjust k1 according to the vibration data; the larger the vibration data, the larger k1. or, Within a set period, the attitude acceleration of the attitude angle is calculated, and k1 is adjusted according to the attitude acceleration. The greater the attitude acceleration, the larger k1 is.

6. The method for measuring the joint angle of an excavator according to claim 4, characterized in that, The specific adjustment method for the adjustable parameter k2 is as follows: k2 is adjusted based on the distance of the attitude sensor from the excavator's slewing center: the farther away from the slewing center, the larger k2 is. Among them, k2 is the largest for the bucket, followed by k2 for the stick, and the smallest for the boom.

7. The method for measuring the joint angle of an excavator according to claim 4, characterized in that, The process of acquiring the excavator's motion status, matching the corresponding motion intensity value b from a preset motion status database based on the excavator's motion status, and adjusting α according to the motion intensity value b, wherein a larger motion intensity value b results in a larger α, and a smaller motion intensity value b results in a smaller α, further includes the following sub-steps: Acquire excavator operation command data, and obtain motion characteristic data based on the operation command data; Based on the action feature data, the corresponding action intensity value b is matched from the preset action state database, where 0 < b < 2. The more intense the excavator's action state, the larger the action intensity value b; the more stable the excavator's action state, the smaller the action intensity value b. The weight α is updated based on the intensity value b of the action: the updated α' = α × b, and the updated α' satisfies 0 < α' ≤ 1; Where α×b is greater than 1, we take α'=1; when α×b is less than or equal to 1, α'=α×b.

8. The method for measuring the joint angle of an excavator according to claim 7, characterized in that, The method also includes the following steps: Calculate the fluctuation level of the excavator's attitude sensor data, and dynamically adjust the step size of the motion severity value b based on the fluctuation level: When the fluctuation is large, increase the step size of the intensity value b; when the fluctuation is small, decrease the step size of the intensity value b.

9. A joint angle measurement system for excavators, characterized in that, Includes a processor, wherein the steps of the excavator joint angle measurement method as described in any one of claims 1-8 are executed.

10. A storage medium, characterized in that, The storage medium stores a program that, when executed by a processor, implements the steps of the excavator joint angle measurement method according to any one of claims 1-8.