A method and device for constructing elevation map
By acquiring and analyzing the point cloud data of the acquisition device, identifying and generating elevation maps of multi-layer roads, the problem that elevation maps in the prior art cannot accurately represent the height of overlapping roads, and the road perception capability of unmanned equipment is improved.
Patent Information
- Application Number
- CN202210070251.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-21
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-01-21
AI Technical Summary
It is difficult for existing elevation maps to accurately represent the spatial height information of overlapping multi-layer roads, especially in areas such as viaducts and overpasses.
By obtaining point cloud data and positioning information of the acquisition device, we can judge whether there are multiple trajectory height layers in the geographical area, and generate an elevation map of each trajectory height layer based on the point cloud data, and finally build a geographic area elevation containing all road height information. map.
Accurate high recognition and representation of overlapping roads is achieved, and the obstacle perception ability of unmanned equipment in complex road environments is improved, and more accurate autonomous driving decisions are supported.
Smart Images

Figure CN114440902B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of unmanned driving technology, and in particular to a method and device for constructing an elevation map. Background Art
[0002] When unmanned equipment realizes autonomous driving, it will rely on pre-built autonomous driving maps to make driving decisions. Among them, the autonomous driving map includes multiple types of maps, and different types of maps record different information. For example, the high-precision map of the autonomous driving map will record the semantic information of each road element (such as lane lines, traffic lights, etc.) on each road in the area covered by the map, the elevation map of the autonomous driving map will record the road height of each road in the area covered by the map, and the lidar map of the autonomous driving map will record the point cloud data collected for each road in the area covered by the map.
[0003] In the prior art, in the above-mentioned elevation map, for a horizontal position point, usually only one height information is recorded. In this way, when there are multi-layer roads with overlapping viaducts, overpasses, etc., the elevation map will not be able to accurately represent the spatial height information of each road.
[0004] Therefore, how to effectively represent the height information of overlapping multi-layer roads in elevation maps is an urgent problem to be solved. Summary of the invention
[0005] This specification provides a method and device for constructing an elevation map to partially solve the above-mentioned problems existing in the prior art.
[0006] This manual adopts the following technical solutions:
[0007] This manual provides a method for building an elevation map, including:
[0008] Acquire point cloud data collected by at least one collection device, and positioning information of the at least one collection device when collecting the point cloud data;
[0009] For each preset geographical area, judging, according to the altitude information carried in the positioning information belonging to the geographical area, whether the at least one acquisition device has at least two different trajectory altitude layers in the geographical area;
[0010] If so, for each trajectory height layer, generating an elevation map of the road corresponding to the trajectory height layer in the geographic area based on the point cloud data collected by the at least one collection device on the trajectory corresponding to the trajectory height layer;
[0011] An elevation map of the geographical area is constructed according to the elevation map of the road corresponding to each trajectory height layer by the at least one acquisition device.
[0012] Optionally, for each preset geographical area, judging whether the at least one acquisition device has at least two different track heights in the geographical area according to the height information carried in the positioning information belonging to the geographical area specifically includes:
[0013] For each preset geographical area, clustering the trajectory points generated by the at least one acquisition device in the geographical area according to the height information carried in the positioning information belonging to the geographical area;
[0014] By using the height information corresponding to the trajectory point clusters obtained through clustering, it is determined whether there are at least two different trajectory heights of the at least one acquisition device in the geographical area.
[0015] Optionally, for each trajectory height layer, generating an elevation map of a road corresponding to the trajectory height layer in the geographical area according to the point cloud data collected by the at least one collection device on the trajectory corresponding to the trajectory height layer specifically includes:
[0016] Determine each grid area pre-divided for the geographical area;
[0017] For each trajectory height layer, determine the grid area involved in the trajectory height layer as the target grid area corresponding to the trajectory height layer;
[0018] An elevation map of a road corresponding to the target grid area is generated based on the point cloud data belonging to the target grid area.
[0019] Optionally, for each trajectory height layer, determining a grid area involved in the trajectory height layer as a target grid area corresponding to the trajectory height layer specifically includes:
[0020] Determine, from the grid areas, a grid area covering different track height layers as a basic grid area;
[0021] For each trajectory height layer, the grid area surrounding the basic grid area is extended to determine the grid area involved in the trajectory height layer as the target grid area corresponding to the trajectory height layer.
[0022] Optionally, for each trajectory height layer, generating an elevation map of a road corresponding to the trajectory height layer in the geographical area according to the point cloud data collected by the at least one collection device on the trajectory corresponding to the trajectory height layer specifically includes:
[0023] From the point cloud data collected by the at least one collection device on the trajectory corresponding to the trajectory height, identifying point cloud points located on the ground as ground point cloud points;
[0024] According to the geographic coordinates of the ground point cloud points, an elevation map of the road corresponding to the trajectory height layer in the geographic area is generated.
[0025] Optionally, generating an elevation map of a road corresponding to the trajectory height layer in the geographical area according to the geographical coordinates of the ground point cloud point specifically includes:
[0026] Filtering target ground point cloud points from the ground point cloud points;
[0027] According to the geographic coordinates of the target ground point cloud point, an elevation map of the road corresponding to the trajectory height layer in the geographic area is generated.
[0028] Optionally, selecting target ground point cloud points from the ground point cloud points specifically includes:
[0029] For each ground point cloud point, determining the distance between the ground point cloud point and the laser radar when the laser radar installed on the at least one acquisition device acquires the ground point cloud point;
[0030] Determine the confidence level corresponding to the ground point cloud point according to the distance between the ground point cloud point and the laser radar;
[0031] According to the confidence level corresponding to each ground point cloud point, the target ground point cloud point is screened out from the ground point cloud points.
[0032] Optionally, selecting target ground point cloud points from the ground point cloud points specifically includes:
[0033] According to a preset resolution, the geographical area is divided into a number of unit areas;
[0034] For each unit area, determine other unit areas that are within a set neighborhood of the unit area;
[0035] Determine the median height of the ground point cloud points contained in the unit area and the height of the ground point cloud points contained in the other unit areas;
[0036] According to the median height, ground point cloud points with abnormal heights are removed from the ground point cloud points contained in the unit area to obtain the target ground point cloud points contained in the unit area.
[0037] Optionally, generating an elevation map of a road corresponding to the trajectory height layer in the geographical area according to the geographical coordinates of the ground point cloud point specifically includes:
[0038] According to a preset resolution, the geographical area is divided into a number of unit areas;
[0039] For each unit area, the height of the roads covered in the unit area is determined according to the geographic coordinates of each ground point cloud point falling within the unit area;
[0040] According to the determined heights of the roads covered in each unit area, an elevation map of the roads corresponding to the trajectory height layer in the geographical area is generated.
[0041] Optionally, for each unit area, the height of the road covered in the unit area is determined according to the geographic coordinates of each ground point cloud point falling within the unit area, specifically including:
[0042] If it is determined that the number of ground point cloud points contained in the unit area is less than a set threshold, determine a number of associated unit areas associated with the unit area in the geographic area;
[0043] Based on the determined heights of the roads covered in the plurality of associated unit areas, constructing a height plane surrounded by the plurality of associated unit areas;
[0044] The height of the road covered in the unit area is determined according to the corresponding position of the unit area in the height plane.
[0045] This specification provides a device for constructing an elevation map, including:
[0046] An acquisition module, used to acquire point cloud data acquired by at least one acquisition device, and positioning information of the at least one acquisition device when acquiring the point cloud data;
[0047] A judgment module, used for judging, for each preset geographical area, whether at least one acquisition device has at least two different track height layers in the geographical area according to the height information carried in the positioning information belonging to the geographical area;
[0048] A generating module, for generating, for each trajectory height layer, an elevation map of a road corresponding to the trajectory height layer in the geographic area based on point cloud data collected by the at least one collecting device on the trajectory corresponding to the trajectory height layer, if any;
[0049] The construction module is used to construct an elevation map of the geographical area according to the elevation map of the road corresponding to each trajectory height layer of the at least one acquisition device.
[0050] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method for constructing an elevation map is implemented.
[0051] 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 method for constructing an elevation map when executing the program.
[0052] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:
[0053] In the method for constructing an elevation map provided in the present specification, point cloud data collected by at least one collection device and positioning information of at least one collection device when collecting the point cloud data are obtained. Then, for each preset geographical area, based on the height information carried in the positioning information belonging to the geographical area, it is determined whether at least one collection device has at least two different trajectory height layers in the geographical area. If so, for each trajectory height layer, based on the point cloud data collected by at least one collection device on the trajectory corresponding to the trajectory height layer, an elevation map of the road corresponding to the trajectory height layer in the geographical area is generated. Finally, based on the elevation map of the road corresponding to each trajectory height layer of at least one collection device, an elevation map of the geographical area is constructed.
[0054] It can be seen from the above method that this method can identify the area where there are overlapping roads based on the height of the track points on each road. Then, when generating an elevation map of the geographical area including the area, the height of the track points on each road can be generated for each road in the overlapping roads, and finally the elevation map of the geographical area is obtained. The elevation map will contain the road height information of each road included in the geographical area. Furthermore, when the unmanned equipment passes through the geographical area, it can better assist the unmanned equipment to perceive obstacles to achieve automatic driving. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] 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:
[0056] Figure 1 A schematic diagram of a method for constructing an elevation map in this specification;
[0057] Figure 2 A schematic diagram of determining a destination grid area corresponding to each trajectory height layer in this specification;
[0058] Figure 3A-3B A schematic diagram of a method for determining the height in a unit area without point cloud points or with too few point cloud points in this specification;
[0059] Figure 4 A schematic diagram of a device for constructing an elevation map provided in this specification;
[0060] Figure 5 The corresponding Figure 1 Schematic diagram of electronic equipment. DETAILED DESCRIPTION
[0061] 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.
[0062] The solution for constructing an elevation map provided in this specification will be described in detail below in conjunction with embodiments.
[0063] Figure 1 The following is a flow chart of a method for constructing an elevation map in this specification, which specifically includes the following steps:
[0064] Step S100, acquiring point cloud data collected by at least one collection device, and positioning information of the at least one collection device when collecting the point cloud data.
[0065] In unmanned driving technology, when an unmanned device achieves autonomous driving, it makes driving decisions based on the real-time perception of the surrounding environment, combined with detailed information such as road elements of the road where the unmanned device is located recorded in the high-precision map, and controls the unmanned device based on the decision results to achieve autonomous driving.
[0066] Among them, when unmanned equipment perceives the environment through the various types of sensors (such as cameras, lidar, etc.) installed, if an obstacle is identified from the collected sensor data, the road height of the obstacle can be further queried from the elevation map of the autonomous driving map to determine the height of the obstacle from the ground. Then, based on the height of the obstacle from the ground, it can be judged whether the obstacle hinders the driving of the unmanned equipment. However, in actual business, when the elevation map is used to record the road height of each road within the coverage area of the map, since the elevation map can only record one height value for a horizontal position point, when constructing an elevation map for an area where multiple roads overlap, such as an overpass, it will be impossible to record the road height of each road at the same time.
[0067] In order to solve this problem, this specification will provide a method for constructing an elevation map. In this method, an area where multiple roads such as an overpass overlap is first identified, and then a corresponding elevation map of each road in the identified area is generated to obtain an elevation map covering multiple roads contained in the area.
[0068] In the specific implementation, it is first necessary to arrange the collection device to travel along the roads in the area where the elevation map needs to be constructed, and collect the point cloud data of the roads and both sides of the roads passed by the collection device during the driving process through the laser radar installed on the collection device. At the same time, the position information and attitude information of the collection device during the driving process will also be obtained, wherein the position information of the collection device can be the positioning information obtained by the positioning technology (such as the Global Positioning System (GPS), the Global Navigation Satellite System (GNSS)), and the attitude information of the collection device can be measured by the inertial measurement unit (IMU) installed on the collection device. In this way, the terminal device can perform coordinate conversion on each point cloud point in the collected point cloud data according to the position information and attitude information collected by the collection device when collecting point cloud data, and obtain the geographic coordinates of each point cloud point collected by the collection device. Then, according to the geographic coordinates of each point cloud point belonging to different roads, the road height of each road traveled by the collection device is determined, and then the elevation map covering the road height of these roads is generated.
[0069] In a specific implementation, the acquisition device can be one acquisition device or multiple acquisition devices. When there is only one acquisition device, the acquisition device needs to collect point cloud data on each road covered in the elevation map to be generated. When there are multiple acquisition devices, the point cloud data collected by each acquisition device needs to be able to cover each road involved in the elevation map to be generated.
[0070] It should be noted that the execution subject of the method for constructing an elevation map provided in this specification can be either the terminal device mentioned above or a server that provides business support for the autonomous driving of unmanned equipment. For the sake of convenience, the following will only take the execution subject as an example of a terminal device for illustration.
[0071] It should also be noted that the elevation map generated in this specification can be used to assist unmanned equipment in achieving autonomous driving. The unmanned equipment can refer to unmanned vehicles, robots, automatic delivery equipment, and other equipment that can achieve autonomous driving. Based on this, the unmanned equipment configured with the application provided in this specification can be used to perform delivery tasks in the delivery field, such as using unmanned equipment for express delivery, logistics, take-out and other delivery business scenarios.
[0072] Step S102, for each preset geographical area, based on the altitude information carried in the positioning information belonging to the geographical area, it is determined whether the at least one acquisition device has at least two different trajectory altitude layers in the geographical area.
[0073] In actual business, the elevation map used by unmanned equipment to achieve autonomous driving is composed of several elevation maps covering different geographical areas, and the range of each elevation map covering different geographical areas does not overlap. Therefore, when generating an elevation map, an elevation map suitable for each geographical area can be generated for each geographical area covered by the elevation map. When roads in the geographical area overlap, a corresponding elevation map is generated for each road in the geographical area.
[0074] The following will explain in detail how to generate an elevation map of a geographic area for each geographic area covered by the elevation map.
[0075] In actual scenarios, when the collection device travels on each road in an area where roads overlap and collects data, the collection device will determine a plurality of different track heights in the driving track based on the positioning information of the collection device. In this way, areas where multiple roads overlap and areas where no roads overlap can be identified.
[0076] Based on this, this specification provides a solution for identifying an area where multiple roads overlap, and an area containing several overlapping roads, based on the driving trajectory of a collection device.
[0077] Specifically, for each preset geographical area, the terminal device clusters the trajectory points generated by the collection device in the geographical area according to the height information carried in the positioning information belonging to the geographical area, and then determines whether there are at least two different trajectory heights of at least one collection device in the geographical area through the height information corresponding to the trajectory point clusters obtained by clustering.
[0078] In a specific implementation, due to the different road widths of roads of different levels, when different roads overlap, the size of the overlapping area is also different. When the area of the geographical area where the overlapping area falls is larger than the area occupied by the overlapping area, when the trajectory points generated by the acquisition device within the geographical area are directly clustered, due to the extension of the road, the height information of the trajectory points may be partially layered. In order to avoid this situation, the geographical area can be divided first in this specification, and then for each grid after the division, the trajectory points generated by the acquisition device in the grid are clustered to identify whether there are at least two different trajectory heights in the grid. In this way, by reasonably dividing the geographical area, the area with at least two different trajectory heights can be identified.
[0079] In a specific implementation, the terminal device can divide the geographical range for which the elevation map needs to be generated according to a preset grid size to obtain several grid areas, and then, for each grid area, according to the height information carried in the positioning information of the acquisition device when the acquisition device is driving in the grid area, the trajectory points of the acquisition device are clustered to obtain a trajectory point cluster. Then, the terminal device determines the trajectory height corresponding to each trajectory point cluster for each trajectory point cluster. If it is determined that there are at least two different trajectory heights, it is determined that there are at least two different trajectory heights, that is, there are overlapping roads in the grid area. Then, the terminal device determines whether there are grid areas with overlapping roads in each preset geographical area. If so, it is necessary to generate elevation maps for each trajectory height layer contained in the geographical area, otherwise, directly generate the elevation map of the geographical area based on the point cloud data collected by the acquisition device in the geographical area.
[0080] Among them, the trajectory height corresponding to the trajectory point cluster can be the height mean (or, height median, etc.) of each trajectory point contained in the trajectory point cluster. Furthermore, there will be a space for traffic in the middle of the upper and lower overlapping roads, so there will be a certain energy difference between the trajectory heights on the upper and lower overlapping roads. Therefore, for each grid area, after determining that there are at least two different trajectory heights in the grid, the height difference between each trajectory height and the adjacent trajectory height can also be determined. When it is determined that the height difference is greater than the set height, it is determined that there are at least two different trajectory heights, that is, there are overlapping roads in the grid area.
[0081] It should be noted that the above-mentioned grid area can be obtained by dividing the geographical area according to a preset grid when generating an elevation map of each geographical area. Of course, the grid area can also be obtained by dividing the entire area for which an elevation map needs to be generated in advance. In this case, when judging whether there are at least two different track heights in each geographical area, it is necessary to first determine the grid area falling within the geographical area (i.e., the grid area overlapping with the geographical area), and then, after determining that there are at least two different track heights in some of the grid areas falling within the geographical area, it is determined that there are at least two different track heights in the geographical area.
[0082] In actual applications, the terminal device can also determine, for each preset geographical area, by other means whether there are at least two different trajectory height layers of the collection device in the geographical area.
[0083] Specifically, the terminal device can project the driving track of the collection device onto a preset plane based on the latitude and longitude information in the positioning information of the collection device to obtain the driving track image of the collection device, and then identify and determine whether there are overlapping driving tracks from the driving track image. If so, for the area where the overlapping driving tracks exist, obtain the height information carried in the positioning information of the collection device in the area, and cluster the track points of the collection device based on the height information to obtain a track point cluster. Then, if it is determined that there are at least two different track heights, and it is determined that the height difference between any two track heights is greater than the set height, it is determined that there are at least two different track heights, that is, there are overlapping roads in the grid area.
[0084] In this way, when the terminal device generates an elevation map of each preset geographical area, if it is determined according to the above method that there are at least two different trajectory height layers in the geographical area where the collection device exists, then it is necessary to generate an elevation map of the road corresponding to the trajectory height layer in the geographical area for each trajectory height layer respectively, so as to obtain the elevation map of the geographical area.
[0085] During this process, after the terminal device determines that there are at least two grids with different trajectory heights, the trajectory points contained in each trajectory height layer in the grid can be stored separately, so that when an elevation map is subsequently constructed for each trajectory height layer, the trajectory points contained in the trajectory height layer can be obtained, as well as the point cloud data collected by the acquisition device on the trajectory corresponding to the trajectory height layer.
[0086] Step S104, if it exists, for each trajectory height layer, based on the point cloud data collected by the at least one collection device on the trajectory corresponding to the trajectory height layer, generate an elevation map of the road corresponding to the trajectory height layer in the geographical area.
[0087] In a specific implementation, the terminal device first obtains point cloud data collected by at least one collection device on the trajectory corresponding to each trajectory height layer, and then generates an elevation map of the road corresponding to the trajectory height layer in the geographical area based on the obtained point cloud data.
[0088] Specifically, when the terminal device determines, for each trajectory height layer, the point cloud data collected by at least one acquisition device on the trajectory corresponding to the trajectory height layer, it first determines the grid areas pre-divided for the geographical area, and then, for each trajectory height layer, determines the grid area involved in the trajectory height layer as the target grid area corresponding to the trajectory height layer.
[0089] Furthermore, when the terminal device determines the target grid area, it determines the grid area covering different trajectory height layers from the grid areas divided for the geographical area as the basic grid area, and then, for each trajectory height layer, extends to the grid area around the basic grid area to determine the grid area involved in the trajectory height layer as the target grid area corresponding to the trajectory height layer.
[0090] For example, see Figure 2 , the geographical area contains 16 grid areas, namely grid areas A~P, among which there are two different track height layers in grid area G. When determining the target grid areas corresponding to the two track height layers, the grid area G is the basic grid area. Based on the basic grid area, after extending to the grid areas around the basic grid area, the target grid areas corresponding to the track height layer A are: C, D, G, J, K, N, O, and the target grid areas corresponding to the track height layer B are: E, F, G, H.
[0091] In addition, since there is only one road of the trajectory height layer in other grid areas except the basic grid area, all grids except the basic grid area can be directly used as the target grid area corresponding to the trajectory height layer.
[0092] After determining the target grid area corresponding to the trajectory height layer, the terminal device can generate an elevation map of the road corresponding to the trajectory height layer in the geographical area according to the point cloud data collected by the collection device in each target grid area for each trajectory height layer.
[0093] Specifically, the terminal device first identifies the point cloud points located on the ground from the point cloud data collected by at least one collection device on the trajectory corresponding to the trajectory height as ground point cloud points. Then, the terminal device will grid the geographical area according to the preset resolution to obtain a number of unit areas, and for each unit area, according to the geographical coordinates of each ground point cloud point falling within the unit area, determine the height of the road covered in the unit area, and finally generate an elevation map of the road corresponding to the trajectory height layer in the geographical area according to the determined height of the road covered in each unit area.
[0094] The above-mentioned unit area may correspond to an area covered by one pixel in the generated elevation map, or may correspond to an area covered by multiple pixels, such as an area covered by four pixels, an area covered by nine pixels, and the like.
[0095] In this specification, it is assumed that the horizontal coordinate range of each geographical area in the world coordinate system can be expressed as [X min ,X max ]; Correspondingly, the horizontal coordinate range of the geographical area in the world coordinate system can be expressed as [Y min ,Y max ]. When the above unit area corresponds to the area covered by a pixel in the elevation map, the image coordinates (i, j) of each unit area in the elevation map can be expressed by the following formula:
[0096] Horizontal image coordinates:
[0097] Vertical image coordinates:
[0098] Among them, (p X ,p Y ) represents the geographical coordinates of the unit area in the world coordinate system (the geographical coordinates of each unit area in the world coordinate system can be represented by the geographical coordinates of the center of the unit area or by the geographical coordinates of other positions in the unit area);
[0099] X min Indicates the minimum value of the horizontal coordinate of the geographical area where the unit area is located;
[0100] Y min Indicates the minimum value of the vertical coordinate of the geographical area where the unit area is located;
[0101] r represents the preset resolution used when dividing the geographical area where the unit area is located.
[0102] In this specification, the terminal device can identify the ground point cloud points from each point cloud point in a variety of ways. For example, the terminal device can predetermine the laser reflectivity range corresponding to the road in the geographical area, and then, according to the laser reflectivity of each point cloud point, select the point cloud points whose laser reflectivity falls within the laser reflectivity range corresponding to the road from each point cloud point as the ground point cloud point. For another example, after obtaining the geographical coordinates of each point cloud point, the terminal device determines the road height corresponding to each track point collected by the acquisition device when collecting the point cloud data according to the positioning information when the acquisition device collects the point cloud data and the height from the ground of the positioning module of the acquisition device, and then, for each point cloud point, according to the geographical coordinates of the point cloud point and the positioning information when the acquisition device collects each point cloud point, the acquisition device matches the track point that is less than the set distance from the point cloud point, and the road height corresponding to the track point is used as the road height at the location of the point cloud point, and then, according to the distance between each point cloud point and the road height corresponding to the track point corresponding to each point cloud point, the ground point cloud point is identified from each point cloud point.
[0103] In addition, when the number of ground point cloud points contained in the unit area is less than the set threshold, it can be considered that the number of ground point cloud points contained in the unit area is too small. Generating an elevation map based only on these ground point cloud points may result in low accuracy of the road heights of the roads recorded in the generated elevation map. Therefore, the heights of the roads covered in the unit area can be determined by the heights of the roads covered in several related unit areas within the unit area.
[0104] Specifically, when the terminal device determines the height of the roads covered in each unit area, if it is determined that the number of ground point cloud points contained in the unit area is less than the set threshold, several associated unit areas associated with the unit area in the geographical area are determined, and then based on the heights of the roads covered in the determined several associated unit areas, a height plane surrounded by the several associated unit areas is constructed. Finally, according to the corresponding position of the unit area in the height plane, the height of the roads covered in the unit area is determined. In this way, according to the height of the roads covered in each determined unit area and the associated unit area,
[0105] Among them, the above-mentioned associated unit area is the unit area closest to the unit area, and the road height can be determined according to the point cloud data. The number of the associated unit areas is related to the shape of the height plane that needs to be enclosed. If the height plane is a triangular plane, the associated unit areas of the unit area are the three unit areas closest to the unit area, and the road height can be determined according to the point cloud data. If the height plane is a four-sided plane, the associated unit areas of the unit area are the four unit areas closest to the unit area, and the road height can be determined according to the point cloud data.
[0106] The following will illustrate how to determine the height of the road in a unit area where the number of ground point cloud points is less than a set threshold.
[0107] For example, see Figure 3A-3B , the number of ground point cloud points contained in unit area A is less than the set threshold, and the associated unit areas associated with unit area A are: unit area B, unit area C, and unit area D. When determining the height of the roads covered in unit area A, the height of the roads covered in unit area B, the height of the roads covered in unit area C, and the height of the roads covered in unit area D are determined to form a height plane, and then the height of the roads covered in unit area A is determined according to the height of the intersection of unit area A and the height plane.
[0108] Step S106: construct an elevation map of the geographical area according to the elevation map of the road corresponding to each trajectory height layer of the at least one acquisition device.
[0109] In a specific implementation, after determining the elevation map of the road corresponding to each trajectory height layer in the geographical area, the terminal device will obtain the elevation map for constructing the geographical area.
[0110] When an elevation map is generated through the above steps, the area where there are overlapping roads can be identified based on the heights of the trajectory points on each road. Then, when an elevation map of a geographic area including this area is generated, the height of the trajectory points on each road can be generated for each of the overlapping roads, and finally an elevation map of the geographic area is obtained. The elevation map will include the road height information of each road included in the geographic area, so that obstacles can be better perceived when unmanned equipment passes through the geographic area.
[0111] In actual business, in step S104, after the terminal device identifies the point cloud points located on the ground, it can filter the ground point cloud points to filter out the target ground point cloud points that meet the set requirements from various ground point cloud points, and then generate an elevation map of the road corresponding to the trajectory height layer in the geographical area based on the geographic coordinates of the target ground point cloud points.
[0112] In this specification, the terminal device can filter ground point cloud points in a variety of ways. For example, for each ground point cloud point, the terminal device determines the distance between the ground point cloud point and the laser radar when the laser radar installed on at least one acquisition device collects the ground point cloud point, and then determines the confidence corresponding to the ground point cloud point based on the distance between the ground point cloud point and the laser radar. Finally, based on the confidence corresponding to each ground point cloud point, the target ground point cloud point is filtered out from each ground point cloud point. Among them, the closer the distance between the ground point cloud point and the laser radar, the higher the confidence corresponding to the ground point cloud point.
[0113] This is because the farther the point cloud points collected by the laser radar are from the laser radar, the greater the error of the geographic coordinates determined based on the point cloud points. Correspondingly, the confidence level corresponding to the ground point cloud points is lower, and the height of the road determined based on the point cloud points is more likely to be wrong. Therefore, in this manual, the ground point cloud points in each unit area are screened according to the farther the distance between the ground point cloud points and the laser radar, and the target ground point cloud points used to determine the height of the road are determined, so as to screen out the ground point cloud points that can more accurately reflect the height of the road.
[0114] In a specific implementation, the terminal device can select the ground point cloud point with the highest confidence from each ground point cloud point according to the confidence corresponding to each ground point cloud point, as the target ground point cloud point, and use the height corresponding to the target ground point cloud point as the height of the road covered in the unit area where the target ground point cloud point is located. Of course, the terminal device can also select several ground point cloud points with confidence higher than a set threshold from each ground point cloud point according to the confidence corresponding to each ground point cloud point, as the target ground point cloud point, and then determine the average height corresponding to each target ground point cloud point, and use the average height as the height of the road covered in the unit area where the target ground point cloud point is located.
[0115] When selecting the target ground point cloud, an auxiliary grid map matching the elevation map and an auxiliary weight grid map can be generated for the elevation map of the geographic area to be generated, wherein each grid in the auxiliary grid map records the height value in the geographic coordinates of each ground point cloud point contained in the unit area corresponding to the grid, and at the same time, each grid in the auxiliary weight grid map records the confidence corresponding to each ground point cloud point contained in the unit area corresponding to the grid. In this way, the target ground point cloud points corresponding to each unit area can be selected by traversing the auxiliary grid map and the auxiliary weight grid map.
[0116] For another example, the terminal device divides the geographical area according to a preset resolution to obtain a number of unit areas, and then, for each unit area, determines other unit areas within a set neighborhood of the unit area, and then determines the median heights of the ground point cloud points contained in the unit area and the ground point cloud points contained in other unit areas, and based on the determined median height, removes ground point cloud points with abnormal heights from the ground point cloud points contained in the unit area to obtain the target ground point cloud points contained in the unit area.
[0117] Of course, when implemented in this specification, the above two screening methods can be used in combination. For example, the terminal device divides the geographical area according to a preset resolution to obtain a number of unit areas, and then, for each point cloud point in each unit area, the confidence corresponding to the ground point cloud point is determined according to the distance between the ground point cloud point and the laser radar when the laser radar collects the ground point cloud point, and the candidate target ground point cloud points are screened out from the ground point cloud points in each unit area according to the confidence corresponding to each ground point cloud point. Then, the terminal device continues to determine other unit areas located in the set neighborhood of the unit area, and then determines the median height of the candidate target ground point cloud points contained in the unit area and the candidate target ground point cloud points contained in other unit areas, and according to the determined median height, removes the candidate target ground point cloud points with abnormal heights from the candidate target ground point cloud points contained in the unit area to obtain the target ground point cloud points contained in the unit area.
[0118] The above is a method for constructing an elevation map provided in one or more embodiments of this specification. Based on the same idea, this specification also provides a corresponding device for constructing an elevation map, such as Figure 4 shown.
[0119] Figure 4 A schematic diagram of a device for determining a target path provided in this specification specifically includes:
[0120] An acquisition module 400 is used to acquire point cloud data acquired by at least one acquisition device, and positioning information of the at least one acquisition device when acquiring the point cloud data;
[0121] The judgment module 401 is used to judge, for each preset geographical area, whether there are at least two different track height layers in the geographical area for the at least one acquisition device according to the height information carried in the positioning information belonging to the geographical area;
[0122] A generating module 402, for generating, for each trajectory height layer, an elevation map of a road corresponding to the trajectory height layer in the geographic area based on the point cloud data collected by the at least one collecting device on the trajectory corresponding to the trajectory height layer, if any;
[0123] The construction module 403 is used to construct an elevation map of the geographical area according to the elevation map of the road corresponding to each trajectory height layer of the at least one acquisition device.
[0124] Optionally, the judgment module 401 is specifically used to cluster the trajectory points generated by the at least one acquisition device in the preset geographical area according to the height information carried in the positioning information belonging to the geographical area for each preset geographical area; and judge whether there are at least two different trajectory heights of the at least one acquisition device in the geographical area through the height information corresponding to the trajectory point clusters obtained by clustering.
[0125] Optionally, the generation module 402 is specifically used to determine the grid areas pre-divided for the geographical area; for each trajectory height layer, determine the grid area involved in the trajectory height layer as the target grid area corresponding to the trajectory height layer; and generate an elevation map of the road corresponding to the target grid area based on the point cloud data belonging to the target grid area.
[0126] Optionally, the generation module 402 is specifically used to determine a grid area covering different trajectory height layers from the grid areas as a basic grid area; for each trajectory height layer, extend to the grid area around the basic grid area to determine the grid area involved in the trajectory height layer as a target grid area corresponding to the trajectory height layer.
[0127] Optionally, the generation module 402 is specifically used to identify point cloud points located on the ground as ground point cloud points from the point cloud data collected by the at least one acquisition device on the trajectory corresponding to the trajectory height; and generate an elevation map of the road corresponding to the trajectory height layer in the geographical area according to the geographic coordinates of the ground point cloud points.
[0128] Optionally, the generating module 402 is specifically used to filter out target ground point cloud points from the ground point cloud points; and generate an elevation map of the road corresponding to the trajectory height layer in the geographical area according to the geographical coordinates of the target ground point cloud points.
[0129] Optionally, the generation module 402 is specifically used to determine, for each ground point cloud point, the distance between the ground point cloud point and the laser radar when the laser radar installed on the at least one acquisition device acquires the ground point cloud point; determine the confidence level corresponding to the ground point cloud point based on the distance between the ground point cloud point and the laser radar; and filter out the target ground point cloud point from the ground point cloud points based on the confidence level corresponding to each ground point cloud point.
[0130] Optionally, the generation module 402 is specifically used to divide the geographical area according to a preset resolution to obtain a number of unit areas; for each unit area, determine other unit areas located within a set neighborhood of the unit area; determine the median heights of the ground point cloud points contained in the unit area and the ground point cloud points contained in the other unit areas; and based on the median heights, eliminate ground point cloud points with abnormal heights from the ground point cloud points contained in the unit area to obtain the target ground point cloud points contained in the unit area.
[0131] Optionally, the generation module 402 is specifically used to divide the geographical area according to a preset resolution to obtain a number of unit areas; for each unit area, determine the height of the roads covered in the unit area according to the geographical coordinates of each ground point cloud point falling within the unit area; and generate an elevation map of the roads corresponding to the trajectory height layer in the geographical area based on the determined heights of the roads covered in each unit area.
[0132] Optionally, the generation module 402 is specifically used to determine several associated unit areas associated with the unit area in the geographical area if it is determined that the number of ground point cloud points contained in the unit area is less than a set threshold; based on the heights of the roads covered by the several associated unit areas, construct a height plane surrounded by the several associated unit areas; and determine the height of the roads covered in the unit area according to the corresponding position of the unit area in the height plane.
[0133] This specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 Provides methods for building elevation maps.
[0134] This manual also provides Figure 5 The schematic structure diagram of the electronic device shown in FIG. Figure 5 As mentioned above, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 Of course, in addition to the software implementation, this specification does not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0135] 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.
[0136] 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.
[0137] 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.
[0138] 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.
[0139] 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.
[0140] 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.
[0141] 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.
[0142] 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 in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0143] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0144] 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.
[0145] 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.
[0146] 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.
[0147] 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.
[0148] 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.
[0149] 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.
[0150] 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 constructing an elevation map, It is characterized in that include: Acquire point cloud data collected by at least one collection device, and positioning information of the at least one collection device when collecting the point cloud data; For each preset geographical area, judging, according to the altitude information carried in the positioning information belonging to the geographical area, whether the at least one acquisition device has at least two different trajectory altitude layers in the geographical area; If so, determine the grid areas pre-divided for the geographical area; Determine, from the grid areas, a grid area covering different track height layers as a basic grid area; For each trajectory height layer, extend to the grid area around the basic grid area to determine the grid area involved in the trajectory height layer as the target grid area corresponding to the trajectory height layer; Generating an elevation map of a road corresponding to the target grid area according to the point cloud data belonging to the target grid area; An elevation map of the geographical area is constructed according to the elevation map of the road corresponding to each trajectory height layer by the at least one acquisition device.
2. The method according to claim 1, It is characterized in that For each preset geographical area, judging whether at least one acquisition device has at least two different track heights in the geographical area according to the height information carried in the positioning information belonging to the geographical area, specifically includes: For each preset geographical area, clustering the trajectory points generated by the at least one acquisition device in the geographical area according to the height information carried in the positioning information belonging to the geographical area; By using the height information corresponding to the trajectory point clusters obtained through clustering, it is determined whether there are at least two different trajectory heights of the at least one acquisition device in the geographical area.
3. The method according to claim 1 or 2, It is characterized in that For each trajectory height layer, generating an elevation map of a road corresponding to the trajectory height layer in the geographic area according to the point cloud data collected by the at least one collection device on the trajectory corresponding to the trajectory height layer, specifically comprising: From the point cloud data collected by the at least one collection device on the trajectory corresponding to the trajectory height, identifying point cloud points located on the ground as ground point cloud points; According to the geographic coordinates of the ground point cloud points, an elevation map of the road corresponding to the trajectory height layer in the geographic area is generated.
4. The method according to claim 3, It is characterized in that Generating an elevation map of a road corresponding to the trajectory height layer in the geographic area according to the geographic coordinates of the ground point cloud point, specifically comprising: Filter out target ground point cloud points from various ground point cloud points; According to the geographic coordinates of the target ground point cloud point, an elevation map of the road corresponding to the trajectory height layer in the geographic area is generated.
5. The method according to claim 4, It is characterized in that Selecting target ground point cloud points from the ground point cloud points specifically includes: For each ground point cloud point, determining the distance between the ground point cloud point and the laser radar when the laser radar installed on the at least one acquisition device acquires the ground point cloud point; Determine the confidence level corresponding to the ground point cloud point according to the distance between the ground point cloud point and the laser radar; According to the confidence level corresponding to each ground point cloud point, the target ground point cloud point is screened out from the ground point cloud points.
6. The method according to claim 4 or 5, It is characterized in that Selecting target ground point cloud points from the ground point cloud points specifically includes: According to a preset resolution, the geographical area is divided into a number of unit areas; For each unit area, determine other unit areas that are within a set neighborhood of the unit area; Determine the median height of the ground point cloud points contained in the unit area and the height of the ground point cloud points contained in the other unit areas; According to the median height, ground point cloud points with abnormal heights are removed from the ground point cloud points contained in the unit area to obtain the target ground point cloud points contained in the unit area.
7. The method according to claim 3, It is characterized in that Generating an elevation map of a road corresponding to the trajectory height layer in the geographic area according to the geographic coordinates of the ground point cloud point, specifically comprising: According to a preset resolution, the geographical area is divided into a number of unit areas; For each unit area, the height of the roads covered in the unit area is determined according to the geographic coordinates of each ground point cloud point falling within the unit area; According to the determined heights of the roads covered in each unit area, an elevation map of the roads corresponding to the trajectory height layer in the geographical area is generated.
8. The method according to claim 7, It is characterized in that For each unit area, the height of the roads covered in the unit area is determined according to the geographic coordinates of each ground point cloud point falling within the unit area, including: If it is determined that the number of ground point cloud points contained in the unit area is less than a set threshold, determine a number of associated unit areas associated with the unit area in the geographic area; Based on the determined heights of the roads covered in the plurality of associated unit areas, constructing a height plane surrounded by the plurality of associated unit areas; The height of the road covered in the unit area is determined according to the corresponding position of the unit area in the height plane.
9. A device for constructing an elevation map, It is characterized in that include: An acquisition module, used to acquire point cloud data acquired by at least one acquisition device, and positioning information of the at least one acquisition device when acquiring the point cloud data; A judgment module, used for judging, for each preset geographical area, whether at least one acquisition device has at least two different track height layers in the geographical area according to the height information carried in the positioning information belonging to the geographical area; A generating module, for determining, if any, each grid area pre-divided for the geographical area; Determine, from the grid areas, a grid area covering different track height layers as a basic grid area; For each trajectory height layer, extend to the grid area around the basic grid area to determine the grid area involved in the trajectory height layer as the target grid area corresponding to the trajectory height layer; Generating an elevation map of a road corresponding to the target grid area according to the point cloud data belonging to the target grid area; The construction module is used to construct an elevation map of the geographical area according to the elevation map of the road corresponding to each trajectory height layer of the at least one acquisition device.
10. 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 8 is implemented.
11. 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 8 is implemented.
