Method and device for determining posture information, electronic device and storage medium
By using longitudinally corrected particles in the particle filter algorithm to perform horizontal positioning prediction and longitudinal correction, the problem of coupling of horizontal and vertical observations in the existing technology is solved, the pose positioning accuracy is improved, and high-precision positioning of movable equipment is achieved. .
Patent Information
- Application Number
- CN202210013207.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-06
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-01-06
AI Technical Summary
The existing pose determination method based on the particle filter algorithm is coupled in the horizontal and vertical observations, resulting in low positioning accuracy. Especially when the positioning of lane lines and arrow road signs conflicts, it is difficult to achieve high-precision position tracking.
By obtaining the longitudinally corrected particle pose at the previous moment for lateral positioning prediction, the predicted particle pose is obtained, and longitudinal correction is performed based on this pose to avoid the introduction of longitudinal noise and achieve decoupling of horizontal and vertical observations, thereby improving positioning Accuracy.
It effectively solves the problem of coupling of horizontal and vertical observations, improves the pose positioning accuracy of movable devices, and ensures positioning accuracy in lane line and arrow sign observation.
Smart Images

Figure CN114355415B
Abstract
Description
Technical Field
[0001] The present disclosure relates to mobile device technology, and in particular to a method and device for determining posture information, an electronic device, and a storage medium. Background Art
[0002] When high-precision positioning of mobile devices (such as vehicles) is performed based on visual observations and high-precision maps, GNSS (Global Navigation Satellite System) is usually used to determine the global position (including position and attitude) of the mobile device in the map, and then accurate position tracking is performed based on a repeated process of prediction-correction-prediction-correction. In position tracking, a particle filter algorithm is usually used. However, the existing position determination method based on the particle filter algorithm has the problem of coupling between lateral and longitudinal observations, which easily leads to conflicts in the positioning of lane lines and arrow road signs, resulting in low positioning accuracy. Summary of the invention
[0003] In order to solve the above technical problem of coupling of lateral and longitudinal observation, the present disclosure is proposed. The embodiments of the present disclosure provide a method and device for determining posture information, an electronic device and a storage medium.
[0004] According to one aspect of an embodiment of the present disclosure, a method for determining posture information is provided, including: obtaining first-particle postures of N first particles corresponding to a movable device, N being a positive integer greater than 1; the first-particle posture is a longitudinally corrected posterior posture of the corresponding first particle obtained at a previous moment; based on the first-particle posture of each of the first particles, a lateral positioning prediction is performed on the posture of each of the first particles at a current moment to obtain a first predicted posture corresponding to each of the first particles; based on the first predicted posture corresponding to each of the first particles, a first estimated posture of the movable device is determined; and the first estimated posture of the movable device is used as the posture information of the movable device at the current moment.
[0005] According to another aspect of an embodiment of the present disclosure, a device for determining posture information is provided, including: a first acquisition module, used to acquire first-particle postures of N first particles corresponding to a movable device, N being a positive integer greater than 1; the first-particle posture is a longitudinally corrected posterior posture of the corresponding first particle obtained at a previous moment; a first processing module, used to perform lateral positioning prediction on the posture of each first particle at a current moment based on the first-particle posture of each first particle, and obtain a first predicted posture corresponding to each first particle; a second processing module, used to determine a first estimated posture of the movable device based on the first predicted posture corresponding to each first particle; and a third processing module, used to use the first estimated posture of the movable device as the posture information of the movable device at the current moment.
[0006] According to another aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute the method for determining posture information described in any of the above embodiments of the present disclosure.
[0007] According to another aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing executable instructions of the processor; the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method for determining posture information described in any of the above embodiments of the present disclosure.
[0008] Based on the method and device for determining posture information, electronic device and storage medium provided by the above-mentioned embodiments of the present disclosure, a lateral positioning prediction is first performed to obtain a predicted particle posture, and then the posture of a movable device is estimated based on the predicted particle posture. In the longitudinal direction, a longitudinal posture correction amount is determined based on the estimated posture of the movable device, which is used to perform longitudinal correction on the particles in the lateral positioning prediction. The influence of the longitudinal correction is introduced at the next moment, and what is introduced at the current moment is the influence of the longitudinal correction at the previous moment. Since the lateral positioning prediction process performs lateral positioning prediction based on the longitudinally corrected particles at the previous moment without introducing longitudinal noise, the distribution of particles in the longitudinal direction is avoided, so that each particle is different only in the lateral direction. The longitudinal correction is performed subsequently, thereby realizing the decoupling of lateral correction and longitudinal correction, and effectively solving the problem of low positioning accuracy caused by the coupling of lateral and longitudinal observations in the prior art.
[0009] The technical solution of the present disclosure is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The above and other purposes, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. In the drawings, the same reference numerals generally represent the same components or steps.
[0011] Figure 1 This is an exemplary application scenario of the method for determining posture information provided by the present disclosure;
[0012] Figure 2 is a flowchart of a method for determining posture information provided by an exemplary embodiment of the present disclosure;
[0013] Figure 3 is a flowchart of a method for determining posture information provided by another exemplary embodiment of the present disclosure;
[0014] Figure 4 is a flowchart of step 301 provided by an exemplary embodiment of the present disclosure;
[0015] Figure 5 is a flowchart of step 203 provided by an exemplary embodiment of the present disclosure;
[0016] Figure 6 is a flowchart of a method for determining posture information provided by another exemplary embodiment of the present disclosure;
[0017] Figure 7 is a schematic diagram of a first grid coordinate area provided by an exemplary embodiment of the present disclosure;
[0018] Figure 8 is a flowchart of a method for determining posture information provided by another exemplary embodiment of the present disclosure;
[0019] Fig. 9 It is a schematic diagram of the principle of grid-based particle swarm resampling provided by an exemplary embodiment of the present disclosure;
[0020] Fig.10 A schematic diagram of the principle of grid-based particle swarm resampling provided by another exemplary embodiment of the present disclosure;
[0021] Fig.11 is a flowchart of step 3011 provided by an exemplary embodiment of the present disclosure;
[0022] Fig.12 is a flowchart of step 3015 provided by an exemplary embodiment of the present disclosure;
[0023] Fig.13is a flowchart of step 2031 provided by an exemplary embodiment of the present disclosure;
[0024] Fig.14 is a flowchart of a method for determining posture information provided by another exemplary embodiment of the present disclosure;
[0025] Fig.15 It is a schematic diagram of the principle of lateral and longitudinal correction of a particle group provided by an exemplary embodiment of the present disclosure;
[0026] Fig.16 is a schematic diagram of the structure of a device for determining posture information provided by an exemplary embodiment of the present disclosure;
[0027] Fig.17 is a structural schematic diagram of a device for determining posture information provided by another exemplary embodiment of the present disclosure;
[0028] Fig.18 is a structural schematic diagram of a first longitudinal processing module 505 provided by an exemplary embodiment of the present disclosure;
[0029] Fig.19 is a structural schematic diagram of a second processing module 503 provided by an exemplary embodiment of the present disclosure;
[0030] Fig. 20 is a structural schematic diagram of a device for determining posture information provided by yet another exemplary embodiment of the present disclosure;
[0031] Fig.21 It is a structural schematic diagram of an application embodiment of the electronic device disclosed in the present invention. DETAILED DESCRIPTION
[0032] Below, the exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described here.
[0033] It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
[0034] Those skilled in the art can understand that the terms "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor indicate the necessary logical order between them.
[0035] It should also be understood that in the embodiments of the present disclosure, “plurality” may refer to two or more than two, and “at least one” may refer to one, two, or more than two.
[0036] It should also be understood that any component, data or structure mentioned in the embodiments of the present disclosure can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0037] In addition, the term "and / or" in the present disclosure is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present disclosure generally indicates that the associated objects before and after are in an "or" relationship.
[0038] It should also be understood that the description of the various embodiments in the present disclosure focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0039] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0040] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0041] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0042] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0043] The embodiments of the present disclosure can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with many other general or special computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers, etc. include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above systems, etc.
[0044] Electronic devices such as terminal devices, computer systems, servers, etc. can be described in the general context of computer system executable instructions (such as program modules) executed by computer systems. Generally, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.
[0045] SUMMARY OF THE DISCLOSURE
[0046] In the process of implementing the present disclosure, the inventors discovered that when performing high-precision positioning of a movable device (such as a vehicle) based on visual observation and a high-precision map, a particle filtering algorithm is usually used to determine the position and posture of the movable device. However, the existing position and posture determination method based on the particle filtering algorithm, during prediction, introduces translational component noise and rotational noise based on the motion model to characterize the cumulative error of the motion. The translational component noise includes lateral noise and longitudinal noise, which leads to the coupling of lateral and longitudinal observations, which can easily lead to conflicts in the positioning of lane lines and arrow road signs, resulting in low positioning accuracy.
[0047] Exemplary Overview
[0048] Figure 1 This is an exemplary application scenario of the method for determining posture information provided by the present invention.
[0049] For the high-precision positioning scenario of movable equipment, taking a vehicle as an example, when the vehicle needs to be positioned with high precision, it is necessary to first determine the initial posture of the vehicle in the navigation map, and then perform high-precision positioning in the subsequent movement of the vehicle based on the initial posture. During the movement, the method for determining the posture information provided by the embodiment of the present disclosure can be used to decouple the lateral posture correction and the longitudinal posture correction. At the current moment, the lateral positioning prediction is performed based on the longitudinally corrected particles at the previous moment, and the posture of the vehicle at the current moment is determined based on the lateral corrected particle posture. At the same time, the lateral corrected particle posture is longitudinally corrected at the current moment and used as the particle at the next moment, thereby avoiding the coupling of lateral and longitudinal observations and improving the positioning accuracy of the posture. Figure 1In, x and y represent the x-axis and y-axis of the vehicle's coordinate system, respectively, the y direction is horizontal, and the x direction is vertical. When positioning the vehicle, it is necessary to combine the observation results of the lane lines and arrow landmarks. The observation results refer to the matching results of the lane lines and arrow landmarks identified by collecting environmental images through the camera and the lane lines and arrows in the map. Among them, the lane lines mainly affect the lateral correction, and the arrows mainly affect the longitudinal correction. The embodiment of the present disclosure uses the observation of the lane lines and the observation of the arrows for lateral correction and longitudinal correction respectively, thereby decoupling the lateral observation and the longitudinal observation, avoiding the situation where the lane line observation is deteriorated for the sake of better arrow observation, or the arrow observation is deteriorated for the sake of better lane line observation. In the embodiment of the present disclosure, the posture includes three degrees of freedom: the lateral coordinate component y, the longitudinal coordinate component x, and the heading angle θ.
[0050] Exemplary Methods
[0051] Figure 2 is a flow chart of a method for determining posture information provided by an exemplary embodiment of the present disclosure. This embodiment can be applied to electronic devices, such as a vehicle-mounted computing platform, such as Figure 2 As shown, the following steps are included:
[0052] Step 201, obtaining first particle poses of N first particles corresponding to the movable device, where N is a positive integer greater than 1; the first particle pose is a longitudinally corrected posterior pose of the corresponding first particle obtained at a previous moment.
[0053] The movable device may be any movable device that needs to be positioned, such as a vehicle or a robot. The first particle positions of the N first particles may be the positions of the N first particles after longitudinal correction at the previous moment.
[0054] Step 202 , based on the first particle posture of each first particle, perform lateral positioning prediction on the posture of each first particle at the current moment to obtain the first predicted posture corresponding to each first particle.
[0055] The lateral positioning prediction means that the longitudinal correction is not considered, that is, in the prediction process, the longitudinal noise of the translation component is not introduced into the motion model. The motion model can adopt an odometer-based motion model (Odometry Sample Motion Model) or other implementable motion models, which are not limited in this disclosure.
[0056] For example, taking a first particle as an example, the first particle posture of the first particle is the original posture. Based on the odometer information, the translation distance and rotation angle in the period from the previous moment to the current moment can be determined. The original posture, the translation distance and the rotation angle are input into the motion model, and the first predicted posture corresponding to the first particle can be output.
[0057] Step 203: determining a first estimated position and posture of the movable device based on the first predicted position and posture corresponding to each first particle.
[0058] After obtaining the first predicted postures corresponding to the first particles, the first estimated posture of the movable device can be determined based on the first predicted postures corresponding to the first particles. Specifically, it is necessary to perform a weighted average of the first predicted postures based on the weights corresponding to the first particles as the first estimated posture of the movable device, wherein the weights corresponding to the first particles used in the weighted average may be weights updated based on certain rules.
[0059] Step 204: Using the first estimated position and posture of the movable device as the position and posture information of the movable device at the current moment.
[0060] Since the current moment is based on the particle swarm that was longitudinally corrected at the previous moment to perform lateral correction, the correction at the current moment comprehensively considers the effects of longitudinal correction and lateral correction. The first estimated posture has high accuracy in both the horizontal and vertical directions. The first estimated posture is used as the posture information of the movable device in the map at the current moment, which can achieve high-precision positioning of the movable device.
[0061] In the disclosed embodiment, the longitudinal correction at each moment is performed after the lateral correction. It can be understood that the lateral correction and the longitudinal correction are cyclic iterative processes over time. The operations related to the above steps also exist at the previous moment. After the first estimated posture of the movable device is obtained in step 203 at the previous moment, each particle is longitudinally corrected based on the first estimated posture to obtain the posture after longitudinal correction, which is used as the first particle posture of the N first particles obtained at the current moment.
[0062] The method for determining the posture information provided by the present embodiment is as follows: at the current moment, based on the particle group after the longitudinal correction at the previous moment, a lateral positioning prediction is first performed to obtain the predicted particle posture, and then the posture of the movable device is estimated based on the predicted particle posture. In the longitudinal direction, the influence of the longitudinal correction at the previous moment is introduced at the current moment. Since the lateral positioning prediction is performed based on the particles after the longitudinal correction at the previous moment, no longitudinal noise is introduced, thus avoiding the distribution of particles in the longitudinal direction, so that each particle is different only in the transverse direction. The longitudinal correction is performed subsequently, thus realizing the decoupling of the lateral correction and the longitudinal correction, and effectively solving the problem of low positioning accuracy caused by the coupling of lateral and longitudinal observations in the prior art.
[0063] In an alternative example, Figure 32 is a flow chart of a method for determining posture information provided by another exemplary embodiment of the present disclosure. In this example, after determining the first estimated posture of the movable device based on the first predicted postures corresponding to the first particles in step 203, the method of the present disclosure further includes:
[0064] Step 301: Determine a first longitudinal posture correction amount based on a first estimated posture of a movable device.
[0065] Step 302 : performing longitudinal correction on the first predicted posture of each first particle based on the first longitudinal posture correction amount to obtain the posterior posture of each first particle at the current moment.
[0066] Specifically, after performing lateral correction at the current moment, a first longitudinal posture correction amount for longitudinal correction is determined based on the first estimated posture of the movable device, so as to perform longitudinal correction on the first predicted posture corresponding to each first particle, as the posterior posture corresponding to each first particle at the current moment, as the basis for the processing flow at the next moment, or as the basis for the processing flow at the next moment after resampling, thereby introducing the influence of the longitudinal correction at the current moment at the next moment.
[0067] The present invention determines the current posture of a movable device based on the posture of a particle group after the lateral correction at the current moment, and at the same time performs longitudinal correction on the particle group after the lateral correction, so that the influence of the longitudinal correction takes effect at the next moment. While realizing lateral and longitudinal decoupling, the longitudinal correction at the current moment is prevented from reducing the lateral positioning accuracy, so as to ensure the lateral positioning accuracy.
[0068] In an alternative example, Figure 4 301 is a flowchart of step 301 provided by an exemplary embodiment of the present disclosure. In this example, step 301 may specifically include the following steps:
[0069] Step 3011, taking the first estimated pose as the center, sampling is performed in the longitudinal direction to obtain the second particle poses of M second particles, where M is a positive integer greater than 1.
[0070] Specifically, with the first estimated pose as the center, certain particles can be sampled forward and backward at fixed intervals in the longitudinal direction, so as to obtain the second particle pose including the M second particles in the center. The specific interval can be set according to actual needs, and the embodiment of the present disclosure does not limit it.
[0071] Step 3012, obtaining the priori weights corresponding to the second particles based on Gaussian distribution.
[0072] Exemplarily, a Gaussian distribution is established with the first estimated pose as the center to determine the prior weight corresponding to each second particle, as follows:
[0073]
[0074] in, represents the prior weight of the sampled ith second particle, i = -H, -(H-1), ..., 0, 1, ..., H, H is a positive integer, M = 2H+1, x represents the longitudinal distance between the ith second particle and the center, dx represents the sampling interval, mean represents the mean, and σ represents the variance.
[0075] Optionally, the number of particles sampled forward and the number of particles sampled backward with the first estimated posture as the center may also be different, for example, i = -S, -(S-1), ..., 0, 1, ..., H, S, H are all positive integers, M = S+H+1, and the specific setting can be based on actual needs and is not limited in the present disclosure.
[0076] Step 3013, obtaining the arrow sign observation results and posture measurement results corresponding to each second particle.
[0077] Among them, the arrow sign observation result corresponding to a second particle includes the observation probability of the arrow sign under the second particle posture corresponding to the second particle (referred to as the arrow observation probability); the posture measurement result corresponding to a second particle includes the observation probability of the posture of the movable device under the second particle posture corresponding to the second particle (referred to as the posture observation probability). Taking the arrow sign observation result corresponding to a second particle as an example, the second particle posture corresponding to the second particle is used as the origin of the self-coordinate system of the movable device, and the arrow sign in the self-coordinate system of the movable device obtained by image recognition is converted to the map coordinate system, or the arrow element in the map is converted to the self-coordinate system of the movable device, that is, the observed arrow sign is matched with the arrow element of the map in the same coordinate system, and the arrow sign observation result corresponding to the second particle is obtained based on the matching result. The better the matching degree, the higher the score, and the greater the observation probability of the arrow sign. The specific score calculation function can be set according to actual needs, and the present disclosure does not limit it. The posture measurement result corresponding to the second particle is determined based on the matching result between the GNSS posture of the movable device and the second particle posture corresponding to the second particle, and specifically, is determined based on the distance between the GNSS posture of the movable device and the second particle posture. The greater the distance, the smaller the posture observation probability included in the posture measurement result.
[0078] Step 3014, based on the arrow sign observation results and posture measurement results corresponding to each second particle, the prior weights corresponding to each second particle are updated to obtain the first weights corresponding to each second particle.
[0079] Optionally, for a second particle, the product of the prior weight of the second particle and the arrow observation probability and the posture observation probability can be used as the first weight corresponding to the second particle.
[0080] For example,
[0081] in, That is, it represents the first weight corresponding to the i-th second particle, That is, it represents the prior weight of the second particle of the i-th sample, represents the posture observation probability corresponding to the i-th second particle, Represents the arrow observation probability corresponding to the i-th second particle, i=-H, -(H-1), ..., 0, 1, ..., H, H is a positive integer, M=2H+1.
[0082]
[0083]
[0084] Among them, ∝ means proportional, exp() means exponential function, represents the GNSS pose observed at time t, Indicates that From the UTM (Universal Transverse Mercator Grid System) to the map coordinate system, (x, y) represents the translation component of the pose X. In this example, X refers to the second particle pose corresponding to the i-th second particle. Indicates the calculation of the matching score corresponding to the i-th second particle, f ARROW () means extracting arrow road signs from the semantically segmented image, π(, X) means projecting the arrows to the map coordinate system assuming that the origin of the self-coordinate system of the movable device is X. In this example, X is the second particle pose corresponding to the i-th second particle. d(I t ) represents the semantic segmentation of the image collected at time t, Represents an arrow element in a map.
[0085] Step 3015: Determine a first longitudinal posture correction amount based on the first weights corresponding to the second particles.
[0086] Optionally, the first longitudinal posture correction amount can be obtained by density estimation based on the first weights corresponding to the second particles.
[0087] The present invention obtains a longitudinal posture correction amount by longitudinally sampling M second particles, combining arrow observation and posture measurement, and acts on each first particle. The longitudinal correction is performed on the first predicted posture corresponding to each first particle and then used for positioning at the next moment, thereby applying the influence of the longitudinal correction at the current moment to the next moment, effectively realizing the decoupling of the lateral and longitudinal corrections and improving the lateral and longitudinal positioning accuracy.
[0088] In an alternative example, Figure 5 203 is a flowchart of step 203 provided by an exemplary embodiment of the present disclosure. In this example, step 203 may specifically include the following steps:
[0089] Step 2031, based on the first predicted position and posture corresponding to each first particle, the second weight corresponding to each first particle is updated to obtain the third weight corresponding to each first particle; the second weight corresponding to a first particle is the priori weight of the first particle.
[0090] Among them, the prior weight of the first particle can be the weight after longitudinal correction at the previous moment, which can be set according to actual needs. Taking the update of the second weight of a first particle as an example, it means taking the first predicted posture of the first particle as the origin of the self-coordinate system of the movable device to observe the lane line, and updating the second weight of the first particle based on the lane line observation result to obtain the third weight corresponding to the first particle.
[0091] Step 2032: Determine a first estimated position and posture of the movable device based on the first predicted position and posture corresponding to each first particle and the third weight.
[0092] Specifically, a weighted average is performed on each of the first predicted postures based on the third weights respectively corresponding to each of the first particles, and the obtained result is used as the first estimated posture of the movable device.
[0093]
[0094] in, That is, it represents the first estimated pose of the movable device at the current time (time t), represents the third weight of the jth first particle at time t, Represents the first predicted pose corresponding to the j-th first particle.
[0095] Optionally, the third weights corresponding to the first particles may be normalized first, and then the first predicted postures may be weighted based on the normalized weights.
[0096] In an optional example, the first estimated position and posture of the movable device may also be determined based on some first particles among the N first particles whose third weights are greater than a certain threshold. For example, if there are 20 first particles in total, and the weights of two of them are very small and less than a minimum threshold, then these two particles will not be considered when performing weighted averaging. The specific minimum threshold can be set according to actual needs.
[0097] The present invention realizes updating of the weight of each first particle based on the predicted posture of lateral positioning prediction, and then performs weighted averaging of the first predicted posture of each first particle based on the updated weight to determine the posture of the movable device. Since the particle group posture based on which the lateral positioning prediction is based is the posture after longitudinal correction at the previous moment, the lateral prediction does not introduce longitudinal noise, so that the update of the particle group weight comprehensively considers the influence of longitudinal and lateral noise, and will not be coupled with each other, so that the posture information of the movable device obtained has high accuracy in both the lateral and longitudinal directions.
[0098] In an alternative example, Figure 6 2 is a flow chart of a method for determining posture information provided by another exemplary embodiment of the present disclosure. In this example, after step 202, the method of the present disclosure further includes:
[0099] Step 4011, based on the posture information of the movable device at the previous moment and the odometer information at the current moment, determine the second predicted posture of the movable device at the current moment.
[0100] Among them, the posture information of the movable device at the previous moment refers to the estimated posture after lateral correction obtained by the processing flow at the previous moment, which is consistent with the first estimated posture at the current moment. The odometer information includes the translation distance and rotation angle of the movable device from the previous moment to the current moment. Based on the posture information of the movable device at the previous moment and the odometer information at the current moment, the posture of the movable device at the current moment can be predicted by using the pre-acquired motion model to obtain the second predicted posture of the movable device at the current moment. Among them, the motion model can adopt an odometer-based motion model (Odometry Sample Motion Model). Consistent with the particle prediction, in the adopted motion model, the longitudinal noise parameter is 0, that is, no longitudinal noise is introduced, and only lateral positioning prediction is performed.
[0101] Step 4012, establishing a first grid coordinate area based on the second predicted posture; the first coordinate axis of the first grid coordinate area is the lateral direction of the posture, and the second coordinate axis of the first grid coordinate area is the heading angle direction of the posture.
[0102] The first grid coordinate area includes N cells, N=N y *N θ , Ny and N θ Respectively represent the number of cells in the first grid coordinate area in the lateral direction and the heading angle direction.
[0103] Among them, the abscissa and heading angle of the second predicted posture are taken as the center of the first grid coordinate area, and the size of the first grid coordinate area can be determined according to the abscissa and heading angle of the first predicted posture corresponding to each first particle. For example, the two-dimensional coordinate points composed of the abscissa and heading angle of most of the first particles are in the first grid coordinate area as a principle, and the specific setting can be based on actual needs.
[0104] For example, the cell step sizes in the y and θ directions are set to d y and d θ Establish the first grid coordinate area, where each cell is represented by [m, n], including the following cases:
[0105] If N y and N θ are even numbers, then
[0106] If N y and N θ are all odd numbers, then
[0107] If N y and N θ If one is an odd number and the other is an even number, then m and n are determined according to the above two situations, and the details will not be repeated here.
[0108] Correspondingly, the coordinate range of each cell in the first grid coordinate area can be determined based on the cell position [m, n], N y and N θ The specific situation, and the step size d in the y and θ directions of each cell y and d θ To confirm, no further details are given.
[0109] For example, when N y and N θ When all are even numbers, the cell [m, n] = [1, 2], then the coordinate range of the cell [m, n] is:
[0110] Y direction: [d y *(m-1), d y *m]=[0,d y ]
[0111] θ direction: [d θ *(n-1), d θ *n]=[d θ, 2d θ ]
[0112] Step 4013, based on the first predicted postures corresponding to the first particles, each first particle is mapped to a first grid coordinate region to obtain a cell to which each first particle belongs.
[0113] Specifically, the coordinates of each first particle in the cell are the transformation of the first predicted posture of the first particle relative to the prior posture of the first particle (that is, the posture after longitudinal correction at the previous moment), as follows:
[0114]
[0115] in, That is, it represents the coordinates of the jth first particle in the first grid coordinate area, represents the priori posture of the movable device at the current moment (i.e., time t), that is, the second predicted posture obtained by predicting the posture of the movable device at the current moment based on the motion model, Represents the first predicted position of the jth first particle at the current moment.
[0116] make definition
[0117] c[0]=(a[0]-b[0])*cos(b[2])+(a[1]-b[1])*sin(b[2])
[0118] c[1]=(a[1]-b[1])*cos(b[2])-(a[1]-b[1])*sin(b[2])
[0119] c[2]=a[2]-b[2]
[0120] It can be seen that the coordinates in the first grid coordinate area obtained by the transformation also include three degrees of freedom, namely the longitudinal coordinate c[0], the transverse coordinate c[1] and the heading angle coordinate c[2]. When mapping each first particle to the first grid coordinate area, mapping can be performed based on the transverse coordinate and the heading angle coordinate. When merging particles in cells, since the inverse transformation of the above transformation is required after the merging, the coordinates of the three degrees of freedom need to be merged.
[0121] For example, Figure 7 : is a schematic diagram of a first grid coordinate area provided by an exemplary embodiment of the present disclosure. Wherein, y represents the lateral direction of the movable device in the coordinate system, and θ represents the heading angle direction. y =6, N θ=4 as an example, that is, the particle group includes 20 first particles (black dots in the figure), which are mapped to the first grid coordinate area. The mapping result is that one or more first particles may fall into some cells, while no first particles fall into other cells, and some first particles may fall outside the first grid coordinate area.
[0122] Step 4014, based on the cells to which each first particle belongs, determining the third particle corresponding to each cell and the third particle posture corresponding to each third particle.
[0123] Determining the third particle corresponding to each cell means that, based on the cell to which each first particle belongs, each cell is represented by a third particle, and whether there is a first particle in the cell or not, it is converted into a third particle. The specific conversion method can be set according to actual needs. For example, for a cell with multiple first particles, multiple first particles can be merged, and the merged result is used as the third particle corresponding to the cell. For a cell without a first particle, a particle can be added as the third particle corresponding to the cell according to the distance between the cell and the center.
[0124] Exemplarily, the third particle position of the only third particle in the merged cell is:
[0125]
[0126]
[0127] The weight of the jth third particle obtained after merging is:
[0128]
[0129] in, represents the third particle position of the third particle corresponding to the jth cell after particleization, K represents the number of particles contained in the jth cell, represents the coordinates of the particles in the jth cell after merging in the grid coordinate system, represents the weight of the kth particle distributed in the jth cell (here is the normalized weight value), represents the coordinates of the kth particle distributed in the jth cell in the grid coordinate system, represents the second predicted position of the mobile device at the current moment. If the kth particle is the first particle with the first predicted position, then Equal to the posterior weight of the kth first particle at the previous moment is the coordinate of the first grid coordinate area after the above transformation. If the kth particle is a supplementary particle, then is equal to the weight set for the supplementary particle, The lateral coordinates and heading angle coordinates in are the center coordinates of the cell to which the particle belongs. The vertical coordinate in is the initialization coordinate. The specific initialization coordinate can be set according to actual needs, such as setting it to 0, and there is no specific limitation.
[0130] Accordingly, step 203 determines the first estimated position and posture of the movable device based on the first predicted position and posture corresponding to each first particle, including:
[0131] Step 4015: Determine a first estimated position and posture of the movable device based on the third particle positions and postures respectively corresponding to the third particles.
[0132] After obtaining the third particle pose of the third particle corresponding to each cell, it is equivalent to resampling the particle group of the first particle, so that the particle distribution of the particle group is stable, and then based on the third particle pose corresponding to each third particle, the first estimated pose of the movable device is determined.
[0133] Since the aggregation and dispersion of particles may vary greatly during each prediction and observation process, in order to improve the stability of particle distribution, the present invention grids the first particles and implements resampling so that the particle group is stably distributed in the first grid coordinate area, which can effectively solve the problem of unstable particle distribution.
[0134] In an optional example, before mapping each first particle to a first grid coordinate region based on the first predicted poses corresponding to each first particle in step 4013 and obtaining the cell to which each first particle belongs, the method may further include:
[0135] For each first particle, multiple sampling is performed, for example, h sampling is performed, and finally h*N new first particles and the new first predicted postures corresponding to each new first particle can be obtained. Accordingly, step 4013 can specifically include mapping each new first particle to the first grid coordinate area based on the new first predicted posture corresponding to each new first particle, and obtaining the cell to which each new first particle belongs. Subsequent related steps are all processed based on the new first particles, and finally the third particles corresponding to each cell and the third particle postures corresponding to each third particle are obtained. The specific process is similar to the gridding of the first particles mentioned above, and the only difference is that the number of particles increases, which will not be repeated here. Among them, the multiple sampling method for any first particle can be: different random noises are introduced by each sampling to obtain different h new first particles corresponding to the first particle.
[0136] By sampling N first particles multiple times, the number of particles is expanded, and a gridding process is performed based on the expanded particle group, the positioning accuracy is improved while ensuring the stability of particle distribution.
[0137] In an alternative example, Figure 8 4 is a flow chart of a method for determining posture information provided by another exemplary embodiment of the present disclosure. In this example, after mapping each first particle to a first grid coordinate area based on the first predicted posture corresponding to each first particle in step 4013 and obtaining the cell to which each first particle belongs, the method of the present disclosure further includes:
[0138] Step 4021, deleting the first particles mapped outside the first grid coordinate area to obtain remaining first particles.
[0139] Step 4022: Add a fourth particle to the center of each cell in the first grid coordinate area, and each fourth particle corresponds to a fourth weight.
[0140] Correspondingly, step 4014 determines the third particles corresponding to each cell and the third particle positions corresponding to each third particle based on the cells to which each first particle belongs, including:
[0141] Step 40141, based on the cells to which each remaining first particle belongs, the second weights corresponding to each remaining first particle, and the fourth weights corresponding to each fourth particle, the particles in each cell are merged to obtain the third particles corresponding to each cell and the third particle poses corresponding to each third particle.
[0142] Specifically, since some first particles may be mapped outside the first grid coordinate area, and some cells may not have first particles falling into them, in order to further improve the stability of particle distribution, at each moment, the first particles mapped outside the first grid coordinate area are deleted to obtain the remaining first particles. For the cells where no first particles fall into them, a fourth particle is added to the center of each cell in the first grid coordinate area. Each fourth particle corresponds to a fourth weight. The fourth weight can be set according to actual needs. For example, a very small weight can be set for it, such as 1 / (N y *N θ ) / 100. The fourth particle pose corresponding to each fourth particle is the pose corresponding to the center of the corresponding cell. After adding the fourth particle, each cell has a particle distribution, and then based on the remaining first particles and the added fourth particles, the cell is particleized, and each cell is converted into a corresponding third particle, thereby obtaining N third particles, which are stably distributed in each cell.
[0143] For example, Fig. 91 is a schematic diagram of the principle of grid-based particle swarm resampling provided by an exemplary embodiment of the present disclosure, wherein each first particle is represented by a black dot, the added fourth particle is represented by a white dot, and each third particle obtained by cell particleization is represented by a gray dot.
[0144] In an optional example, the fourth particle may be added only to the cell where the first particle does not fall, and other cells may not be added. Accordingly, in order to ensure fairness among the cells, other cells may be increased with a certain weight, which may be set specifically according to actual needs.
[0145] For example, Fig.10 : is a schematic diagram of the principle of grid-based particle swarm resampling provided by another exemplary embodiment of the present disclosure. Among them, for each first particle, three new first particles corresponding to each first particle are obtained by sampling five times, so that 3*N new first particles are mapped to the first grid coordinate area, and N is still 20 as an example. The new first particles are represented by black dots, the added fourth particles are represented by white dots, and the third particles obtained by unit cell particleization are represented by gray dots.
[0146] In an alternative example, Fig.11 3011 is a flowchart of step 3011 provided by an exemplary embodiment of the present disclosure. In this example, step 3011 may specifically include the following steps:
[0147] Step 30111, taking the first estimated posture as the central particle, sample H fifth particles forward and backward in the longitudinal direction according to the first interval, obtain 2H fifth particles and the second interval between each fifth particle and the first estimated posture, where H is a positive integer.
[0148] Step 30112: Determine the pose of each fifth particle based on the first estimated pose and the second interval between each fifth particle and the first estimated pose.
[0149] Step 30113, taking the central particle and each fifth particle as the second particle, obtaining the second particle posture of M second particles, M=2H+1.
[0150] Exemplarily, the first estimated pose is expressed as The first interval is represented by d, and the corresponding position increment is D = (d, 0, 0), then the position of each fifth particle obtained by sampling is:
[0151]
[0152] in, That is, it represents the position of the i-th fifth particle.
[0153] make (D*i)=b, definition
[0154] c[0]=a[0]+b[0]*cos(a[2])-b[1]*sin(a[2])
[0155] c[1]=a[1]+b[0]*sin(a[2])+b[1]*cos(a[2])
[0156] c[2]=a[2]+b[2]
[0157] In an alternative example, Fig.12 3015 is a flowchart of step 3015 provided by an exemplary embodiment of the present disclosure. In this example, step 3015 determines the first longitudinal posture correction amount based on the first weights corresponding to the second particles, including:
[0158] Step 30151: Determine the sum of the first weights of the second particles based on the first weights corresponding to the second particles.
[0159] Step 30152: Determine the longitudinal correction amount based on the sum of the first weights of the second particles, the first weights corresponding to the second particles, and the second interval between the second particles and the first estimated posture.
[0160] For example, the longitudinal correction amount d correct It is expressed as:
[0161]
[0162] in, That is, it represents the first weight corresponding to the i-th second particle, represents the sum of the first weights of the second particles, d i represents the second distance between the i-th second particle and the first estimated pose.
[0163] Step 30153, determine the corresponding posture increment based on the longitudinal correction amount as the first longitudinal posture correction amount.
[0164] For example, based on the longitudinal correction amount d correct The first longitudinal posture correction D correct It is expressed as:
[0165] D correct =(d correct ,0,0)
[0166] After the first longitudinal posture correction value is obtained, the first predicted posture of each first particle is longitudinally corrected based on the first longitudinal posture correction value to obtain the posterior posture of each first particle at the current moment. The specific expressions are as follows:
[0167]
[0168] in, represents the first predicted position corresponding to the jth first particle, For the specific operation of I will not go into details here.
[0169] In an alternative example, Fig.13 2031 is a flowchart of step 2031 provided by an exemplary embodiment of the present disclosure. In this example, step 2031 updates the second weights corresponding to the first particles based on the first predicted poses corresponding to the first particles to obtain the third weights corresponding to the first particles, including:
[0170] Step 20311, obtaining the lane line observation results corresponding to each first particle.
[0171] Among them, the lane line observation result corresponding to a first particle includes the observation probability of the lane line under the first predicted posture corresponding to the first particle (referred to as the lane line observation probability).
[0172] Specifically, taking a first particle as an example, the first predicted posture of the first particle is used as the origin of the self-coordinate system of the movable device to observe the lane line, and the observed lane line and the lane line element in the map are transformed into the same coordinate system for matching. The higher the matching degree and the higher the score, the greater the probability of lane line observation, and the lower the matching degree and the lower the score, the lower the probability of lane line observation.
[0173] Step 20312: based on the lane line observation results corresponding to each first particle, update the second weight corresponding to each first particle to obtain the third weight corresponding to each first particle.
[0174] For example,
[0175] in, That is, it represents the third weight of the jth first particle at time t, represents the second weight of the jth first particle at time t, that is, the weight updated at time t-1 is used as the prior weight at time t; represents the lane line observation probability corresponding to the j-th first particle, j = 1, 2, ..., N.
[0176] Among them, the lane line observation probability corresponding to a first particle is It is expressed as:
[0177]
[0178] Among them, ω LANE represents the preset lane line weight, max_dist represents the maximum distance threshold allowed for matching between the observed lane line and the map lane line element, It represents the Euclidean distance between the lane line element on the map and the observed lane line at time t, and K (a positive integer) represents the number of lane lines. It can be seen that the larger the Euclidean distance of the match, the lower the matching degree, the smaller the lane line observation probability, and the smaller the corresponding weight update amount of the first particle; the smaller the Euclidean distance of the match, the higher the matching degree, the greater the lane line observation probability, and the greater the corresponding weight update amount of the first particle.
[0179] In an optional example, step 202 performs lateral positioning prediction on the posture of each first particle at the current moment based on the first particle posture of each first particle to obtain the first predicted posture corresponding to each first particle, including:
[0180] Based on the first particle poses of the first particles and the motion model based on the odometer, the first predicted poses corresponding to the first particles are obtained respectively; the longitudinal noise parameter in the translation component in the motion model based on the odometer is 0.
[0181] The odometry-based motion model is a probabilistic robot motion model that is implemented using relative motion information measured by the odometer of the mobile device. More specifically, within the time interval (t-1, t), the mobile device moves from position x to position x. t-1 Move forward to position x t , the odometer feedbacks the relative progress during this period. The motion model based on the odometer represents the motion of the movable device as three basic motions in series, namely rotation, linear motion (i.e. translation) and another rotation. The following equation represents the relative progress from the odometer reading (in, T stands for transpose) calculates two rotation values and one translation value:
[0182]
[0183]
[0184]
[0185] Among them, δ rot1 is a rotation value, δ trans is the translation value, δ rot2 For another rotation value, atan2 is a function that returns the azimuth angle.
[0186] To model the motion errors, it is assumed that the “true” values of rotation and translation are the measured values minus the values with mean 0 and variance b. 2 Independent noise get:
[0187]
[0188]
[0189]
[0190] in, is a product with a mean of 0 and a variance of b. 2 , parameters α1~α4 are error parameters for the robot (referring to the movable device in this disclosure), which specify the accumulated error of the motion.
[0191] When the embodiment of the present disclosure uses the above-mentioned odometer-based motion model to perform lateral positioning prediction on the current posture of each first particle, the longitudinal noise parameter α3 is set to 0. During the prediction, only lateral positioning prediction is performed without introducing longitudinal noise, thereby achieving decoupling of lateral and longitudinal observations.
[0192] In an alternative example, Fig.14 is a flow chart of a method for determining posture information provided by another exemplary embodiment of the present disclosure. In this example, the method includes:
[0193] 1. Obtain the first particle positions of N first particles corresponding to the movable device.
[0194] Among them, the first particle posture corresponding to the jth first particle is expressed as That is, the posterior posture after longitudinal correction at the previous moment.
[0195] 2. Based on the first particle pose of each first particle and the motion model based on the odometer, the first predicted pose corresponding to each first particle is obtained; the longitudinal noise parameter in the translation component in the motion model based on the odometer is 0.
[0196] Among them, the first predicted pose corresponding to the jth first particle is expressed as
[0197]
[0198] 3. Based on the posture information of the movable device at a previous moment and the odometer information at a current moment, determine a second predicted posture of the movable device at a current moment.
[0199] In the prediction process, the prediction is based on the motion model of the odometer, which is consistent with the above particle prediction. The longitudinal noise parameter in the translation component is 0, and the posture information of the movable device at the previous moment is expressed as The second predicted position of the mobile device at the current moment is expressed as
[0200]
[0201] 4. Establish a first grid coordinate area based on the second predicted posture; the first coordinate axis of the first grid coordinate area is the lateral direction of the posture, and the second coordinate axis of the first grid coordinate area is the heading angle direction of the posture.
[0202] 5. Based on the first predicted poses corresponding to the first particles, each first particle is mapped to the first grid coordinate area to obtain the cell to which each first particle belongs.
[0203] The coordinates of the jth first particle in the first grid coordinate region are expressed as
[0204]
[0205] Specifically, according to the coordinates of each first particle in the first grid coordinate area and the occupied range of each cell in the first grid coordinate area.
[0206] 6. Delete the first particles mapped outside the first grid coordinate area to obtain the remaining first particles.
[0207] 7. Add a fourth particle to the center of each cell in the first grid coordinate area, and each fourth particle corresponds to a fourth weight.
[0208] 8. Based on the cells to which the remaining first particles belong, the second weights corresponding to the remaining first particles, and the fourth weights corresponding to the fourth particles, the particles in the cells are merged to obtain the third particles corresponding to the cells and the third particle poses corresponding to the third particles.
[0209] The third particle position corresponding to the jth third particle is expressed as That is, through grid-based resampling, the particle group of the first particle is transformed into the particle group of the third particle:
[0210]
[0211] 9. Based on the third particle positions corresponding to the third particles, the original weights corresponding to the third particles are updated to obtain updated weights corresponding to the third particles.
[0212]
[0213] in, That is, it represents the updated weight of the jth third particle at time t, represents the original weight of the jth third particle at time t; represents the lane line observation probability corresponding to the j-th third particle, j=1, 2, ..., N.
[0214] The weight updating principle of this step is similar to the specific operation of the aforementioned step 2031 (specifically steps 20311-20312), that is, the third particle posture corresponding to the third particle is used as the origin of the self-coordinate system of the movable device to observe the lane line, and the weight is updated based on the lane line observation result, which will not be described in detail. The original weight corresponding to each third particle is the sum of the weights of all particles in the cell.
[0215] 10. Based on the third particle poses corresponding to the third particles and the updated weights, determine a first estimated pose of the movable device:
[0216]
[0217] in, That is, it represents the first estimated position of the movable device at the current moment (time t), and other symbols refer to the previous steps.
[0218] The principle of this step is consistent with that of the aforementioned step 2032 and will not be repeated here.
[0219] 11. Using the first estimated position and posture of the movable device as the current position and posture information of the movable device.
[0220] 12. Taking the first estimated posture as the central particle, sample H fifth particles forward and backward in the longitudinal direction according to the first interval to obtain 2H fifth particles and the second interval between each fifth particle and the first estimated posture, where H is a positive integer.
[0221] 13. Determine the pose of each fifth particle based on the first estimated pose and the second distance between each fifth particle and the first estimated pose.
[0222] The first estimated pose is expressed as The first interval is represented by d, and the corresponding position increment is D = (d, 0, 0), then the position of each fifth particle obtained by sampling is:
[0223]
[0224] in, That is, it represents the position of the fifth particle of the i-th particle. represents the integer space,
[0225] 14. Take the central particle and each fifth particle as the second particle, and obtain the second particle posture of M second particles, M=2H+1.
[0226] 15. Obtain the prior weight corresponding to each second particle based on Gaussian distribution.
[0227] 16. Obtain the arrow sign observation results and posture measurement results corresponding to each second particle.
[0228] 17. Based on the arrow sign observation results and posture measurement results corresponding to each second particle, the prior weights corresponding to each second particle are updated to obtain the first weights corresponding to each second particle.
[0229]
[0230] in, That is, it represents the first weight corresponding to the i-th second particle, That is, it represents the prior weight of the second particle of the i-th sample, represents the posture observation probability corresponding to the i-th second particle, Represents the arrow observation probability corresponding to the i-th second particle, i=-H, -(H-1), ..., 0, 1, ..., H, H is a positive integer, M=2H+1.
[0231] 18. Determine a first longitudinal posture correction amount based on the first weights corresponding to each second particle.
[0232] For example, the longitudinal correction amount d correct It is expressed as:
[0233]
[0234] in, That is, it represents the first weight corresponding to the i-th second particle, represents the sum of the first weights of the second particles, d i represents the second distance between the i-th second particle and the first estimated pose.
[0235] Based on the above longitudinal correction amount d correct The first longitudinal posture correction D correct It is expressed as:
[0236] D correct =(d correct ,0,0)
[0237] 19. Based on the first longitudinal posture correction amount, the third particle posture of each third particle is longitudinally corrected to obtain the posterior posture of each third particle at the current moment.
[0238]
[0239] The posterior position of each third particle at the current moment is used as the posterior position of each first particle at the current moment, and acts on the next moment.
[0240] 20. Enter the next moment, take the next moment as the current moment, and return to step 1 above.
[0241] The specific operations of the above steps 1-20 have been described in detail in the above content and will not be repeated here.
[0242] For example, Fig.15 This is a schematic diagram of the principle of lateral and longitudinal correction of a particle swarm provided by an exemplary embodiment of the present disclosure. Among them, the lateral particle swarm is a particle swarm obtained by performing lateral correction based on the particle swarm that has been longitudinally corrected at the previous moment. Here, the lateral correction may include the above steps 2-9, and the obtained lateral particle swarm is the particle swarm formed by the third particle after the weight update. The longitudinal observation determines the longitudinal correction amount, which includes the above steps 12-18, and the longitudinal correction amount acts on the lateral particle swarm, which includes the above step 19, and the specific details are not repeated.
[0243] Any method for determining posture information provided by the embodiments of the present disclosure can be executed by any appropriate device with data processing capabilities, including but not limited to: terminal devices and servers. Alternatively, any method for determining posture information provided by the embodiments of the present disclosure can be executed by a processor, such as the processor executing any method for determining posture information mentioned in the embodiments of the present disclosure by calling corresponding instructions stored in a memory. This will not be described in detail below.
[0244] Exemplary Devices
[0245] Fig.16 is a schematic diagram of a structure of a device for determining posture information provided by an exemplary embodiment of the present disclosure. The device of this embodiment can be used to implement the corresponding method embodiment of the present disclosure, such as Fig.16 The device shown includes: a first acquisition module 501 , a first processing module 502 , a second processing module 503 and a third processing module 504 .
[0246] The first acquisition module 501 is used to acquire the first-particle postures of N first particles corresponding to the movable device, where N is a positive integer greater than 1; the first-particle posture is the longitudinally corrected posterior posture of the corresponding first particle obtained at the previous moment; the first processing module 502 is used to perform lateral positioning prediction on the posture of each first particle at the current moment based on the first-particle posture of each first particle obtained by the first acquisition module 501, and obtain the first predicted posture corresponding to each first particle; the second processing module 503 is used to determine the first estimated posture of the movable device based on the first predicted posture corresponding to each first particle obtained by the first processing module 502; the third processing module 504 is used to use the first estimated posture of the movable device obtained by the second processing module 503 as the posture information of the movable device at the current moment.
[0247] Fig.17 It is a structural diagram of a device for determining posture information provided by another exemplary embodiment of the present disclosure.
[0248] In an optional example, the apparatus of the present disclosure further includes: a first longitudinal processing module 505 and a second longitudinal processing module 506. The first longitudinal processing module 505 is used to determine a first longitudinal posture correction amount based on the first estimated posture of the movable device obtained by the second processing module 503; the second longitudinal processing module 506 is used to perform longitudinal correction on the first predicted posture of each of the first particles based on the first longitudinal posture correction amount obtained by the first longitudinal processing module 505, so as to obtain the posterior posture of each of the first particles at the current moment.
[0249] Fig.18 is a schematic structural diagram of a first longitudinal processing module 505 provided by an exemplary embodiment of the present disclosure.
[0250] In an optional example, the first longitudinal processing module 505 includes: a first sampling unit 5051 , a first acquiring unit 5052 , a second acquiring unit 5053 , a first weight updating unit 5054 and a first determining unit 5055 . The first sampling unit 5051 is used to sample in the longitudinal direction with the first estimated posture obtained by the second processing module 503 as the center, and obtain the second particle postures of M second particles, where M is a positive integer greater than 1; the first acquisition unit 5052 is used to obtain the prior weights corresponding to each second particle based on Gaussian distribution; the second acquisition unit 5053 is used to obtain the arrow sign observation results and posture measurement results corresponding to each second particle; the arrow sign observation result corresponding to one second particle includes the observation probability of the arrow sign under the second particle posture corresponding to the second particle; the posture measurement result corresponding to one second particle includes the observation probability of the posture of the movable device under the second particle posture corresponding to the second particle; the first weight updating unit 5054 updates the prior weights corresponding to each second particle based on the arrow sign observation results and posture measurement results corresponding to each second particle, and obtains the first weights corresponding to each second particle; the first determination unit 5055 determines the first longitudinal posture correction amount based on the first weights corresponding to each second particle.
[0251] Fig.19 is a schematic diagram of the structure of the second processing module 503 provided by an exemplary embodiment of the present disclosure.
[0252] In an optional example, the second processing module 503 includes: a second weight updating unit 5031 and a second determining unit 5032. The second weight updating unit 5031 is used to update the second weights corresponding to each of the first particles based on the first predicted postures corresponding to each of the first particles obtained by the first processing module 502, so as to obtain the third weights corresponding to each of the first particles; the second weight corresponding to a first particle is the priori weight of the first particle; the second determining unit 5032 is used to determine the first estimated posture of the movable device based on the first predicted postures corresponding to each of the first particles obtained by the first processing module 502 and the third weights corresponding to each of the first particles obtained by the second weight updating unit 5031.
[0253] Fig. 20 It is a structural diagram of a device for determining posture information provided by yet another exemplary embodiment of the present disclosure.
[0254] In an optional example, the apparatus of the present disclosure further includes: a first determination module 507, a first establishment module 508, a first mapping module 509, and a second determination module 510. The first determination module 507 is used to determine the second predicted posture of the movable device at the current moment based on the posture information of the movable device at the previous moment and the odometer information at the current moment; the first establishment module 508 is used to establish a first grid coordinate area based on the second predicted posture obtained by the first determination module 507; the first coordinate axis of the first grid coordinate area is the lateral direction of the posture, and the second coordinate axis of the first grid coordinate area is the heading angle direction of the posture; the first grid coordinate area includes N cells, N=N y *N θ , N y and N θ Respectively represent the number of cells in the lateral direction and the heading angle direction of the first grid coordinate area; a first mapping module 509 is used to map each of the first particles to the first grid coordinate area established by the first establishment module 508 based on the first predicted postures corresponding to each of the first particles obtained by the first processing module 502, so as to obtain the cells to which each of the first particles belongs; a second determination module 510 is used to determine the third particles corresponding to each of the cells and the third particle postures corresponding to each of the third particles based on the cells to which each of the first particles belongs; correspondingly, the second processing module 503 is specifically used to determine the first estimated posture of the movable device based on the third particle postures corresponding to each of the third particles obtained by the second determination module 510.
[0255] In an optional example, the apparatus of the present disclosure further includes: a first screening module 511 and a first supplementing module 512. The first screening module 511 is used to delete the first particles mapped outside the first grid coordinate area to obtain the remaining first particles; the first supplementing module 512 is used to add a fourth particle to the center of each cell in the first grid coordinate area, and each of the fourth particles corresponds to a fourth weight.
[0256] Correspondingly, the second determination module 510 is specifically used to merge the particles in each of the cells based on the cells to which each of the remaining first particles belongs, the second weights corresponding to each of the remaining first particles, and the fourth weights corresponding to each of the fourth particles, to obtain the third particles corresponding to each of the cells and the third particle postures corresponding to each of the third particles.
[0257] In an optional example, the apparatus of the present disclosure may also include: a resampling module 513, which is used to perform multiple sampling for each first particle, such as performing h samplings, so that h*N new first particles and the new first predicted postures corresponding to each new first particle can be finally obtained. Correspondingly, the first mapping module 509 is specifically used to: based on the new first predicted postures corresponding to each new first particle, map each new first particle to the first grid coordinate area to obtain the cell to which each new first particle belongs. The second determination module 510 is specifically used to determine the third particles corresponding to each cell and the third particle postures corresponding to each third particle based on the cells to which each new first particle belongs.
[0258] In an optional example, the first sampling unit 5051 is specifically used to: take the first estimated posture as the central particle, sample H fifth particles forward and backward in the longitudinal direction according to the first interval, obtain 2H fifth particles, and the second interval between each of the fifth particles and the first estimated posture, H is a positive integer; determine the posture of each of the fifth particles based on the first estimated posture and the second interval between each of the fifth particles and the first estimated posture; take the central particle and each of the fifth particles as second particles, and obtain the second particle posture of the M second particles, M=2H+1.
[0259] In an optional example, the first determination unit 5055 is specifically used to: determine the sum of the first weights of each second particle based on the first weights corresponding to each second particle; determine the longitudinal correction amount based on the sum of the first weights of each second particle, the first weights corresponding to each second particle, and the second interval between each second particle and the first estimated posture; determine the corresponding posture increment based on the longitudinal correction amount as the first longitudinal posture correction amount.
[0260] In an optional example, the second weight updating unit 5031 is specifically used to: obtain the lane line observation results corresponding to each of the first particles; the lane line observation result corresponding to a first particle includes the observation probability of the lane line under the first predicted posture corresponding to the first particle; based on the lane line observation results corresponding to each of the first particles, the second weights corresponding to each of the first particles are updated to obtain the third weights corresponding to each of the first particles.
[0261] In an optional example, the first processing module 502 is specifically used to: obtain the first predicted posture corresponding to each of the first particles based on the first particle posture of each of the first particles and the motion model based on the odometer; the longitudinal noise parameter in the translation component in the motion model based on the odometer is 0.
[0262] Exemplary Electronic Devices
[0263] The embodiment of the present disclosure also provides an electronic device, including: a memory for storing a computer program;
[0264] The processor is used to execute the computer program stored in the memory, and when the computer program is executed, the method for determining the posture information described in any of the above embodiments of the present disclosure is implemented.
[0265] Fig.21 FIG. 1 is a schematic diagram of a structure of an application embodiment of the electronic device disclosed in the present invention. In this embodiment, the electronic device 10 includes one or more processors 11 and a memory 12.
[0266] The processor 11 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 10 to perform desired functions.
[0267] The memory 12 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 11 may run the program instructions to implement the method for determining the posture information of the various embodiments of the present disclosure described above and / or other desired functions. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.
[0268] In one example, the electronic device 10 may further include: an input device 13 and an output device 14, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0269] For example, the input device 13 may be the microphone or microphone array mentioned above, which is used to capture the input signal of the sound source.
[0270] In addition, the input device 13 may also include, for example, a keyboard, a mouse, and the like.
[0271] The output device 14 can output various information to the outside, including the determined distance information, direction information, etc. The output device 14 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.
[0272] Of course, to simplify, Fig.21Only some of the components related to the present disclosure in the electronic device 10 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 10 may also include any other appropriate components.
[0273] Exemplary computer program products and computer-readable storage media
[0274] In addition to the above-mentioned methods and devices, an embodiment of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method according to various embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of this specification.
[0275] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0276] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enable the processor to execute the steps of the method according to various embodiments of the present disclosure described in the above “Exemplary Method” section of this specification.
[0277] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0278] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.
[0279] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0280] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.
[0281] The method and apparatus of the present disclosure may be implemented in many ways. For example, the method and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
[0282] It should also be noted that in the apparatus, device and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.
[0283] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0284] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A method for determining posture information, comprising: Obtain the first particle positions of N first particles corresponding to the movable device, where N is a positive integer greater than 1; The first particle posture is a longitudinally corrected posterior posture corresponding to the first particle obtained at a previous moment; Based on the first particle postures of the first particles, respectively, a lateral positioning prediction is performed on the postures of the first particles at the current moment to obtain first predicted postures corresponding to the first particles; Determining a first estimated position and posture of the movable device based on first predicted positions and postures respectively corresponding to the first particles; Using the first estimated position and posture of the movable device as the position and posture information of the movable device at the current moment; Wherein, after determining the first estimated position and posture of the movable device based on the first predicted position and posture respectively corresponding to each of the first particles, the method further includes: Taking the first estimated posture as the center, sampling is performed in the longitudinal direction to obtain second particle postures of M second particles, where M is a positive integer greater than 1; Obtaining a priori weights corresponding to each of the second particles based on Gaussian distribution; Obtaining arrow sign observation results and posture measurement results corresponding to each second particle; an arrow sign observation result corresponding to the second particle includes the observation probability of the arrow sign under the second particle posture corresponding to the second particle; a posture measurement result corresponding to the second particle includes the observation probability of the posture of the movable device under the second particle posture corresponding to the second particle; Based on the arrow sign observation results and the posture measurement results respectively corresponding to each of the second particles, the priori weights respectively corresponding to each of the second particles are updated to obtain the first weights respectively corresponding to each of the second particles; Determining a first longitudinal posture correction amount based on first weights respectively corresponding to each of the second particles; The first predicted posture of each of the first particles is longitudinally corrected based on the first longitudinal posture correction amount to obtain the posterior posture of each of the first particles at the current moment.
2. The method according to claim 1, wherein: The determining of a first estimated position and posture of the movable device based on first predicted positions and postures respectively corresponding to the first particles comprises: Based on the first predicted positions corresponding to the first particles, the second weights corresponding to the first particles are updated to obtain the third weights corresponding to the first particles; the second weight corresponding to a first particle is the priori weight of the first particle; Based on the first predicted poses respectively corresponding to the first particles and the third weight, a first estimated pose of the movable device is determined.
3. The method according to claim 2, wherein: After performing lateral positioning prediction on the current posture of each first particle based on the first particle posture of each first particle, and obtaining the first predicted posture corresponding to each first particle, the method further includes: Determine a second predicted position and posture of the movable device at the current moment based on the position and posture information of the movable device at the previous moment and the odometer information at the current moment; A first grid coordinate area is established based on the second predicted posture; the first coordinate axis of the first grid coordinate area is the lateral direction of the posture, and the second coordinate axis of the first grid coordinate area is the heading angle direction of the posture; the first grid coordinate area includes N cells, N=N y *N θ , N y and N θ Respectively represent the number of cells in the first grid coordinate area in the lateral direction and the heading angle direction; Based on the first predicted positions corresponding to the first particles, the first particles are mapped to the first grid coordinate area to obtain the cells to which the first particles belong; Based on the cells to which the first particles belong, determining the third particles corresponding to the cells and the third particle positions corresponding to the third particles; The determining of a first estimated position and posture of the movable device based on first predicted positions and postures respectively corresponding to the first particles comprises: Based on the third particle poses respectively corresponding to the third particles, a first estimated pose of the movable device is determined.
4. The method according to claim 3, wherein: After mapping each of the first particles to the first grid coordinate area based on the first predicted postures respectively corresponding to each of the first particles to obtain the cells to which each of the first particles belongs, the method further includes: Deleting the first particles mapped outside the first grid coordinate area to obtain remaining first particles; Add a fourth particle at the center of each cell in the first grid coordinate area, each of the fourth particles corresponds to a fourth weight; The determining, based on the cells to which the first particles belong, the third particles corresponding to the cells and the third particle postures corresponding to the third particles, comprises: Based on the cells to which the remaining first particles belong, the second weights corresponding to the remaining first particles, and the fourth weights corresponding to the fourth particles, the particles in the cells are merged to obtain the third particles corresponding to the cells and the third particle postures corresponding to the third particles.
5. The method according to claim 1, wherein: Taking the first estimated pose as the center, sampling is performed in the longitudinal direction to obtain the second particle poses of M second particles, including: Taking the first estimated posture as the central particle, sampling H fifth particles forward and backward in the longitudinal direction according to the first interval respectively, to obtain 2H fifth particles and a second interval between each of the fifth particles and the first estimated posture, where H is a positive integer; Determining a pose of each of the fifth particles based on the first estimated pose and a second interval between each of the fifth particles and the first estimated pose; The central particle and each of the fifth particles are used as second particles to obtain the second particle postures of the M second particles, where M=2H+1.
6. The method according to claim 5, wherein: The determining the first longitudinal posture correction amount based on the first weights respectively corresponding to the second particles includes: Determine the sum of the first weights of the second particles based on the first weights respectively corresponding to the second particles; determining a longitudinal correction amount based on a sum of the first weights of the second particles, the first weights respectively corresponding to the second particles, and a second interval between the second particles and the first estimated posture; Based on the longitudinal correction amount, a corresponding posture increment is determined as the first longitudinal posture correction amount.
7. The method according to claim 2, wherein: The updating of the second weights corresponding to the first particles based on the first predicted positions corresponding to the first particles to obtain the third weights corresponding to the first particles includes: Obtaining lane line observation results corresponding to each of the first particles; a lane line observation result corresponding to one of the first particles includes an observation probability of the lane line under a first predicted position corresponding to the first particle; Based on the lane line observation results corresponding to each of the first particles, the second weights corresponding to each of the first particles are updated to obtain the third weights corresponding to each of the first particles.
8. The method according to any one of claims 1 to 7, wherein: The step of performing lateral positioning prediction on the current posture of each of the first particles based on the first particle posture of each of the first particles to obtain the first predicted posture corresponding to each of the first particles includes: Based on the first particle poses of the first particles and the odometer-based motion model, first predicted poses corresponding to the first particles are obtained respectively; the longitudinal noise parameter in the translation component in the odometer-based motion model is 0.
9. A device for determining posture information, comprising: A first acquisition module is used to acquire first particle positions of N first particles corresponding to the movable device, where N is a positive integer greater than 1; The first particle posture is a longitudinally corrected posterior posture corresponding to the first particle obtained at a previous moment; A first processing module is used to perform lateral positioning prediction on the posture of each first particle at a current moment based on the first particle posture of each first particle, so as to obtain first predicted postures corresponding to each first particle; A second processing module, configured to determine a first estimated position and posture of the movable device based on first predicted positions and postures respectively corresponding to the first particles; A third processing module, configured to use the first estimated position and posture of the movable device as the position and posture information of the movable device at a current moment; A first longitudinal processing module, configured to determine a first longitudinal posture correction amount based on a first estimated posture of the movable device; a second longitudinal processing module, performing longitudinal correction on the first predicted posture of each of the first particles based on the first longitudinal posture correction amount, to obtain a posterior posture corresponding to each of the first particles at a current moment; The first longitudinal processing module comprises: A first sampling unit is used to perform sampling in a longitudinal direction with the first estimated posture as the center to obtain second particle postures of M second particles, where M is a positive integer greater than 1; A first acquisition unit, configured to acquire a priori weights corresponding to each of the second particles based on Gaussian distribution; A second acquisition unit is used to acquire the arrow sign observation results and posture measurement results corresponding to each second particle respectively; an arrow sign observation result corresponding to the second particle includes the observation probability of the arrow sign under the second particle posture corresponding to the second particle; a posture measurement result corresponding to the second particle includes the observation probability of the posture of the movable device under the second particle posture corresponding to the second particle; A first weight updating unit is used to update the priori weights corresponding to each of the second particles based on the arrow sign observation results and the posture measurement results corresponding to each of the second particles, so as to obtain the first weights corresponding to each of the second particles; The first determining unit is used to determine the first longitudinal posture correction amount based on the first weights respectively corresponding to the second particles.
10. A computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the method for determining posture information described in any one of claims 1 to 8.
11. An electronic device, comprising: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method for determining the posture information described in any one of claims 1-8.
Citation Information
Patent Citations
Object point cloud pose estimation method and system based on particle swarm optimization (SPO)
CN108053443A
Omnidirectional mobile intelligent wheelchair robot parameter identification method based on improved particle swarm algorithm
CN110543727A
Mobile robot absolute positioning method based on RFID system
CN110554353A
Pose estimation method and device, electronic equipment and computer readable storage medium
CN111174782A
Ship motion attitude prediction method based on GRU optimized by sparrow search algorithm
CN113238666A
