Method, device and computer readable storage medium for predicting pose information of a vehicle
By fusing real-time observation data and Kalman filter models, and combining kinematic models to optimize vehicle attitude and position prediction, the problem of inaccurate positioning during automatic parking was solved, achieving high-precision automatic parking control.
Patent Information
- Application Number
- CN202510461699.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-11
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2045-04-11
AI Technical Summary
In existing technologies, inaccurate vehicle positioning during automatic parking is caused by sensor measurement errors and environmental factors. Existing filtering methods are difficult to effectively address sensor fluctuations, leading to inaccurate vehicle positioning.
By acquiring actual observation data of the vehicle, the initial predicted attitude information is updated using the initial Kalman filter model and then input into the target Kalman filter model. Combined with the kinematic model, prediction is performed, and the state covariance matrix is dynamically adjusted to optimize the prediction of attitude and position information.
It significantly improves the accuracy of vehicle attitude and position prediction in automatic parking scenarios, ensuring high-precision positioning and stability of the vehicle in complex environments, and realizing safe and accurate automatic parking.
Smart Images

Figure CN120396978B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of autonomous driving technology, and in particular to a method, apparatus and computer-readable storage medium for predicting vehicle pose information. Background Technology
[0002] With the rapid development of autonomous driving technology, automatic parking has become an important component of vehicles. During automatic parking, the vehicle needs to accurately determine its position and posture in the parking lot environment to achieve safe and efficient parking operations.
[0003] In existing technologies, vehicle positioning during automatic parking primarily relies on measurement data from the vehicle's wheel speed sensors, steering wheel angle sensors, and inertial measurement units to predict the vehicle's attitude and position information. While simple filtering or compensation methods are typically used to address sensor measurement errors, these approaches struggle to effectively handle fluctuations in sensor performance in complex environments, leading to inaccurate vehicle positioning.
[0004] There is currently no effective solution to the aforementioned technical problem of inaccurate vehicle positioning. Summary of the Invention
[0005] This application provides a method, apparatus, and computer-readable storage medium for predicting vehicle pose information, aiming to improve the technical problem of inaccurate vehicle positioning.
[0006] According to one aspect of the embodiments of this application, a method for predicting the pose information of a vehicle is provided, comprising: acquiring first predicted pose information of the vehicle at the current moment, wherein the first predicted pose information is obtained by updating the initial predicted pose information of the vehicle based on the actual observation data of the vehicle at the current moment, and the initial predicted pose information is obtained by predicting the pose of the vehicle using an initial Kalman filter model; inputting the first predicted pose information into a target Kalman filter model to predict second predicted pose information of the vehicle at the next discrete moment, wherein the target Kalman filter model is obtained by updating the state covariance matrix in the initial Kalman filter model based on the actual observation data; and inputting the first predicted pose information and the first predicted position information of the vehicle at the current moment into a kinematic model to predict the second predicted position information of the vehicle at the next discrete moment.
[0007] In the above embodiments of this application, when predicting the vehicle's attitude information, the vehicle's attitude information is updated and optimized by fusing observation data and predicted attitude information from the Kalman filter model in real time, which can significantly improve the accuracy of attitude prediction in automatic parking scenarios. This process not only corrects attitude estimation deviations caused by sensor measurement errors, environmental factors, and model inaccuracies, but also ensures that the model can more accurately reflect the vehicle's true attitude by dynamically adjusting the state estimation covariance matrix of the Kalman filter model. Furthermore, by combining the optimized predicted attitude information with the kinematic model to predict the vehicle's position information at the next discrete moment, this strategy significantly improves the accuracy of vehicle position information. During automatic parking, the complexity of the vehicle's dynamic behavior and road conditions requires the prediction model to accurately capture and reflect the impact of changes in vehicle attitude on position. By using the optimized attitude information as input, the kinematic model can more accurately predict the vehicle's future position, thereby achieving high-precision tracking of vehicle motion in automatic parking control, improving the vehicle's positioning accuracy and stability in complex environments, achieving the technical effect of improving vehicle positioning accuracy, and thus solving the technical problem of inaccurate vehicle positioning.
[0008] Optionally, the first predicted attitude information is input into the target Kalman filter model to predict the second predicted attitude information of the vehicle at the next discrete moment, including: converting the first predicted attitude information into a first quaternion state vector; inputting the first quaternion state vector into the target Kalman filter model to predict the first predicted quaternion state vector of the vehicle at the next discrete moment; and transforming the first predicted quaternion state vector to obtain the second predicted attitude information.
[0009] In the above embodiments of this application, by representing the first predicted attitude information in a quaternion state space, the target Kalman filter model can efficiently and accurately process the state prediction of vehicle attitude. Moreover, in the prediction process, it not only considers the attitude information of the vehicle, but also combines the influence of sensor noise and vehicle dynamic characteristics, thereby improving the prediction accuracy of attitude information.
[0010] Optionally, the first predicted attitude information and the first predicted position information of the vehicle at the current time are input into the kinematic model to predict the second predicted position information of the vehicle at the next discrete time, including: inputting the first predicted attitude information and the first predicted position information into the kinematic model to predict the first predicted displacement, wherein the first predicted displacement is used to represent the displacement of the vehicle from the current time to the next discrete time according to the first predicted attitude information; and predicting the second predicted position information based on the position information of the vehicle at the current time and the first predicted displacement.
[0011] In the above embodiments of this application, by combining the vehicle's attitude information and position information, the position information of the vehicle at subsequent discrete moments can be predicted, which can greatly improve the accuracy of vehicle position prediction and ensure that the vehicle can safely and accurately park in the predetermined parking space in the automatic parking scenario.
[0012] Optionally, obtaining the vehicle's first predicted attitude information at the current moment includes: obtaining the vehicle's actual observation data at the current moment; determining the Kalman gain of the initial Kalman filter model based on the actual observation data, wherein the Kalman gain is used to represent the accuracy of the actual observation data; and updating the initial predicted attitude information based on the Kalman gain and the actual observation data to obtain the first predicted attitude information.
[0013] In the embodiments described above, by fusing real-time observation data and prediction information, the Kalman filter model can continuously calibrate and correct its estimation of vehicle attitude, thereby providing more stable and accurate vehicle attitude information prediction in dynamic environments such as automatic parking. By updating the state estimate and state covariance matrix using the latest observation data at each discrete time, the Kalman filter ensures the real-time accuracy and long-term stability of vehicle attitude information, meeting the stringent requirements of automatic parking control for the accuracy of the vehicle's relative position information.
[0014] Optionally, the initial predicted attitude information is updated based on the Kalman gain and the actual observation data to obtain the first predicted attitude information, including: determining the update weight of the actual observation data based on the Kalman gain, wherein the update weight is used to represent the degree of contribution of the actual observation data to updating the initial predicted attitude information to the first predicted attitude information; and updating the initial predicted attitude information based on the update weight and the actual observation data to obtain the first predicted attitude information.
[0015] In the above embodiments of this application, the update weight of the actual observation data is adaptively determined by dynamically adjusting the Kalman gain, which ensures the reasonable use of the actual observation data in the initial attitude prediction and avoids over-reliance on any single data source, thereby obtaining a more accurate and reliable attitude estimate.
[0016] Optionally, the initial predicted attitude information is updated based on the updated weights and actual observation data to obtain the first predicted attitude information, including: updating the pitch angle and roll angle in the initial predicted attitude information based on the updated weights and acceleration sensor measurement data in the actual observation data to obtain the updated pitch angle and updated roll angle; and updating the heading angle in the initial predicted attitude information based on the updated weights and steering wheel angle measurement data in the actual observation data to obtain the updated heading angle.
[0017] In the above embodiments of this application, by updating the pitch angle, roll angle and yaw angle of the initial predicted attitude information using data from the acceleration sensor and the steering wheel angle sensor, the accuracy and real-time performance of vehicle attitude information prediction can be ensured in the automatic parking scenario.
[0018] Optionally, the method for predicting the vehicle's pose information further includes: constructing a process noise covariance matrix, an observation noise covariance matrix, and a state estimation covariance matrix based on the vehicle's sensor measurement errors; and constructing an initial Kalman filter model based on the process noise covariance matrix, the observation noise covariance matrix, and the state estimation covariance matrix.
[0019] In the above embodiments of this application, by combining the process noise covariance matrix, the observation noise covariance matrix, and the state estimation covariance matrix, the initial Kalman filter model can make a preliminary estimate of the vehicle's attitude information, and continuously optimize this estimate through subsequent observation updates to meet the high requirements for vehicle positioning accuracy during automatic parking.
[0020] Optionally, the method for predicting the vehicle's pose information further includes: acquiring the vehicle's initial pose information at an initial moment, wherein the initial moment is the discrete moment preceding the current moment; inputting the initial pose information into an initial Kalman filter model to predict the vehicle's initial predicted pose information at the current moment; and updating the state covariance matrix in the initial Kalman filter model based on the vehicle's actual observation data at the current moment to obtain the target Kalman filter model.
[0021] In the above embodiments of this application, after predicting the vehicle's attitude information based on the initial Kalman filter model, the predicted attitude information can be updated based on the actual observation data of the vehicle to improve the accuracy of the vehicle's attitude information.
[0022] Optionally, based on the actual observation data of the vehicle at the current moment, the state covariance matrix in the initial Kalman filter model is updated to obtain the target Kalman filter model, including: determining the Kalman gain of the initial Kalman filter model based on the actual observation data; updating the state covariance matrix in the initial Kalman filter model based on the Kalman gain and the fading factor parameter to obtain the target Kalman filter model, wherein the fading factor parameter is used to control the convergence speed of the state covariance matrix during the update process of the state covariance matrix.
[0023] In the above embodiments of this application, the state covariance matrix in the initial Kalman filter model is updated by using Kalman gain and fading factor parameters to obtain the target Kalman filter model, which can improve the accuracy of the target Kalman filter model in predicting attitude information at subsequent discrete times.
[0024] Optionally, after obtaining the second predicted attitude information of the vehicle at the next discrete time, the method for predicting the vehicle's pose information further includes: updating the second predicted attitude information based on the actual observation data of the vehicle at the next discrete time to obtain the target predicted attitude information of the vehicle at the next discrete time; and updating the state covariance matrix in the target Kalman filter model based on the actual observation data at the next discrete time to obtain the updated target Kalman filter model.
[0025] In the above embodiments of this application, after obtaining the second predicted attitude information of the vehicle at the next discrete time step, the second predicted attitude information can be updated based on the actual observation data of the vehicle at the next discrete time step to obtain the target predicted attitude information of the vehicle at the next discrete time step, thereby improving the prediction accuracy of the vehicle's attitude information. Furthermore, the state covariance matrix in the target Kalman filter model can be updated based on the actual observation data of the vehicle at the next discrete time step to obtain an updated target Kalman filter model. This iterative update method can improve the prediction accuracy of the Kalman filter model.
[0026] Optionally, the method for predicting the vehicle's pose information further includes: using an updated target Kalman filter model to predict the vehicle's pose information at subsequent discrete time points.
[0027] In the above embodiments of this application, the updated target Kalman filter model can be used to predict the vehicle's attitude information at subsequent discrete moments, so as to achieve the prediction of the vehicle's attitude information at each discrete moment.
[0028] According to another aspect of the embodiments of this application, a device for predicting the pose information of a vehicle is provided. The device includes: an acquisition module, configured to acquire first predicted pose information of the vehicle at the current moment, wherein the first predicted pose information is obtained by updating initial predicted pose information of the vehicle based on actual observation data of the vehicle at the current moment, and the initial pose information is obtained by predicting the vehicle's pose using an initial Kalman filter model; a prediction module, configured to input the first predicted pose information into a target Kalman filter model to predict second predicted pose information of the vehicle at the next discrete moment, wherein the target Kalman filter model is obtained by updating the state covariance matrix in the initial Kalman filter model based on actual observation data; and inputting the first predicted pose information and the first predicted position information of the vehicle at the current moment into a kinematic model to predict the second predicted position information of the vehicle at the next discrete moment.
[0029] According to another aspect of the embodiments of this application, an electronic device is also provided, including a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement the method described above.
[0030] According to another aspect of the embodiments of this application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and the computer program is configured to perform the above-described method when run by a processor.
[0031] According to another aspect of the embodiments of this application, a computer program product is provided, including a computer program that, when executed by a processor, implements the above-described method.
[0032] It should be noted that the general descriptions above and the detailed descriptions below are merely illustrative and explanatory for this application and do not constitute a limitation thereof. Attached Figure Description
[0033] Figure 1 This is a flowchart of a method for predicting the pose information of a vehicle according to an embodiment of this application;
[0034] Figure 2 This is an interactive diagram illustrating another method for predicting vehicle pose information provided in an embodiment of this application.
[0035] Figure 3 This is a schematic diagram of a vehicle pose information prediction device provided in an embodiment of this application;
[0036] Figure 4 This is a structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0037] To make the technical problems, technical solutions, and beneficial effects solved by this application clearer, the following detailed description is provided in conjunction with embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0038] Vehicle positioning during automatic parking relies primarily on measurement data from wheel speed sensors, steering wheel angle sensors, and inertial measurement units to predict the vehicle's attitude and position. While simple filtering or compensation methods are typically used to address sensor measurement errors, these approaches struggle to effectively handle fluctuations in sensor performance in complex environments, leading to inaccurate vehicle positioning.
[0039] However, this application provides a method for predicting vehicle pose information, which involves obtaining a first predicted pose information of the vehicle at the current moment, wherein the first predicted pose information is obtained by updating the initial predicted pose information of the vehicle based on the actual observation data of the vehicle at the current moment, and the initial predicted pose information is obtained by using an initial Kalman filter model to predict the vehicle's pose; the first predicted pose information is input into a target Kalman filter model to predict a second predicted pose information of the vehicle at the next discrete moment, wherein the target Kalman filter model is obtained by updating the state covariance matrix in the initial Kalman filter model based on the actual observation data; and the first predicted pose information and the first predicted position information of the vehicle at the current moment are input into a kinematic model to predict the second predicted position information of the vehicle at the next discrete moment.
[0040] The vehicle pose information prediction method provided in this application achieves the following technical effects: When predicting vehicle pose information, by fusing observation data and predicted pose information from a Kalman filter model in real time, the vehicle pose information is updated and optimized, significantly improving the accuracy of pose prediction in automatic parking scenarios. This process not only corrects pose estimation biases caused by sensor errors, environmental factors, and low model accuracy, but also ensures that the model can more accurately reflect the vehicle's true pose by dynamically adjusting the state estimation covariance matrix of the Kalman filter model. Furthermore, by combining the optimized predicted pose information with a kinematic model to predict the vehicle's position information at the next discrete moment, this strategy significantly improves the accuracy of vehicle position information. During automatic parking, the complexity of vehicle dynamics and road conditions requires the prediction model to accurately capture and reflect the impact of changes in vehicle pose on position. By using optimized attitude information as input, the kinematic model can more accurately predict the future position of the vehicle, thereby achieving high-precision tracking of vehicle motion in automatic parking control. This improves the positioning accuracy and stability of the vehicle in complex environments, achieving the technical effect of improving the positioning accuracy of the vehicle, and thus solving the technical problem of low vehicle positioning accuracy.
[0041] Example 1
[0042] This application provides a method for predicting vehicle pose information, which can be applied to automatic parking scenarios. Please refer to... Figure 1 The method may include the following steps:
[0043] S110: Obtain the first predicted attitude information of the vehicle at the current moment, wherein the first predicted attitude information is obtained by updating the initial predicted attitude information of the vehicle based on the actual observation data of the vehicle at the current moment, and the initial predicted attitude information is obtained by using the initial Kalman filter model to predict the attitude of the vehicle.
[0044] S120: Input the first predicted attitude information into the target Kalman filter model to predict the second predicted attitude information of the vehicle at the next discrete moment of the current moment. The target Kalman filter model is obtained by updating the state covariance matrix in the initial Kalman filter model based on actual observation data. Also, input the first predicted attitude information and the first predicted position information of the vehicle at the current moment into the kinematic model to predict the second predicted position information of the vehicle at the next discrete moment.
[0045] In this embodiment, the current time can be the next discrete time after the initial time, and the initial time can be the time when the vehicle starts. At the initial time, the vehicle's attitude information can be predicted using an initial Kalman filter model to obtain the initial predicted attitude information of the vehicle at the current time. This initial Kalman filter model can be an error-state Kalman filter model, one of the core ideas of which is to combine the predicted attitude information with the actual observation information to obtain a more accurate attitude estimate.
[0046] Optionally, when relying on an initial Kalman filter model to predict the vehicle's initial attitude information, the inaccuracy of the data used in the prediction process and changes in the external environment often cause the model's predicted initial attitude information to deviate from the vehicle's actual attitude information. In this case, the initial predicted attitude information corresponding to the current moment can be updated based on the vehicle's actual observation data at the current moment, so that the updated first predicted attitude information is more accurate. Here, the actual observation data at the current moment refers to the vehicle's attitude data collected by the vehicle's sensors at the current moment.
[0047] For example, since the vehicle is in dynamic motion, after obtaining the initial predicted attitude information of the vehicle at the current moment, data from multiple sensors of the vehicle can be further collected as actual observation information, including but not limited to accelerometer and gyroscope data from the six-axis inertial measurement unit (IMU), as well as wheel speedometer and steering wheel angle information. This actual observation data reflects the vehicle's true attitude and motion state at the current moment. After obtaining the actual observation data of the vehicle at the current moment, the initial predicted attitude information can be updated based on the actual observation data of the vehicle at the current moment, thereby obtaining the first predicted attitude information of the vehicle at the current moment. This first predicted attitude information can be represented as a set of Euler angles, for example, the set of Euler angles can be the vehicle's pitch, roll, and yaw angles at the current moment.
[0048] Optionally, the initial Kalman filter model includes at least a state covariance matrix, which is a mathematical representation used in Kalman filtering to describe the uncertainty of system state estimation. As the vehicle moves and sensor data is collected, the system's uncertainty is affected by dynamic environmental changes and sensor errors. Therefore, updating the state covariance matrix in the initial Kalman filter model based on actual observation data to obtain the target Kalman filter model can improve the accuracy of the target Kalman filter model in predicting the vehicle's attitude information at the next discrete time step.
[0049] Optionally, the state covariance matrix in the initial Kalman filter model can be updated based on actual observation data and fading factor parameters to obtain the target Kalman filter model.
[0050] Optionally, after obtaining the first predicted attitude information of the vehicle at the current moment and the target Kalman filter model, the first predicted attitude information can be input into the target Kalman filter model for prediction to obtain the second predicted attitude information of the vehicle at the next discrete moment.
[0051] For example, in Kalman filtering, the prediction phase uses state transition equations. Based on this, the Euler angle quaternion transformation formula can be used to convert the vehicle's first predicted attitude information at the current moment into a quaternion state vector. This quaternion state vector is then used as the input state vector and input into the target state Kalman filter model for prediction, thereby obtaining the vehicle's second predicted attitude information at the next discrete moment.
[0052] Optionally, when using the target Kalman filter model to predict the second attitude information of the vehicle at the next discrete moment, the error of the vehicle's gyroscope signal can also be considered. That is, the error of the vehicle's gyroscope signal is also converted into a quaternion state vector, which is combined with the quaternion state vector converted from the first prediction information and input into the target Kalman filter model for prediction, so as to improve the prediction accuracy of the target Kalman filter model for the vehicle's attitude information.
[0053] Optionally, after predicting the second predicted attitude information of the vehicle at the next discrete moment in the current moment, the second predicted attitude information can also be updated according to the actual observation data of the vehicle traveling to the next discrete moment, in order to obtain more accurate vehicle attitude information, according to the method described above.
[0054] Optionally, after obtaining the second predicted attitude information of the vehicle at the next discrete moment in the current moment, the attitude information of the vehicle at subsequent discrete moments can be predicted by referring to the method described above, which will not be elaborated here.
[0055] Optionally, having described the process for predicting vehicle attitude information above, the process for predicting vehicle position information will be described next.
[0056] Optionally, when predicting the vehicle's position information, a kinematic model can be used. Here, we take predicting the vehicle's position information at the next discrete moment as an example to introduce the prediction process. The kinematic model can be represented by the vehicle's kinematic equations. By considering the vehicle's wheel speed, steering angle, and attitude information at the current moment, it predicts the vehicle's position change at the next discrete moment. For example, based on the vehicle's dynamic parameters at the current moment, such as wheel speed and steering angle, combined with the vehicle's first predicted attitude information at the current moment, the position increment (ΔX, ΔY, ΔZ) at the next moment is calculated. This position increment is calculated by projecting the displacement onto a coordinate system determined by the attitude angle corresponding to the first predicted attitude information, thus obtaining the vehicle's second predicted position information at the next moment.
[0057] Optionally, after obtaining the second predicted position information of the vehicle at the next discrete moment in the current moment, the position information of the vehicle at subsequent discrete moments can be determined by referring to this method, which will not be elaborated here.
[0058] Optionally, after obtaining the second predicted attitude information and the second predicted position information of the vehicle at the next discrete moment in the current time, the second predicted attitude information and the second predicted position information can be used as the predicted pose information of the vehicle at the next discrete moment in the current time.
[0059] In steps S110 to S120 of this application, when predicting the vehicle's attitude information, the vehicle's attitude information is updated and optimized by fusing observation data and the predicted attitude information from the Kalman filter model in real time. This significantly improves the accuracy of attitude prediction in automatic parking scenarios. This process not only corrects attitude estimation biases caused by sensor errors, environmental factors, and model inaccuracies, but also ensures that the model can more accurately reflect the vehicle's true attitude by dynamically adjusting the state estimation covariance matrix of the Kalman filter model. Furthermore, by combining the optimized predicted attitude information with the kinematic model, the vehicle's position information at the next discrete moment is predicted. This strategy significantly improves the accuracy of the vehicle's position information. During automatic parking, the complexity of the vehicle's dynamic behavior and road conditions requires the prediction model to accurately capture and reflect the impact of changes in vehicle attitude on position. By using optimized attitude information as input, the kinematic model can more accurately predict the future position of the vehicle, thereby achieving high-precision tracking of vehicle motion in automatic parking control. This improves the positioning accuracy and stability of the vehicle in complex environments, achieving the technical effect of improving the positioning accuracy of the vehicle, and thus solving the technical problem of inaccurate vehicle positioning.
[0060] The method described in this embodiment will be further described below.
[0061] As an optional implementation, step S120, which involves inputting the first predicted attitude information into the target Kalman filter model to predict the second predicted attitude information of the vehicle at the next discrete moment, includes: converting the first predicted attitude information into a first quaternion state vector; inputting the first quaternion state vector into the target Kalman filter model to predict the first predicted quaternion state vector of the vehicle at the next discrete moment; and converting the first predicted quaternion state vector to obtain the second predicted attitude information.
[0062] In this embodiment, in the automatic parking scenario, the vehicle's attitude information can be represented by a set of Euler angles (including yaw, pitch, and roll angles). However, this representation has some limitations in mathematical operations, especially in representing the continuity of rotation and avoiding singularities (such as the four-axis roll problem). Therefore, the vehicle's attitude information can be converted into a quaternion state vector for subsequent attitude prediction. It should be noted that the quaternion state vector conversion essentially encodes the information in the Euler angles into the four components of the quaternion to support the calculation of the Kalman filter model.
[0063] For example, the Euler angles corresponding to the first predicted attitude information of the vehicle at the current moment can be converted into a quaternion state vector using the Euler angle quaternion transformation formula.
[0064] Optionally, after converting the vehicle's first predicted attitude information at the current moment into a quaternion state vector, the quaternion state vector can be input into the target Kalman filter model to predict the vehicle's first predicted quaternion state vector at the next discrete moment.
[0065] Optionally, when predicting the vehicle's attitude information at the next discrete time step, the target Kalman filter model will also consider the influence of factors such as vehicle dynamics, road conditions, and sensor noise on the vehicle's attitude information at the next discrete time step. That is, the prediction here is actually to estimate the prior distribution of the vehicle's attitude information at the next discrete time step through mathematical operations on the state transition matrix and process noise in the target Kalman filter model.
[0066] Optionally, after obtaining the first predicted quaternion state vector of the vehicle at the next discrete time step through the target Kalman filter model, it is usually necessary to convert it back to Euler angle representation to make it more intuitive for vehicle control and path planning, thereby obtaining the second predicted attitude information of the vehicle at the next discrete time step. This conversion process utilizes the conversion formula from quaternions to Euler angles, ensuring both mathematical continuity and intuitive physical understanding.
[0067] In the above steps, by representing the first predicted attitude information in a quaternion state space, the target Kalman filter model can efficiently and accurately process the state prediction of vehicle attitude. Moreover, in the prediction process, it not only considers the vehicle attitude information, but also combines the influence of sensor noise and vehicle dynamics characteristics, thereby improving the accuracy of the predicted attitude information.
[0068] In automated parking scenarios, the first predicted attitude information and the first predicted position information are input into the kinematic model to predict the second predicted position information at the next discrete moment. This process is a crucial step in achieving precise vehicle navigation and positioning. This step will be described in detail below.
[0069] As an optional implementation, step S120, which involves inputting the first predicted attitude information and the first predicted position information of the vehicle at the current time into the kinematic model to predict the second predicted position information of the vehicle at the next discrete time, includes: inputting the first predicted attitude information and the first predicted position information into the kinematic model to predict the first predicted displacement, wherein the first predicted displacement is used to represent the displacement of the vehicle from the current time to the next discrete time according to the first predicted attitude information; and predicting the second predicted position information based on the position information of the vehicle at the current time and the first predicted displacement.
[0070] In this embodiment, the first predicted attitude information and the first predicted position information are optimal attitude and position estimates obtained at the current moment based on sensor data (such as inertial measurement unit, wheel speedometer, steering wheel angle, etc.) and a Kalman filter algorithm. This information reflects the vehicle's precise state at the current moment, including its heading angle, pitch angle, roll angle, and position coordinates. After obtaining the first predicted attitude information and the first predicted position information, these can be input into a kinematic model to predict the vehicle's displacement from the current moment to the next discrete moment, i.e., the first predicted displacement. This first predicted displacement includes not only the vehicle's movement in the two-dimensional plane but also the height changes in three-dimensional space due to pitch and roll.
[0071] Optionally, after obtaining the first predicted displacement, a second predicted position can be predicted based on the vehicle's current position information and the first predicted displacement. This prediction process integrates vehicle dynamics information and sensor data, enabling it to more accurately account for the vehicle's actual trajectory, especially in the complex path tracking and positioning process of automatic parking, providing a more reliable position prediction for the vehicle.
[0072] Optionally, by continuously iterating the above process, the vehicle's attitude and position information can be updated in real time. Based on this information, the vehicle's attitude and position information at each subsequent discrete moment can be predicted, thereby enabling the vehicle to continuously obtain its own precise position during automatic parking and thus achieve high-precision tracking of the parking path.
[0073] In this step, by combining the vehicle's attitude information and position information, the vehicle's position information at subsequent discrete moments can be predicted, which can greatly improve the accuracy of vehicle position prediction and ensure that the vehicle can safely and accurately park in the predetermined parking space in the automatic parking scenario.
[0074] As an optional implementation, step S110, obtaining the first predicted attitude information of the vehicle at the current moment, includes: obtaining the actual observation data of the vehicle at the current moment; determining the Kalman gain of the initial Kalman filter model based on the actual observation data, wherein the Kalman gain is used to represent the accuracy of the actual observation data; updating the initial predicted attitude information based on the Kalman gain and the actual observation data to obtain the first predicted attitude information.
[0075] In this embodiment, obtaining the vehicle's first predicted attitude information at the current moment is achieved through an iterative process. First, the vehicle's actual observation data at the current moment is obtained through the vehicle's sensors (such as a six-axis inertial measurement unit, wheel speedometer, and steering wheel angle sensor). This data includes, but is not limited to, the three-axis angular velocity of the gyroscope, the three-axis acceleration of the accelerometer, wheel speedometer information, and steering wheel angle information. This actual observation data is an important representation of the vehicle's dynamic state, such as position, speed, and attitude.
[0076] Optionally, after acquiring the actual observation data of the vehicle, the Kalman gain of the initial Kalman filter model can be determined based on this data. The Kalman gain is a key parameter that determines how the initial Kalman filter model combines predicted and actual observation information, reflecting the reliability or accuracy of the actual observation data in state estimation. Within the framework of Kalman filtering, the Kalman gain is jointly determined by the state covariance matrix, the observation model matrix, and the observation noise covariance matrix from the prediction stage. Specifically, the Kalman gain guides the filter on how to effectively fuse predicted and observed information, correcting the state estimation to achieve optimal estimation.
[0077] Optionally, after determining the Kalman gain, the initial predicted attitude information is updated using the Kalman gain and the actual observation data. This update process follows the principle of error-state Kalman filtering and involves the fusion of the predicted state and the observation data.
[0078] For example, a priori estimation of the attitude angle is performed using a quaternion state equation, i.e., updating the predicted state. Then, the prior estimate is corrected using accelerometer and steering wheel angle information. In this step, the Kalman gain calculates the optimal correction based on the difference between the current observation data and the predicted state, which is used to update the initial predicted attitude information, resulting in the first predicted attitude information.
[0079] In this step, by fusing real-time observation data with predicted information, the Kalman filter model can continuously calibrate and correct its estimation of vehicle attitude, thereby providing more stable and accurate vehicle attitude prediction in dynamic environments such as automated parking. By updating the state estimate and state covariance matrix using the latest observation data at each discrete time step, the Kalman filter ensures the real-time accuracy and long-term stability of vehicle attitude information, meeting the stringent requirements of automated parking control for the accuracy of the vehicle's relative position information.
[0080] As an optional implementation, the initial predicted attitude information is updated based on the Kalman gain and the actual observation data to obtain the first predicted attitude information, including: determining the update weight of the actual observation data based on the Kalman gain, wherein the update weight is used to represent the degree of contribution of the actual observation data to updating the initial predicted attitude information to the first predicted attitude information; and updating the initial predicted attitude information based on the update weight and the actual observation data to obtain the first predicted attitude information.
[0081] In this embodiment, the fundamental function of the Kalman gain is to balance the confidence level between the prior estimate (initial predicted attitude information) and the actual observation data. For example, if the actual observation data is highly reliable, the Kalman gain will be large, meaning that the actual observation data will have a significant impact on the initial predicted attitude information. Conversely, if the actual observation data is unreliable or the prior estimate is already very accurate, the Kalman gain will be small, thereby reducing the correction effect of the actual observation data on the initial predicted attitude information. Based on this, the update weight of the actual observation data on the initial predicted attitude information can be determined according to the determined Kalman gain, and thus the correction magnitude of the actual observation data on the prior state estimate can be determined.
[0082] Optionally, after determining the update weights of the actual observation data based on the Kalman gain, the initial predicted attitude information can be updated according to the update weights of the actual observation data and the actual observation data, thereby obtaining the first predicted attitude information.
[0083] In this step, the update weights of the actual observation data are adaptively determined by dynamically adjusting the Kalman gain, ensuring the reasonable use of the actual observation data in the initial attitude prediction and avoiding over-reliance on any single data source, thereby obtaining a more accurate and reliable attitude estimate.
[0084] As an optional implementation, the initial predicted attitude information is updated based on the update weights and actual observation data to obtain the first predicted attitude information, including: updating the pitch angle and roll angle in the initial predicted attitude information based on the update weights and acceleration sensor measurement data in the actual observation data to obtain the updated pitch angle and updated roll angle; and updating the heading angle in the initial predicted attitude information based on the update weights and steering wheel angle measurement data in the actual observation data to obtain the updated heading angle.
[0085] In this embodiment, when updating the initial predicted attitude information using actual observation data, the update process of the heading angle is performed separately from the update processes of the pitch angle and roll angle to avoid the correction process compromising the accuracy of the heading angle.
[0086] Optionally, since the accelerometer can provide acceleration information of the vehicle in three-dimensional space in actual measurement data, and this information is crucial for predicting the vehicle's pitch and roll angles, the accelerometer measurement data is used to update the state vector in the Kalman filter when the vehicle is in a dynamic driving state, especially the parts related to pitch and roll angles. By fusing the sensor measurement data with the filter's predicted state, attitude prediction deviations caused by prediction errors or sensor noise can be corrected, thereby obtaining updated pitch and roll angles.
[0087] Optionally, the heading angle update typically relies on the vehicle's steering wheel angle measurement data. This data reflects the vehicle's actual steering actions, providing crucial information about heading angle changes. During the Kalman filter's observation update phase, the steering wheel angle measurement data is also assigned corresponding update weights to correct the heading angle-related predictions in the filter. By optimizing the fusion strategy, high accuracy in heading angle prediction can be ensured even under complex driving conditions, preventing path deviations that might occur during automatic parking due to inaccurate attitude predictions.
[0088] Optionally, after updating the pitch, roll, and yaw angles in the initial attitude information, the updated pitch, roll, and yaw angles can be used as the first predicted attitude information.
[0089] In this step, by updating the pitch, roll, and yaw angles of the initial predicted attitude information using data from the accelerometer and steering wheel angle sensor, the accuracy and real-time performance of the vehicle attitude information prediction can be ensured in the automatic parking scenario.
[0090] As an optional implementation, the method for predicting the vehicle's pose information further includes: constructing a process noise covariance matrix, an observation noise covariance matrix, and a state estimation covariance matrix based on the vehicle's sensor measurement errors; and constructing an initial Kalman filter model based on the process noise covariance matrix, the observation noise covariance matrix, and the state estimation covariance matrix.
[0091] In this embodiment, the process noise covariance matrix describes the random errors that may be introduced during system state changes, i.e., the inaccuracies of the dynamic model itself. In an automated parking scenario, the vehicle's motion may be affected by various factors, such as road surface unevenness, wind resistance, tire slippage or sideslip, etc. These factors can all lead to differences between the actual vehicle motion and the model prediction. When constructing the process noise covariance matrix, it is necessary to estimate based on the statistical characteristics of these uncertainties (such as mean and variance) to ensure that the model can reasonably account for the random effects in the system's dynamic process.
[0092] Optionally, the observation noise covariance matrix reflects the uncertainty of sensor measurements, including sensor measurement errors (such as gyroscope bias and accelerometer quantization error) and the impact of environmental interference on the measurement results. In automatic parking scenarios, the measurement results of the inertial measurement unit, wheel speedometer, and steering wheel sensor will all have errors, which may be caused by inherent sensor inaccuracies, temperature changes, electromagnetic interference, and other factors. When constructing the observation noise covariance matrix, it is necessary to analyze the measurement errors of each sensor and determine the elements of the matrix based on their statistical characteristics (such as variance).
[0093] Optionally, the state estimation covariance matrix quantifies the uncertainty of the Kalman filter's estimation of the system state. In the initial stages of an automated parking scenario, due to a lack of observations, the state estimation covariance matrix is often initialized to a large value to represent high uncertainty in the initial estimate. As sensor data is continuously acquired and the Kalman filter algorithm is iteratively updated, the state estimation covariance matrix gradually decreases to reflect the improved confidence level of the filter in estimating the vehicle state.
[0094] Optionally, based on the vehicle's sensor errors, a process noise covariance matrix, an observation noise covariance matrix, and a state estimation covariance matrix can be constructed, and then an initial Kalman filter model can be constructed based on the process noise covariance matrix, the observation noise covariance matrix, and the state estimation covariance matrix.
[0095] In this step, by combining the process noise covariance matrix, the observation noise covariance matrix, and the state estimation covariance matrix, the initial Kalman filter model can make a preliminary prediction of the vehicle's attitude information. Through subsequent observation updates, this prediction result is continuously optimized to meet the high requirements for vehicle positioning accuracy during automatic parking.
[0096] As an optional implementation, the method for predicting the vehicle's pose information further includes: acquiring the vehicle's initial pose information at an initial moment, wherein the initial moment is the discrete moment preceding the current moment; inputting the initial pose information into an initial Kalman filter model to predict the vehicle's initial predicted pose information at the current moment; and updating the state covariance matrix in the initial Kalman filter model based on the vehicle's actual observation data at the current moment to obtain the target Kalman filter model.
[0097] In this embodiment, the initial time can be the time when the vehicle starts. The initial attitude information at this time includes the vehicle's heading angle, pitch angle, and roll angle. After obtaining the initial attitude information at the time of vehicle start, the initial attitude information can be input into a pre-built initial Kalman filter model, and then the initial predicted attitude information of the vehicle at the current time can be predicted based on the initial Kalman filter model.
[0098] Optionally, since the vehicle is in a dynamic driving process during parking, after obtaining the initial predicted attitude information of the vehicle at the current moment, the predicted initial attitude information can be updated based on the actual observation data of the vehicle at the current moment to obtain the first predicted attitude information of the vehicle at the current moment.
[0099] In this step, after predicting the vehicle's attitude information based on the initial Kalman filter model, the predicted attitude information can be updated based on the vehicle's actual observation data to improve the accuracy of the vehicle's attitude information.
[0100] As an optional implementation, the method for predicting the vehicle's pose information further includes: determining the Kalman gain of the initial Kalman filter model based on actual observation data; updating the state covariance matrix in the initial Kalman filter model based on the Kalman gain and the fading factor parameter to obtain the target Kalman filter model, wherein the fading factor parameter is used to control the convergence speed of the state covariance matrix during the update process of the state covariance matrix.
[0101] In this embodiment, the Kalman gain is a core parameter in the Kalman filtering algorithm, used to determine the weight of actual sensor observation data in state updates. The fading factor controls the convergence speed of the state covariance matrix during its update process, preventing over-convergence and ensuring the filter can effectively update state predictions even with slow changes in environmental conditions. In automatic parking and dynamic positioning scenarios, the introduction of the fading factor helps the filter better adapt to real-world environmental factors such as temperature changes, vehicle aging, and sensor performance fluctuations, preventing these long-term, subtle changes from being ignored and thus maintaining the accuracy of state predictions. The use of the fading factor adjusts the state covariance matrix update process, ensuring that the prediction of vehicle state does not ignore information from actual observation data.
[0102] Optionally, the state covariance matrix in the initial Kalman filter model is a key parameter for quantifying the uncertainty of the state prediction results in the filter, and its update is the core of the observation update stage in the Kalman filter algorithm. After determining the Kalman gain, the state covariance matrix in the initial Kalman model can be updated by combining actual observation data and the fading factor parameter, thereby obtaining the target Kalman filter model.
[0103] In this step, the state covariance matrix in the initial Kalman filter model is updated using the Kalman gain and fading factor parameters to obtain the target Kalman filter model, which can improve the accuracy of the target Kalman filter model in predicting attitude information at subsequent discrete times.
[0104] As an optional implementation, after obtaining the second predicted attitude information of the vehicle at the next discrete time, the method for predicting the vehicle's pose information further includes: updating the second predicted attitude information based on the actual observation data of the vehicle at the next discrete time to obtain the target predicted attitude information of the vehicle at the next discrete time; and updating the state covariance matrix in the target Kalman filter model based on the actual observation data at the next discrete time to obtain the updated target Kalman filter model.
[0105] In this embodiment, after obtaining the second predicted attitude information of the vehicle at the next discrete time step, the second predicted attitude information can be updated based on the actual observation data of the vehicle at the next discrete time step to correct the second attitude information. In addition, the target Kalman filter model can be updated based on the actual observation data at the next discrete time step to obtain the updated target Kalman filter model.
[0106] Optionally, the update process of the target Kalman filter model can be performed iteratively. That is, when predicting the attitude information at each subsequent discrete time, the target Kalman filter model can also be updated based on the actual observation data at each subsequent discrete time, so as to continuously improve the prediction accuracy of the target Kalman filter model.
[0107] As an optional implementation, the method for predicting the vehicle's pose information further includes: using an updated target Kalman filter model to predict the vehicle's pose information at subsequent discrete time points.
[0108] In this embodiment, once the initial Kalman filter model is updated by fusing actual observation data and fading factor parameters to obtain the target Kalman filter model, this target Kalman filter model will contain more accurate state estimates and an updated state covariance matrix. At subsequent discrete time points, the filter will use the latest state information and model parameters from the target model to predict the vehicle's attitude information at the next time step, thereby improving the accuracy of the vehicle's attitude prediction.
[0109] The technical solutions of the embodiments of the present invention will be illustrated below with reference to preferred embodiments.
[0110] Figure 2 This is a flowchart of another compilation task scheduling method according to an embodiment of this application. For example... Figure 2 As shown, the method includes the following steps:
[0111] Step S201: Determine the reference coordinate system to be used.
[0112] In this embodiment, the reference coordinate system used in the calculation is determined. Generally, the navigation coordinate reference system used is the Northeast-Sky reference system. In the navigation coordinate system, the front, left, and top of the vehicle body correspond to the x, y, and z axes, respectively. The Euler angle rotation sequence is yaw, pitch, and roll, corresponding to the rotations of the z, y, and x axes.
[0113] Step S202: When the vehicle is stationary, predict the initial attitude information of the vehicle.
[0114] In this embodiment, when the vehicle is initially stationary, the accelerometer observation data is used as the basis for calculating the vehicle's attitude prediction. For example, the Euler angles of the vehicle are calculated using the accelerometer observation data, which serves as the initial vehicle attitude information.
[0115] For example, the vehicle's pitch angle (pitch0) can be calculated using the following formula (1), the vehicle's roll angle (roll0) can be calculated using the following formula (2), and the vehicle's yaw angle (yaw0) can be calculated using the following formula (3), wherein the initial value of the yaw angle (yaw0) can be set to 0.
[0116]
[0117] yaw0=0 (3)
[0118] Among them, a x a y a z The acceleration of the vehicle in different directions as measured by the accelerometer.
[0119] Step S203: Convert the vehicle's initial attitude information into initial state values.
[0120] In this embodiment, in the previously determined reference frame, the initial attitude angles (Euler angles) are converted into quaternion state vectors using the Euler angle quaternion transformation formula. These quaternion state vectors are then used as the initial state values. The process noise covariance, observation noise covariance matrix, and initial state estimation covariance matrix are defined. An initial Kalman filter model is then constructed using the process noise covariance, observation noise covariance matrix, and initial state estimation covariance matrix.
[0121] Optionally, the quaternion state vector obtained using the Euler angle quaternion transformation formula can be represented as q0 = (w0, x0, y0, z0). The defined process noise covariance matrix can be represented by the following formula (4), the observation noise covariance matrix can be represented by the following formula (5), and the initial state estimation covariance matrix can be represented by the following formula (6).
[0122]
[0123] R = [ω] a (5)
[0124] P = I (6)
[0125] Step S204: Perform prior prediction on the vehicle's attitude information.
[0126] In this embodiment, a discrete-time quaternion state space is used, and the quaternion state values are represented as follows: Furthermore, considering the error of the three gyroscope signals Extending to the state space, the state space can be represented as:
[0127] Alternatively, the extended state transition matrix can be represented by the following formula (7).
[0128]
[0129] Among them, the above A 11 A 12 A 12 A 21 They are represented by the following formulas (8)-(11).
[0130]
[0131] A 12 =0(4×3) (9)
[0132] A 21 =0(3×4) (10)
[0133] A 22 =I(3) (11)
[0134] Alternatively, the Jacobian matrix corresponding to the state transition matrix can be represented by the following formula (12).
[0135]
[0136] Optionally, after obtaining the Jacobi matrix corresponding to the state transition matrix, the covariance matrix in the prior prediction can be determined by the following formula (13).
[0137]
[0138] Step S205: Update the vehicle's attitude information posteriorly.
[0139] In this embodiment, after prior prediction of the vehicle's attitude information, the prior prediction result can be updated posteriorly using the vehicle's actual observation data. During this update process, the gain of the error extended Kalman filter model can first be determined using the vehicle's actual observation data. Then, the weights for updating the vehicle's body attitude information using the vehicle's accelerometer signal can be determined using the Kalman gain. Finally, the predicted body attitude information is updated based on these weights and the vehicle's accelerometer signal.
[0140] Optionally, since the actual observation data of the vehicle may contain errors, when using the actual observation data of the vehicle to determine the gain of the error extended Kalman filter model, the credibility of the actual observation data of the vehicle can be determined first by the following formulas (14)-(16).
[0141]
[0142] Optionally, after determining the reliability of the actual observation data of the vehicle through the above formulas (14)-(16), the gain of the error extended Kalman filter model can be calculated by the following formula (17).
[0143]
[0144] Optionally, after obtaining the gain of the extended Kalman filter model, the posterior state and covariance matrix can be updated based on this gain. During the update process, the update of the yaw angle in the vehicle attitude information can be calculated separately from the updates of the pitch and roll angles. For example, since accelerometer data typically only yields pitch and roll angles, acceleration measurement data from actual observations can be used to update the pitch and roll angles. The yaw angle in the vehicle attitude information can be updated using vehicle steering wheel data from actual observations.
[0145] Optionally, to avoid compromising the accuracy of the heading angle during the correction process, the vehicle's heading angle can be defined as 0 when updating the pitch and roll angles. The correction amount M can be defined using the following formula (18), and this correction amount M can be used to define the vehicle's lateral angle as 0.
[0146]
[0147] Optionally, the posterior update state in Kalman filtering is:
[0148] Optionally, a fading factor is introduced during the update process to prevent the covariance matrix from over-converging during the update process, so that slow changes caused by environmental factors such as temperature can affect the filtering. The updated state estimation covariance matrix can be represented by the following formula (19).
[0149]
[0150] Alternatively, when updating the vehicle's heading angle, to avoid the influence of pitch and roll angles on the heading angle, a correction amount M' can also be defined to exclude the influence of the vehicle's pitch and roll angles.
[0151] Step S206: Update the error state Kalman filter model.
[0152] In this embodiment, the error state Kalman filter model can be updated based on the actual observation data of the vehicle to improve the prediction accuracy of the error state Kalman filter model, and then the updated error state Kalman filter model can be used to predict the attitude information of the vehicle at subsequent discrete times.
[0153] Step S207: Predict the vehicle's location information.
[0154] In this implementation, since the prediction is performed in discrete time, the change in the vehicle attitude angle is discrete. At each calculation moment, the vehicle attitude angle forms a defined plane in space. It is assumed that the vehicle attitude angle will not change before the next calculation moment; the vehicle will only move within the defined plane at that moment. The vehicle attitude will only change at the next calculation moment. By calculating the average wheel speed pulse of the rear wheels between two moments, the vehicle displacement can be projected onto the vehicle attitude angle plane, thus obtaining the vehicle's coordinate increment. Accumulating these coordinate increments yields the vehicle's position at each discrete moment.
[0155] In steps S201 to S207 above, high-precision real-time prediction of the vehicle's six-degree-of-freedom pose information is achieved by fusing multi-sensor data with an optimized Kalman filter algorithm. The extended error Kalman filter technique is used for accurate estimation of the vehicle's attitude angles, effectively addressing the impact of sensor errors and environmental changes on positioning. Subsequently, the heading angle estimation is further optimized using steering wheel angle information, enhancing the vehicle's dynamic response capability. Finally, by combining the optimized attitude information and wheel speed data, the vehicle's position is accurately predicted, significantly improving navigation performance during automatic parking. This overcomes the limitations of traditional two-dimensional positioning, providing more stable and accurate pose information in three-dimensional space, laying a solid foundation for path tracking and control in complex parking environments, effectively solving the problem of inaccurate positioning in automatic parking, and improving parking safety and efficiency.
[0156] Example 2
[0157] This application also provides a vehicle pose information prediction device 30 for implementing a method for predicting vehicle pose information. Please refer to [link / reference]. Figure 3 The system includes: an acquisition module 301, used to acquire the first predicted attitude information of the vehicle at the current moment, wherein the first predicted attitude information is obtained by updating the initial predicted attitude information of the vehicle based on the actual observation data of the vehicle at the current moment, and the initial attitude information is obtained by predicting the attitude of the vehicle using an initial Kalman filter model; a prediction module 302, used to input the first predicted attitude information into a target Kalman filter model to predict the second predicted attitude information of the vehicle at the next discrete moment, wherein the target Kalman filter model is obtained by updating the state covariance matrix in the initial Kalman filter model based on the actual observation data; and inputting the first predicted attitude information and the first predicted position information of the vehicle at the current moment into a kinematic model to predict the second predicted position information of the vehicle at the next discrete moment.
[0158] In the vehicle pose information prediction device described in this application, when predicting the vehicle's pose information, the vehicle's pose information is updated and optimized by fusing observation data and predicted pose information from a Kalman filter model in real time. This significantly improves the accuracy of pose prediction in automatic parking scenarios. This process not only corrects pose estimation biases caused by sensor errors, environmental factors, and model inaccuracies, but also ensures that the model can more accurately reflect the vehicle's true pose by dynamically adjusting the state estimation covariance matrix of the Kalman filter model. Furthermore, by combining the optimized predicted pose information with a kinematic model to predict the vehicle's position information at the next discrete moment, this strategy significantly improves the accuracy of the vehicle's position information. During automatic parking, the complexity of the vehicle's dynamic behavior and road conditions requires the prediction model to accurately capture and reflect the impact of changes in vehicle pose on position. By using the optimized pose information as input, the kinematic model can more accurately predict the vehicle's future position, thereby achieving high-precision tracking of vehicle motion in automatic parking control, improving the vehicle's positioning accuracy and stability in complex environments, and achieving the technical effect of improving vehicle positioning accuracy, thus solving the technical problem of inaccurate vehicle positioning.
[0159] This application also provides an electronic device 40, please refer to... Figure 4 It includes a memory 410 and a processor 420, wherein the memory 410 is used to store computer programs; and the processor 420 is used to execute the programs stored in the memory 410 to implement the vehicle pose information prediction method described in any embodiment of this application.
[0160] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method for predicting the pose information of a vehicle as described in any embodiment of this application.
[0161] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method for predicting the pose information of a vehicle.
[0162] In this application, "multiple" refers to two or more.
[0163] In this application, unless otherwise expressly defined, the terms should be interpreted broadly. For example, they may refer to a fixed connection, a detachable connection, or an integral connection; they may refer to a mechanical connection or an electrical connection; they may refer to a direct connection or an indirect connection through an intermediate medium; and they may refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0164] The terms “first,” “second,” “third,” “fourth,” etc., in this application (if present) are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0165] In this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, in this application, the character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0166] Unless otherwise specified, all steps in this application may be performed sequentially or randomly. For example, if the method includes steps A and B, it means that the method may include steps A and B performed sequentially, or it may include steps B and A performed sequentially. For example, if the method may also include step C, it means that step C may be added to the method in any order. For example, the method may include steps A, B, and C, or it may include steps A, C, and B, or it may include steps C, A, and B, etc.
[0167] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for predicting the pose information of a vehicle, characterized in that, include: The first predicted attitude information of the vehicle at the current moment is obtained, wherein the first predicted attitude information is obtained by updating the initial predicted attitude information of the vehicle based on the actual observation data of the vehicle at the current moment, and the initial predicted attitude information is obtained by using the initial Kalman filter model to predict the attitude of the vehicle. The first predicted attitude information is converted into a first quaternion state vector; The first quaternion state vector is input into the target Kalman filter model to predict the first predicted quaternion state vector of the vehicle at the next discrete time. The first predicted quaternion state vector is transformed to obtain the second predicted attitude information, wherein the target Kalman filter model is obtained by updating the state covariance matrix in the initial Kalman filter model based on the actual observation data; and the first predicted attitude information and the first predicted position information of the vehicle at the current time are input into the kinematic model to predict the first predicted displacement, wherein the first predicted displacement is used to represent the displacement of the vehicle from the current time to the next discrete time according to the first predicted attitude information; Based on the vehicle's position information at the current moment and the first predicted displacement, a second predicted position information is obtained.
2. The method according to claim 1, characterized in that, Obtain the vehicle's first predicted attitude information at the current moment, including: Obtain the actual observation data of the vehicle at the current moment; Based on the actual observation data, the Kalman gain of the initial Kalman filter model is determined, wherein the Kalman gain is used to represent the accuracy of the actual observation data; Based on the Kalman gain and the actual observation data, the initial predicted attitude information is updated to obtain the first predicted attitude information.
3. The method according to claim 2, characterized in that, Based on the Kalman gain and the actual observation data, the initial predicted pose information is updated to obtain the first predicted pose information, including: Based on the Kalman gain, the update weight of the actual observation data is determined, wherein the update weight is used to represent the degree of contribution of the actual observation data to updating the initial predicted attitude information to the first predicted attitude information; Based on the updated weights and the actual observation data, the initial predicted pose information is updated to obtain the first predicted pose information.
4. The method according to claim 3, characterized in that, Based on the updated weights and the actual observation data, the initial predicted pose information is updated to obtain the first predicted pose information, including: Based on the updated weights and the acceleration sensor measurement data in the actual observation data, the pitch angle and roll angle in the initial predicted attitude information are updated respectively to obtain the updated pitch angle and the updated roll angle; Based on the updated weights and the steering wheel angle measurement data in the actual observation data, the heading angle in the initial predicted attitude information is updated to obtain the updated heading angle.
5. The method according to claim 1, characterized in that, The method further includes: Based on the sensor measurement errors of the vehicle, process noise covariance matrix, observation noise covariance matrix and state estimation covariance matrix are constructed respectively. The initial Kalman filter model is constructed based on the process noise covariance matrix, the observation noise covariance matrix, and the state estimation covariance matrix.
6. The method according to claim 5, characterized in that, The method further includes: Obtain the initial attitude information of the vehicle at the initial moment, wherein the initial moment is the discrete moment preceding the current moment; The initial attitude information is input into the initial Kalman filter model to predict the initial predicted attitude information of the vehicle at the current time. Based on the actual observation data of the vehicle at the current moment, the initial predicted attitude information is updated to obtain the first predicted attitude information.
7. The method according to claim 6, characterized in that, Based on the actual observation data of the vehicle at the current time, the state covariance matrix in the initial Kalman filter model is updated to obtain the target Kalman filter model, including: Based on the actual observation data, the Kalman gain of the initial Kalman filter model is determined; Based on the Kalman gain and fading factor parameters, the state covariance matrix in the initial Kalman filter model is updated to obtain the target Kalman filter model. The fading factor parameters are used to control the convergence speed of the state covariance matrix during the update process.
8. The method according to claim 1, characterized in that, After obtaining the second predicted attitude information of the vehicle at the next discrete time, the method further includes: Based on the actual observation data of the vehicle at the next discrete time, the second predicted attitude information is updated to obtain the target predicted attitude information of the vehicle at the next discrete time; and... Based on the actual observation data at the next discrete time, the state covariance matrix in the target Kalman filter model is updated to obtain the updated target Kalman filter model.
9. The method according to claim 8, characterized in that, The method further includes: The updated target Kalman filter model is used to predict the vehicle's attitude information at subsequent discrete time points.
10. A device for predicting the pose information of a vehicle, characterized in that, include: The acquisition module is used to acquire the first predicted attitude information of the vehicle at the current time, wherein the first predicted attitude information is obtained by updating the initial predicted attitude information of the vehicle based on the actual observation data of the vehicle at the current time, and the initial predicted attitude information is obtained by using the initial Kalman filter model to predict the attitude of the vehicle. The prediction module is configured to convert the first predicted attitude information into a first quaternion state vector, input the first quaternion state vector into a target Kalman filter model, predict the first predicted quaternion state vector of the vehicle at the next discrete time, and transform the first predicted quaternion state vector to obtain second predicted attitude information. The target Kalman filter model is obtained by updating the state covariance matrix in the initial Kalman filter model based on the actual observation data. The module also inputs the first predicted attitude information and the first predicted position information of the vehicle at the current time into a kinematic model to predict a first predicted displacement. The first predicted displacement represents the displacement of the vehicle from the current time to the next discrete time according to the first predicted attitude information. Based on the vehicle's position information at the current moment and the first predicted displacement, a second predicted position information is obtained.
11. An electronic device, characterized in that, Including processor and memory, among which Memory, used to store computer programs; A processor for executing a program stored in memory to implement the method described in any one of claims 1-9.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method described in any one of claims 1-9.
Citation Information
Patent Citations
Vehicle trajectory prediction method and device, equipment and storage medium
CN116373849A
Vehicle three-dimensional posture positioning estimation method, system, device and storage medium
CN119779293A
