Method and system for automatically generating lightweight environmental maps for robot inspection of buildings
Through the lightweight environmental map method based on the BIM model, the Alpha Shapes algorithm of Delaunay triangulation is used to optimize the boundary, which solves the problems of high environmental perception accuracy and cost in the existing technology, and realizes the construction of high-precision environmental maps and robots. Accuracy of path planning.
Patent Information
- Application Number
- CN202411131365.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-17
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-17
AI Technical Summary
Among existing building inspection technologies, lidar and computer vision methods have deficiencies in environmental perception accuracy and data processing costs, resulting in low accuracy of robot path planning and difficulty in efficiently constructing high-precision real environment maps.
A lightweight environmental map method based on the BIM model is used to extract the geometric and non-geometric information of the building, use the Alpha Shapes algorithm of the Delaunay triangulation network to process the boundaries, optimize the internal and external boundaries, and perform three-dimensional reconstruction to generate a high-precision environment map.
It improves the accuracy and efficiency of robot path planning, enables efficient and accurate provision of precise real environment maps for robots, and reduces data processing costs.
Smart Images

Figure CN118640894B_ABST
Abstract
Description
Technical Field
[0001] The disclosed embodiments relate to the technical field of building inspection, and more particularly to a method and system for automatically generating a lightweight environment map for robot inspection of buildings. Background Art
[0002] Building inspection is a key step to ensure the safety of building structures, normal operation of equipment, and energy conservation and emission reduction. Through regular inspections, potential safety hazards and equipment failures can be discovered, and timely measures can be taken to repair them, thereby ensuring the safety of personnel and property, reducing maintenance costs, and improving operating efficiency. Before inspecting a building, it is necessary to first observe the inspection object as a whole and have an overall understanding of the building environment before further planning a specific inspection route. However, robots represented by UAVs do not have the ability to recognize the environment, and the building environment to be inspected needs to be converted into a digital environment map that the robot can understand. By digitizing the building environment, robots can more effectively plan accurate inspection routes, improve inspection efficiency, and ensure that they can perform inspection tasks safely and efficiently.
[0003] In the related technologies, the perception of building boundaries through LiDAR and computer vision methods has problems such as limited accuracy and high data processing costs. On the one hand, the accuracy of LiDAR is easily affected by weather and suspended matter in the air, and the scanning time is long, the data processing and calculation amount is large, and the cost is high. On the other hand, the environmental perception accuracy of computer vision is relatively low and time-consuming, and is also limited by lighting conditions. In order to overcome these limitations, although some solutions currently attempt to use the rich information of the completed building information model BIM to build a high-precision environmental map, there are still some challenges in practice. For example, it is currently difficult to efficiently and accurately provide an accurate real environment map for the robot's path planning, resulting in low accuracy in the robot's path planning. Summary of the invention
[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the embodiments of the present disclosure provide a method and system for automatically generating a lightweight environmental map for robot inspection of buildings.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for automatically generating a lightweight environment map for a robot inspection building, comprising:
[0006] Determine a target building element in a BIM model of a building, and extract geometric information and non-geometric information of the target building element; wherein the geometric information includes a position, geometric size, and spatial topological relationship of the target building element; and the non-geometric information includes attribute information of the target building element;
[0007] Processing the geometric information by a boundary extraction algorithm to extract the inner boundary and the outer boundary of the target building element; wherein the boundary extraction algorithm includes an Alpha Shapes algorithm based on a Delaunay triangulation;
[0008] The inner boundary and the outer boundary are optimized based on the non-geometric information to obtain optimized inner boundary and outer boundary, and three-dimensional reconstruction is performed based on the optimized inner boundary and outer boundary to obtain a high-precision environment map.
[0009] In one embodiment, the optimizing the inner boundary and the outer boundary based on the non-geometric information to obtain the optimized inner boundary and the outer boundary includes:
[0010] Determining the type of the target building element based on the attribute information of the target building element;
[0011] Determine, based on the type of the target building element, a designated building element among the target building elements, wherein the designated building element is used to assist in locating an inner boundary and / or an outer boundary of the target building element;
[0012] The position of the designated building element is determined, and the inner boundary and the outer boundary are optimized based on the position of the designated building element to obtain optimized inner boundary and outer boundary.
[0013] In one embodiment, the target building element includes building elements of at least two adjacent floors; the attribute information includes one or more of the type, floor information, area, and volume of the target building element; and the designated building element includes one or more of a door, a window, and an opening.
[0014] In one embodiment, the three-dimensional reconstruction based on the optimized inner boundary and outer boundary to obtain a high-precision environment map includes:
[0015] Merging the optimized inner boundary and outer boundary to obtain a final boundary, wherein the final boundary includes outer boundaries of at least two adjacent floors;
[0016] Determine the respective floor heights of the at least two adjacent floors, and perform three-dimensional reconstruction based on the respective floor heights of the at least two adjacent floors and the floor outer boundaries of the at least two adjacent floors to obtain the three-dimensional reconstructed outer boundaries of the at least two adjacent floors;
[0017] A high-precision environment map of the building is determined based on the three-dimensionally reconstructed outer boundaries of the at least two adjacent floors.
[0018] In one embodiment, the method further comprises:
[0019] Determine whether the difference in floor area of each adjacent floor of the at least two adjacent floors is less than a preset threshold, and if so, determine that each adjacent floor is a standard floor;
[0020] The method of determining a high-precision environment map of a building based on the three-dimensionally reconstructed outer boundaries of the at least two adjacent floors comprises:
[0021] The three-dimensional reconstructed outer boundaries of the standard floors are integrated to obtain a high-precision environmental map of the building.
[0022] In one embodiment, extracting the geometric information of the target building element includes: extracting the geometric information of the target building element by UV coordinate system method, wherein the geometric information is represented by vertex coordinates of the target building element;
[0023] The method further includes: performing an improved optimization operation on the processing process of the Alpha Shapes algorithm based on the Delaunay triangulation, wherein the improved optimization operation includes any one or more of the following:
[0024] a): For the discrete points formed by the vertex coordinates of the target building element, additional discrete points are linearly and uniformly grown along the edge of the surface of the target building element so that the density of the discrete points is evenly distributed;
[0025] b) Obtain different spatial boundary sets of the target building element, cluster and segment the different spatial boundary sets to obtain boundary sets of different spaces;
[0026] c): for each boundary set of the different spaces, the boundary corner points therein are subjected to right-angle optimization processing so that the optimized boundaries are consistent with the corresponding boundaries in the BIM model; wherein the boundary corner points are points where there are position errors at the corners of adjacent boundaries;
[0027] d): The two boundaries belonging to the same straight line are merged by using the vector collinearity intersection check method, and if the deviation angle of the two boundaries is less than the threshold for merging adjacent boundaries, the two boundaries are considered to belong to the same straight line and are merged.
[0028] In one embodiment, the square optimization process includes: determining an optimization method according to the azimuth angle of the boundary and the boundary sorting direction, and the optimization method includes any one or more of the following: outer boundary shrinkage, outer boundary expansion, inner boundary shrinkage, and inner boundary expansion.
[0029] In a second aspect, an embodiment of the present disclosure provides a system for automatically generating a lightweight environmental map for a robot to inspect a building, including:
[0030] An information extraction module, used to determine a target building element in a BIM model of a building, and extract geometric information and non-geometric information of the target building element; wherein the geometric information includes a position, geometric size, and spatial topological relationship of the target building element; and the non-geometric information includes attribute information of the target building element;
[0031] A boundary extraction module, used for processing the geometric information by a boundary extraction algorithm to extract the inner boundary and the outer boundary of the target building element; wherein the boundary extraction algorithm comprises an AlphaShapes algorithm based on a Delaunay triangulation;
[0032] A map determination module is used to optimize the inner boundary and the outer boundary based on the non-geometric information to obtain optimized inner boundary and outer boundary, and to perform three-dimensional reconstruction based on the optimized inner boundary and outer boundary to obtain a high-precision environment map.
[0033] In a third aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for automatically generating a lightweight environmental map of a building for robot inspection as described in any of the above embodiments is implemented.
[0034] In a fourth aspect, an embodiment of the present disclosure provides an electronic device, including:
[0035] Processor; and
[0036] Memory for storing computer programs;
[0037] Wherein, the processor is configured to execute the method for automatically generating a lightweight environment map of a robot inspecting a building as described in any of the above embodiments by executing the computer program.
[0038] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0039] The method and system for automatically generating a lightweight environmental map of a robot inspection building provided by the embodiment of the present disclosure determine the target building element in the BIM model of the building, extract the geometric information and non-geometric information of the target building element; wherein the geometric information includes the position, geometric size and spatial topological relationship of the target building element; the non-geometric information includes the attribute information of the target building element; the geometric information is processed by a boundary extraction algorithm to extract the inner boundary and outer boundary of the target building element; wherein the boundary extraction algorithm includes an Alpha Shapes algorithm based on the Delaunay triangulation; the inner boundary and outer boundary are optimized based on the non-geometric information to obtain the optimized inner boundary and outer boundary, and the optimized inner boundary and outer boundary are three-dimensionally reconstructed to obtain a high-precision environmental map. In this way, an accurate real environment map can be provided for the robot's path planning efficiently and accurately, thereby improving the accuracy of the robot's path planning. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0042] Figure 1 A flow chart of a method for automatically generating a lightweight environmental map of a building inspected by a robot according to an embodiment of the present disclosure;
[0043] Figure 2 A flow chart of a method for automatically generating a lightweight environmental map of a building inspected by a robot according to another embodiment of the present disclosure;
[0044] Figure 3 A schematic diagram of the algorithm optimization process in the embodiment of the present disclosure;
[0045] Figure 4 A schematic diagram of a system for automatically generating a lightweight environmental map of a building for robot inspection according to an embodiment of the present disclosure;
[0046] Figure 5 Schematic diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0047] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0048] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0049] It should be understood that, in the following, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items.
[0050] Figure 1 This is a flow chart of a method for automatically generating a lightweight environment map of a robot inspecting a building according to an embodiment of the present disclosure. The method can be executed by a computing device such as a computer or a terminal device, and specifically may include the following steps:
[0051] Step S101: determining a target building element in a BIM model of a building, and extracting geometric information and non-geometric information of the target building element; wherein the geometric information includes a position, geometric size, and spatial topological relationship of the target building element; and the non-geometric information includes attribute information of the target building element.
[0052] In this embodiment, the building elements in the BIM model can be screened according to the inspection scene requirements and the geometric information and non-geometric information can be extracted, which is conducive to the dynamic generation of subsequent high-precision environmental maps for path planning.
[0053] Exemplarily, clarifying the scope of architectural element screening is the first thing to do in BIM element screening. A standard BIM model contains many types of architectural elements, such as elements of decoration projects, elements of main projects (such as rooms), elements of site projects, etc., many of which are not used in other application scenarios other than building inspections. If all elements are retained, the environment will be too complicated, thereby reducing the efficiency of environmental map reconstruction. In order to have sufficient standards to interpret the model accuracy when screening element information, in this embodiment, the elements can be divided into three levels for screening according to lightweight scene requirements: LoD1) columns, walls, beams, and plates; LoD2) columns, walls, beams, plates, doors, windows, and railings; LoD3) all elements of the original BIM. The target building elements can be columns, walls, beams, plates, etc.
[0054] In order to facilitate users to obtain building element information, you can use the original API of Revit software or Dynamo tools to extract it. When filtering elements, you can not filter all BIM elements at once, but divide them into multiple screenings according to different floors, for example, first layer the BIM and then filter according to the LoD standard. The floor information of the element is very important for the later model reconstruction, and the floor information can be used for accurate positioning.
[0055] In some other embodiments, the original API of Revit requires personnel to have extremely high programming skills. In order to reduce the difficulty of operation and facilitate personnel operation, element extraction can be performed based on a more convenient visual programming software-Dynamo tool, which can more conveniently extract the geometric information and non-geometric information of BIM elements. Dynamo only needs to select different pre-programmed modules or write a small amount of code to complete operations that originally required a large amount of code to complete. In this embodiment, Revit and Dynamo can be selected as BIM element screening and information extraction tools to more easily customize the data layer suitable for various scene requirements, thereby achieving the effect of lightweight environmental maps.
[0056] Geometric information is the key information for building boundary extraction and reconstruction, which can accurately describe spatial relationships and realize element positioning. In building information storage, geometric information organizes and represents buildings and their components in the form of data objects.
[0057] Non-geometric information can fully describe all the attributes of building elements and realize element resource sharing. In the entire life cycle of a building, non-geometric information accounts for a large proportion of the information volume. In addition to the original data at the time of initial design and the non-geometric attribute information such as the space equipment deployment required by the owner, there is also non-geometric attribute information such as engineering attributes, specification documents, equipment installation instructions, technical briefings, etc. accumulated during construction and operation and maintenance, which helps the auxiliary robot to further understand the environment. In this embodiment, Dynamo can be used to extract the type and unique ID of the target building element, the floor information, area, volume and other attribute information according to the scene requirements, so as to reconstruct the real building environment later.
[0058] Step S102: Processing the geometric information by a boundary extraction algorithm to extract the inner boundary and the outer boundary of the target building element; wherein the boundary extraction algorithm comprises an Alpha Shapes algorithm (ie, DAS algorithm) based on the Delaunay triangulation.
[0059] For example, the Alpha Shapes (AS) algorithm is a classic boundary extraction algorithm that can extract external boundaries from two-dimensional discrete points with relatively uniform density distribution. The geometric information of building elements can be represented by the vertex coordinates of the elements, and the boundary of the extracted model is equivalent to the boundary of the discrete points. The AS algorithm is suitable for two-dimensional discrete points with relatively uniform density distribution. Therefore, before extracting the boundary, the three-dimensional coordinates of the elements need to be flattened according to the floor. The conversion of three-dimensional coordinates to two-dimensional coordinates can be completed by temporarily ignoring the Z axis of the vertex coordinates of the elements. The principle of AS is to assume that n discrete points with relatively uniform density distribution are divided into a point set P and a line set L (two points form a straight line, including n * ( n -1) lines), and then determine which line segments belong to the boundary.
[0060] The original AS algorithm needs to be checked P The time complexity of the circumscribed circle of any point in and other points is O(n 3 ). The boundary extraction time increases with n The increase in the number of pixels per pixel will greatly increase, and will consume a lot of additional computing resources. Therefore, this embodiment always uses the improved Alpha Shapes algorithm based on the Delaunay triangulation, namely the DAS algorithm, to extract the boundary, which can effectively reduce the amount of calculation and thus improve the efficiency of generating the environment map.
[0061] In a specific example, the DAS algorithm flow is as follows:
[0062] (1) Calculate the P All Delaunay triangles ( TT ), and create a boundary collection E, using the BowyerWatson algorithm for triangulation P The specific process is as follows:
[0063] 1.1) Constructing a super triangle linked list DL , including all discrete points.
[0064] 1.2) Sequentially P Discrete point insertion in DL First, find the circumcircle containing DL Then, delete the common edges of the influencing triangles and connect the insertion point with all vertices of the influencing triangles.
[0065] 1.3) According to the Delaunay optimization criterion, the newly formed triangle is locally optimized and placed into DL .
[0066] 1.4) Repeat steps 1.2) - 1.3) until all discrete points are inserted into DL , and obtain the Delaunay triangle set ( TT ).
[0067] (2) From TT Select DT i , the triangle vertex set is P i (P ia ,P ib ,P ic ), the edge set is L i (L i(a,b) ,L i(b,a) ,L i(a,c) ,L i(c,a) ,L i(b,c) ,L i(c,b) ) Then calculate DT i Area A i and circumcircle C i The radius R i If R i Less than α , execute the following step (3), otherwise repeat step (2).
[0068] (3) Determine L i Does it already exist? E If L i Not E , L i insert E Otherwise, judge L i(a,b) , L i(c,a) , L i(c,b) Is it present in E If it exists, remove it fromE Delete it.
[0069] (4) Repeat steps (2) to (3) until all TT .
[0070] The radius α is an important condition for controlling boundary extraction. If α is too large, E may miss some boundary points, and if α is too small, E may include non-boundary points. Therefore, a suitable value of the radius α can be set to extract the boundary relatively accurately.
[0071] Step S103: optimizing the inner boundary and the outer boundary based on the non-geometric information to obtain optimized inner boundary and outer boundary, and performing three-dimensional reconstruction based on the optimized inner boundary and outer boundary to obtain a high-precision environment map.
[0072] Exemplarily, the extraction of inner and outer boundaries of building elements based on BIM is a fast and effective method for perceiving the building environment. However, the inner and outer boundaries extracted by the above method are still not accurate enough. Therefore, the non-geometric information of the target building element, i.e., the attribute information such as the floor information to which it belongs, is accurately positioned, and the inner and outer boundaries extracted by the optimization algorithm are assisted by the accurate positioning information. Based on the optimized inner and outer boundaries, a high-precision environment map is obtained by three-dimensional reconstruction. In this way, the final inner and outer boundaries can be made more accurate, thereby obtaining an accurate real environment map.
[0073] In summary, the above scheme of this embodiment can efficiently and quickly generate a real environment map, and accurately provide a precise real environment map for the robot's path planning, thereby improving the accuracy of the robot's path planning.
[0074] The solution of this embodiment fully considers the efficiency of boundary extraction and the deep utilization of high-precision geometric information and non-geometric information of the BIM model, and proposes a high-efficiency and low-cost method for dynamically identifying the boundaries and inspection objects of obstacles in the building environment to obtain a high-precision environment map, which realizes the automatic extraction of building elements and reconstruction of the three-dimensional boundaries of the building throughout the process, and dynamically generates a high-precision lightweight map for robot path planning, thereby driving the robot to have the ability to recognize the building environment.
[0075] In one embodiment, extracting the geometric information of the target building element in step S101 includes: extracting the geometric information of the target building element by using a UV coordinate system method, wherein the geometric information is represented by vertex coordinates of the target building element.
[0076] Exemplarily, there are various methods for extracting geometric information, such as the element bounding box method, the element UV coordinate system method, etc. In this embodiment, the element UV coordinate system method is used to describe the geometric information. The UV coordinate system can accurately obtain the coordinates of any point in the model, and then calculate the geometric information such as the position, size, and spatial topological relationship of the element, thereby lightweighting the three-dimensional model. The specific process of extracting element geometric information using the UV coordinate system can be divided into 4 parts: 1) Divide all surfaces of the element and mesh them; 2) Extract all meshed UV coordinates of the element surface; 3) Use the meshed UV coordinates to calculate the vertex coordinates of each surface; 4) Finally, summarize the vertex coordinates of all surfaces to obtain the geometric information of the element.
[0077] Correspondingly, the method may further include the following steps: improving and optimizing the processing process of the AlphaShapes algorithm based on the Delaunay triangulation, namely, the DAS algorithm.
[0078] It should be noted that the DAS algorithm can extract boundaries from discrete points, but there are still errors compared with the actual boundaries of the BIM model. These errors are due to the fixed radius. α The DAS algorithm is not suitable for extracting discrete points with uneven density distribution. In order to more accurately extract the internal and external boundaries to reconstruct a higher-precision real environment map, the DAS algorithm is improved and optimized in this embodiment. The results of the improved DAS algorithm show that the extracted external boundary can be basically consistent with the external boundary of the BIM model, and the boundary of each room or other element in the model, i.e., the internal boundary, can be accurately extracted.
[0079] In a specific example, the improved optimization operation of improving the DAS algorithm may include any one or more of the following:
[0080] a): For the discrete points formed by the vertex coordinates of the target building element, additional discrete points are linearly and uniformly grown along the edge of the surface of the target building element so that the density of the discrete points is evenly distributed;
[0081] b) Obtain different spatial boundary sets of the target building element, cluster and segment the different spatial boundary sets to obtain boundary sets of different spaces;
[0082] c): for each boundary set of the different spaces, the boundary corner points therein are subjected to right-angle optimization processing so that the optimized boundaries are consistent with the corresponding boundaries in the BIM model; wherein the boundary corner points are points where there are position errors at the corners of adjacent boundaries;
[0083] d): The two boundaries belonging to the same straight line are merged by using the vector collinearity intersection check method, and if the deviation angle of the two boundaries is less than the threshold for merging adjacent boundaries, the two boundaries are considered to belong to the same straight line and are merged.
[0084] Specifically, the DAS algorithm is suitable for extracting the outer boundary of two-dimensional discrete points with relatively uniform density distribution. However, the discrete points composed of the vertex coordinates of BIM elements are usually unevenly distributed. When the DAS algorithm uses a fixed α for inspection, internal points will be mistaken for boundary points or boundary points will be regarded as internal points. Therefore, in this embodiment, before boundary extraction, additional discrete points need to be added linearly and uniformly. The advantage of this is that a fixed α can be used. α The internal and external boundaries of the building are accurately extracted from the BIM geometric information. In this embodiment, additional discrete points are linearly and uniformly increased along the edge of the element surface. Specifically, between the starting point and the end point of the element surface edge, the density of the discrete points is linearly and uniformly increased, and the density distribution of the two-dimensional discrete points is similar to that of the element surface edge. d The values are closely related. d The values have different boundary extraction results. d The value represents the distribution distance of adjacent discrete points. Experiments show that when d As the value decreases, the extraction accuracy of the boundary increases.
[0085] Boundary clustering and space segmentation: linear uniform growth along the edge of the element surface obtains discrete points with uniform density distribution. After that, the DAS algorithm can be used to obtain the boundary clusters of different spaces in the BIM model. E . Since the discrete points are randomly distributed, the obtained boundary set is also disordered. There are three example independent spaces in the boundary set, and their boundaries are randomly arranged. It is impossible to directly obtain all the boundaries of each independent space. This is not conducive to boundary optimization, because in the subsequent boundary optimization, it is necessary to obtain the sorting direction of the independent space to determine the optimization method. Therefore, it is first necessary to cluster the disordered boundary set belonging to the same independent space, that is, to cluster the boundaries of each independent space, and the clustered boundaries can be sorted clockwise or counterclockwise.
[0086] Each boundary is represented by two points, and adjacent boundaries have only one common point. Based on this feature, we can loop E Clustering boundaries. This embodiment draws on the principle of the insertion sort algorithm and proposes an insertion clustering algorithm to reduce time complexity. Assume that the boundaries extracted from discrete points have 16 boundaries and 16 vertices randomly distributed. E By E 1 (14, 15 or 15, 14), E 2 (7, 9 or 9, 7), E 3 (3, 16 or 16, 3), E4 (6, 12 or 12, 6), E 5 (5, 11 or 11,5), E 6 (1, 14 or 14,1), E 7 (2, 4 or 4, 2), E 8 (10, 13 or 13, 10), E 9 (7, 12 or 12, 7), E 10 (5, 15 or 15, 5), E 11 (2,8 or 8, 3), E 12 (3, 13 or 13, 3), E 13 (4, 11 or 11, 4), E 14 (6, 9 or 9, 6), E 15 (10, 13 or 13,10), E 16 (1, 8 or 8, 1). For ease of illustration, only one case is randomly selected from each boundary. The cluster boundaries can be obtained by the following steps:
[0087] (1) From E (i,n) Select E i (P i1 ,P i2 ).
[0088] (2) Cycle E (i+1,n) Find the P i2 E j (P j1 ,P j2 ). If P j1 Equal to P j2 , then E j Insert into E i The position behind. j2 Equal to P i2 , set E j = (P j2 ,P j1 ), then E j (P j2 ,P j1 ) is inserted into E i Then delete E i+j+1。
[0089] (3) Repeat steps (1)-(2) until all E Clustering completed.
[0090] The boundary set obtained by clustering is still a whole, and the boundaries of different spaces cannot be directly obtained. Therefore, the clustering boundaries need to be further optimized to obtain different segmentation spaces. The first step is to create a multi-dimensional empty list Q(N*N) And E 1 Insert Q (1*1) , and then determine whether there is a common point between the front and back boundaries. If there is a common point, it means that they belong to the common space, and E 2 Add to Q (1*2) If there is no common point, it means that it does not belong to the common space. 2 Add to Q (2*1) Finally, the clustered boundary sets are looped until all boundaries are segmented. This method can perfectly cluster and segment boundaries in different spaces.
[0091] The above example only shows three simple independent spaces, while the boundaries of real buildings are much more complex. The internal environment of a building is usually composed of spaces of different shapes and sizes, and their boundaries are more chaotic and disordered, which requires the boundary clustering and segmentation algorithm to have higher robustness. It has been verified that the method of this embodiment can adapt to this complexity, and the boundaries of different spaces such as rooms and other elements can be well clustered and segmented.
[0092] Rectification of boundary corners: After boundary clustering and spatial segmentation, a multidimensional boundary set can be obtained. Q , where the boundaries of each independent space (i.e., the boundaries of the separated independent space boundaries) are arranged clockwise or counterclockwise. However, the extracted boundaries still have considerable errors at the boundary corners, i.e., the corners. It is necessary to eliminate these errors so that the extracted boundaries are consistent with the boundaries of the BIM.
[0093] Combined with reference Figure 3 As shown in , it is assumed that the clustering and segmentation boundary sets have three independent spaces, and the boundary corner points with position errors are as follows: 17 , P 18 In the independent space corresponding to the outer boundary, the boundary corner points where errors occur can be located according to the azimuth angles of every two adjacent points. Then, the optimization method is determined using the azimuth angle of the boundary and the boundary sorting direction. The specific process is as follows:
[0094] (1) From Q Select a separate segmentation boundary set from Q n , then use the following steps to determine Q n The sorting direction.
[0095] 1) From Q n Select a prominent extreme point such as P 8 .
[0096] 2) From Q n Choose P 8 Two adjacent points, such as P1 , P 2 .
[0097] 3) Calculate the value of P 1 , P 2 , P 8 The area of the triangles. If the area is greater than 0, it means it is sorted counterclockwise, otherwise it is sorted clockwise.
[0098] (2) From Q n Select an edge E i( P i1, P i2) Calculate the azimuth. Q n Already sorted, P i2 With P i1 There are eight other azimuth angles. Calculate different situations P i2 With P i1 The azimuth between A;
[0099] (3) If A If it is a multiple of 90, there is no need to optimize it and return to step (2). Otherwise, go to step (4).
[0100] (4) Judge E i and E i+1 Whether it is collinear (or E i and E i+1 collinear). If the angle vc If it is equal to 0 or 180, then E i and E i-1 Collinear (or E i and E i+1 collinear), and return to step (2); otherwise, go to step (5).
[0101] (5) If there is a little P j Make (P i1 ,P j ) is perpendicular to (P j ,P i2 ), and P j ( x , y ) = (P i1x ,P i2y ), P j ( x , y ) = (P i2x ,P i1y ), in P i1 and P i2 Insert P between j .
[0102] (6) Repeat steps (2) to (5) until the inspection is complete. Q n .
[0103] (7) Repeat steps (1) to (6) until the inspection is complete. Q。
[0104] In one embodiment, the square optimization process includes: determining an optimization method according to the azimuth angle of the boundary and the boundary sorting direction, and the optimization method includes any one or more of the following: outer boundary shrinkage, outer boundary expansion, inner boundary shrinkage, and inner boundary expansion.
[0105] The above boundary corner optimization process is applicable to the counterclockwise sorting and contraction of the outer boundary, but there are also counterclockwise sorting and expansion of the outer boundary, clockwise sorting and contraction of the outer boundary, clockwise sorting and expansion of the outer boundary, clockwise sorting and contraction of the inner boundary, clockwise sorting and expansion of the inner boundary, clockwise sorting and contraction of the inner boundary, counterclockwise sorting and contraction of the inner boundary, and reverse sorting and expansion of the inner boundary. Different right-angle optimization methods are used in different situations. The outer boundary extracted by the DAS algorithm is usually expanded, and the inner boundary is usually contracted. When the boundary corners are right-angled, it is necessary to shrink the outer boundary and expand the inner boundary.
[0106] Vector Collinearity Cross-Check: The above method obtains a rectangular multidimensional boundary set consistent with the BIM model. Q However, the discrete points that grow uniformly linearly and the wall elements that separate different room elements cause the boundary that originally belonged to the same straight line to be divided into multiple boundaries. If the path planning is based on the current segmented boundary, the efficiency of the inspection will be reduced. Therefore, it is necessary to continue to merge the segmented boundaries until the boundary of the same straight line can be represented by two boundary points. In this embodiment, the vector collinear cross-check method can be used to merge the segmented boundaries. The specific process is as follows:
[0107] (1) From Q choose Q n , and create a new empty list of multiple dimensions NQ (First creation only).
[0108] (2) Create a new boundary set NE , and select E from i (P i1 ,P i2 ) added to NE middle.
[0109] (3) From Q n Select E i+1 (P (i+1)1 ,P (i+1)2) and from NE Select the last added edge NE end (P (end)1 ,P (end)2 ), then judge E i+1 and NE end Whether they are collinear.
[0110] (4) If E i+1 and NE end Co-line, set NE end = (P end1 , P i2 ), otherwise E i+1 insert NE .
[0111] (5) Repeat steps (3)-(4) until the inspection is complete. Q n , then N E Insert NQ .
[0112] (6) Repeat steps (1) to (5) until the inspection is complete. Q。
[0113] After the above steps (1)-(6), most of the segmented boundaries can be merged. However, there is still a small part of the boundaries that cannot be merged into a straight line. This is because there is a deviation angle between adjacent boundaries. The BIM model has high accuracy and can reach the millimeter level. If there is a deviation angle between adjacent boundaries, the boundaries cannot be merged. The reasons for the deviation angle can be summarized into two aspects: (1) The modeler may have irregular modeling behavior, resulting in a certain angle deviation between two elements that originally belonged to the same line; (2) The BIM element is not a line, but a spatial entity. The two-dimensional projection is still a plane. For elements with a smaller width, the DAS algorithm will cross-extract boundary points, and the uniform growth of discrete points will increase the possibility of deviation.
[0114] In order to overcome the above problems, DAT is designed as the threshold for merging adjacent boundaries in this embodiment. If the deviation angle of two boundaries is less than DAT, they are considered to belong to the same straight line to be merged. Among them, the larger the DAT value, the better the effect of merging boundaries. And the vector collinear cross-check method can reduce the number of boundaries and improve the efficiency of later path planning.
[0115] Based on any of the above embodiments, in one embodiment, reference Figure 2 As shown, the step of optimizing the inner boundary and the outer boundary based on the non-geometric information to obtain the optimized inner boundary and the outer boundary in step S103 may specifically include the following steps:
[0116] Step S201: Determine the type of the target building element based on the attribute information of the target building element.
[0117] Exemplarily, the attribute information of the target building element may include different types of the target building element, such as wall, beam, plate, etc. Therefore, the type of the target building element may be determined according to the attribute information.
[0118] Step S202: determining a designated building element among the target building elements based on the type of the target building element, wherein the designated building element is used to assist in locating an inner boundary and / or an outer boundary of the target building element.
[0119] Exemplarily, the designated architectural element may be a door, a window, or an opening in the target architectural element, which may be determined according to different types of target architectural elements, such as a window, an opening or a door in a wall, an opening in a beam, etc. The designated architectural element in the target architectural element may be used to assist in locating the inner boundary and the outer boundary of the target architectural element.
[0120] Step S203: determining the position of the designated building element, and optimizing the inner boundary and the outer boundary based on the position of the designated building element to obtain optimized inner boundary and outer boundary.
[0121] Exemplarily, the position of a specified building element is obtained, such as being determined by the design position of the specified building element in the BIM model, and then the inner boundary and the outer boundary are assisted in being optimized based on the position of the specified building element to obtain the optimized inner boundary and the outer boundary.
[0122] In this embodiment, the inner and outer boundaries extracted by the optimization algorithm can be further assisted based on the position of the designated building element, and a high-precision environment map can be obtained by performing three-dimensional reconstruction based on the optimized inner and outer boundaries. In this way, the inner and outer boundaries finally determined can be further refined, thereby obtaining an accurate real environment map, that is, providing an accurate real environment map for the robot's path planning, thereby improving the accuracy of the robot's path planning.
[0123] Extracting the inner and outer boundaries of a building based on BIM is a fast and effective method for perceiving the building environment. However, the inner and outer boundaries extracted by the above method have two defects: 1) Each inner boundary is relatively independent and closed, and the path planning of the entire floor cannot be completed at one time; 2) The outer boundary is a two-dimensional plane, but the inspection of the exterior wall requires a three-dimensional space environment. Therefore, it is necessary to further optimize the inner and outer boundaries to provide an accurate real building environment map for robot navigation.
[0124] Specifically, buildings are usually divided into different functional spaces, which are usually connected by doors, windows or openings. Therefore, by locating the positions of the doors, windows and openings of each independent space in the internal and external boundaries, all boundaries can be connected into a whole, providing a global internal environment for the robot's navigation path planning.
[0125] In one embodiment, the target building element includes building elements of at least two adjacent floors; the attribute information includes one or more of the type, floor information, area, and volume of the target building element; and the designated building element includes one or more of a door, a window, and an opening.
[0126] In one embodiment, the three-dimensional reconstruction based on the optimized inner and outer boundaries to obtain a high-precision environmental map includes: fusing the optimized inner and outer boundaries to obtain a final boundary, wherein the final boundary includes the outer boundaries of at least two adjacent floors; determining the floor heights of each of the at least two adjacent floors, and performing three-dimensional reconstruction based on the floor heights of each of the at least two adjacent floors and the outer boundaries of the at least two adjacent floors to obtain the three-dimensional reconstructed outer boundaries of the at least two adjacent floors; and determining a high-precision environmental map of the building based on the three-dimensional reconstructed outer boundaries of the at least two adjacent floors.
[0127] It should be noted that the above merging of adjacent boundaries will cause some outer boundaries of the small segment to disappear. As the DAT increases, more boundaries will disappear, resulting in inaccurate boundaries and thus reducing the accuracy of the environment map. To solve this problem, this embodiment adopts a method of merging inner and outer boundaries.
[0128] For details, please refer to the above. d The values produce different boundary extraction results, and when d As the value increases, the extracted boundary is closer to the outer boundary. Therefore, two different d Use smaller values for boundary extraction. d value to extract the inner boundary, use a larger d value to extract the outer boundary, and then merge the inner and outer boundaries to obtain a new combined boundary.
[0129] In a specific example, consider how to ensure that a larger d The value can extract the outer boundary consistent with the BIM model. d If the value is too small, both the outer boundary and part of the inner boundary will be extracted at the same time. d If the value is too large, the accuracy of extracting the external boundary will be reduced. Therefore, in this embodiment, adaptive d Value to extract the external boundary. The specific process is as follows:
[0130] (1) Setupd = 1000 as the initial value (according to the model scale setting), and obtain the new boundary set NQ .
[0131] (2) Judgment NQ If the dimension is greater than 1, choose the longest segment boundary as the outer boundary NQ nm , and from NQ Select multiple points in each line segment boundary in all other dimensions and then determine whether these points are in NQ nm Inside. If there is a point inside, go to step (3). If all points are not inside, go to step (4). If the dimension is equal to 1, only the outer boundary remains, but it may not be the outer boundary with the best accuracy, so go to step (4).
[0132] (3) Increase d Values: d’ = d + 1000 (according to the model scale setting), and go to step (2) again.
[0133] (4) Reduction d Values: d’ = d - 100, then judge NQ If the dimension is equal to 1 or equal to the dimension of multiple independent outer boundaries, go to step (4) again. If the dimension is greater than 1 or greater than multiple independent outer boundaries, select the last d The value is larger d value.
[0134] Furthermore, the external boundary calculated and extracted above is only a two-dimensional projection of the external wall, which is not suitable for three-dimensional spatial inspection path planning of the building's external wall. It is necessary to use the external boundary and height of the floor to reconstruct the three-dimensional external boundary.
[0135] For adjacent floors, the bottom elevation of the upper floor is the top elevation of the floor. The floor height can be calculated by subtracting the bottom elevation of the adjacent floor. However, this method cannot calculate the height of the roof because the roof no longer has the bottom elevation of the upper floor. In this embodiment, the height of all walls on the roof is used as the height of the roof. The bottom elevation of each floor and the height of the wall on the roof can be automatically obtained from the BIM model, and then the floor height can be calculated based on this, and then the external boundary and height of the floor are used to reconstruct the three-dimensional external boundary.
[0136] In one embodiment, the method may further include the following steps: determining whether the difference in floor area of each adjacent floor of the at least two adjacent floors is less than a preset threshold, and if so, determining that each adjacent floor is a standard floor; determining a high-precision environmental map of the building based on the three-dimensional reconstructed outer boundaries of the at least two adjacent floors, including: fusing the three-dimensional reconstructed outer boundaries of the standard floors to obtain a high-precision environmental map of the building.
[0137] After the above reconstruction of the 3D external boundary, a true 3D environment map can be provided. However, the external wall inspection is usually carried out on the whole wall in one direction rather than on the walls of different floors. Therefore, at least 2 independent floors with the same external boundary, namely standard floors, can be fused. The area surrounded by the external boundary is used as the basis for determining whether the adjacent floor is a standard floor. When the area difference between adjacent floors is within 5%, it is regarded as a standard floor. The 3D reconstructed external boundary of the standard floor is integrated to obtain a high-precision environment map of the building. This can make full use of the field of view of the high-definition camera of the UAV or other robot to plan the path and improve the efficiency of the inspection.
[0138] The disclosed embodiment proposes a solution for dynamically generating a high-precision lightweight environment map, including selecting architectural elements and extracting information based on scene requirements, extracting architectural geometric boundaries with improved algorithms, and optimizing and fusing internal and external boundaries using non-geometric information, and finally reconstructing a higher-precision three-dimensional environment map using door and window opening positioning and fusing standard layers. The solution provides a method for converting the building environment into an accurate digital environment map that can be understood by robots, ensuring that robots such as drones can complete inspection tasks safely and efficiently.
[0139] It should be noted that, although the steps of the method in the present disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution, etc. In addition, it is also easy to understand that these steps may be, for example, executed synchronously or asynchronously in multiple modules / processes / threads.
[0140] like Figure 4 As shown, the embodiment of the present disclosure provides a system for automatically generating a lightweight environmental map for robot inspection of buildings, including:
[0141] The information extraction module 401 is used to determine the target building element in the BIM model of the building, and extract the geometric information and non-geometric information of the target building element; wherein the geometric information includes the position, geometric size and spatial topological relationship of the target building element; and the non-geometric information includes the attribute information of the target building element;
[0142] A boundary extraction module 402 is used to process the geometric information by a boundary extraction algorithm to extract the inner boundary and the outer boundary of the target building element; wherein the boundary extraction algorithm includes an Alpha Shapes algorithm based on a Delaunay triangulation;
[0143] The map determination module 403 is used to optimize the inner boundary and the outer boundary based on the non-geometric information to obtain optimized inner boundary and outer boundary, and perform three-dimensional reconstruction based on the optimized inner boundary and outer boundary to obtain a high-precision environment map.
[0144] In one embodiment, the map determination module optimizes the inner boundary and the outer boundary based on the non-geometric information to obtain optimized inner boundary and outer boundary, including: determining the type of the target building element based on the attribute information of the target building element; determining a designated building element among the target building elements based on the type of the target building element, the designated building element being used to assist in locating the inner boundary and / or outer boundary of the target building element; determining the position of the designated building element, and optimizing the inner boundary and the outer boundary based on the position of the designated building element to obtain optimized inner boundary and outer boundary.
[0145] In one embodiment, the target building element includes building elements of at least two adjacent floors; the attribute information includes one or more of the type, floor information, area, and volume of the target building element; and the designated building element includes one or more of a door, a window, and an opening.
[0146] In one embodiment, the map determination module performs three-dimensional reconstruction based on the optimized inner and outer boundaries to obtain a high-precision environment map, including: fusing the optimized inner and outer boundaries to obtain a final boundary, the final boundary including the outer boundaries of at least two adjacent floors; determining the floor heights of each of the at least two adjacent floors, and performing three-dimensional reconstruction based on the floor heights of each of the at least two adjacent floors and the outer boundaries of the at least two adjacent floors to obtain the three-dimensional reconstructed outer boundaries of the at least two adjacent floors; and determining a high-precision environment map of the building based on the three-dimensional reconstructed outer boundaries of the at least two adjacent floors.
[0147] In one embodiment, the system may further include a judgment module for judging whether the difference in floor area of each of the at least two adjacent floors is less than a preset threshold, and if so, determining that each adjacent floor is a standard floor. The map determination module determines the high-precision environment map of the building based on the three-dimensional reconstructed outer boundaries of the at least two adjacent floors, which may specifically include: fusing the three-dimensional reconstructed outer boundaries of the standard floors to obtain the high-precision environment map of the building.
[0148] In one embodiment, the information extraction module extracts the geometric information of the target building element, including: extracting the geometric information of the target building element by UV coordinate system method, wherein the geometric information is represented by the vertex coordinates of the target building element. The system may also include an algorithm improvement module, for: performing an improvement and optimization operation on the processing process of the Alpha Shapes algorithm based on the Delaunay triangulation, wherein the improvement and optimization operation includes any one or more of the following:
[0149] a): For the discrete points formed by the vertex coordinates of the target building element, additional discrete points are linearly and uniformly grown along the edge of the surface of the target building element so that the density of the discrete points is evenly distributed;
[0150] b) Obtain different spatial boundary sets of the target building element, cluster and segment the different spatial boundary sets to obtain boundary sets of different spaces;
[0151] c): for each boundary set of the different spaces, the boundary corner points therein are subjected to right-angle optimization processing so that the optimized boundaries are consistent with the corresponding boundaries in the BIM model; wherein the boundary corner points are points where there are position errors at the corners of adjacent boundaries;
[0152] d): The two boundaries belonging to the same straight line are merged by using the vector collinearity intersection check method, and if the deviation angle of the two boundaries is less than the threshold for merging adjacent boundaries, the two boundaries are considered to belong to the same straight line and are merged.
[0153] In one embodiment, the square optimization process includes: determining an optimization method according to the azimuth angle of the boundary and the boundary sorting direction, and the optimization method includes any one or more of the following: outer boundary shrinkage, outer boundary expansion, inner boundary shrinkage, and inner boundary expansion.
[0154] Regarding the system in the above embodiment, the specific manner in which each module performs operations and the corresponding technical effects brought about have been described in detail in the embodiment of the method, and will not be elaborated here.
[0155] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiment of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of a module or unit described above can be further divided into multiple modules or units for concretization. The components displayed as modules or units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. Those of ordinary skill in the art can understand and implement it without paying creative work.
[0156] The embodiments of the present disclosure also provide a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for automatically generating a lightweight environmental map of a building for robot inspection as described in any of the above embodiments is implemented.
[0157] Exemplarily, the readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0158] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0159] The present disclosure also provides an electronic device, including a processor and a memory, wherein the memory is used to store a computer program, wherein the processor is configured to execute the method for automatically generating a lightweight environment map for robot inspection of a building in any of the above embodiments by executing the computer program.
[0160] Refer to the following Figure 5 The electronic device 600 according to this embodiment of the present invention is described. Figure 5 The electronic device 600 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0161] like Figure 5 As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610), a display unit 640, etc.
[0162] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 performs the steps according to various exemplary embodiments of the present invention described in the above method embodiment section of this specification. For example, the processing unit 610 can perform the following steps: Figure 1 The steps of the method shown in .
[0163] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .
[0164] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.
[0165] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0166] The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 600, and / or communicate with any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 650. In addition, the electronic device 600 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) through a network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 through a bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0167] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of instructions to enable a computing device (which can be a personal computer, a server, or a network device, etc.) to execute the method steps of the above-mentioned embodiments according to the implementation methods of the present disclosure.
[0168] It should be noted that, in this article, relational terms such as "first" and "second" 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.
[0169] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for generating a high-precision environment map for a robot inspection building, characterized in that: include: Determine a target building element in a BIM model of a building, and extract geometric information and non-geometric information of the target building element; The geometric information includes the location, geometric size and spatial topological relationship of the target building element; the non-geometric information includes the attribute information of the target building element; Processing the geometric information by a boundary extraction algorithm to extract the inner boundary and the outer boundary of the target building element; wherein the boundary extraction algorithm includes an Alpha Shapes algorithm based on a Delaunay triangulation; Optimizing the inner boundary and the outer boundary based on the non-geometric information to obtain optimized inner boundary and outer boundary, and performing three-dimensional reconstruction based on the optimized inner boundary and outer boundary to obtain a high-precision environment map; The step of optimizing the inner boundary and the outer boundary based on the non-geometric information to obtain the optimized inner boundary and the outer boundary includes: Determining the type of the target building element based on the attribute information of the target building element; Determine, based on the type of the target building element, a designated building element among the target building elements, wherein the designated building element is used to assist in locating an inner boundary and / or an outer boundary of the target building element; The position of the designated building element is determined, and the inner boundary and the outer boundary are optimized based on the position of the designated building element to obtain optimized inner boundary and outer boundary; the target building element includes building elements of at least two adjacent floors; the attribute information includes one or more of the type, floor information, area, and volume of the target building element; and the designated building element includes one or more of a door, a window, and an opening.
2. The method according to claim 1, characterized in that: The three-dimensional reconstruction based on the optimized inner boundary and outer boundary to obtain a high-precision environment map includes: Merging the optimized inner boundary and outer boundary to obtain a final boundary, wherein the final boundary includes outer boundaries of at least two adjacent floors; Determine the respective floor heights of the at least two adjacent floors, and perform three-dimensional reconstruction based on the respective floor heights of the at least two adjacent floors and the floor outer boundaries of the at least two adjacent floors to obtain the three-dimensional reconstructed outer boundaries of the at least two adjacent floors; A high-precision environment map of the building is determined based on the three-dimensionally reconstructed outer boundaries of the at least two adjacent floors.
3. The method according to claim 2, characterized in that The method further includes: Determine whether the difference in floor area of each adjacent floor of the at least two adjacent floors is less than a preset threshold, and if so, determine that each adjacent floor is a standard floor; The method of determining a high-precision environment map of a building based on the three-dimensionally reconstructed outer boundaries of the at least two adjacent floors comprises: The three-dimensional reconstructed outer boundaries of the standard floors are integrated to obtain a high-precision environmental map of the building.
4. The method according to any one of claims 1 to 3, characterized in that The extracting the geometric information of the target building element comprises: extracting the geometric information of the target building element by UV coordinate system method, wherein the geometric information is represented by vertex coordinates of the target building element; The method further includes: performing an improved optimization operation on the processing process of the Alpha Shapes algorithm based on the Delaunay triangulation, wherein the improved optimization operation includes any one or more of the following: a): For the discrete points formed by the vertex coordinates of the target building element, additional discrete points are linearly and uniformly grown along the edge of the surface of the target building element so that the density of the discrete points is evenly distributed; b) Obtain different spatial boundary sets of the target building element, cluster and segment the different spatial boundary sets to obtain respective boundary sets of different spaces; c): for each boundary set of the different spaces, the boundary corner points therein are subjected to right-angle optimization processing so that the optimized boundaries are consistent with the corresponding boundaries in the BIM model; wherein the boundary corner points are points where there are position errors at the corners of adjacent boundaries; d): The two boundaries belonging to the same straight line are merged by using the vector collinearity intersection check method, and if the deviation angle of the two boundaries is less than the threshold for merging adjacent boundaries, the two boundaries are considered to belong to the same straight line and are merged.
5. The method according to claim 4, characterized in that The square optimization process includes: determining an optimization method according to the azimuth angle of the boundary and the boundary sorting direction, and the optimization method includes any one or more of the following: outer boundary contraction, outer boundary expansion, inner boundary contraction, and inner boundary expansion.
6. A high-precision environment map generation system for robot inspection buildings, characterized in that: include: An information extraction module, used to determine a target building element in a BIM model of a building, and extract geometric information and non-geometric information of the target building element; The geometric information includes the location, geometric size and spatial topological relationship of the target building element; the non-geometric information includes the attribute information of the target building element; A boundary extraction module, used for processing the geometric information by a boundary extraction algorithm to extract the inner boundary and the outer boundary of the target building element; wherein the boundary extraction algorithm comprises an AlphaShapes algorithm based on a Delaunay triangulation; A map determination module, configured to optimize the inner boundary and the outer boundary based on the non-geometric information to obtain optimized inner boundary and outer boundary, and to perform three-dimensional reconstruction based on the optimized inner boundary and outer boundary to obtain a high-precision environment map; The map determination module is specifically used to: determine the type of the target building element based on the attribute information of the target building element; determine a designated building element among the target building elements based on the type of the target building element, the designated building element being used to assist in locating the inner boundary and / or outer boundary of the target building element; determine the position of the designated building element, and optimize the inner boundary and the outer boundary based on the position of the designated building element to obtain the optimized inner boundary and the outer boundary; the target building element includes building elements of at least two adjacent floors; the attribute information includes one or more of the type, floor information, area, and volume of the target building element; the designated building element includes one or more of a door, a window, and an opening.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for generating a high-precision environment map of a building inspected by a robot as described in any one of claims 1 to 5 is implemented.
8. An electronic device, characterized in that: include: processor; as well as Memory for storing computer programs; Wherein, the processor is configured to execute the method for generating a high-precision environment map of a robot inspection building as described in any one of claims 1 to 5 by executing the computer program.
Citation Information
Patent Citations
Topology-aware type onboard building roof point cloud modeling method
CN107025685A
BIM indoor space connected graph construction method based on building element topological relation
CN109815604A
Method and system for reconstructing axis of Manhattan building with high precision by using indoor and outdoor point cloud
CN115239887A
