Path planning method for indoor building

CN118565482AInactive Publication Date: 2024-08-30CHINA RAILWAY HUALIAN CONSTR ENG CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410732782.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-08-30
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

算法计算量太大导致搜索效率较低,尤其在复杂的室内环境地图中,如医院、大型商场、综合性教学楼等

Benefits of technology

相比现有技术,本申请首先,通过建立复杂室内环境的仿真模型,提取模型中结构、障碍物和通道的语义、几何及其关联信息,通过栅格抽象映射得到基础导航地图,并结合层次图思想,开展地图空间分层,获取第一子图层和第二子图层地图;然后,利用细化算法,生成第二子图层地图中各子区域之间的第二路网,联合迪杰斯特拉算法选取其中的最优路径形成第二路径,并基于自主改进的A∗算法,快速高效搜索第一子图层的第一路径,通过组合第一路径和第二路径形成最优路径,构建完整的全局最优路径

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118565482A
    Figure CN118565482A
Patent Text Reader

Abstract

The invention discloses a path planning method for an indoor building, and the method comprises the steps: 1, analyzing indoor building information into building component geometric information through software, and forming a simulation engineering model; step 2, in the simulation engineering model, acquiring ground data from the analyzed geometric information, determining the dimension of a map, establishing a rectangular local area by taking a connecting line of a starting point and an ending point as a diagonal line, and rasterizing the rectangular area to obtain a grid navigation map; step 3, dividing the grid navigation map into a plurality of first sub-map layers according to different areas, setting first nodes at entrances and exits of the first sub-map layers, forming second sub-map layers by paths among the first nodes, and setting second nodes at corner points of the second sub-map layers; and 4, respectively carrying out optimal path search on the first sub-graph layer and the second sub-graph layer to form a first path and a second path, and then connecting the first path and the second path to form an optimal planning path of the indoor building.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent path planning, and in particular to a path planning method for indoor buildings. Background Art

[0002] As the working space of mobile robots continues to expand, especially as construction work scenes become increasingly complex, the difficulty of path planning continues to increase. The traditional single path planning method can no longer meet the actual needs. When facing the path planning problem in complex construction scenes, there are shortcomings such as large search space, low efficiency and poor obstacle avoidance safety. Therefore, the difficulty of path planning lies in how to obtain accurate and comprehensive indoor navigation maps and develop fast and efficient path planning algorithms.

[0003] At present, in path planning of known environment maps, the search scope of the algorithm path optimization process is often the global environment of the navigation map. The large amount of algorithm calculation leads to low search efficiency, especially in complex indoor environment maps, such as hospitals, large shopping malls, comprehensive teaching buildings, etc. The interior of the building is composed of rooms of different sizes and a certain number of empty corridors. It is not advisable to use only a single algorithm to directly optimize the path facing the global map. Summary of the invention

[0004] In order to solve the above-mentioned problems, the present invention provides a path planning method for indoor buildings, comprising the following steps: step 1, parsing indoor building information into building component geometric information through software, and converting the simulation engineering model into a basic map; step 2, in the basic map, obtaining ground data from the parsed geometric information, determining the dimension of the map, and then establishing a rectangular local area with the line connecting the starting point and the end point as the diagonal line, rasterizing the rectangular area, and obtaining a grid navigation map; step 3, dividing the grid navigation map into a plurality of first sub-layers according to different areas, setting a first node at the entrance and exit of the first sub-layer, the path between the first nodes constitutes a second sub-layer, and setting a second node at the corner point of the second sub-layer; step 4, respectively conducting optimal path search on the first sub-layer and the second sub-layer to form a first path and a second path, and then connecting the first path and the second path to form the best planning path for the indoor building.

[0005] Furthermore, in the step 2, the coordinates of the starting point are set to (X0 0, Y0 0), and the coordinates of the end point are set to (X0obj, Y0 obj). The starting point (X0 0, Y0 0) and the end point (X0 obj, Y0 obj) are connected as a diagonal line to establish a rectangular area, and the rectangular area is rasterized. A first coordinate system is established in the horizontal and vertical directions of the rectangular area, each grid is a pixel point, and the value is changed according to the geometric information of the building component. The specific coordinate point in the first coordinate system is (X, Y). The starting point coordinate point (X0 0, Y0 0) and the specific coordinate point in the first coordinate system (X, Y) satisfy the following conditions: = * + ; θ = - ; Wherein, in the above formula, θ is the positive direction angle of the X-axis in the first coordinate system, and m and n are the absolute values ​​of the length and width of the rectangular area in the first coordinate system.

[0006] Furthermore, in the step 4, in the second sublayer, firstly, the 8-grid neighborhood around the target pixel point P is traversed and judged; then, the logical operation conditions are judged in two steps, and the points to be deleted are marked, and then all the marked points to be deleted are deleted at the same time. The specific steps are as follows: Step 1: If the target pixel P 1 The 8-grid neighborhood of meets the following conditions at the same time, then mark P 1 is the point to be deleted; ; Step 2: If the target pixel P 1 The 8-grid neighborhood of 1 is the point to be deleted; in, is the number of non-zero pixels; For along P 1 , P 2 …P 9 The number of times the sequential pixel value changes from 0 to 1.

[0007] The above two steps are an iterative process. After an iteration, all the marked points to be deleted are deleted at the same time, and then all the pixels of the target image are traversed. The above iterative process is repeated until there are no more points that can be deleted in the target image. Thus, several second road networks are formed.

[0008] Further, the second path in the second sublayer is found using the Dijkstra algorithm in the second path network; Furthermore, in step 4, in the first sublayer, the first path satisfies the following conditions: f(n)=g(n)+h(n); h(n)=m*jn* ; Among them, f(n) is the distance from the starting point to the target point in the first sublayer, h(n) is the heuristic function, g(n) is the shortest distance from the target point to the starting point obtained by Dijkstra algorithm, m and n are static weights, j is the heuristic function of the traditional A∗ algorithm, α is, α is the angle between the line connecting the starting point and the target point and the line connecting the first node and the second node, and β is the obstacle occupancy rate in the first sublayer.

[0009] To be more specific, the specific process is as follows: Step 1, put the starting point and the end point into the Open1 table and the Open2 table respectively, and set the Close1 table and the Close2 table to be empty; Step 2, determine whether one of the Open1 table and the Open2 table is empty. If not, proceed to Step 3 to start forward and reverse node expansion; otherwise, end the iteration; Step 3, forward expand the node, calculate the f(n) of the node in the Open1 table, and find the corresponding node n 1 , delete the node from the Open1 table and store it in the Close1 table; expand the node in reverse, calculate f(n) of the node in the Open2 table, and find the corresponding node n 1 , delete the node from the Open2 table and store it in the Close2 table; Step 4, traverse node n 1 The surrounding 8 grid neighborhood nodes, determine the neighborhood node m i Is it in the Open1 table of its search direction? If so, maintain node m i The cost in the Open1 table and update the best node for forward search; conversely, update the best node after filtering the extension points; traverse node n 2 The surrounding 8 grid neighborhood nodes, determine the neighborhood node m i Is it in the Open2 table in its search direction? If so, maintain node m i The cost in the Open2 table is updated and the best node of the forward search is updated; conversely, the best node is updated after filtering the extension points; Step 5, determine whether the current node is located in the node of the reverse search. If not, return to step 3 to continue iterating; if yes, record the nodes passed by the path and draw the optimal path; determine whether the current node is located in the node of the forward search. If not, return to step 3 to continue iterating; if yes, record the nodes passed by the path and draw the optimal path.

[0010] Compared with the prior art, the present invention has the following beneficial effects: Compared with the prior art, the present application firstly establishes a simulation model of a complex indoor environment, extracts the semantics, geometry and related information of structures, obstacles and channels in the model, obtains a basic navigation map through grid abstract mapping, and combines the idea of ​​hierarchical graph to carry out map space stratification to obtain the first sub-layer and the second sub-layer maps; then, the refinement algorithm is used to generate the second road network between the sub-areas in the second sub-layer map, and the Dijkstra algorithm is used to select the optimal path therein to form the second path, and based on the independently improved A∗ algorithm, the first path of the first sub-layer is searched quickly and efficiently, and the optimal path is formed by combining the first path and the second path to construct a complete global optimal path. Additional aspects and advantages of the present invention will be given in part in the description which follows, and in part will be obvious from the description which follows, or may be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] 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, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0012] Figure 1 A coordinate mapping diagram of a grid navigation map of a path planning method for indoor buildings according to the present invention; Figure 2 A schematic diagram of a grid navigation map of a path planning method for indoor buildings according to the present invention; Figure 3 A schematic diagram of the grid navigation map after layering for inventing a path planning method for indoor buildings; Figure 4 A logical schematic diagram of planning a second path for inventing a path planning method for indoor buildings; Figure 5 A schematic diagram of a process of planning a first path for a path planning method for indoor buildings; DETAILED DESCRIPTION The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0013] The present invention is described in more detail. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention. It should be noted that when an element is described as "fixed to" another element, it can be directly on the other element, or there can be one or more centered elements therebetween. When an element is described as "connected to" another element, it can be directly connected to the other element, or there can be one or more centered elements therebetween.

[0014] In the description of the present invention, it should be noted that the orientation or positional relationship indicated by directional words such as "front, back, up, down, left, right", "lateral, vertical, vertical, horizontal" and "top, bottom" are usually based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description. Unless otherwise stated, these directional words do not indicate or imply that the device or element referred to must have a specific orientation or be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the scope of protection of the present invention; the directional words "inside and outside" refer to the inside and outside relative to the outline of each component itself. In the description of the present invention, it should be noted that the use of words such as "first" and "second" to define components is only for the convenience of distinguishing the corresponding components. If not otherwise stated, the above words have no special meaning, and therefore cannot be understood as limiting the scope of protection of the present invention. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined. Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in this specification in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. In addition, the technical features involved in the different embodiments of the present application described below can be combined with each other as long as they do not conflict with each other.

[0015] The preferred embodiments of the present invention are now further described in conjunction with the accompanying drawings. The present invention discloses a path planning method for indoor buildings, which is characterized by comprising the following steps: Step 1, parsing indoor building information into building component geometry information through software, and converting the simulation engineering model into a basic map; Further in the above embodiment, the step one, specifically, uses IFcOpenShell as a software for parsing geometric information of building components to form a simulation engineering model. It uses the IFcOpenShell open source library to parse the IFC file. During the parsing process, the building components without geometric information are filtered, and the geometric information and semantic information of the remaining components are obtained, and are classified and stored in the corresponding files; based on the geometric information of the IFC file, the geometric data of each IFC building and its semantic mapping relationship are analyzed; by scanning the body and constructing the solid geometry, the geometric elements expressed in the IFC data are converted into a boundary description method to re-express, so as to ensure that the geometric information obtains the same display effect in the indoor navigation map, so as to complete several reconstructions; after the geometric splitting, each object is in a relatively independent state, and in the geometric reconstruction process, the attribute information expressing the relationship between the geometric objects is deleted, such as whether the doors and windows are in an open state and whether there are dangerous areas indoors, etc. By analyzing the entity type data expressing the object association information in the IFC file, the association relationship between the objects is determined, and the navigation model is input to generate a basic map.

[0016] Step 2: Figure 1 and Figure 2 As shown in the figure, the ground data is obtained from the parsed geometric information, the dimension M*N of the map is determined, and a rectangular area with an area of ​​M*N is established with the line connecting the starting point (X0 0, Y0 0) and the end point (X0 obj, Y0 obj) as the diagonal line. The rectangular area is rasterized, and the first coordinate system is established in the horizontal and vertical directions of the rectangular area respectively. Each cell is 1 pixel value, and the starting value of the grid is set to 1, that is, the initial points are considered to be drivable points, and the values ​​are changed according to the semantic information of the building component elements to obtain a grid navigation map, where φ is the angle between the starting point and the target point in the original coordinate system.

[0017] Further on the basis of the above embodiment, the specific coordinate point in the first coordinate system is (X, Y), and the starting point coordinate point (X0 0, Y0 0) and the specific coordinate point in the first coordinate system (X, Y) satisfy the following mapping conditions: = * + ; θ = - ; Wherein, in the above formula, θ is the positive direction angle of the X-axis in the first coordinate system, and m and n are the absolute values ​​of the length and width of the rectangular area in the first coordinate system.

[0018] Step three, dividing the grid navigation map into a plurality of first sub-layers according to different areas, setting a first node at the entrance and exit of the first sub-layer, the path between the first nodes constitutes a second sub-layer, and setting a second node at the corner point of the second sub-layer; Figure 3 As shown, the entrance and exit of the first sub-layer is selected as the first node (indicated by ○). The first node is responsible for connecting the first sub-layer (horizontal line filling area) with the second sub-layer (vertical line filling area). The paths between the first nodes constitute the second sub-layer. The corner point of the second sub-graph is the second node (indicated by △). The second node plays an auxiliary role in path search (● indicates an obstacle).

[0019] Step 4: Search for the optimal path for the first sublayer and the second sublayer respectively to form the first path and the second path, and then connect the first path and the second path to form the optimal planning path for the indoor building. Specifically, the refinement algorithm is used in the second sublayer to generate a safer second road network, and then the Dijkstra algorithm is combined to screen and obtain the optimal second path; then for the first sublayer, the original A∗ algorithm is improved from the two perspectives of extension point screening and path smoothing to enhance its optimization and solving ability, and it is applied to the first path of the grid layer, and then the first path and the second path are connected to form the optimal planning path for the indoor building.

[0020] On the basis of the above embodiments, Figure 4 As shown, in planning the second path, the following steps are followed: first, the 8-grid neighborhood around the target pixel point P is traversed and judged; then, the logical operation conditions are judged in two steps, and the points to be deleted are marked, and then all the marked points to be deleted are deleted at the same time. The specific steps are as follows: Step 1: If the target pixel P 1 The 8-grid neighborhood of meets the following conditions at the same time, then mark P 1 is the point to be deleted; ; Step 2: If the target pixel P 1 The 8-grid neighborhood of 1 is the point to be deleted; in, is the number of non-zero pixels; For along P 1 , P 2 …P 9 The number of times the sequential pixel value changes from 0 to 1.

[0021] The above two steps are an iterative process. After one iteration, all the marked points to be deleted are deleted at the same time, and then all the pixels of the target image are traversed. The above iterative process is repeated until there are no more points that can be deleted in the target image. Thus, several second path networks are formed, and then the Dijkstra algorithm is used in the second path network to find the second path in the second sublayer; On the basis of the above embodiments, in planning the first path, since the standard A* algorithm uses a one-way search, it traverses many nodes and lacks judgment on the selection of nodes. It often puts unnecessary nodes into the Open table, which increases the maintenance overhead of the Open table. At the same time, the search range is passively increased, which reduces the search efficiency of the algorithm in large spaces. In view of the above problems, the present application improves the A* algorithm. First, a two-way synchronous search method is adopted, and the starting point and the end point of this path are respectively used as the starting point of the two-way search, and at the same time, the search is performed towards each target point. Extension, consider the direction information during the extension process, and scientifically select the extension points; then set a reasonable evaluation function to further improve the search efficiency until the two-way extension points intersect, terminate the search, and obtain the best path; finally, use the redundant point removal algorithm to delete the redundant points in the best path, and make the path safer and more reliable through path smoothing modification. The improved A∗ algorithm must meet the following conditions: f(n)=g(n)+h(n); h(n)=m*jn* ; Among them, f(n) is the distance from the starting point to the target point in the first sublayer, h(n) is the heuristic function, g(n) is the shortest distance from the target point to the starting point obtained by Dijkstra algorithm, m and n are static weights, j is the heuristic function of the traditional A∗ algorithm, α is, α is the angle between the line connecting the starting point and the target point and the line connecting the first node and the second node, and β is the obstacle occupancy rate in the first sublayer.

[0022] The obstacle occupancy rate β needs to further satisfy the following conditions: Among them, (X S ,Y S ) is the starting point coordinate, (X g ,Y g ) is the end point coordinate, N is the number of obstacles On the basis of the above embodiments, Figure 5As shown in FIG, the improved A∗ algorithm is specifically as follows, including the following steps: Step 1, put the starting point and the end point into the Open1 table and the Open2 table respectively, and set the Close1 table and the Close2 table to be empty; Step 2, determine whether one of the Open1 table and the Open2 table is empty. If not, proceed to Step 3 to start forward and reverse node expansion; otherwise, end the iteration; Step 3, forward expand the node, calculate the f(n) of the node in the Open1 table, find the corresponding node n1, delete the node from the Open1 table, and store it in the Close1 table; reverse expand the node, calculate the f(n) of the node in the Open2 table, find the corresponding node n1, delete the node from the Open2 table, and store it in the Close2 table; Step 4, traverse the 8-grid neighborhood nodes around the node n1, and determine whether the neighborhood node mi is in the Open1 table in its search direction. If yes, maintain the cost of node mi in the Open1 table and update the best node for the forward search; otherwise, update the best node after filtering the extension points; traverse the 8-grid neighborhood nodes around node n2 to determine whether the neighborhood node mi is in the Open2 table of its search direction. If yes, maintain the cost of node mi in the Open2 table and update the best node for the forward search; otherwise, update the best node after filtering the extension points; Step 5, determine whether the current node is located in the node for the reverse search. If no, return to step 3 to continue iterating; if yes, record the nodes passed by the path and draw the optimal path; determine whether the current node is located in the node for the forward search. If no, return to step 3 to continue iterating; if yes, record the nodes passed by the path and draw the optimal path.

[0023] The details of the exemplary embodiments described above are not limited to the embodiments described above, and the invention may be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be regarded as exemplary and non-restrictive in all respects, and the scope of the invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims be included in the invention.

Claims

1. A path planning method for indoor buildings, characterized in that: The following steps are included: Step 1: Use software to parse indoor building information into building component geometry information and convert the simulation engineering model into a basic map; Step 2: In the basic map, obtain ground data from the parsed geometric information to determine the dimension of the map, then use the line connecting the starting point and the end point as the diagonal to establish a rectangular area, rasterize the rectangular area, and obtain a raster navigation map; Step 3: divide the grid navigation map into a plurality of first sub-layers according to different areas, set first nodes at the entrances and exits of the first sub-layers, the paths between the first nodes constitute the second sub-layers, and set second nodes at the corner points of the second sub-layers; Step 4: Perform optimal path searches on the first sublayer and the second sublayer respectively to form a first path and a second path, and then connect the first path and the second path to form an optimal planning path for the indoor building.

2. The path planning method for indoor buildings according to claim 1, characterized in that: In the step 2, the coordinates of the starting point are set to (X0 0, Y0 0), and the coordinates of the end point are set to (X0 obj, Y0 obj). The starting point (X0 0, Y0 0) and the end point (X0 obj, Y0 obj) are connected as a diagonal line to establish a rectangular area. The rectangular area is rasterized, and a first coordinate system is established in the horizontal and vertical directions of the rectangular area. Each grid is a pixel point, and the value is changed according to the geometric information of the building component. The specific coordinate point in the first coordinate system is (X, Y). The mapping relationship between the starting point coordinate point (X0 0, Y00) and the specific coordinate point in the first coordinate system (X, Y) satisfies the following conditions: = * + ; θ= - ; Wherein, in the above formula, θ is the positive direction angle of the X-axis in the first coordinate system, and m and n are the absolute values ​​of the length and width of the rectangular area in the first coordinate system.

3. The path planning method for indoor buildings according to claim 2, characterized in that: In the step 4, in the second sublayer, firstly, the 8-grid neighborhood around the target pixel point P is traversed and judged; then, the logical operation conditions are judged in two steps, and the points to be deleted are marked, and then all the marked points to be deleted are deleted at the same time. The specific steps are as follows: Step 1: If the 8-grid neighborhood of the target pixel P1 satisfies the following conditions at the same time, then mark P1 as a point to be deleted; ; Step 2: If the 8-grid neighborhood of the target pixel point P1 satisfies the following conditions at the same time, then P1 is marked as a point to be deleted; in, is the number of non-zero pixels; is the number of times the pixel value changes from 0 to 1 along the sequence of P1, P2…P9; The above two steps constitute an iterative process. After one iteration is completed, all the marked points to be deleted are deleted at the same time, and then all the pixel points of the target image are traversed. The above iterative process is repeated until there are no more points that can be deleted in the target image, thereby forming several second path networks.

4. The path planning method for indoor buildings according to claim 3, characterized in that: A second path in a second sublayer is found in the second path network using the Dijkstra algorithm.

5. The path planning method for indoor buildings according to claim 2, characterized in that: In the step 4, in the first sublayer, the first path satisfies the following conditions: f(n)=g(n)+h(n); h(n)=m*j-n* ; Among them, f(n) is the distance from the starting point to the target point in the first sublayer, h(n) is the heuristic function, g(n) is the shortest distance from the target point to the starting point obtained by Dijkstra algorithm, m and n are static weights, j is the heuristic function of the traditional A∗ algorithm, α is, α is the angle between the line connecting the starting point and the target point and the line connecting the first node and the second node, and β is the obstacle occupancy rate in the first sublayer.

6. The path planning method for indoor buildings according to claim 5, characterized in that: The specific process is as follows: Step 1: Put the start and end points into Open1 and Open2 tables respectively, and set Close1 and Close2 tables to be empty; Step 2: Determine whether one of the Open1 table and the Open2 table is empty. If not, proceed to step 3 to start expanding the nodes in the forward and reverse directions. Otherwise, the iteration ends. Step 3: Forward expand the node, calculate f(n) of the node in the Open1 table, find the corresponding node n1, delete the node from the Open1 table, and store it in the Close1 table; reverse expand the node, calculate f(n) of the node in the Open2 table, find the corresponding node n1, delete the node from the Open2 table, and store it in the Close2 table; Step 4: traverse the 8-grid neighborhood nodes around node n1 and determine the neighboring node m i Is it in the Open1 table in its search direction? If so, maintain node m i The cost in the Open1 table is used to update the best node in the forward search; conversely, the best node is updated after filtering the extension points; traverse the 8-grid neighborhood nodes around node n2 to determine the neighboring node m i Is it in the Open2 table in its search direction? If so, maintain node m i The cost in the Open2 table and updates the best node for forward search; conversely, the best node is updated after filtering the extension points; Step 5, determine whether the current node is located in the nodes of the reverse search. If not, return to step 3 to continue iterating; if yes, record the nodes passed by the path and draw the first path; determine whether the current node is located in the nodes of the forward search. If not, return to step 3 to continue iterating; if yes, record the nodes passed by the path and draw the first path.

Citation Information

Cited By

  • Building robot task planning method and device, storage medium and terminal

    CN120155921A

  • Building model inner path planning method and system based on IFC embedded information

    CN120869134A

  • Method and system for path planning in building model based on ifc embedded information

    CN120869134B