Method and device for estimating motion parameters of a wheel car, wheel car and readable storage medium
By acquiring data from the McLaren encoder and IMU, and using the Kalman filter algorithm for data fusion and adaptive noise adjustment, the problem of inaccurate mileage calculation by the McLaren vehicle on different terrains was solved, achieving high-precision mileage estimation and navigation.
Patent Information
- Application Number
- CN202311866474.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-12-29
AI Technical Summary
The vehicle is prone to slipping on wet or uneven surfaces, which can lead to inaccurate mileage calculations and affect navigation accuracy.
By acquiring data from the McLaren encoder and vehicle IMU, data fusion is performed using the Kalman filter algorithm, measurement noise is adaptively adjusted, the Kalman gain is calculated, and vehicle motion parameters are estimated using dynamic system equations.
It accurately estimates the mileage of the vehicle in all directions, solving the problem of inaccurate mileage calculation caused by slippery ground and improving navigation accuracy.
Smart Images

Figure CN117818635B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of wheat-wheeled cart control technology, and in particular to a method, apparatus, wheat-wheeled cart motion parameter estimation method, and readable storage medium. Background Technology
[0002] A small vehicle equipped with Mecanum wheels (swivel wheels) (referred to as a Mecanum wheel vehicle), such as Figure 1 As shown, it exhibits high mobility, capable of lateral, longitudinal, and rotational movements, allowing free movement in confined spaces and easy passage through narrow aisles, curved roads, and stairs. Therefore, it is suitable for locations where ordinary cars struggle to navigate. Each Mecanum wheel is equipped with numerous rollers, but these rollers lack independent drive capabilities. Consequently, Mecanum wheels are prone to significant slippage on wet surfaces, with the degree of slippage varying depending on the surface material and slope. If traditional odometer-based mileage calculation methods using on-wheel motors and encoders are employed, slippage will cause errors in indoor positioning, impacting subsequent navigation and other tasks. Summary of the Invention
[0003] In view of this, embodiments of this application provide a method, apparatus, a wheat-wheel cart motion parameter estimation method, and a readable storage medium.
[0004] In a first aspect, embodiments of this application provide a method for estimating the motion parameters of a wheelbarrow, including:
[0005] Acquire real-time feedback data from the McLaren encoder and vehicle IMU;
[0006] Based on the current acceleration information in the vehicle IMU data, adaptive adjustment of measurement noise is performed, and then the current Kalman gain is calculated.
[0007] Based on the data from the McLaren encoder and the vehicle IMU data, the predicted values of the vehicle motion parameters are calculated using dynamic system equations.
[0008] Based on the predicted value and the Kalman gain, the estimated values of the vehicle motion parameters are obtained.
[0009] In some embodiments, the wheel encoder data includes wheel speeds measured by encoders on each wheel, and the vehicle IMU data includes the vehicle’s raw linear accelerations in the forward and lateral directions, respectively.
[0010] The process of calculating the predicted values of the vehicle motion parameters using dynamic system equations also includes, prior to:
[0011] Calculate the vehicle speed based on the stated wheel speed of each wheat wheel;
[0012] The direction of the original linear acceleration is calibrated using the vehicle attitude measured and calculated by the vehicle IMU to obtain the calibrated linear acceleration in the corresponding direction; wherein, the vehicle velocity and the calibrated linear acceleration are used as inputs to the dynamic system equations for prediction value calculation.
[0013] In some embodiments, the vehicle IMU data further includes the vehicle's raw acceleration in the rotational direction, and the step of adaptively adjusting the measurement noise based on the current acceleration information in the vehicle IMU data includes:
[0014] The original accelerations of the vehicle in the three axes are subjected to gravity-free acceleration processing to obtain a dynamic scalar, which is used to identify the current motion state of the vehicle.
[0015] The current motion mode of the vehicle is determined based on the magnitude of the dynamic scalar and the variance of acceleration along the three axes.
[0016] Based on the current motion mode, determine the corresponding measurement noise covariance matrix.
[0017] In some embodiments, the current motion mode of the vehicle is determined according to the following formula:
[0018] When the dynamic scalar satisfies Then it is determined to be in no-acceleration mode;
[0019] When the dynamic scalar satisfies It is then determined to be a low dynamic mode;
[0020] When the dynamic scalar satisfies α > Th acc If so, it is determined to be a high dynamic mode;
[0021] In the formula, α is a dynamic scalar; These are the variances of acceleration along the three axes; Th acc This is the acceleration threshold.
[0022] In some embodiments, each motion mode corresponds to a different measurement noise covariance matrix;
[0023] In the non-acceleration mode, the measurement noise covariance matrix is maintained as the initial estimate obtained during the IMU static calibration process;
[0024] In the low dynamic mode, the measurement noise covariance matrix is the sum of the initial estimate and the adjustment matrix, which is constructed based on the dynamic scalar.
[0025] In the high dynamic mode, the measurement noise covariance matrix is constructed based on the noise limit value.
[0026] In some embodiments, the dynamic system equations include the vehicle's mileage dynamic system equations in the forward direction and lateral direction, and the vehicle's rotation angle dynamic system equations in the rotation direction.
[0027] The state variables of the mileage dynamic system equation include the vehicle's mileage and speed in the corresponding direction; the state variables of the rotation angle dynamic system equation include the vehicle's rotation angle in the rotation direction.
[0028] In some embodiments, the mileage dynamic system equations in each direction are used to describe the state variable estimate at time k, which is equal to the state variable estimate at time k-1 and the vehicle speed increment and mileage increment calculated based on the linear acceleration at the two sampling times; where k is an integer greater than 0.
[0029] In some embodiments, the expression for the mileage dynamic system equation is as follows:
[0030]
[0031] In the formula, This is the state estimate at time k; Here, T represents the estimated state variable value at time k-1; T is the sampling time interval. and These are the linear accelerations fed back at time k and time (k-1) in the corresponding directions, respectively. The vehicle speed is the feedback at time k-1.
[0032] In some embodiments, the McLaren encoder data further includes a first rotational angular velocity measured by the encoder on each McLaren, and the vehicle IMU data further includes a second rotational angular velocity of the vehicle in the rotational direction;
[0033] The dynamic system equation for the rotation angle is used to describe that the estimated value of the state variable at time k is equal to the estimated value of the state variable at time k-1 and the rotation angle increment calculated by weighting the first rotation angle velocity and the second rotation angle velocity; where k is an integer greater than 0.
[0034] In some embodiments, the dynamic system equations for the rotation angle include:
[0035]
[0036] In the formula, This is the state estimate at time k; ω represents the estimated state variable at time k-1; β is the preset weight; wheel and ω IMUThese are the first rotational angular velocity and the second rotational angular velocity at time k, respectively.
[0037] Secondly, embodiments of this application provide a device for estimating the motion parameters of a wheelbarrow, comprising:
[0038] The data acquisition module is used to acquire real-time feedback data from the McLaren encoder and vehicle IMU.
[0039] The Kalman gain calculation module is used to adaptively adjust the measurement noise based on the current acceleration information in the vehicle IMU data, and then calculate the current Kalman gain.
[0040] The Kalman prediction module is used to calculate the predicted values of the vehicle motion parameters based on the McLaren encoder data and the vehicle IMU data through dynamic system equations.
[0041] The Kalman estimation module is used to obtain estimated values of the vehicle motion parameters based on the predicted values and the Kalman gain.
[0042] Thirdly, embodiments of this application provide a wheeled vehicle, which includes four wheels, an IMU module, a processor, and a memory. Each wheel is equipped with a wheel encoder, the memory stores a computer program, and the processor executes the computer program to implement the wheeled vehicle motion parameter estimation method.
[0043] Fourthly, embodiments of this application provide a readable storage medium storing a computer program, which, when executed on a processor, implements the aforementioned method for estimating the motion parameters of the wheat-wheeled cart.
[0044] The embodiments of this application have the following beneficial effects:
[0045] This application proposes a method for estimating the motion parameters of a Mach-wheel vehicle. It acquires real-time feedback data from the Mach-wheel encoder and vehicle IMU data from sensors, and adaptively adjusts the measurement noise based on the acceleration information to adapt to different ground slippage conditions. Then, based on the adaptive measurement noise, it calculates the current Kalman gain using a standard Kalman filter algorithm and predicts the vehicle's motion parameters. Finally, it uses the predicted values and Kalman gain to estimate the vehicle's motion parameters and update its state. This method can accurately estimate the mileage of the Mach-wheel vehicle in all directions (i.e., forward direction, lateral direction, and rotation direction), solving the problem of inaccurate mileage calculation caused by ground slippage in existing technologies. Attached Figure Description
[0046] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0047] Figure 1 A schematic diagram of a wheat-wheeled cart is shown;
[0048] Figure 2 A first flowchart of the method for estimating the motion parameters of a wheelbarrow according to an embodiment of this application is shown;
[0049] Figure 3 A second flowchart of the method for estimating the motion parameters of a wheelbarrow according to an embodiment of this application is shown;
[0050] Figure 4 A flowchart of a method for estimating odometer distance in the forward direction is shown;
[0051] Figure 5 A schematic diagram of a device for estimating motion parameters of a wheelbarrow according to an embodiment of this application is shown.
[0052] Explanation of key component symbols:
[0053] 100 - Mech wheel motion parameter estimation device; 110 - Data acquisition module; 120 - Kalman gain calculation module; 130 - Kalman prediction module; 140 - Kalman estimation module. Detailed Implementation
[0054] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.
[0055] The components of the embodiments of this application described and illustrated in the accompanying drawings can be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of this application provided in the drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0056] In the following text, the terms "comprising," "having," and their cognates, which may be used in various embodiments of this application, are intended only to indicate a particular feature, number, step, operation, element, component, or combination thereof, and should not be construed as primarily excluding the presence of one or more other features, numbers, steps, operations, elements, components, or combinations thereof, or adding the possibility of one or more combinations thereof. Furthermore, the terms "first," "second," "third," etc., are used only for distinguishing descriptions and should not be construed as indicating or implying relative importance.
[0057] Unless otherwise specified, all terms used herein (including technical and scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of this application pertain. Terms (such as those defined in commonly used dictionaries) shall be interpreted as having the same meaning as in their contextual meaning in the relevant technical field and shall not be construed as having an idealized or overly formal meaning, unless clearly defined in the various embodiments of this application.
[0058] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0059] To address the problem of inaccurate mileage estimation caused by slippage of the Mecanum wheels, this application proposes a method for estimating the motion parameters of the Mecanum wheel vehicle. By using the Kalman filter algorithm for data fusion, the mileage of the Mecanum wheel vehicle in the corresponding direction can be accurately estimated, enabling the Mecanum wheel vehicle to accurately estimate its mileage on various ground surfaces, thereby better achieving tasks such as indoor navigation and positioning.
[0060] The following describes the method for estimating the motion parameters of a wheelbarrow using specific examples.
[0061] Figure 2 A flowchart illustrating a method for estimating the motion parameters of a wheelbarrow according to an embodiment of this application is shown. Exemplarily, this method includes the following steps:
[0062] S110 acquires real-time feedback data from the McLaren encoder and vehicle IMU.
[0063] Exemplary, the wheat-wheeled cart in this embodiment can be a four-wheeled wheat-wheeled cart, as described above. Figure 1As shown, each wheel is equipped with an encoder to collect information such as wheel speed and rotation angle. In addition, the wheel vehicle is also equipped with an IMU (Inertial Measurement Unit) module, for example, an IMU module with a built-in three-axis gyroscope and a three-axis accelerometer, to measure the angular velocity and acceleration of the wheel vehicle in three-dimensional space, thereby outputting information such as three-axis angular velocity and three-axis acceleration.
[0064] It is understandable that the real-time feedback data obtained above can be raw measurement data directly obtained from the Meyer encoder or IMU, or processed data obtained by performing operations such as calculation or calibration on the raw measurement data. For example, the attitude and other information of the Meyer vehicle can be further calculated through the IMU data mentioned above. There is no limitation here, and the specific selection can be made according to actual needs.
[0065] In one embodiment, the aforementioned wheel encoder data may include wheel speed and wheel rotation angle measured by the encoder on each wheel; the aforementioned vehicle IMU data may include triaxial acceleration and angular velocity data, such as linear acceleration in the forward direction, linear acceleration in the lateral direction, and rotational angular velocity in the rotation direction.
[0066] As an optional approach, before calculating the predicted values of the vehicle motion parameters using the acquired data through dynamic system equations, the method further includes:
[0067] The vehicle speed is calculated based on the wheel speed of each wheel. For example, the vehicle speed can be obtained by averaging the four wheel speeds. Other methods can also be used to obtain the overall vehicle speed; this is just one example and not the only one. Furthermore, the direction of the original linear acceleration is calibrated using the vehicle attitude measured and calculated by the vehicle's IMU, i.e., removing the influence of gravitational acceleration, to obtain a calibrated linear acceleration in the corresponding direction. It can be understood that this vehicle speed and the calibrated linear acceleration will be used as inputs into the designed dynamic system equations for predictive value calculations, thereby improving calculation accuracy.
[0068] S120: Based on the current acceleration information in the vehicle IMU data, adaptive adjustment of measurement noise is performed, and then the current Kalman gain is calculated.
[0069] Considering that the degree of slippage of the McLaren wheelbarrow varies under different acceleration conditions, for example, in the mileage tracking experiment, for the task of first uniform acceleration, then uniform speed, and finally uniform deceleration, it was found that the degree of slippage was significantly increased during the periods with larger acceleration at the beginning and end compared to the uniform speed period. Therefore, this embodiment introduces acceleration input variance adaptive adjustment, that is, adaptive adjustment of measurement noise based on acceleration information, so as to affect the estimated value of vehicle operating parameters through Kalman filtering, thereby making the McLaren wheelbarrow suitable for slippage scenarios under various working conditions.
[0070] It is understood that in this embodiment, the Kalman filter algorithm is used to fuse the above-mentioned McLaren encoder data and vehicle IMU data to improve the estimation accuracy of the vehicle motion parameters. On the other hand, it can reduce the errors and other noise interference generated during the measurement process of each sensor, so that the state estimation value will not have a large deviation.
[0071] Exemplarily, the vehicle's motion state can be determined first based on the obtained acceleration information, then the vehicle's current motion mode can be determined based on this motion state, and finally, a suitable measurement noise covariance matrix can be selected based on the current motion mode. For example, in one implementation, such as Figure 3 As shown, the above-mentioned adaptive adjustment process for measurement noise includes:
[0072] S121 performs gravity-free acceleration processing on the vehicle's original acceleration in the three axes to obtain a dynamic scalar, which is used to identify the current motion state of the entire vehicle.
[0073] For example, a dynamic scalar can be defined to identify the current motion state of the vehicle, and the range of values for this dynamic scalar can be divided into intervals, where different intervals correspond to different motion modes. Exemplarily, this dynamic scalar can be calculated using acceleration amplitudes other than gravitational acceleration, specifically using the formula: α = |f b -g|, where α is a dynamic scalar; f b This represents the vehicle's initial acceleration along the three axes, where g is the acceleration due to gravity.
[0074] S122 determines the vehicle's current motion mode based on the magnitude of the dynamic scalar and the variance of acceleration along the three axes.
[0075] The aforementioned vehicle motion states can be represented by three motion modes: no acceleration mode, low dynamic mode, and high dynamic mode. Each motion mode corresponds to a specific measurement noise covariance matrix, and the magnitude of the dynamic scalar is also different for each motion mode.
[0076] In one implementation, the current motion mode of the vehicle can be determined using the following formula:
[0077] When the dynamic scalar α satisfies Then it is determined to be in no-acceleration mode;
[0078] When the dynamic scalar α satisfies It is then determined to be a low dynamic mode;
[0079] When the dynamic scalar α satisfies α > Th acc If so, it is determined to be a high dynamic mode;
[0080] In the formula, These are the variances of acceleration along the three axes; Th acc This is the acceleration threshold.
[0081] S123, Determine the corresponding measurement noise covariance matrix based on the current motion mode.
[0082] In one implementation, the correspondence between motion patterns and the measurement noise covariance matrix can be as follows:
[0083] In non-acceleration mode, the measurement noise covariance matrix R remains at its initial estimate (obtainable during IMU static calibration), for example, it can be derived from the noise variance values along the three axes. The constructed result is specifically represented as:
[0084] In low dynamic mode, the measurement noise covariance matrix is the sum of the initial estimate and the adjustment matrix, where the adjustment matrix is constructed based on the dynamic scalar. Exemplarily, this measurement noise covariance matrix R can be expressed as:
[0085] In high dynamic mode, the measurement noise covariance matrix is based on the noise limit value Th. L The measurement noise covariance matrix R is constructed as follows:
[0086] It is understandable that, since this embodiment uses the Kalman filter algorithm to estimate the vehicle's motion state parameters, and by introducing measurement noise adaptation based on dynamic scalars, the Kalman gain during state updates can be affected, thus enabling the McLaren vehicle to obtain relatively accurate mileage values even under various working conditions and ground slippage scenarios.
[0087] Subsequently, using the determined adaptive measurement noise covariance matrix, the current Kalman gain is calculated according to the correlation method in the Kalman filtering algorithm.
[0088] S130, based on the data from the McLaren encoder and the vehicle IMU data, calculate the predicted values of the vehicle motion parameters using dynamic system equations.
[0089] S140, based on the predicted value and the Kalman gain, obtain the estimated value of the vehicle motion parameters.
[0090] In this embodiment, data fusion is performed using the Kalman filter algorithm to obtain predicted values of vehicle motion parameters. Specifically, a Kalman filter is configured for each direction of the vehicle (i.e., forward direction, lateral direction, and rotation direction) to achieve decoupling processing in the three motion directions.
[0091] It is worth noting that, taking into account actual hardware and operating conditions, this embodiment improves the design of the standard dynamic system equations to obtain dynamic system equations in different motion directions. Specifically, the dynamic system equations include the vehicle's mileage dynamic system equations in the forward and lateral directions, as well as the vehicle's rotation angle dynamic system equations in the rotation direction.
[0092] Specifically, different state variables will be selected for different dynamic system equations. For example, in the forward or lateral direction, this state variable is a two-dimensional vector, consisting of the distance traveled in a certain direction and the vehicle speed, such as... In the direction of rotation, the state variable is the rotation angle θ.
[0093] In one implementation, the odometer dynamic system equation for each direction describes that the estimated state variable at time k is equal to the estimated state variable at time k-1 plus the vehicle speed increment and odometer increment calculated based on the linear acceleration at the two sampling times; where k is an integer greater than 0. Specifically, the expression for this odometer dynamic system equation is as follows:
[0094]
[0095] In the formula, This is the state estimate at time k; Here, T represents the estimated state variable value at time k-1; T is the sampling time interval. and These are the linear accelerations fed back at time k and time (k-1) in the corresponding directions, respectively. The vehicle speed is the feedback at time k-1.
[0096] It is understandable that the speed increment and mileage increment mentioned above are calculated using the acceleration feedback values at two sampling times. Compared with the traditional rectangular fitting continuous-time integration method, this trapezoidal fitting method has higher accuracy.
[0097] In one implementation, the dynamic system equation for the rotation angle describes that the estimated state variable at time k is equal to the estimated state variable at time (k-1) plus the rotation angle increment calculated based on a weighted average of a first rotation angular velocity and a second rotation angular velocity; where k is an integer greater than 0. The first rotation angular velocity is measured by an encoder on each wheel; the second rotation angular velocity is the angular velocity of the vehicle in the rotation direction measured by an IMU module.
[0098] Specifically, the expression for the dynamic system equation of the rotation angle is as follows:
[0099]
[0100] In the formula, This is the state estimate at time k; ω represents the estimated state variable at time k-1; β is the preset weight; wheel and ω IMU These are the first and second rotational angular velocities at time k, respectively.
[0101] Therefore, based on the dynamic system equations constructed above, subsequent state updates and iterations use the standard Kalman filter algorithm, with the specific formula as follows:
[0102]
[0103]
[0104]
[0105]
[0106]
[0107] In the formula, A is the state transition matrix, B is the control matrix, and u k As the control vector, all three can be determined by referring to the expression of the dynamic system equations of the above design. Let P be the covariance matrix of the prior error at time k. k-1 K represents the covariance matrix of the posterior error at time k-1; Q represents the covariance matrix of the process noise; k Z represents the Kalman gain at time k, R is the covariance matrix of the measurement noise at time k, which is determined through step S120 above; C represents the transformation matrix from state variables to measurements (observations). k The measured values (observations) are the inputs to the Kalman filter, specifically the data measured by the McLaren encoder or IMU module.
[0108] For the forward and lateral directions, the true dynamic equations with measurement errors are described as follows:
[0109]
[0110]
[0111] In the formula, x k This represents the true state value at time k. This represents the process noise at time k-1, representing the distance and speed. The measurement noise represents the distance and speed at time k.
[0112] For the direction of rotation, the true dynamic equation with measurement error can be described as:
[0113] x k =x k-1 +∫0 T wdt+W yaw,k-1
[0114] z k =x k +V yaw,k ,
[0115] In the formula, W yaw,k-1 V represents the process noise of the rotation angle at time k-1. yaw,k This represents the measurement noise of the rotation angle at time k.
[0116] It is understood that the state estimate at time k can be calculated using formula (1) above, and the Kalman gain can be calculated using formula (3). Formula (4) is used to calculate the state estimate. Given that the focus of this embodiment is on the design of the dynamic system equations and the adaptive handling of measurement noise, etc., the subsequent state updates and iterations can be referred to in existing publicly available descriptions of Kalman filtering, which will not be elaborated here.
[0117] Taking distance estimation in the forward direction as an example, such as Figure 4 As shown, when performing odometer estimation, the measured value z in the direction of motion is first obtained by the McLaren encoder and IMU. k Simultaneously, by combining the estimated distance and speed from the previous moment, the predicted distance and speed for the current moment are calculated using dynamic system equations. Next, calculate the Kalman gain K at the current time. k and prior error covariance By inputting the data into the dynamic system equations for state updates, estimates of the current distance and velocity can be calculated.
[0118] The proposed method for estimating the motion parameters of a Mach-wheel vehicle utilizes vehicle IMU data and Mach-wheel encoder information, employs real-time data fusion technology based on Kalman filtering, and introduces adaptive measurement noise to calculate the vehicle's mileage or rotation angle in the corresponding motion direction in real time. This decoupling process across the three motion directions improves the mileage tracking accuracy of the Mach-wheel vehicle, enabling highly precise movement and providing better data support for tasks such as navigation.
[0119] Figure 5 A schematic diagram of a mechanical device 100 for estimating motion parameters of a wheat-wheeled cart according to an embodiment of this application is shown. Exemplarily, the wheat-wheeled cart motion parameter estimation device 100 includes:
[0120] The data acquisition module 110 is used to acquire real-time feedback data from the McLaren encoder and vehicle IMU.
[0121] The Kalman gain calculation module 120 is used to adaptively adjust the measurement noise based on the current acceleration information in the vehicle IMU data, and then calculate the current Kalman gain.
[0122] The Kalman prediction module 130 is used to calculate the predicted values of the vehicle motion parameters based on the McLaren encoder data and the vehicle IMU data through dynamic system equations.
[0123] Kalman estimation module 140 is used to obtain estimated values of the vehicle motion parameters based on the predicted values and the Kalman gain.
[0124] It is understood that the device in this embodiment corresponds to the motion parameter estimation method in the above embodiments, and the options in the above embodiments are also applicable to this embodiment, so they will not be described again here.
[0125] Furthermore, this application also provides an exemplary wheeled vehicle, which includes four wheels, an IMU module, a processor, and a memory. Each wheel is equipped with a wheel encoder capable of measuring the wheel speed and rotation angle. The IMU module is capable of measuring the aforementioned vehicle IMU-related data. The memory stores a computer program, and the processor runs the computer program to enable the wheeled vehicle to perform the functions of the aforementioned wheeled vehicle mileage method or the various modules in the aforementioned wheeled vehicle mileage device, thereby improving the mileage tracking accuracy of the wheeled vehicle and enhancing the user experience.
[0126] Optionally, the cart can be equipped with a platform for carrying objects or a robotic arm for interaction, making it applicable to various fields such as entertainment, education, manufacturing, healthcare, and logistics, specifically in scenarios such as robot competitions, games, hospitals, factories, and logistics warehouses. For example, the cart can be used for collecting and transporting items in offices and hospitals, and for processing and transporting parts in factories, etc., without limitation.
[0127] The processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including at least one of a Central Processing Unit (CPU), Graphics Processing Unit (GPU), Network Processor (NP), Digital Signal Processor (DSP), Application-Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor or any conventional processor, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application.
[0128] The memory can be, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), etc. The memory is used to store computer programs, and the processor can execute the computer programs accordingly after receiving execution instructions.
[0129] This application also provides a readable storage medium for storing the computer program used in the aforementioned wheat-wheel cart. For example, the readable storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0130] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that, in alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0131] In addition, the functional modules or units in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0132] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a smartphone, personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.
[0133] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. A method for estimating motion parameters of a wheelbarrow, characterized in that, include: Acquire real-time feedback data from the McLaren encoder and vehicle IMU; The vehicle IMU data includes the vehicle's original acceleration in the forward direction, lateral direction, and rotation direction, respectively. Based on the current acceleration information in the vehicle IMU data, adaptive adjustment of measurement noise is performed, and then the current Kalman gain is calculated. The adaptive adjustment of measurement noise includes: performing gravity-free acceleration processing on the original acceleration of the vehicle in three axes to obtain a dynamic scalar, which is used to identify the current vehicle motion state; determining the current motion mode of the vehicle based on the magnitude of the dynamic scalar and the acceleration variance values in the three axes; and determining the corresponding measurement noise covariance matrix based on the current motion mode. Based on the data from the McLaren encoder and the vehicle IMU data, the predicted values of the vehicle motion parameters are calculated using dynamic system equations. Based on the predicted value and the Kalman gain, the estimated values of the vehicle motion parameters are obtained.
2. The method for estimating the motion parameters of a wheelbarrow according to claim 1, characterized in that, The wheel encoder data includes the wheel speed measured by the encoder on each wheel, and the original acceleration of the vehicle in the forward direction and the lateral direction is the original linear acceleration. The process of calculating the predicted values of the vehicle motion parameters using dynamic system equations further includes, prior to: Calculate the vehicle speed based on the stated wheel speed of each wheat wheel; The direction of the original linear acceleration is calibrated using the vehicle attitude measured and calculated by the vehicle IMU to obtain the calibrated linear acceleration in the corresponding direction; wherein, the vehicle velocity and the calibrated linear acceleration are used as inputs to the dynamic system equations for prediction value calculation.
3. The method for estimating the motion parameters of a wheelbarrow according to claim 2, characterized in that, The current motion mode of the vehicle is determined according to the following formula: When the dynamic scalar satisfies If so, it is determined to be a no-acceleration mode; When the dynamic scalar satisfies If so, it is determined to be a low dynamic mode; When the dynamic scalar satisfies If so, it is determined to be a high dynamic mode; In the formula, It is a dynamic scalar; These are the variances of acceleration along the three axes, respectively. This is the acceleration threshold.
4. The method for estimating the motion parameters of a wheelbarrow according to claim 3, characterized in that, Each motion mode corresponds to a different measurement noise covariance matrix; In the non-acceleration mode, the measurement noise covariance matrix is maintained as the initial estimate obtained during the IMU static calibration process; In the low dynamic mode, the measurement noise covariance matrix is the sum of the initial estimate and the adjustment matrix, which is constructed based on the dynamic scalar. In the high dynamic mode, the measurement noise covariance matrix is constructed based on the noise limit value.
5. The method for estimating the motion parameters of a wheelbarrow according to claim 2, characterized in that, The dynamic system equations include the vehicle's mileage dynamic system equations in the forward direction and lateral direction, and the vehicle's rotation angle dynamic system equations in the rotation direction. The state variables of the mileage dynamic system equation include the vehicle's mileage and speed in the corresponding direction; the state variables of the rotation angle dynamic system equation include the vehicle's rotation angle in the rotation direction.
6. The method for estimating the motion parameters of a wheelbarrow according to claim 5, characterized in that, The mileage dynamic system equations in each direction describe the state variable estimate at time k, which is equal to the state variable estimate at time k-1 plus the vehicle speed increment and mileage increment calculated based on the linear acceleration at the two sampling times; where k is an integer greater than 0.
7. The method for estimating the motion parameters of a wheelbarrow according to claim 6, characterized in that, The expression for the mileage dynamic system equation is as follows: ; In the formula, This is the state estimate at time k; Here, T represents the estimated state variable value at time k-1; T is the sampling time interval. and These are the linear accelerations fed back at time k and time (k-1) in the corresponding directions, respectively. The vehicle speed is the feedback at time k-1.
8. The method for estimating the motion parameters of a wheelbarrow according to claim 5, characterized in that, The McLaren encoder data also includes a first rotational angular velocity measured by the encoder on each McLaren, and the vehicle IMU data also includes a second rotational angular velocity of the vehicle in the rotational direction; The dynamic system equation for the rotation angle is used to describe that the estimated value of the state variable at time k is equal to the estimated value of the state variable at time k-1 and the rotation angle increment calculated by weighting the first rotation angle velocity and the second rotation angle velocity; where k is an integer greater than 0.
9. The method for estimating the motion parameters of a wheelbarrow according to claim 8, characterized in that, The dynamic system equations for the rotation angle include: ; In the formula, This is the state estimate at time k; This represents the estimated state variable value at time k-1. Preset weights; and These are the first rotational angular velocity and the second rotational angular velocity at time k, respectively.
10. A device for estimating motion parameters of a wheat-wheeled cart, characterized in that, include: The data acquisition module is used to acquire real-time feedback data from the McLaren encoder and vehicle IMU. The vehicle IMU data includes the vehicle's original acceleration in the forward direction, lateral direction, and rotation direction, respectively. The Kalman gain calculation module is used to perform adaptive adjustment of measurement noise based on the current acceleration information in the vehicle IMU data, and then calculate the current Kalman gain; wherein, the adaptive adjustment of measurement noise includes: performing gravity-free acceleration processing on the original acceleration of the vehicle in three axes to obtain a dynamic scalar, the dynamic scalar being used to identify the current motion state of the vehicle; determining the current motion mode of the vehicle based on the magnitude of the dynamic scalar and the acceleration variance values in the three axes; and determining the corresponding measurement noise covariance matrix based on the current motion mode; The Kalman prediction module is used to calculate the predicted values of the vehicle motion parameters based on the McLaren encoder data and the vehicle IMU data through dynamic system equations. The Kalman estimation module is used to obtain estimated values of the vehicle motion parameters based on the predicted values and the Kalman gain.
11. A wheat-wheeled cart, characterized in that, The trolley includes four wheels, an IMU module, a processor, and a memory. Each wheel is equipped with a wheel encoder. The memory stores a computer program. The processor executes the computer program to implement the trolley motion parameter estimation method according to any one of claims 1-9.
12. A readable storage medium, characterized in that, It stores a computer program, which, when executed on a processor, implements the method for estimating the motion parameters of the wheat-wheeled cart according to any one of claims 1-9.
Citation Information
Patent Citations
Self-Adaptive Horizontal Attitude Measurement Method based on Motion State Monitoring
US20220326017A1
