A posture construction method, device, electronic device and storage medium
By extracting the feature points of the sensor data in the laser SLAM algorithm and performing flatness detection and compensation, the problem of accuracy and computational complexity of pose construction in uneven road environments is solved, and real-time, accurate operation of unmanned vehicles in harsh environments is achieved. Complete pose construction and lightweight calculation.
Patent Information
- Application Number
- CN202410757945.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-13
AI Technical Summary
The existing laser SLAM algorithm has unsatisfactory results in uneven road environments. It requires a large amount of calculation and is inaccurate. It is difficult to handle complex scenes, resulting in delamination phenomena and a waste of computing resources.
By acquiring sensor data, extracting feature points and generating carrier poses, the flatness is detected, and compensation is performed based on the detection results to reduce the amount of calculation and improve the accuracy and real-time performance of pose construction.
It achieves real-time and complete pose construction in harsh environments such as uneven roads, improves the pose construction capabilities of unmanned vehicles, reduces the amount of calculation and computing power costs, and avoids the occurrence of delamination.
Smart Images

Figure CN118334568B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of real-time map construction, and in particular to a posture construction method, device, electronic device and storage medium. Background Art
[0002] With the development of artificial intelligence technology, unmanned vehicles have been widely used. SLAM, as the core function of unmanned vehicles, has been used in more and more scenarios. However, most laser SLAM algorithms are studied on the premise that the road surface is flat and structured. There are also many complex scenes in the real environment, such as off-road roads, mountains and forests. In these scenes, the road environment is uneven and the road surface is not structured. The effect of existing laser SLAM algorithms in such scenes is not ideal and needs to be improved.
[0003] Existing technologies usually eliminate all accumulated errors through global loop detection, but uneven roads are mostly found in the wild. The calculation of loop detection of the carrier in the wild is large, which seriously affects the real-time performance of the SLAM algorithm and causes a waste of computing resources. Uneven roads usually exist in unstructured outdoor scenes. The calculation of the pose of all laser points is large, and the feature extraction using only distance information is inaccurate. Traditional methods lack the necessary uneven road detection and are difficult to process the special section of uneven road. SLAM in large scenes is prone to stratification. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a posture construction method, device, electronic device and storage medium, which can improve the accuracy of posture construction, reduce the amount of calculation, improve the posture construction capability of unmanned vehicles, and perform posture construction in real time and completely in harsh environments such as uneven roads.
[0005] In a first aspect, an embodiment of the present application provides a posture construction method, the method comprising:
[0006] Get pre-processed sensor data;
[0007] Extracting feature points from the sensor data;
[0008] Generate a carrier pose according to the feature points;
[0009] Performing a flatness test on the carrier posture to obtain a test result;
[0010] When the detection result requires compensation, the carrier posture is compensated to obtain a posture construction result.
[0011] In the above implementation process, the carrier posture is generated according to the feature points and then the flatness detection is performed. The carrier posture is compensated according to the detection result of the flatness detection. This can improve the accuracy of posture construction, reduce the amount of calculation, and improve the posture construction capability of the unmanned vehicle. For harsh environments such as uneven roads, posture construction can also be performed in real time and completely.
[0012] Furthermore, the step of extracting feature points from the sensor data includes:
[0013] Obtaining pixel points in the sensor data to construct a point set;
[0014] Obtaining curvature data of each pixel point in the point set;
[0015] Determine whether the curvature data of the pixel point is greater than a curvature threshold;
[0016] If so, determine that the pixel point is a feature point;
[0017] If not, the pixel point is determined to be a non-feature point.
[0018] In the above implementation process, by comparing the curvature data of the pixel point in the sensor data with the curvature threshold to determine whether the pixel point is a feature point, the pixel point can be accurately and quickly identified and extracted, thereby improving the processing capability of the sensor data.
[0019] Furthermore, the step of obtaining the curvature data of each pixel point in the point set includes:
[0020] Constructing a covariance matrix of the point set to obtain eigenvectors and eigenvalues;
[0021] The curvature data of the pixel point is obtained according to the eigenvector and the eigenvalue.
[0022] In the above implementation process, the eigenvector and eigenvalue are obtained according to the covariance matrix of the point set, and the curvature data of the pixel point is obtained according to the eigenvector and eigenvalue, which can reduce errors and reduce the amount of data calculation.
[0023] Furthermore, the covariance matrix of the point set is constructed according to the following formula:
[0024] ;
[0025] in, is the covariance matrix, n is the number of pixels in the point set, i and j represent integers, is the center point of the point set, and p is a pixel point.
[0026] Furthermore, the step of generating a carrier posture according to the feature points comprises:
[0027] Constructing a first constraint and a second constraint of the feature point;
[0028] Obtaining a similarity score between the first constraint and the second constraint;
[0029] The similarity score is iterated to generate the carrier pose.
[0030] In the above implementation process, iteration is performed according to the similarity score between the first constraint and the second constraint to generate the carrier pose, which can improve the accuracy and usability of the carrier pose.
[0031] Furthermore, the step of performing a flatness test on the carrier posture to obtain a test result includes:
[0032] Obtain the Z-axis displacement change rate in the curvature data;
[0033] Compare the change of the Z-axis displacement change rate at different times with the detection threshold to obtain a comparison result;
[0034] The detection result is obtained according to the comparison result.
[0035] In the above implementation process, comparing the change of the Z-axis displacement change rate at different times with the detection threshold can solve the problem of stratification caused by posture construction in complex scenes and environments and improve the construction accuracy.
[0036] Furthermore, the change of the Z-axis displacement change rate at different times is compared with the detection threshold according to the following formula:
[0037] ;
[0038] in, is the rate of change of Z-axis displacement at time t, is the rate of change of Z-axis displacement at time t-1, is the detection threshold, To detect the sign of balanced road surface.
[0039] Furthermore, when the detection result indicates that compensation is required, the step of compensating the carrier posture to obtain a posture construction result includes:
[0040] Determine the time corresponding to the carrier posture that needs to be compensated, and obtain the speed data of the Z axis at this time;
[0041] The carrier posture is compensated according to the speed data to obtain the posture construction result.
[0042] In the above implementation process, the local carrier posture is compensated through speed data to avoid the loss of computation caused by global loop detection, thereby reducing computing power costs, achieving lightweight computing and improving efficiency.
[0043] In a second aspect, an embodiment of the present application further provides a posture construction device, the device comprising:
[0044] An acquisition module, used to acquire pre-processed sensor data;
[0045] An extraction module, used to extract feature points from the sensor data;
[0046] A generating module, used for generating a carrier posture according to the feature points;
[0047] A detection module, used to perform a flatness detection on the carrier posture to obtain a detection result;
[0048] The compensation module is used to compensate the carrier posture when the detection result requires compensation to obtain a posture construction result.
[0049] In the above implementation process, the carrier posture is generated according to the feature points and then the flatness detection is performed. The carrier posture is compensated according to the detection result of the flatness detection. This can improve the accuracy of posture construction, reduce the amount of calculation, and improve the posture construction capability of the unmanned vehicle. For harsh environments such as uneven roads, posture construction can also be performed in real time and completely.
[0050] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any one of the first aspects when executing the computer program.
[0051] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which instructions are stored. When the instructions are executed on a computer, the computer executes the method as described in any one of the first aspects.
[0052] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on a computer, enables the computer to execute the method as described in any one of the first aspects.
[0053] Other features and advantages of the present disclosure will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by implementing the above-mentioned technology of the present disclosure.
[0054] And it can be implemented according to the contents of the specification. The following is a detailed description of the preferred embodiments of the present application with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the range values. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying any creative work.
[0056] Figure 1 A schematic diagram of a process for constructing a posture according to an embodiment of the present application;
[0057] Figure 2 A schematic diagram of the structural composition of a posture construction device provided in an embodiment of the present application;
[0058] Figure 3 A schematic diagram of the structural composition of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0060] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0061] The specific implementation methods of the present application are further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present application, but are not used to limit the scope of the present application.
[0062] Embodiment 1
[0063] Figure 1 is a flow chart of the posture construction method provided in the embodiment of the present application, such as Figure 1 As shown, the method includes:
[0064] S1, obtain preprocessed sensor data;
[0065] S2, extracting feature points from sensor data;
[0066] S3, generating carrier pose according to feature points;
[0067] S4, performing a flatness test on the carrier posture to obtain a test result;
[0068] S5: When the detection result indicates that compensation is required, the carrier posture is compensated to obtain a posture construction result.
[0069] In the above implementation process, the carrier posture is generated according to the feature points and then the flatness detection is performed. The carrier posture is compensated according to the detection result of the flatness detection. This can improve the accuracy of posture construction, reduce the amount of calculation, and improve the posture construction capability of the unmanned vehicle. For harsh environments such as uneven roads, posture construction can also be performed in real time and completely.
[0070] In S1, the sensor data of the laser radar and IMU are obtained and preprocessed. The laser radar of the embodiment of the present application is a 3D laser radar with 64 beams, an operating frequency of 10HZ, an angular resolution of 0.2°, and 10 frames of laser point cloud are collected per second. The laser point cloud contains the distance information D and intensity information I from the carrier to the reflection point.
[0071] IMU, or inertial measurement unit, consists of three single-axis accelerometers and three single-axis gyroscopes. The accelerometer detects the acceleration signals of the object in the three independent axes of the carrier coordinate system, while the gyroscope detects the angular velocity signals of the carrier relative to the navigation coordinate system. After processing these signals, the position and rotation information of the carrier can be calculated.
[0072] The sensor data is preprocessed including normalizing the intensity values and generating a distance-intensity map.
[0073] Normalize the intensity value. According to the generation principle of reflection intensity, a mathematical model is established. The mathematical model is used to correct and normalize the reflection intensity of the laser point to obtain the reflection intensity information of the laser point. The mathematical model is as follows:
[0074] ;
[0075] in, is the normalized reflection intensity, I is the reflection intensity information, which can be directly measured. is the angle of incidence, which can be obtained by measurement.
[0076] Generate a distance-intensity map, reduce the dimension of the laser point cloud, and generate a distance-intensity map, in which each pixel contains distance and normalized intensity information.
[0077] Furthermore, S2 includes:
[0078] Get the pixel points in the sensor data to build a point set;
[0079] Obtain the curvature data of each pixel in the point set;
[0080] Determine whether the curvature data of the pixel point is greater than the curvature threshold;
[0081] If so, determine the pixel as a feature point;
[0082] If not, the pixel is determined to be a non-feature point.
[0083] In the above implementation process, by comparing the curvature data of the pixel point in the sensor data with the curvature threshold to determine whether the pixel point is a feature point, the pixel point can be accurately and quickly identified and extracted, thereby improving the processing capability of the sensor data.
[0084] Feature points are extracted from the distance-intensity map in the sensor data, and the carrier pose is calculated using the ID-ICP point cloud registration algorithm.
[0085] In the present application, feature points are extracted by comparing curvature thresholds.
[0086] Suppose a frame distance-intensity graph Any point in The point set formed by all points in the neighborhood of is L= { , ,… , }.
[0087] Furthermore, the step of obtaining curvature data of each pixel in the point set includes:
[0088] Construct the covariance matrix of the point set and obtain the eigenvectors and eigenvalues;
[0089] The curvature data of the pixel point is obtained according to the eigenvector and eigenvalue.
[0090] In the above implementation process, the eigenvector and eigenvalue are obtained according to the covariance matrix of the point set, and the curvature data of the pixel point is obtained according to the eigenvector and eigenvalue, which can reduce errors and reduce the amount of data calculation.
[0091] Furthermore, the covariance matrix of the point set is constructed according to the following formula:
[0092] ;
[0093] in, is the covariance matrix, n is the number of pixels in the point set, i and j represent integers, is the center point of the point set.
[0094] Based on the covariance matrix, the eigenvector can be calculated and eigenvalues , as shown below:
[0095] ;
[0096] The normal vector is given by the eigenvalue To determine, the embodiment of the present application regards the eigenvector corresponding to the smallest eigenvalue as the normal vector. Contains three dimensions: , and , so the curvature is calculated as follows:
[0097] ;
[0098] Set the curvature threshold , the formula for determining whether a pixel is a feature point is as follows:
[0099] ;
[0100] in, Indicates the feature point determination flag. When the curvature of the pixel point is greater than the curvature threshold, the feature point determination flag is set to 1, indicating that the point is a feature point; when the curvature of the pixel point is less than the curvature threshold, the feature point determination flag is set to 0, indicating that the point is not a feature point.
[0101] Furthermore, S3 includes:
[0102] Construct the first constraint and the second constraint of the feature point;
[0103] Obtain a similarity score between the first constraint and the second constraint;
[0104] The similarity scores are iterated to generate the carrier pose.
[0105] In the above implementation process, iteration is performed according to the similarity score between the first constraint and the second constraint to generate the carrier pose, which can improve the accuracy and usability of the carrier pose.
[0106] After obtaining the feature points, the ID-ICP point cloud registration algorithm is used to calculate the carrier pose and construct dual constraints.
[0107] Let Q be the distance-intensity map corresponding to P in the distance-intensity map, For Q The first constraint of the embodiment of the present application is the Euclidean distance difference of the feature points:
[0108] ;
[0109] The second constraint of the embodiment of the present application is the reflection intensity difference of the feature point:
[0110] ;
[0111] Define the similarity score S:
[0112] ;
[0113] in, and When the similarity is lower, it indicates that the two feature points are corresponding. Through continuous iterative comparison, the LM algorithm is used to solve and finally the carrier posture is obtained.
[0114] Furthermore, S4 includes:
[0115] Obtain the Z-axis displacement change rate in the curvature data;
[0116] Compare the change of the Z-axis displacement change rate at different times with the detection threshold to obtain a comparison result;
[0117] A detection result is obtained according to the comparison result.
[0118] In the above implementation process, comparing the change of the Z-axis displacement change rate at different times with the detection threshold can solve the problem of stratification caused by posture construction in complex scenes and environments and improve the construction accuracy.
[0119] If the carrier passes through an uneven road surface, the displacement change of the z-axis will increase instantaneously, and the displacement change rate of the z-axis is dynamic throughout the process of passing through the uneven road surface. The change of the displacement change rate of the z-axis at different times is compared with the detection threshold according to the following formula:
[0120] ;
[0121] in, is the rate of change of Z-axis displacement at time t, is the rate of change of Z-axis displacement at time t-1, is the detection threshold, The initial value of is 1. Indicates the balance road detection flag. When it is equal to 1, it means that the carrier passes through an unbalanced road surface within the time window and needs to be compensated locally. When it is equal to 0, it means that the time window carrier has not passed through an unbalanced road surface and no local time compensation is required.
[0122] Furthermore, S5 includes:
[0123] Determine the time corresponding to the carrier posture that needs to be compensated, and obtain the speed data of the Z axis at this time;
[0124] The carrier posture is compensated according to the velocity data to obtain the posture construction result.
[0125] In the above implementation process, the local carrier posture is compensated through speed data to avoid the loss of computation caused by global loop detection, thereby reducing computing power costs, achieving lightweight computing and improving efficiency.
[0126] Since the sudden change of the displacement of the z-axis will cause obvious stratification of the entire trajectory and map and increase the cumulative error, timely compensation is required.
[0127] The embodiment of the present application adopts a local time compensation algorithm, sets a time window, detects the experienced track every 60 seconds, and determines whether it has experienced an unbalanced road surface. Once it is detected that an unbalanced road surface has been experienced, the time period of the unbalanced road surface is locked according to the change rate of the z-axis displacement at each moment, and the posture of the carrier and the environment is compensated. The compensation formula is as follows:
[0128] ;
[0129] in, represents the velocity of the z-axis at time t, represents the acceleration due to gravity, Represents the time interval between two moments. represents the rotation matrix of the vector, represents the measured acceleration without noise, Indicates the z-axis pose after compensation.
[0130] The trajectory after local time compensation does not need to go through global loop detection, which can avoid the occurrence of stratification and further improve the trajectory accuracy.
[0131] The embodiment of the present application adopts the ID-ICP algorithm and the joint constraint of reflection intensity and distance to calculate the similarity score and solve the carrier posture, thereby improving the accuracy of the carrier posture calculation.
[0132] By setting the flat road detection threshold and taking advantage of the IMU's instantaneous accuracy, we can determine whether the road surface is flat, thus solving the problem of stratification that is easily caused by SLAM in large scenes.
[0133] A local timing compensation algorithm is added. When it is detected that an uneven road surface is passed within a unit time, the carrier and the environment posture are compensated locally to avoid the loss of calculation caused by global loop detection, thereby reducing the computing power cost of the SLAM algorithm, achieving lightweight computing, and taking into account both low cost and high efficiency.
[0134] Embodiment 2
[0135] In order to execute the method corresponding to the above embodiment 1 to achieve the corresponding functions and technical effects, a posture construction device is provided below, such as Figure 2 As shown, the device comprises:
[0136] Acquisition module 1, used to acquire pre-processed sensor data;
[0137] Extraction module 2, used to extract feature points from the sensor data;
[0138] A generating module 3, used for generating a carrier posture according to the feature points;
[0139] A detection module 4 is used to perform a flatness detection on the carrier posture to obtain a detection result;
[0140] The compensation module 5 is used to compensate the carrier posture when the detection result requires compensation, so as to obtain a posture construction result.
[0141] In the above implementation process, the carrier posture is generated according to the feature points and then the flatness detection is performed. The carrier posture is compensated according to the detection result of the flatness detection. This can improve the accuracy of posture construction, reduce the amount of calculation, and improve the posture construction capability of the unmanned vehicle. For harsh environments such as uneven roads, posture construction can also be performed in real time and completely.
[0142] Furthermore, the extraction module 2 is also used for:
[0143] Get the pixel points in the sensor data to build a point set;
[0144] Obtain the curvature data of each pixel in the point set;
[0145] Determine whether the curvature data of the pixel point is greater than the curvature threshold;
[0146] If so, determine the pixel as a feature point;
[0147] If not, the pixel is determined to be a non-feature point.
[0148] In the above implementation process, by comparing the curvature data of the pixel point in the sensor data with the curvature threshold to determine whether the pixel point is a feature point, the pixel point can be accurately and quickly identified and extracted, thereby improving the processing capability of the sensor data.
[0149] Furthermore, the extraction module 2 is also used for:
[0150] Construct the covariance matrix of the point set and obtain the eigenvectors and eigenvalues;
[0151] The curvature data of the pixel point is obtained according to the eigenvector and eigenvalue.
[0152] In the above implementation process, the eigenvector and eigenvalue are obtained according to the covariance matrix of the point set, and the curvature data of the pixel point is obtained according to the eigenvector and eigenvalue, which can reduce errors and reduce the amount of data calculation.
[0153] Furthermore, the extraction module 2 is also used to construct a covariance matrix of the point set according to the following formula:
[0154] ;
[0155] in, is the covariance matrix, n is the number of pixels in the point set, i and j represent integers, is the center point of the point set, and p is the pixel point.
[0156] Furthermore, the generating module 3 is also used for:
[0157] Construct the first constraint and the second constraint of the feature point;
[0158] Obtain a similarity score between the first constraint and the second constraint;
[0159] The similarity scores are iterated to generate the carrier pose.
[0160] In the above implementation process, iteration is performed according to the similarity score between the first constraint and the second constraint to generate the carrier pose, which can improve the accuracy and usability of the carrier pose.
[0161] Furthermore, the detection module 4 is also used for:
[0162] Obtain the Z-axis displacement change rate in the curvature data;
[0163] Compare the change of the Z-axis displacement change rate at different times with the detection threshold to obtain a comparison result;
[0164] A detection result is obtained according to the comparison result.
[0165] In the above implementation process, comparing the change of the Z-axis displacement change rate at different times with the detection threshold can solve the problem of stratification caused by posture construction in complex scenes and environments and improve the construction accuracy.
[0166] Furthermore, the detection module 4 is further used to compare the change of the Z-axis displacement change rate at different times with the detection threshold according to the following formula:
[0167] ;
[0168] in, is the rate of change of Z-axis displacement at time t, is the rate of change of Z-axis displacement at time t-1, is the detection threshold, To detect the sign of balanced road surface.
[0169] Furthermore, the compensation module 5 is also used for:
[0170] Determine the time corresponding to the carrier posture that needs to be compensated, and obtain the speed data of the Z axis at this time;
[0171] The carrier posture is compensated according to the velocity data to obtain the posture construction result.
[0172] In the above implementation process, the local carrier posture is compensated through speed data to avoid the loss of computation caused by global loop detection, thereby reducing computing power costs, achieving lightweight computing and improving efficiency.
[0173] The above-mentioned posture construction device can implement the method of the above-mentioned embodiment 1. The options in the above-mentioned embodiment 1 are also applicable to this embodiment and will not be described in detail here.
[0174] The rest of the contents of the embodiments of the present application can refer to the contents of the above-mentioned embodiment 1, and will not be repeated in this embodiment.
[0175] Embodiment 3
[0176] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the posture construction method of embodiment one.
[0177] Optionally, the above-mentioned electronic device may be a server.
[0178] See also Figure 3 , Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include a processor 31, a communication interface 32, a memory 33 and at least one communication bus 34. The communication bus 34 is used to realize direct connection and communication between these components. The communication interface 32 of the device in the embodiment of the present application is used to communicate signaling or data with other node devices. The processor 31 may be an integrated circuit chip with signal processing capabilities.
[0179] The processor 31 mentioned above can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or the processor 31 can also be any conventional processor, etc.
[0180] The memory 33 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electric erasable programmable read-only memory (EEPROM), etc. The memory 33 stores computer readable instructions. When the computer readable instructions are executed by the processor 31, the device can execute the above-mentioned Figure 1 The method embodiment involves various steps.
[0181] Optionally, the electronic device may further include a storage controller and an input / output unit. The memory 33, the storage controller, the processor 31, the peripheral interface, and the input / output unit are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components may be electrically connected to each other via a communication bus 34. The processor 31 is used to execute executable modules stored in the memory 33, such as software function modules or computer programs included in the device.
[0182] The input and output unit is used to provide users with the task creation and to create an optional time period or preset execution time for the task to enable interaction between the user and the server. The input and output unit can be, but is not limited to, a mouse and a keyboard.
[0183] Understandably, Figure 3 The structure shown is for illustration only. The electronic device may also include Figure 3 More or fewer components as shown, or with Figure 3 Different configurations shown. Figure 3 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0184] In addition, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, it implements the posture construction method of embodiment one.
[0185] The embodiment of the present application also provides a computer program product, which, when running on a computer, enables the computer to execute the method described in the method embodiment.
[0186] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart, can be implemented with a dedicated hardware-based device that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0187] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0188] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0189] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application. It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0190] The above is only a specific implementation of the present application, but the protection range of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical range disclosed in the present application, which should be included in the protection range of the present application. Therefore, the protection range of the present application should be based on the protection range of the claims.
[0191] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A pose construction method, It is characterized in that The method comprises: Get pre-processed sensor data; Extracting feature points from the sensor data; Generate a carrier pose according to the feature points; Performing a flatness test on the carrier posture to obtain a test result; When the detection result indicates that compensation is required, compensating the carrier posture to obtain a posture construction result; When the detection result indicates that compensation is required, the step of compensating the carrier posture to obtain a posture construction result includes: Determine the time corresponding to the carrier posture that needs to be compensated, and obtain the speed data of the Z axis at this time; The carrier posture is compensated according to the speed data to obtain the posture construction result.
2. The posture construction method according to claim 1, It is characterized in that The step of extracting feature points from the sensor data comprises: Obtaining pixel points in the sensor data to construct a point set; Obtaining curvature data of each pixel point in the point set; Determine whether the curvature data of the pixel point is greater than a curvature threshold; If so, determine that the pixel point is a feature point; If not, the pixel is determined to be a non-feature point.
3. The posture construction method according to claim 2, It is characterized in that The step of obtaining curvature data of each pixel point in the point set comprises: Constructing a covariance matrix of the point set to obtain eigenvectors and eigenvalues; The curvature data of the pixel point is obtained according to the eigenvector and the eigenvalue.
4. The posture construction method according to claim 3, It is characterized in that The covariance matrix of the point set is constructed according to the following formula: ; in, is the covariance matrix, n is the number of pixels in the point set, i and j represent integers, is the center point of the point set, and p is a pixel point.
5. The posture construction method according to claim 1, It is characterized in that The step of generating a carrier posture according to the feature points comprises: Constructing a first constraint and a second constraint of the feature point; Obtaining a similarity score between the first constraint and the second constraint; Iterating the similarity score to generate the carrier pose; The first constraint is the Euclidean distance difference of the feature points: The second constraint is the reflection intensity difference of the feature point.
6. The posture construction method according to claim 1, It is characterized in that The step of performing a flatness detection on the carrier posture to obtain a detection result comprises: Obtain the Z-axis displacement change rate in the curvature data; Compare the change of the Z-axis displacement change rate at different times with the detection threshold to obtain a comparison result; The detection result is obtained according to the comparison result.
7. The posture construction method according to claim 6, It is characterized in that The change of the Z-axis displacement change rate at different times is compared with the detection threshold according to the following formula: ; in, is the rate of change of Z-axis displacement at time t, is the rate of change of Z-axis displacement at time t-1, is the detection threshold, To detect the sign of balanced road surface.
8. A posture construction device, It is characterized in that The device comprises: An acquisition module, used to acquire pre-processed sensor data; An extraction module, used to extract feature points from the sensor data; A generating module, used for generating a carrier posture according to the feature points; A detection module, used to perform a flatness detection on the carrier posture to obtain a detection result; A compensation module, used for compensating the carrier posture when the detection result requires compensation, to obtain a posture construction result; The compensation module is also used for: Determine the time corresponding to the carrier posture that needs to be compensated, and obtain the speed data of the Z axis at this time; The carrier posture is compensated according to the speed data to obtain the posture construction result.
9. An electronic device, It is characterized in that It comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the posture construction method according to any one of claims 1 to 7.
10. A storage medium, It is characterized in that It stores a computer program, which, when executed by a processor, implements the posture construction method as described in any one of claims 1 to 7.
