A method, device, storage medium and electronic device for determining posture

By comparing and optimizing the relative poses and weights of point cloud collections, the point cloud map splicing problem caused by weak GNSS signals is solved, and the point cloud data pose accuracy and map quality in weak signal environments are improved.

CN114283200BActive Publication Date: 2024-10-25BEIJING SANKUAI ONLINE TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202111654327.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2024-10-25
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

In heavily obscured environments such as urban canyons or under dense trees, the GNSS signal is weak, causing problems such as ghosting when splicing point cloud maps. How to determine the accurate point cloud data pose to obtain an accurate point cloud map.

Method used

By obtaining the point cloud data and basic pose of the acquisition device, the point cloud set is divided, the relative poses between the point cloud sets are compared, the constraint weight is determined based on the consistency representation value, the target pose is optimized, and the pose accuracy is ensured.

Benefits of technology

In a weak signal environment, by comparing the relative pose and weight of the point cloud collection, a more accurate target pose is optimized, reducing the ghost error of the point cloud map and improving the positioning accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114283200B_ABST
    Figure CN114283200B_ABST
Patent Text Reader

Abstract

This specification discloses a pose determination method, apparatus, storage medium, and electronic device. It can be applied to the construction of high-precision maps required for autonomous driving systems. By comparing point cloud sets within a point cloud set group, the first relative pose between each pair of point cloud sets is obtained. The accuracy of the first relative pose is determined based on the consistency of each first relative pose, and constraint weights are assigned to the first relative poses. Therefore, during pose optimization, different constraint weights are assigned to first relative poses with different accuracies. Based on the corresponding base pose, a more accurate target pose is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of positioning technology, and in particular to a method, device, storage medium and electronic device for determining a position and posture. Background Art

[0002] With the development of science and technology, driverless technology has gradually emerged, and driverless equipment such as driverless cars are widely used in various industries.

[0003] When controlling the operation of unmanned driving equipment, unmanned driving systems often need to use pre-built point cloud maps for positioning and planning. Therefore, building accurate point cloud maps is the basis of unmanned driving.

[0004] At present, it is usually necessary to receive the pose data returned by the Global Navigation Satellite System (GNSS) while collecting point cloud data. The pose data returned by the GNSS is directly used as the pose corresponding to the point cloud frame collected at that moment, and the point cloud frames are spliced ​​based on the corresponding pose to obtain a point cloud map.

[0005] However, when the point cloud data collection equipment is operating in an urban canyon environment or under dense trees and other severely obstructed environments, the GNSS signal is weak and the accuracy of the returned pose data is also low. At this time, the point cloud map directly spliced ​​based on the pose data returned by GNSS often has problems such as ghosting.

[0006] Therefore, how to determine the accurate position and posture of point cloud data so as to splice it into an accurate point cloud map is an urgent problem to be solved. Summary of the invention

[0007] This specification provides a posture determination method, device, storage medium and electronic device to partially solve the above-mentioned problems existing in the prior art.

[0008] This manual adopts the following technical solutions:

[0009] This specification provides a method for determining a posture, including:

[0010] Acquire point cloud data pre-collected by a collection device, and a basic posture determined by a positioning device carried by the collection device during the process of the collection device collecting the point cloud data;

[0011] Based on the point cloud data, a plurality of point cloud sets are divided, and a basic pose corresponding to each point cloud set is determined;

[0012] Determine a point cloud set group consisting of at least three point cloud sets, compare point cloud sets in the point cloud set group with each other, and obtain first relative poses between point cloud sets according to the same point clouds contained in the point cloud sets as the first relative poses corresponding to the point cloud set group;

[0013] Determine the consistency representation value of each first relative posture corresponding to the point cloud set group, and determine the constraint weight of the first relative posture corresponding to the point cloud set group according to the consistency representation value;

[0014] For each point cloud set, determine each constrained point cloud set that contains a common view area with the point cloud set, and use the first relative pose between the constrained point cloud set of the point cloud set and the point cloud set as the constrained relative pose of the point cloud set;

[0015] Based on the basic pose corresponding to the point cloud set, according to the constraint weights of each constraint relative pose of the point cloud set, and under the constraints of each constraint relative pose, the target pose of the point cloud set is determined.

[0016] Optionally, based on the point cloud data, a plurality of point cloud sets are divided, and a basic pose corresponding to each point cloud set is determined, specifically including:

[0017] Determine each point cloud frame included in the point cloud data, and divide a plurality of point cloud sets from each point cloud frame, wherein each point cloud set is a point cloud frame sequence composed of a plurality of point cloud frames;

[0018] For each point cloud set, the basic pose corresponding to the point cloud set is determined according to the basic pose corresponding to each point cloud frame in the point cloud set.

[0019] Optionally, determining the consistency representation value of each first relative posture corresponding to the point cloud set group specifically includes:

[0020] Constructing a ring sequence composed of each point cloud set, wherein for each point cloud set in the ring sequence, there is a common view area between the point cloud set and each of two point cloud sets adjacent to the point cloud set in the ring sequence;

[0021] Determine a specified set pair in the annular sequence; determine a first relative pose between adjacent point cloud sets in the annular sequence;

[0022] Taking any point cloud set in the specified set pair as a starting point, along two different directions in the annular sequence, for each direction, according to the first relative poses between adjacent point cloud sets on the annular sequence in the direction, determine the specified relative pose between the specified set pair;

[0023] According to the difference between two specified relative postures between the specified set pairs determined along two different directions in the circular sequence, the consistency representation value of each first relative posture corresponding to the point cloud set group is determined.

[0024] Optionally, a ring sequence consisting of each point cloud set is constructed, specifically including:

[0025] Selecting at least three point cloud sets from the point cloud sets included in the point cloud set group, wherein each of the selected point cloud sets has a common viewing area with at least two other point cloud sets;

[0026] For each selected point cloud set, from other selected point cloud sets having a common view area with the point cloud set, determine two other point cloud sets that are adjacent to the point cloud set;

[0027] According to the determined adjacent relationship between each point cloud set, a ring sequence consisting of each point cloud set is constructed.

[0028] Optionally, determining a point cloud set group consisting of at least three point cloud sets specifically includes:

[0029] Determine a point cloud set group, and initialize the point cloud set group to an empty set;

[0030] According to the basic poses corresponding to the point cloud sets, two point cloud sets whose corresponding basic positions have a distance less than a pre-specified distance threshold are selected from the point cloud sets as initial set pairs, and the initial set pairs are added to the point cloud set group;

[0031] For each point cloud set included in the initial set pair, a point cloud set that is chronologically adjacent to the acquisition moment of the point cloud set is determined as an adjacent set of the point cloud set, and the adjacent set is added to the point cloud set group, wherein the distance between the basic positions corresponding to the adjacent set of each point cloud set in the initial set pair and the adjacent set of another point cloud set in the initial set pair is less than a pre-specified distance threshold.

[0032] Optionally, after determining the consistency representation value of each first relative posture corresponding to the point cloud set group, the method further includes:

[0033] Determining whether a first matching condition is satisfied according to the consistency representation values ​​of the first relative postures corresponding to the point cloud set group;

[0034] If yes, use the point cloud set group as the set group to be verified, and determine other point cloud set groups in the neighborhood of the point cloud set group as reference set groups for the set group to be verified;

[0035] For each determined reference set group, determining a consistency representation value of each first relative posture corresponding to the reference set group;

[0036] According to the determined consistency representation values ​​of the first relative postures corresponding to the reference set groups, the constraint weights of the first relative postures corresponding to the point cloud set groups are re-determined.

[0037] Optionally, determining other point cloud set groups in the neighborhood of the point cloud set group specifically includes:

[0038] Selecting, from each point cloud set included in the set to be verified, a reference set pair whose distances between corresponding basic positions are less than a pre-specified distance threshold;

[0039] For each point cloud set in the reference set pair, determine a point cloud set that is temporally adjacent to the acquisition time of the point cloud set as an initial set in the reference set group, wherein a distance between basic positions corresponding to two point cloud sets in the initial set pair in the reference set group is less than a pre-specified distance threshold;

[0040] For each initial set in the reference set, a point cloud set that is temporally adjacent to the acquisition time of the initial set and is not included in the set to be verified is determined as an adjacent set in the reference set.

[0041] Optionally, the method further comprises:

[0042] Determining whether a second matching condition is satisfied according to a constraint weight of a first relative posture corresponding to the point cloud set group;

[0043] If yes, determining a second relative pose between each of the point cloud sets according to the basic pose of each point cloud set in the point cloud set group;

[0044] According to the difference between the corresponding first relative posture and the second relative posture, the constraint weight of the basic posture corresponding to each point cloud set in the point cloud set group is determined, wherein, for each point cloud set, the greater the difference between the corresponding first relative posture and the second relative posture between the point cloud set and other point cloud sets, the smaller the constraint weight of the basic posture corresponding to the determined point cloud set is.

[0045] Optionally, based on the basic pose corresponding to the point cloud set, according to the constraint weights of each constraint relative pose of the point cloud set, under the constraints of each constraint relative pose, determining the target pose of the point cloud set, specifically includes:

[0046] According to the basic pose corresponding to the point cloud set and the constraint weight of the basic pose corresponding to the point cloud set, a basic constraint range of the target pose corresponding to the point cloud set is determined in the neighborhood of the basic pose corresponding to the point cloud set;

[0047] According to the constraint weights of the relative poses of the constraints of the point cloud set, the target pose of the point cloud set is determined under the constraints of the relative poses of the constraints and the basic constraint range corresponding to the point cloud set.

[0048] Optionally, the method further comprises:

[0049] Determining whether a specified confidence condition is satisfied according to the constraint weight of the basic pose of each point cloud set in the point cloud set group;

[0050] If so, each point cloud set in the point cloud set group is taken as a confidence set, and according to the acquisition time of each confidence set acquired by the acquisition device, a confidence time domain in the neighborhood of the acquisition time of each confidence set is determined;

[0051] The point cloud set collected in the trust time domain is used as a to-be-compared set, and a plurality of to-be-compared set pairs are determined, wherein two to-be-compared sets in each of the determined to-be-compared set pairs contain a common view area;

[0052] For each pair of sets to be compared, two sets to be compared in the pair of sets to be compared are compared, and according to the same point clouds contained in the two sets to be compared in the pair of sets to be compared, a first relative pose between the two sets to be compared in the pair of sets to be compared is obtained; according to the basic poses corresponding to the two sets to be compared in the pair of sets to be compared, a second relative pose between the two sets to be compared in the pair of sets to be compared is determined;

[0053] According to the difference between the first relative postures and the second relative postures of the two sets to be compared in the set pair to be compared, the constraint weights of the first relative postures of the two sets to be compared in the set pair to be compared are determined.

[0054] Optionally, based on the basic pose corresponding to the point cloud set, according to the constraint weights of each constraint relative pose of the point cloud set, under the constraints of each constraint relative pose, determining the target pose of the point cloud set, specifically includes:

[0055] Based on the determined basic poses corresponding to each point cloud set, according to the constraint weights of each constrained relative pose of each point cloud set, the target pose of each point cloud set is determined under the constraints of the constrained relative pose of each point cloud set, wherein, for each pair of point cloud sets that are mutually constrained point cloud sets, the greater the constraint weight of the constrained relative pose between the point cloud set pair, the smaller the difference between the relative pose between the target poses of the two point cloud sets in the point cloud set pair and the constrained relative pose between the point cloud set pair.

[0056] This specification provides a posture determination device, including:

[0057] An acquisition module, used to acquire point cloud data pre-collected by an acquisition device, and a basic posture determined by a positioning device carried by the acquisition device during the process of the acquisition device collecting point cloud data;

[0058] A division module, used to divide the point cloud data into a plurality of point cloud sets and determine a basic pose corresponding to each point cloud set;

[0059] A comparison module is used to determine a point cloud set group consisting of at least three point cloud sets, compare the point cloud sets in the point cloud set group with each other, and obtain a first relative pose between the point cloud sets according to the same point clouds contained in the point cloud sets as the first relative pose corresponding to the point cloud set group;

[0060] A weight determination module, used to determine the consistency representation value of each first relative posture corresponding to the point cloud set group, and determine the constraint weight of the first relative posture corresponding to the point cloud set group according to the consistency representation value;

[0061] A relative constraint module, for determining, for each point cloud set, each constrained point cloud set containing a common view area with the point cloud set, and using a first relative pose between the constrained point cloud set of the point cloud set and the point cloud set as a constrained relative pose for the point cloud set;

[0062] The posture determination module is used to determine the target posture of the point cloud set based on the basic posture corresponding to the point cloud set and the constraint weights of each constraint relative posture of the point cloud set under the constraints of each constraint relative posture.

[0063] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned posture determination method is implemented.

[0064] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned posture determination method when executing the program.

[0065] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:

[0066] In the posture determination method provided in this specification, the first relative posture between each point cloud set is obtained by comparing the point cloud sets in the point cloud set group, and the accuracy of the first relative posture is judged according to the consistency degree of each first relative posture, and the constraint weight is determined for the first relative posture, so that when the posture is optimized, different constraint weights are given to the first relative postures with different accuracies, and a more accurate target posture is optimized based on the corresponding basic posture. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:

[0068] Figure 1 A flowchart of a method for determining a posture in this specification;

[0069] Figure 2 A schematic diagram of a point cloud set provided in this specification;

[0070] Figure 3 A schematic diagram of a set to be verified and a reference set provided in this specification;

[0071] Figure 4 A schematic diagram of a posture determination device provided in this specification;

[0072] Figure 5 This is a schematic diagram of the structure of the electronic device provided in this manual. DETAILED DESCRIPTION

[0073] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0074] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0075] In order to solve the above problems, this specification provides a method for determining a posture.

[0076] Figure 1The following is a flow chart of a method for determining a posture in this specification, which specifically includes the following steps:

[0077] S100: Acquire point cloud data pre-collected by a collection device, and a basic posture determined by a positioning device carried by the collection device during the process of the collection device collecting the point cloud data.

[0078] In the embodiments of this specification, point cloud data needs to be collected in advance by a collection device.

[0079] In the embodiments of this specification, the acquisition device may be a laser radar, a millimeter wave radar, etc. The acquisition device may collect point cloud data and move during the process of collecting point cloud data, so that point cloud data can be collected in different positions. In the embodiments of this specification, the point cloud data collected by the acquisition device during the transmission and reception of a detection signal is regarded as a point cloud frame.

[0080] The acquisition device can be a device with active motion function, or can be mounted on other devices with active motion function, and can be driven and moved by the mounted device when the mounted device moves. For example, the acquisition device can be any type of radar mounted on a vehicle. Furthermore, the acquisition device can adjust its posture during the process of collecting point cloud data, so that point cloud frames can be collected in different postures.

[0081] In the embodiments of the present specification, the posture of the acquisition device when acquiring point cloud frames can be used as the posture of the point cloud frames acquired by the acquisition device, wherein the posture includes position and posture, that is, the position and posture of the acquisition device when acquiring point cloud frames.

[0082] In addition, the acquisition device may also be equipped with a positioning device. During the process of the acquisition device acquiring point cloud data, the positioning device carried by the acquisition device determines the basic posture.

[0083] The positioning device may be any device capable of positioning the position and posture of the acquisition device, for example, it may be a GNSS, etc. While the acquisition device is acquiring the point cloud frame, the positioning device positions the position and posture of the acquisition device, and uses the position and posture determined by the positioning device as the basic position and posture of the point cloud frame acquired at this time, wherein the basic position and posture of the point cloud frame include a basic position and a basic posture.

[0084] In one embodiment of the present specification, the clocks in the positioning device and the acquisition device can be synchronized, so that the positioning device can locate the basic posture of the point cloud frame while the acquisition device is acquiring the point cloud frame.

[0085] S102: Based on the point cloud data, a plurality of point cloud sets are divided, and a basic pose corresponding to each point cloud set is determined.

[0086] In one embodiment of the present specification, each divided point cloud set contains a plurality of point clouds.

[0087] For example, each point cloud frame collected by the collection device can be directly determined as the point cloud set. Of course, a point cloud frame sequence composed of several point cloud frames can also be determined as the point cloud set.

[0088] Specifically, the point cloud frame sequence can be a point cloud frame sequence determined according to the basic posture corresponding to each point cloud frame in the collected point cloud frames. For example, each point cloud frame corresponding to the basic position in the direction can be arranged along a specified direction to obtain a point cloud set. For another example, the point cloud frames collected within a certain period of time can be selected according to the collection time of each point cloud frame, and the selected point cloud frames are sorted in time series, and the obtained point cloud frame sequence is used as a point cloud set. It can be seen that various methods can be used to determine the point cloud frame sequence, which will not be elaborated in this specification.

[0089] However, those skilled in the art will appreciate that the form in which the point cloud set is organized has no effect on the pose determination method provided in this specification. Therefore, the embodiments of this specification do not limit the organization form of the point cloud set. For example, it may be the above-mentioned point cloud frame or point cloud frame sequence, or other point cloud organization forms.

[0090] For the convenience of description, the following description is made by taking the point cloud set as a point cloud frame sequence composed of a plurality of point cloud frames as an example.

[0091] In this case, the basic pose corresponding to the point cloud set can be determined according to the basic poses corresponding to each point cloud frame in the point cloud set. For example, the average of the basic poses corresponding to each point cloud frame in the point cloud set can be used as the basic pose corresponding to the point cloud set, and the basic pose of the point cloud frame in the point cloud set located in the middle position of the point cloud frame sequence can also be used as the basic pose of the point cloud set, and so on. The embodiments of this specification will not go into details one by one.

[0092] S104: Determine a point cloud set group consisting of at least three point cloud sets, compare the point cloud sets in the point cloud set group with each other, and obtain the first relative pose between the point cloud sets based on the same point clouds contained in the point cloud sets as the first relative pose corresponding to the point cloud set group.

[0093] In the embodiment of the present specification, a point cloud set group consisting of at least three point cloud sets may be determined from each point cloud set.

[0094] Those skilled in the art can understand that for a pair of point cloud sets, if the two point cloud sets contain a common view area, that is, the two point cloud sets contain the same point cloud, then the transformation relationship between the two point cloud sets can be determined based on the same point cloud contained in the two point cloud sets using a predetermined point cloud matching algorithm. For example, the transformation relationship between the two point cloud sets can be found with the goal of maximizing the overlap between the two transformed point clouds, where the transformation relationship can be a rotation and translation matrix of one point cloud set relative to another point cloud set.

[0095] Specifically, corresponding points can be searched for the points contained in the two point cloud sets first. For one of the point cloud sets, the corresponding point in the other point cloud set can be found for each point in the point cloud set. Then, the rotation and translation matrix for transforming one of the point cloud sets can be determined with the goal of minimizing the average distance between each pair of points between the two point cloud sets after the transformation, and the transformation can be performed using the determined rotation and translation matrix. When the average distance between the corresponding points in the two point cloud sets after the transformation is less than a certain distance threshold, the first relative posture between the two point cloud sets can be determined based on the rotation and translation matrix.

[0096] Of course, the above is only an example. In the embodiments of this specification, the predetermined point cloud matching algorithm can be any existing point cloud matching algorithm, such as iterative closest point algorithm (Iterative Closest Point, ICP), normal distribution transform (Normal Distribution Transform, NDT), etc.

[0097] In short, through any of the above methods, the relative poses between the point cloud sets containing the same point cloud in the point cloud set group can be determined as the first relative poses. For simplicity, in one embodiment of this specification, the first relative poses between the point cloud sets in the point cloud set group are all taken as the first relative poses corresponding to the point cloud set group.

[0098] For a point cloud set group, since each point cloud set contained in the point cloud set group may not contain the same point clouds as every other point cloud set in the point cloud set group, the first relative pose may not be determined between all the point cloud sets contained in the point cloud set group.

[0099] by Figure 2 For example, Figure 2Point cloud set A contains the same point clouds as point cloud set B and point cloud set C respectively. Therefore, the first relative pose between point cloud set A and point cloud set B, as well as the first relative pose between point cloud set A and point cloud set C can be determined. At the same time, point cloud set B can also contain the same point clouds as point cloud set C. At this time, the first relative pose between point cloud set B and point cloud set C can be determined.

[0100] S106: Determine the consistency representation value of each first relative posture corresponding to the point cloud set group, and determine the constraint weight of the first relative posture corresponding to the point cloud set group according to the consistency representation value.

[0101] In the embodiments of the present specification, there may be inconsistencies between the first relative postures corresponding to the point cloud set group. Therefore, a consistency representation value may be used to represent the consistency between the first relative postures corresponding to the point cloud set group.

[0102] For example, the basic pose of a point cloud set (hereinafter referred to as point cloud set X) in the point cloud set group can be obtained, and then, for each of the point cloud set Y and the point cloud set Z in the point cloud set group that have a common view area with the point cloud set X, any existing point cloud matching algorithm can be used to match the point cloud set with the point cloud set X, and the relative pose between the point cloud set and the point cloud set X is obtained. Then, according to the basic pose of the point cloud set X and the relative pose between the point cloud set and the point cloud set X, the absolute pose of the point cloud set is determined as the pose to be compared of the point cloud set, and the basic pose of the point cloud set and the pose to be compared are compared, so as to determine the consistency between the first relative poses corresponding to the point cloud set group according to the difference between the basic pose and the pose to be compared of the point cloud set Y and the point cloud set Z. Among them, for each of the point cloud set Y and the point cloud set Z, the greater the difference between the basic pose of the point cloud set and the pose to be compared, the smaller the consistency between the first relative poses corresponding to the determined point cloud set group.

[0103] For example, still Figure 2 For example, at this time, the rotation and translation matrix that transforms point cloud set B to point cloud set A is called T1, the rotation and translation matrix that transforms point cloud set B to point cloud set C is called T2, and the rotation and translation matrix that transforms point cloud set C to point cloud set A is called T3. At this time, if the first relative poses between the point cloud sets are consistent, T1 should be the product of T2 and T3.

[0104] However, under normal circumstances, due to the accuracy limitation of the point cloud matching algorithm, it is difficult to achieve complete consistency between the determined first relative postures of each point cloud set. In the embodiments of this specification, a consistency characterization value can be used to measure the consistency of the first relative postures corresponding to the point cloud set groups.

[0105] Following the above example, Figure 2 The consistency characterization value in the point cloud set group can be determined by determining the difference between T1 and the product of T2 and T3. The larger the difference between T1 and the product of T2 and T3, the smaller the consistency characterization value in the point cloud set group.

[0106] Then, the confidence level of each first relative posture corresponding to the point cloud set group can be determined based on the consistency characterization value of each first relative posture corresponding to the point cloud set group. When the consistency characterization value in the point cloud set group is larger, it is considered that the first relative postures corresponding to the point cloud set group determined by the point cloud matching algorithm are more accurate, and a higher constraint weight can be determined for the first relative posture corresponding to the point cloud set group, so as to ensure that the target posture obtained by optimizing the point cloud set is closer to the first relative posture between the point cloud set and other point cloud sets in the subsequent posture optimization process.

[0107] In one embodiment of the present specification, the determined constraint weight can be used as the constraint weight of the first relative posture between each point cloud set in the point cloud set group. Of course, it can also be used as the initial constraint weight of the first relative posture between each point cloud set in the point cloud set group, and the corresponding adaptive weight can be determined for the first relative posture between each point cloud set on the basis of the initial constraint weight. Then, for each pair of point cloud sets in the point cloud set group, the product of the adaptive weight of the first relative posture between the two point cloud sets and the initial constraint weight can be used as the constraint weight of the first relative posture between the two point cloud sets. It can be seen that there are many ways to set the constraint weight, which will not be elaborated in this specification.

[0108] S108: For each point cloud set, determine each constrained point cloud set that contains a common view area with the point cloud set, and use the first relative pose between the constrained point cloud set of the point cloud set and the point cloud set as the constrained relative pose of the point cloud set.

[0109] S110: Based on the basic pose corresponding to the point cloud set, according to the constraint weights of each constraint relative pose of the point cloud set, and under the constraints of each constraint relative pose, determining the target pose of the point cloud set.

[0110] In one embodiment of the present specification, for each point cloud set, each constrained point cloud set that contains a common viewing area with the point cloud set can be determined, and the first relative pose between the constrained point cloud set of the point cloud set and the point cloud set can be used as the constrained relative pose of the point cloud set.

[0111] It is understandable that, ideally, the relative pose between the basic poses of each point cloud set is equal to the corresponding first relative pose determined by the point cloud matching algorithm. However, due to certain precision limitations of the positioning device and the point cloud matching algorithm, when the basic pose of the point cloud set is directly used as the target pose, not only will the constructed point cloud map often have errors such as ghosting, but the relative pose between the basic poses of each point cloud set is generally not equal to the corresponding first relative pose determined by the point cloud matching algorithm.

[0112] In one embodiment of the present specification, for each point cloud set, the target pose of the point cloud set can be determined based on the basic pose corresponding to the point cloud set and according to the constraint weights of each constraint relative pose of the point cloud set, under the constraints of each constraint relative pose. Specifically, when the constraint weights of each constraint relative pose of the point cloud set are large, the difference between the relative pose between the target pose of the point cloud set and the target poses of other point cloud sets and the corresponding first relative pose can be smaller.

[0113] Furthermore, in one embodiment of the present specification, based on the basic pose corresponding to each determined point cloud set and according to the constraint weights of each constrained relative pose of each point cloud set, the target pose of each point cloud set can be determined under the constraint of the constrained relative pose of each point cloud set, wherein for each pair of point cloud sets that are mutually constrained point cloud sets, the greater the constraint weight of the constrained relative pose between the point cloud set pair, the smaller the difference between the relative pose between the target poses of the two point cloud sets in the point cloud set pair and the constrained relative pose between the point cloud set pair.

[0114] Specifically, based on the constraint weights of each constraint relative to the pose of each point cloud set, a loss function with the pose of each point cloud set as a parameter can be constructed, and then the target pose of each point cloud set can be determined with the minimum function value of the loss function as the goal.

[0115] Of course, when any of the above methods is used to determine the target pose of each point cloud set, it is necessary to base it on the basic pose of each point cloud set and adjust it with the neighborhood of the basic pose of each point cloud set to determine the target pose of each point cloud set.

[0116] In another embodiment of the present specification, for each point cloud set, the constraint weight of the basic posture of the point cloud set can be determined. Specifically, after the constraint weight of the first relative posture corresponding to the point cloud set group is determined by any method, it can be judged whether the second matching condition is met according to the constraint weight of the first relative posture corresponding to the point cloud set group. At this time, if the constraint weight of the first relative posture corresponding to the point cloud set group is greater than the second matching threshold, it can be considered that the first relative posture corresponding to the point cloud set group has a high accuracy, and it is judged that the second matching condition is met.

[0117] Those skilled in the art can understand that when it is considered that the accuracy of the first relative posture corresponding to the point cloud set group is high, the accuracy of the basic posture returned by the positioning device can be verified by the first relative posture corresponding to the point cloud set group.

[0118] Specifically, if it is determined that the second matching condition is met, the second relative pose between the point cloud sets is determined based on the basic pose of each point cloud set in the point cloud set group, and then the constraint weight of the basic pose corresponding to each point cloud set in the point cloud set group can be determined based on the difference between the corresponding first relative pose and the second relative pose, wherein for each point cloud set, the greater the difference between the corresponding first relative pose and the second relative pose between the point cloud set and other point cloud sets, the smaller the constraint weight of the basic pose corresponding to the determined point cloud set.

[0119] For each point cloud set, when any method is used to determine the target pose of the point cloud set, the determined target pose is located in the neighborhood of the basic pose of the point cloud set, and the greater the constraint weight of the basic pose corresponding to the point cloud set, the smaller the range of the determined target pose in the neighborhood of the basic pose of the point cloud set.

[0120] It can be seen that in the embodiments of this specification, there is no limitation on whether to determine the optimization target for each point cloud set separately or to determine the overall optimization target for each point cloud set.

[0121] At present, there are methods in the prior art that use the relative pose between point cloud sets determined by a point cloud matching algorithm to optimize the basic pose of a point cloud set. However, due to the accuracy limitations of the point cloud matching algorithm itself, it is difficult to ensure the accuracy of the relative pose between point cloud sets determined by the point cloud matching algorithm. At this time, if the accuracy of the relative pose used to optimize the basic pose is poor, the accuracy of the target pose of the optimized point cloud set may also be poor.

[0122] In the embodiments of this specification, based on the above Figure 1The method described herein obtains the first relative postures between each pair of point cloud sets by comparing the point cloud sets in the point cloud set group, and judges the accuracy of the first relative postures according to the degree of consistency of the first relative postures, and determines the constraint weights for the first relative postures, so that when optimizing the posture, different constraint weights are assigned to first relative postures with different accuracies. When the accuracy of the first relative posture is low, the constraint weight during optimization is also low, so that the above method provided in this specification can optimize a more accurate target posture based on the corresponding basic posture.

[0123] In the following, this specification exemplarily proposes a method for determining a point cloud set group.

[0124] Specifically, a point cloud set group can be determined first, and the point cloud set group can be initialized to an empty set. Then, according to the basic posture corresponding to each point cloud set, two point cloud sets whose corresponding basic positions have a distance less than a pre-specified distance threshold can be selected from each point cloud set as an initial set pair, and the initial set pair can be added to the point cloud set group. Then, for each point cloud set included in the initial set pair, a point cloud set that is chronologically adjacent to the acquisition moment of the point cloud set can be determined as an adjacent set of the point cloud set, and the adjacent set can be added to the point cloud set group, wherein the distance between the basic positions corresponding to the adjacent set of each point cloud set in the initial set pair and the adjacent set of another point cloud set in the initial set pair is less than the pre-specified distance threshold.

[0125] In one embodiment of the present description, when the point cloud set is a point cloud frame sequence obtained by sorting the point cloud frames in a time series, the collection time of the point cloud set can also be determined for each point cloud set. For example, the average value of the collection time of each point cloud frame in the point cloud set can be used as the collection time of the point cloud set, and the collection time of the point cloud frame in the point cloud set that is located in the middle position of the sorted point cloud frame sequence can also be used as the collection time of the point cloud set.

[0126] Then, for each point cloud set included in the initial set pair, the adjacent set of the point cloud set determined may be a point cloud set adjacent to the point cloud set in time series. In this case, the point cloud set included in the initial set pair and the adjacent set of the point cloud set determined for the point cloud set may be considered as adjacent sets to each other. In this case, when the acquisition time of the adjacent set of the point cloud set determined by one of the point cloud sets in the initial set pair is earlier than the acquisition time of the point cloud set, the acquisition time of the adjacent set of the point cloud set determined by the other point cloud set in the initial set pair is also earlier than the acquisition time of the point cloud set; when the acquisition time of the adjacent set of the point cloud set determined by one of the point cloud sets in the initial set pair is later than the acquisition time of the point cloud set, the acquisition time of the adjacent set of the point cloud set determined by the other point cloud set in the initial set pair is also later than the acquisition time of the point cloud set.

[0127] In one embodiment of the present specification, adjacent sets may include the same point cloud frames.

[0128] exist Figure 3 In the point cloud set group shown, point cloud set A1 and point cloud set B1 are two point cloud sets in the initial set pair respectively. Then, the adjacent set A2 of point cloud set A1 and the adjacent set B2 of point cloud set B1 can be determined by any of the above methods, thereby forming a point cloud set group consisting of point cloud set A1, point cloud set B1, point cloud set A2, and point cloud set B2.

[0129] In another embodiment of the present specification, in order to avoid the error caused by the inaccuracy of the point cloud matching algorithm during posture optimization to the greatest extent, after determining the consistency characterization value of each first relative posture corresponding to the point cloud set group by any of the above methods, it is also possible to determine whether the consistency characterization value satisfies the first matching condition. Specifically, when the consistency characterization value is greater than a pre-set first matching threshold, it can be determined that the first matching condition is satisfied. At this time, the point cloud set group can also be used as a set group to be verified, and the accuracy of the consistency characterization value of the set group to be verified determined above can be verified based on the consistency characterization value of the reference set group in the neighborhood of the point cloud set group.

[0130] In one embodiment of the present specification, the consistency characterization value of the reference set group of the set group to be verified can be determined, and then, based on the consistency characterization values ​​of the first relative postures corresponding to the determined reference set groups, the constraint weight of the first relative posture corresponding to the point cloud set group is re-determined. It should be noted that when the consistency characterization values ​​of the first relative postures corresponding to the determined reference set groups are higher, the constraint weight of the first relative posture corresponding to the point cloud set group is also higher.

[0131] A reference set pair in which the distance between the corresponding basic positions is less than a pre-specified distance threshold can be first selected from each point cloud set included in the set group to be verified. Then, for each point cloud set in the reference set pair, a point cloud set that is chronologically adjacent to the acquisition moment of the point cloud set is determined as the initial set in the reference set group, wherein the distance between the basic positions corresponding to the two point cloud sets in the initial set pair in the reference set group is less than the pre-specified distance threshold. Then, for each initial set in the reference set group, a point cloud set that is chronologically adjacent to the acquisition moment of the initial set and is not included in the set group to be verified is determined as the adjacent set in the reference set.

[0132] It should be noted that, when determining a reference set group of a set to be verified, when the acquisition time of the point cloud set (i.e., the initial set of the reference set group) determined by one of the point cloud sets in the reference set pair is earlier than the acquisition time of the point cloud set, the acquisition time of the point cloud set (i.e., the initial set of the reference set group) determined by the other point cloud set in the reference set pair is also earlier than the acquisition time of the point cloud set; when the acquisition time of the point cloud set determined by one of the initial set pairs in the reference set reference set group is later than the acquisition time of the point cloud set, the acquisition time of the point cloud set determined by the other point cloud set in the initial set pair is also later than the acquisition time of the point cloud set. In other words, the initial set of the reference set group and the adjacent sets of the initial set in the reference set group are not point cloud sets in the set group to be verified.

[0133] For example, in Figure 3 In the process, the point cloud set A1 and the point cloud set B1 in the set group to be verified can be first determined as the reference set pair, and then the point cloud set A0 adjacent to the acquisition time sequence of the point cloud set A1 and the point cloud set B0 adjacent to the acquisition time sequence of the point cloud set B1 are determined to obtain the initial set pair of the point cloud set A0 and the point cloud set B0 in the reference set group, and then the point cloud set A-1 adjacent to the acquisition time sequence of the point cloud set A0 is used as the adjacent set of the point cloud set A0, and the point cloud set B-1 adjacent to the acquisition time sequence of the point cloud set B0 is used as the adjacent set of the point cloud set B0, so as to determine the initial set pair of the point cloud set A0 and the point cloud set B0 adjacent to the acquisition time sequence of the point cloud set B0. Figure 3 Reference set group 1 is shown.

[0134] Then, the consistency characterization value of each first relative posture corresponding to the reference set group 1 can be determined by any of the above methods, so as to update the constraint weights of each first relative posture corresponding to the set group to be verified according to the determined consistency characterization value of each first relative posture corresponding to the reference set group 1.

[0135] In one embodiment of the present specification, reference set group 2 consisting of point cloud set A3, point cloud set A4, point cloud set B3, and point cloud set B4 can be determined in a manner similar to that of determining reference set group 1. It can be seen that when at least two reference set groups are determined in the above manner, the collection time of each reference set group may not be earlier than or later than the set group to be verified.

[0136] In addition, the embodiments of this specification exemplarily provide a method for determining the consistency representation value of each first relative posture corresponding to a point cloud set group.

[0137] Specifically, when constructing a point cloud set group, a pre-set method can be used to determine a ring sequence composed of each point cloud set. For example, the ring sequence can be determined according to the order of the acquisition time of the point cloud set. For another example, at least three point cloud sets can be selected from the point cloud sets included in the point cloud set group, wherein each selected point cloud set has a common viewing area with at least two other point cloud sets. Then, for each selected point cloud set, two other point cloud sets that have an adjacent relationship with the point cloud set are determined from the other point cloud sets selected that have a common viewing area with the point cloud set. Then, based on the determined adjacent relationship between the point cloud sets, a ring sequence composed of the point cloud sets is constructed, wherein, for each point cloud set in the ring sequence, the point cloud set has a common viewing area with each of the two point cloud sets adjacent to the point cloud set in the ring sequence. In the embodiment of the present specification, the fact that two point cloud sets have a common view area indicates that the two point cloud sets contain the same point clouds. Therefore, the transformation relationship between the two point cloud sets having the common view area can be determined.

[0138] Still Figure 2 For example, in Figure 2 In the example, point cloud set A contains the same point clouds as point cloud set B and point cloud set C. Therefore, the first relative pose between point cloud set A and point cloud set B, and the first relative pose between point cloud set A and point cloud set C can be determined. At the same time, point cloud set B can also contain the same point clouds as point cloud set C. At this time, Figure 2 A circular sequence of point cloud set A-point cloud set C-point cloud set B is formed.

[0139] Next, the specified set pairs in the circular sequence can be determined, and the first relative pose between each adjacent point cloud set on the circular sequence can be determined. Taking any point cloud set in the specified set pair as the starting point, along two different directions in the circular sequence, for each direction, according to the first relative pose between each adjacent point cloud set on the circular sequence in that direction, the specified relative pose between the specified set pairs can be determined, and according to the difference between the two specified relative poses between the specified set pairs determined along the two different directions in the circular sequence, the consistency characterization value of each first relative pose corresponding to the point cloud set group can be determined.

[0140] Of course, when any method is used to determine the above-mentioned ring sequence, the consistency representation value of each first relative posture corresponding to the point cloud set group can be determined according to the determined ring sequence in the above-mentioned manner.

[0141] exist Figure 2 In , the rotation and translation matrix T1 for transforming point cloud set B to point cloud set A, the rotation and translation matrix T2 for transforming point cloud set B to point cloud set C, and the rotation and translation matrix T3 for transforming point cloud set C to point cloud set A can be determined. Exemplarily, the point cloud set A and the point cloud set B are used as the specified set pair in the ring sequence, and the point cloud set B is determined as the starting point. Two rotation and translation matrices T1 for transforming point cloud set B to point cloud set A, and the product of T2 and T3 can be determined along different directions. At this time, the difference between T1 and the product of T2 and T3 is compared. The smaller the difference, the higher the consistency characterization value of each first relative posture corresponding to the point cloud set group.

[0142] In another embodiment of the present specification, when any of the above-mentioned methods is used to determine the constraint weight of the basic pose of each point cloud set in the point cloud set group, it can be determined whether the confidence condition is met based on the constraint weight of the basic pose of each point cloud set in the point cloud set group. The higher the constraint weight of the basic pose of each point cloud set in the point cloud set group, it can be considered that the positioning accuracy of the positioning device is higher when collecting each point cloud set in the point cloud set group. Therefore, in the neighborhood of the collection time of each point cloud set in the point cloud set group, the relative pose of each point cloud set determined based on the basic pose (hereinafter referred to as the second relative pose) can be used to verify the first relative pose of each point cloud set determined based on the point cloud matching algorithm.

[0143] Specifically, the confidence time domain in the neighborhood of the collection time of each confidence set can be determined based on the collection time of each confidence set collected by the collection device. In one embodiment of the present specification, the neighborhood of the collection time of each confidence set can be used as the confidence time domain, or the confidence time domain centered on a certain time can be determined based on the collection time of each confidence set. The present specification does not limit this. The range size of the confidence area can be a preset area size. Then, the point cloud set collected in the confidence time domain can be used as a set to be compared, and several pairs of sets to be compared can be determined, wherein the two sets to be compared in each determined pair of sets to be compared contain a common view area.

[0144] For each pair of sets to be compared, the two sets to be compared in the pair are compared, and according to the same point clouds contained in the two sets to be compared in the pair, a first relative posture between the two sets to be compared in the pair is obtained; according to the basic postures corresponding to the two sets to be compared in the pair, a second relative posture between the two sets to be compared in the pair is determined. Since the positioning accuracy of the positioning device is high in the neighborhood of the collection time of each point cloud set in the point cloud set group, it can be considered that when the first relative posture between the two sets to be compared is equal to the second relative posture between the two sets to be compared, the first relative posture between the two sets to be compared is more accurate.

[0145] In this case, the constraint weights of the first relative postures of the two sets to be compared in the set pair to be compared may be determined according to the difference between the first relative postures and the second relative postures of the two sets to be compared in the set pair to be compared.

[0146] The above is a method for determining a posture provided by one or more embodiments of this specification. Based on the same idea, this specification also provides a corresponding posture determination device, such as Figure 4 shown.

[0147] Figure 4 A schematic diagram of a posture determination device provided in this specification, the device comprising:

[0148] The acquisition module 400 is used to acquire the point cloud data pre-collected by the acquisition device, and the basic posture determined by the positioning device carried by the acquisition device during the process of the acquisition device collecting the point cloud data;

[0149] A division module 402 is used to divide the point cloud data into a plurality of point cloud sets and determine a basic pose corresponding to each point cloud set;

[0150] The comparison module 404 is used to determine a point cloud set group consisting of at least three point cloud sets, compare the point cloud sets in the point cloud set group with each other, and obtain the first relative poses between the point cloud sets according to the same point clouds included in the point cloud sets as the first relative poses corresponding to the point cloud set group;

[0151] A weight determination module 406 is used to determine the consistency representation value of each first relative posture corresponding to the point cloud set group, and determine the constraint weight of the first relative posture corresponding to the point cloud set group according to the consistency representation value;

[0152] The relative constraint module 408 is used to determine, for each point cloud set, each constrained point cloud set that contains a common view area with the point cloud set, and use the first relative pose between the constrained point cloud set of the point cloud set and the point cloud set as the constrained relative pose for the point cloud set;

[0153] The posture determination module 410 is used to determine the target posture of the point cloud set based on the basic posture corresponding to the point cloud set and according to the constraint weights of each constraint relative posture of the point cloud set, under the constraints of each constraint relative posture.

[0154] Optionally, the division module 402 is specifically used to determine each point cloud frame included in the point cloud data, and divide a number of point cloud sets from each point cloud frame, wherein each point cloud set is a point cloud frame sequence composed of a number of point cloud frames; for each point cloud set, the basic pose corresponding to the point cloud set is determined according to the basic pose corresponding to each point cloud frame in the point cloud set.

[0155] Optionally, the weight determination module 406 is specifically used to construct a circular sequence composed of various point cloud sets, wherein, for each point cloud set in the circular sequence, there is a common view area between the point cloud set and each of the two point cloud sets adjacent to the point cloud set in the circular sequence; determine a specified set pair in the circular sequence; determine a first relative pose between each adjacent point cloud set on the circular sequence; take any point cloud set in the specified set pair as a starting point, along two different directions in the circular sequence, for each direction, according to the first relative pose between each adjacent point cloud set on the circular sequence in that direction, determine a specified relative pose between the specified set pair; according to the difference between the two specified relative poses between the specified set pair determined along the two different directions in the circular sequence, determine the consistency characterization value of each first relative pose corresponding to the point cloud set group.

[0156] Optionally, the comparison module 404 is specifically used to select at least three point cloud sets from the point cloud sets included in the point cloud set group, wherein each selected point cloud set has a common view area with at least two other point cloud sets; for each selected point cloud set, determine two other point cloud sets that have an adjacent relationship with the point cloud set from the other point cloud sets selected that have a common view area with the point cloud set; and construct a ring sequence composed of the point cloud sets based on the determined adjacent relationships between the point cloud sets.

[0157] Optionally, the comparison module 404 is specifically used to determine a point cloud set group and initialize the point cloud set group to an empty set; according to the basic posture corresponding to each point cloud set, select two point cloud sets whose corresponding basic positions have a distance less than a pre-specified distance threshold from each point cloud set as an initial set pair, and add the initial set pair to the point cloud set group; for each point cloud set included in the initial set pair, determine a point cloud set that is chronologically adjacent to the acquisition moment of the point cloud set as an adjacent set of the point cloud set, and add the adjacent set to the point cloud set group, wherein the distance between the basic positions corresponding to the adjacent set of each point cloud set in the initial set pair and the adjacent set of another point cloud set in the initial set pair is less than a pre-specified distance threshold.

[0158] Optionally, the weight determination module 406 is specifically used to determine whether the first matching condition is met based on the consistency representation values ​​of each first relative posture corresponding to the point cloud set group; if so, use the point cloud set group as the set group to be verified, and determine other point cloud set groups in the neighborhood of the point cloud set group as reference set groups for the set group to be verified; for each reference set group determined, determine the consistency representation values ​​of each first relative posture corresponding to the reference set group; and re-determine the constraint weight of the first relative posture corresponding to the point cloud set group based on the consistency representation values ​​of each first relative posture corresponding to each reference set group determined.

[0159] Optionally, the weight determination module 406 is specifically used to select, from each point cloud set included in the set group to be verified, a reference set pair whose distances between corresponding basic positions are less than a pre-specified distance threshold; for each point cloud set in the reference set pair, determine a point cloud set that is chronologically adjacent to the acquisition moment of the point cloud set as the initial set in the reference set group, wherein the distance between the basic positions corresponding to two point cloud sets in the initial set pair in the reference set group is less than a pre-specified distance threshold; for each initial set in the reference set group, determine a point cloud set that is chronologically adjacent to the acquisition moment of the initial set and is not included in the set group to be verified as the adjacent set in the reference set.

[0160] Optionally, the weight determination module 406 is also used to determine whether the second matching condition is met based on the constraint weight of the first relative posture corresponding to the point cloud set group; if so, determine the second relative posture between the point cloud sets according to the basic posture of each point cloud set in the point cloud set group; determine the constraint weight of the basic posture corresponding to each point cloud set in the point cloud set group according to the difference between the corresponding first relative posture and the second relative posture, wherein, for each point cloud set, the greater the difference between the corresponding first relative posture and the second relative posture between the point cloud set and other point cloud sets, the smaller the constraint weight of the basic posture corresponding to the point cloud set is determined.

[0161] Optionally, the posture determination module 410 is specifically used to determine a basic constraint range of a target posture corresponding to the point cloud set in a neighborhood of the basic posture corresponding to the point cloud set according to a basic posture corresponding to the point cloud set and a constraint weight of the basic posture corresponding to the point cloud set; and to determine the target posture of the point cloud set under the constraints of each constraint relative posture and the basic constraint range corresponding to the point cloud set according to the constraint weights of each constraint relative posture of the point cloud set.

[0162] Optionally, the weight determination module 406 is also used to determine whether a specified confidence condition is met based on the constraint weight of the basic posture of each point cloud set in the point cloud set group; if so, each point cloud set in the point cloud set group is used as a confidence set, and according to the acquisition time of each confidence set acquired by the acquisition device, a confidence time domain in the neighborhood of the acquisition time of each confidence set is determined; the point cloud set acquired in the confidence time domain is used as a set to be compared, and a number of sets to be compared are determined, wherein two sets to be compared in each determined set pair to be compared contain a common view area; for each set to be compared For a pair of sets, two sets to be compared in the pair of sets to be compared are compared, and according to the same point clouds contained in the two sets to be compared in the pair of sets to be compared, a first relative pose between the two sets to be compared in the pair of sets to be compared is obtained; according to the basic poses corresponding to the two sets to be compared in the pair of sets to be compared, a second relative pose between the two sets to be compared in the pair of sets to be compared is determined; according to the difference between the first relative pose and the second relative pose of the two sets to be compared in the pair of sets to be compared, a constraint weight of the first relative pose of the two sets to be compared in the pair of sets to be compared is determined.

[0163] Optionally, the posture determination module 410 is specifically used to determine the target posture of each point cloud set based on the basic posture corresponding to each determined point cloud set and according to the constraint weights of each constrained relative posture of each point cloud set, under the constraint of the constrained relative posture of each point cloud set, wherein, for each pair of point cloud sets that are mutually constrained point cloud sets, the greater the constraint weight of the constrained relative posture between the point cloud set pair, the smaller the difference between the relative posture between the target postures of the two point cloud sets in the point cloud set pair and the constrained relative posture between the point cloud set pair.

[0164] This specification also provides a computer-readable storage medium, which stores a computer program, and the computer program can be used to execute the above-mentioned posture determination method.

[0165] This manual also provides Figure 5 The structural diagram of the electronic device shown in FIG. Figure 5 As shown, at the hardware level, the electronic device includes a processor, an internal bus, a memory, and a non-volatile memory, and may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to implement the above-mentioned posture determination method.

[0166] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the executor of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0167] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0168] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0169] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0170] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0171] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0172] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0173] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0174] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0175] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0176] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0177] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0178] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0179] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0180] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0181] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0182] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. A method for determining a posture, It is characterized in that include: Acquire point cloud data pre-collected by a collection device, and a basic posture determined by a positioning device carried by the collection device during the process of the collection device collecting the point cloud data; Based on the point cloud data, a plurality of point cloud sets are divided, and a basic pose corresponding to each point cloud set is determined; Determine a point cloud set group consisting of at least three point cloud sets, compare point cloud sets in the point cloud set group with each other, and obtain first relative poses between point cloud sets according to the same point clouds contained in the point cloud sets as the first relative poses corresponding to the point cloud set group; Determine the consistency representation value of each first relative posture corresponding to the point cloud set group, and determine the constraint weight of the first relative posture corresponding to the point cloud set group according to the consistency representation value, wherein determining the consistency representation value of each first relative posture corresponding to the point cloud set group specifically includes: Constructing a ring sequence composed of each point cloud set, wherein for each point cloud set in the ring sequence, there is a common view area between the point cloud set and each of two point cloud sets adjacent to the point cloud set in the ring sequence; Determine a specified set pair in the annular sequence; determine a first relative pose between adjacent point cloud sets in the annular sequence; Taking any point cloud set in the specified set pair as a starting point, along two different directions in the annular sequence, for each direction, according to the first relative poses between adjacent point cloud sets on the annular sequence in the direction, determine the specified relative pose between the specified set pair; Determining consistency representation values ​​of first relative postures corresponding to the point cloud set group according to a difference between two specified relative postures between the specified set pairs determined along two different directions in the annular sequence; For each point cloud set, determine each constrained point cloud set that contains a common view area with the point cloud set, and use the first relative pose between the constrained point cloud set of the point cloud set and the point cloud set as the constrained relative pose of the point cloud set; Based on the basic pose corresponding to the point cloud set, according to the constraint weights of each constraint relative pose of the point cloud set, and under the constraints of each constraint relative pose, the target pose of the point cloud set is determined.

2. The method according to claim 1, It is characterized in that Based on the point cloud data, several point cloud sets are divided, and the basic pose corresponding to each point cloud set is determined, specifically including: Determine each point cloud frame included in the point cloud data, and divide a plurality of point cloud sets from each point cloud frame, wherein each point cloud set is a point cloud frame sequence composed of a plurality of point cloud frames; For each point cloud set, the basic pose corresponding to the point cloud set is determined according to the basic pose corresponding to each point cloud frame in the point cloud set.

3. The method according to claim 1, It is characterized in that Construct a ring sequence consisting of each point cloud set, including: Selecting at least three point cloud sets from the point cloud sets included in the point cloud set group, wherein each of the selected point cloud sets has a common viewing area with at least two other point cloud sets; For each selected point cloud set, from other selected point cloud sets having a common view area with the point cloud set, determine two other point cloud sets that are adjacent to the point cloud set; According to the determined adjacent relationship between each point cloud set, a ring sequence consisting of each point cloud set is constructed.

4. The method according to claim 1, It is characterized in that A point cloud set group consisting of at least three point cloud sets is determined, specifically including: Determine a point cloud set group, and initialize the point cloud set group to an empty set; According to the basic poses corresponding to the point cloud sets, two point cloud sets whose corresponding basic positions have a distance less than a pre-specified distance threshold are selected from the point cloud sets as initial set pairs, and the initial set pairs are added to the point cloud set group; For each point cloud set included in the initial set pair, a point cloud set that is chronologically adjacent to the acquisition moment of the point cloud set is determined as an adjacent set of the point cloud set, and the adjacent set is added to the point cloud set group, wherein the distance between the basic positions corresponding to the adjacent set of each point cloud set in the initial set pair and the adjacent set of another point cloud set in the initial set pair is less than a pre-specified distance threshold.

5. The method according to claim 1, It is characterized in that After determining the consistency representation values ​​of the first relative postures corresponding to the point cloud set group, the method further includes: Determining whether a first matching condition is satisfied according to the consistency representation value of each first relative posture corresponding to the point cloud set group, wherein when the consistency representation value is greater than a preset first matching threshold, it is determined that the first matching condition is satisfied; If yes, use the point cloud set group as the set group to be verified, and determine other point cloud set groups in the neighborhood of the point cloud set group as reference set groups for the set group to be verified; For each determined reference set group, determining a consistency representation value of each first relative posture corresponding to the reference set group; According to the determined consistency representation values ​​of the first relative postures corresponding to the reference set groups, the constraint weights of the first relative postures corresponding to the point cloud set groups are re-determined.

6. The method according to claim 5, It is characterized in that Determining other point cloud set groups in the neighborhood of the point cloud set group specifically includes: Selecting, from each point cloud set included in the set to be verified, a reference set pair whose distances between corresponding basic positions are less than a pre-specified distance threshold; For each point cloud set in the reference set pair, determine a point cloud set that is temporally adjacent to the acquisition time of the point cloud set as an initial set in the reference set group, wherein a distance between basic positions corresponding to two point cloud sets in the initial set pair in the reference set group is less than a pre-specified distance threshold; For each initial set in the reference set, a point cloud set that is temporally adjacent to the acquisition time of the initial set and is not included in the set to be verified is determined as an adjacent set in the reference set.

7. The method according to claim 1, It is characterized in that The method further comprises: According to the constraint weight of the first relative posture corresponding to the point cloud set group, judging whether the second matching condition is met, wherein when the constraint weight of the first relative posture corresponding to the point cloud set group is greater than the second matching threshold, judging that the second matching condition is met; If yes, determining a second relative pose between each of the point cloud sets according to the basic pose of each point cloud set in the point cloud set group; According to the difference between the corresponding first relative posture and the second relative posture, the constraint weight of the basic posture corresponding to each point cloud set in the point cloud set group is determined, wherein, for each point cloud set, the greater the difference between the corresponding first relative posture and the second relative posture between the point cloud set and other point cloud sets, the smaller the constraint weight of the basic posture corresponding to the determined point cloud set is.

8. The method according to claim 7, It is characterized in that Based on the basic pose corresponding to the point cloud set, according to the constraint weights of each constraint relative pose of the point cloud set, under the constraints of each constraint relative pose, the target pose of the point cloud set is determined, specifically including: According to the basic pose corresponding to the point cloud set and the constraint weight of the basic pose corresponding to the point cloud set, a basic constraint range of the target pose corresponding to the point cloud set is determined in the neighborhood of the basic pose corresponding to the point cloud set; According to the constraint weights of the relative poses of the constraints of the point cloud set, the target pose of the point cloud set is determined under the constraints of the relative poses of the constraints and the basic constraint range corresponding to the point cloud set.

9. The method according to claim 8, It is characterized in that The method further comprises: Determining whether a specified confidence condition is satisfied according to the constraint weight of the basic pose of each point cloud set in the point cloud set group; If so, each point cloud set in the point cloud set group is taken as a confidence set, and according to the acquisition time of each confidence set acquired by the acquisition device, a confidence time domain in the neighborhood of the acquisition time of each confidence set is determined; The point cloud set collected in the trust time domain is used as a to-be-compared set, and a plurality of to-be-compared set pairs are determined, wherein two to-be-compared sets in each of the determined to-be-compared set pairs contain a common view area; For each pair of sets to be compared, two sets to be compared in the pair of sets to be compared are compared, and according to the same point clouds contained in the two sets to be compared in the pair of sets to be compared, a first relative pose between the two sets to be compared in the pair of sets to be compared is obtained; according to the basic poses corresponding to the two sets to be compared in the pair of sets to be compared, a second relative pose between the two sets to be compared in the pair of sets to be compared is determined; According to the difference between the first relative postures and the second relative postures of the two sets to be compared in the set pair to be compared, the constraint weights of the first relative postures of the two sets to be compared in the set pair to be compared are determined.

10. The method according to any one of claims 1 to 9, It is characterized in that Based on the basic pose corresponding to the point cloud set, according to the constraint weights of each constraint relative pose of the point cloud set, under the constraints of each constraint relative pose, the target pose of the point cloud set is determined, specifically including: Based on the determined basic poses corresponding to each point cloud set, according to the constraint weights of each constrained relative pose of each point cloud set, the target pose of each point cloud set is determined under the constraints of the constrained relative pose of each point cloud set, wherein, for each pair of point cloud sets that are mutually constrained point cloud sets, the greater the constraint weight of the constrained relative pose between the point cloud set pair, the smaller the difference between the relative pose between the target poses of the two point cloud sets in the point cloud set pair and the constrained relative pose between the point cloud set pair.

11. A computer-readable storage medium, It is characterized in that The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.

12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • A method and apparatus for aligning three-dimensional point clouds

    CN109523581A

  • Method, device and equipment for generating electronic map and storage medium

    CN111552757A

  • Identification map establishing method and device and visual positioning method and device

    CN112712018A

  • Method, system and device for constructing three-dimensional point cloud map

    CN113424232A

  • Map construction method and device

    CN113819914A