Point position avoiding method and device for indoor device and medium
Automated detection and adjustment of indoor equipment locations through three-dimensional models and priority rules solves the problems of heavy workload and false detection caused by manual operation, and achieves efficient and standardized location adjustment and improved construction efficiency.
Patent Information
- Application Number
- CN202510895117.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-10-10
AI Technical Summary
In the existing technology, indoor point conflict detection and adjustment mainly rely on manual operation, which leads to heavy workload, easy omissions, inconsistent design results and reliance on the designer's experience.
An automated method based on a three-dimensional model is used to detect and adjust point parameters. Three-dimensional Boolean operations and priority rules are used to move collision components. A multi-objective optimization algorithm and historical installation data are combined to generate an avoidance path probability distribution map to achieve automated detection and adjustment.
Significantly improve design efficiency, reduce manual inspection errors, ensure adjustment accuracy and standardization, reduce construction rework rate, and provide visual avoidance path planning.
Smart Images

Figure CN120765744A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of point avoidance, and in particular to a point avoidance method for indoor equipment, equipment and medium. BACKGROUND
[0002] Indoor point collision is common in multiple systems due to design sequence relationship. Single system point design cannot consider the impact of subsequent other point positions in advance, resulting in point collision and legend overlap phenomenon in the entire house type.
[0003] For indoor large sample design, in addition to the need to comprehensively adjust the spatial relationship of switches, sockets, lamps and the like, positioning marking of the plane point is also needed. In engineering drawing, indoor point collision and adjustment, plane point positioning marking and the like mainly rely on manual operation of designers. After the designers check the collision point, the point position is moved within the allowable range of rules, and then the positioning is marked. For plane point marking, there are some general plug-ins on the market that can quickly realize positioning marking based on walls, axis networks and the like. However, for indoor point conflict detection and adjustment, it still mainly relies on manual operation. It mainly relies on manual judgment of indoor point conflict and adjustment one by one, which is a large amount of work. The collision check in the vertical direction is often overlooked, resulting in missed detection. Moreover, different designers do not have uniform adjustment rules, and the final drawing expression will also be inconsistent.
[0004] Through the above analysis, the problems and defects of the prior art are as follows:
[0005] The indoor point conflict detection and adjustment in the prior art mainly relies on manual operation. SUMMARY
[0006] The embodiments of the present application provide a point avoidance method for indoor equipment, equipment and medium, which can solve the problem that the indoor point conflict detection and adjustment in the prior art mainly relies on manual operation.
[0007] In a first aspect, the embodiments of the present application provide a point avoidance method for indoor equipment, characterized in that the method comprises: reading point parameters of components based on a three-dimensional model, the components including ceiling-mounted equipment and wall-mounted equipment; performing collision detection on the point parameters of the components to determine whether there are collision components; if there are collision components, moving the collision components according to priority rules, the priority rules including a moving sequence and a moving direction; performing plane legend overlap detection on the moved collision components to determine whether there are overlapping legends with intersecting bounding boxes of plane legends; if there are overlapping legends, moving the overlapping legends according to wall surface directions and blank areas; and after moving the overlapping legends, positioning and marking the ceiling-mounted equipment and the wall-mounted equipment.
[0008] In an implementation of the present application, the collision component is moved according to the priority rule, specifically comprising: for the ceiling device, determining the moving vector according to the long side direction in the room intersection rectangle, and moving the collision component to the collision safety distance along the moving vector; for the wall-mounted device, obtaining the empty wall surface width of the wall surface where the collision component is located; and calculating the moving distance of the collision component according to the empty wall surface width.
[0009] In an implementation of the present application, for the wall-mounted device, the available empty wall surface of the wall surface where the collision component is located is obtained, specifically comprising: extracting the point parameter of the wall-mounted device on the wall surface where the collision component is located; dividing the wall surface into a plurality of sub-segments according to the point parameter; and screening out the sub-segments greater than the minimum spacing as the empty wall surface, the minimum spacing being the width of the current collision component.
[0010] In an implementation of the present application, if there is an overlapping legend, the overlapping legend is moved according to the wall surface direction and the blank area, specifically comprising: if the ceiling device has an overlapping legend, moving the overlapping component to a safe distance according to the priority rule; if the wall-mounted device has an overlapping legend, judging whether the blank width on the left and right sides of the overlapping legend is greater than or equal to the width of the overlapping legend, and collecting the distance of the overlapping legend from the midpoint of the wall surface; if it is greater than or equal to the width of the overlapping legend, modifying the legend offset parameter according to the blank width, and offsetting to the midpoint of the wall surface; and for the overlapping legend of a large device, adjusting the vertical offset parameter according to the installation height, and expanding the plan legend spacing to a safe distance along the wall surface direction, the large device including a power distribution box and a weak current box.
[0011] In an implementation of the present application, the point parameter of the component is subjected to collision detection to determine whether there is a collision component, specifically comprising: using three-dimensional Boolean operation to obtain the intersection between components; and performing layered detection on the components arranged in the vertical direction to avoid missing the collision between upper and lower layers.
[0012] In an implementation of the present application, the method further comprises: detecting the intersection collision relationship between the ceiling device and the wall-mounted device, and decomposing it into a two-by-two collision sub-set; sequentially solving the sub-set according to the priority rule, and detecting the remaining sub-set after adjustment; and if a new collision component is generated after adjustment, returning to the previous state and marking the conflict area.
[0013] In an implementation of the present application, before reading the point parameter of the component based on the three-dimensional model, the component including the ceiling device and the wall-mounted device, the method further comprises: generating the avoidance path probability distribution map of the indoor device through historical installation data training; introducing a safety threshold in the collision detection stage and the plan legend overlap detection, calculating the minimum avoidance distance and the avoidance order according to the actual utilization rate of the room; and using a multi-objective optimization algorithm to simultaneously process the avoidance distance and the avoidance order, and the pipeline length, to generate the priority rule and the safety distance.
[0014] In an implementation form of the present application, the avoidance path probability distribution map of the indoor device is generated by training historical installation data, specifically comprising: constructing a historical feature matrix, extracting a room type topology feature and a device feature, the room type topology feature including a room length-width ratio, a beam column distribution density, the device feature including a device volume weight, an installation height, and a maintenance frequency; and capturing the spatio-temporal correlation of the device feature through a gated recurrent unit, and outputting an avoidance feasibility probability value of each point parameter.
[0015] In a second aspect, the embodiments of the present application also provide a point avoidance device for indoor devices, comprising at least one processor; and a memory in communication connection with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: read a point parameter of a component based on a three-dimensional model, the component including a ceiling-mounted device and a wall-mounted device; perform collision detection on the point parameter of the component to determine whether there is a collision component; if there is a collision component, move the collision component according to a priority rule, the priority rule including a moving sequence and a moving direction; perform planar legend overlap detection on the moved collision component to determine whether there is an overlapping legend with an intersection of bounding boxes of planar legends; if there is an overlapping legend, move the overlapping legend according to a wall surface direction and a blank area; and after moving the overlapping legend, position and label the ceiling-mounted device and the wall-mounted device.
[0016] In a third aspect, the embodiments of the present application also provide a non-volatile computer storage medium for point avoidance of indoor devices, storing computer executable instructions, the computer executable instructions being configured to: read a point parameter of a component based on a three-dimensional model, the component including a ceiling-mounted device and a wall-mounted device; perform collision detection on the point parameter of the component to determine whether there is a collision component; if there is a collision component, move the collision component according to a priority rule, the priority rule including a moving sequence and a moving direction; perform planar legend overlap detection on the moved collision component to determine whether there is an overlapping legend with an intersection of bounding boxes of planar legends; if there is an overlapping legend, move the overlapping legend according to a wall surface direction and a blank area; and after moving the overlapping legend, position and label the ceiling-mounted device and the wall-mounted device.
[0017] The point avoidance method, device and medium for indoor equipment provided by the embodiment of the application have the following advantages: the design efficiency is significantly improved, the entire arrangement process is handed over to the computer, and the time for design drawing is greatly reduced; the design threshold is low, the main design work is handed over to the computer, and the artificial only needs to determine the integrity of the input condition, and the requirements for the related skills and experience of the designer are low; the design result has high standardization degree, the adjustment rules are uniform, and the standardization degree is high; the adjustment accuracy is high, all point collision parts are automatically detected, one-time adjustment is performed, and the error and omission problems of artificial checking are reduced. The spatio-temporal correlation of historical installation data is analyzed by using a gate recurrent unit, a visual avoidance path probability distribution map is generated, the equipment displacement planning has predictability, the three-dimensional constraints of avoidance distance, pipeline layout and maintenance space are simultaneously processed by using a multi-objective optimization algorithm, the equipment adjustment efficiency is improved under the premise of ensuring the safety distance, the hierarchical detection mechanism and the double-cycle verification strategy are combined, the vertical component collision risk is accurately identified, and the construction rework rate is reduced compared with the traditional two-dimensional detection method. BRIEF DESCRIPTION OF DRAWINGS
[0018] The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and serve to explain the principles of the application, and do not limit the application. In the drawings:
[0019] Figure 1 The flowchart of the point avoidance method for indoor equipment provided by the embodiment of the application is shown in FIG. 1;
[0020] Figure 2 The collision component example diagram of the point avoidance method for indoor equipment provided by the embodiment of the application is shown in FIG. 2;
[0021] Figure 3 The ceiling equipment movement example diagram of the point avoidance method for indoor equipment provided by the embodiment of the application is shown in FIG. 3;
[0022] Figure 4 The wall surface segmentation example diagram of the point avoidance method for indoor equipment provided by the embodiment of the application is shown in FIG. 4;
[0023] Figure 5 The empty wall surface example diagram of the point avoidance method for indoor equipment provided by the embodiment of the application is shown in FIG. 5;
[0024] Figure 6 The wall surface midpoint example diagram of the point avoidance method for indoor equipment provided by the embodiment of the application is shown in FIG. 6;
[0025] Figure 7 The labeling example diagram of the point avoidance method for indoor equipment provided by the embodiment of the application is shown in FIG. 7;
[0026] Figure 8 An internal structure diagram of a point avoidance device for an indoor device is provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] To make the objectives, technical solutions, and advantages of the present application clearer, the following will be a clear and complete description of the technical solutions of the present application in combination with the embodiments of the present application and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.
[0028] An indoor device point avoidance method, device, and medium are provided in an embodiment of the present application, solving the problem that in the prior art, indoor point conflict detection and adjustment mainly rely on manual operation.
[0029] The technical solutions proposed by the embodiments of the present application will be described in detail in the following in combination with the drawings.
[0030] Figure 1 A flowchart of an indoor device point avoidance method is provided in an embodiment of the present application. As shown in the figure, the indoor device point avoidance method provided in an embodiment of the present application specifically includes the following steps: Figure 1
[0031] Step 10: reading point parameters of components based on a three-dimensional model, the components including ceiling-mounted devices and wall-mounted devices;
[0032] In this step, space and component related information in the Revit model is read according to expression methods, naming, etc. The space includes a house type; the components include lamps, switches, sockets, etc. The information extracted from each space and component core is shown in the following table:
[0033] Table 1 Component Example
[0034]
[0035] Step 20: performing collision detection on the point parameters of the components to determine whether there are colliding components;
[0036] As an optional embodiment, the point parameters of the components are subjected to collision detection to determine whether there are colliding components, which specifically can include: step 201: using three-dimensional Boolean operation to find the intersection between components;
[0037] In this step, it is mainly checked whether the point entities obtained in step 10 are positionally conflicted. The usual detection method can directly calculate the intersection of two Solids according to Boolean operation, and if the result is not empty, it is determined as collision. After detecting the colliding components, the components are moved according to the following rules:
[0038] Step 202: Perform layered inspection on components arranged in the vertical direction to avoid missing the collision between the upper and lower layers.
[0039] Step 30: If there is a collision component, move the collision component according to the priority rule, which includes the movement order and movement direction, such as Figure 2 As shown;
[0040] As an optional embodiment, moving the collision component according to the priority rule may specifically include: Step 301: for the ceiling device, determining a movement vector according to the direction of the long side of a rectangle inscribed in the room, and moving the collision component to a collision safety distance along the movement vector;
[0041] In this step, if Figure 3 As shown, determine whether there are collisions between points. The priority for point movement is: if a lamp collides with a smoke detector, move the smoke detector and adjust the distance between them to 500mm; if a lamp collides with an exhaust fan, move the exhaust fan and adjust the distance between them to 500mm; if the exhaust fan collides with a smoke detector, move the smoke detector and adjust the distance between them to 500mm. The new coordinate direction is defined by the long and short sides of the largest inscribed rectangle of the bedroom, with the long side as the Y axis and the short side as the X axis. Determine the Y-axis distance of the lamp from the boundary. The greater the distance, the positive direction. This means that if the lamp is not in the center of the room, avoid moving the smoke detector away from the room. The smoke detector's X-axis coordinate is the same as the lamp's X-axis coordinate, and the smoke detector's Y-axis coordinate is the lamp's Y-axis coordinate plus 500mm.
[0042] Step 302: for the wall-mounted device, obtain the empty wall width of the wall where the collision component is located; Step 303: calculate the moving distance of the collision component based on the empty wall width.
[0043] As an optional embodiment, for wall-mounted equipment, obtaining the available empty wall surface of the wall where the collision component is located can specifically include: step 3021: extracting the point parameters of the wall-mounted equipment on the wall where the collision component is located; step 3022: dividing the wall into multiple sub-segments according to the point parameters; step 3023: screening out sub-segments with a spacing greater than the minimum spacing as empty wall surfaces, and the minimum spacing is the width of the current collision component.
[0044] In this step, if Figure 4As shown, the wall where the collision point is located is obtained, the wall surface on this side where the point is located is obtained, and then the position points of all the wall-adjacent point positions on the wall surface are obtained. The wall surface is divided by using the set of position points to obtain a set of empty wall surface line segments. The wall surface that meets the spacing condition can be used to receive the colliding point, for example, the width of the switch is 86 mm. If the spacing between two points is greater than 200 mm, in addition to the width of 86 mm occupied by the two points, the remaining width can also accommodate a complete switch.
[0045] As an optional embodiment, it is judged whether the point positions of the socket, switch, control panel and emergency help button collide. If there is a collision, the first step is to obtain the wall surface where the collision point is located. According to the empty wall surface rule, all the empty wall surfaces of this wall are obtained. The second step is to judge whether the empty wall surface segments on both sides of the collision point are greater than or equal to (200 mm - [collision point spacing]). If yes, the next step is performed. If no, go to the fifth step. The third step is to select the empty wall surface that meets the width requirement (if there are empty wall surfaces that meet the condition on both sides of the collision point, take the empty wall surface with a longer width). The empty wall surface that meets the condition is recorded as w. The fourth step is to move the collision point close to one side of the empty wall surface w. The moving distance is (100 mm - [collision point spacing]). The fifth step is to judge whether the wall where the collision point is located has an empty wall surface with a width greater than or equal to 200 mm (an empty wall surface with a width less than 200 mm cannot be arranged under the collision point). If yes, the next step is continued. If no, search for other walls in the room. Preferably, the wall closer to the collision point is searched first. The fifth step is repeated. The sixth step is to select the empty wall surface closest to the collision point (if the distances are equal, take the empty wall surface with a longer width). The empty wall surface that meets the condition is recorded as w. The seventh step is to move the collision point close to one side of the empty wall surface w. First, the collision point is moved to the end point of the empty wall surface w close to the collision point. Then, the collision point is moved 100 mm in the direction of the empty wall surface w. That is, the moving distance is (100 + [collision point distance from the empty wall surface segment]).
[0046] As an optional embodiment, it is judged whether the video intercom conflicts with other wall points, it is checked whether the height offset value of the video intercom is 1300, if not, the height offset value is modified to 1300, if yes, the first step is continued, the wall surface where the conflict point is located is obtained, according to the empty wall surface rule, all empty wall surfaces of the wall are obtained, the second step is to judge whether the empty wall surface segments on both sides of the conflict point are greater than or equal to (400mm-[the distance between conflict points]), if yes, the next step is continued, if not, it is jumped to the fifth step, the third step is to select the empty wall surface that meets the width requirement (if there are empty wall surfaces that meet the conditions on both sides of the conflict point, the longer empty wall surface is taken), the empty wall surface that meets the condition is recorded as w, the fourth step is to move the conflict point near one side of the empty wall surface w, and the moving distance is (200mm-[the distance between conflict points]), the fifth step is to judge whether the wall where the conflict point is located has an empty wall surface with a width greater than or equal to 400mm (a video intercom point cannot be arranged in an empty wall surface less than 400mm), if yes, the next step is continued, if not, other walls in the room are searched, and the walls closer to the conflict point are preferentially searched, and the fifth step is cycled, the sixth step is to select the empty wall surface closest to the conflict point (if the distances are equal, the longer empty wall surface is taken), the empty wall surface that meets the condition is recorded as w, and the seventh step is to move the conflict point near one side of the empty wall surface w, first to the end point of the empty wall surface w close to the conflict point, and then to the empty wall surface w direction by 200mm, that is, the moving distance is (200+[the distance between the conflict point and the empty wall surface segment]).
[0047] As an optional embodiment, as shown in Figure 5 , there is no empty wall surface that meets the requirements on the wall surface where the conflict point is located, the adjacent wall is searched, the right adjacent wall is closer to the conflict point, the empty wall surface on this wall is searched first, and the right conflict point is first moved to the start point of the empty wall surface, and then moved to the empty wall surface direction by 100mm.
[0048] As an optional embodiment, it is judged whether the equipotential terminal box, indoor distribution box and indoor weak current box collide, if they collide, the processing steps are the same as the video intercom; because of the video intercom, the sizes of the equipotential terminal box, indoor distribution box and indoor weak current box are large, the empty wall surface width judgment, moving distance and switch, socket rules in the rule are different, and there is no difference in other aspects.
[0049] Step 40: Plan view figure overlapping detection is performed on the moved collision component, it is judged whether there is an overlapping figure with the intersection of the bounding boxes of the plan view figures;
[0050] Step 50: If there is an overlapping figure, the overlapping figure is moved according to the wall surface direction and the blank area;
[0051] As an optional embodiment, if there is an overlapping figure, the overlapping figure is moved according to the wall surface direction and the blank area, which can specifically include the following steps: step 501: if the ceiling-mounted equipment has an overlapping figure, the overlapping component is moved to a safe distance according to the priority rule;
[0052] In this step, the legend overlap detection mainly judges whether the bounding box of the point legend has intersection. If so, the following steps are needed to adjust: the lamp and smoke sensing legend overlap, move the smoke sensing, and adjust the distance between the smoke sensing and the lamp to 500 mm; the lamp and exhaust fan legend overlap, move the exhaust fan, and adjust the distance between the exhaust fan and the lamp to 500 mm; the exhaust fan and smoke sensing legend overlap, move the smoke sensing, and adjust the distance between the smoke sensing and the exhaust fan to 500 mm.
[0053] Step 502: If the wall-mounted device has overlapping legends, judge whether the blank width on the left and right sides of the overlapping legend is greater than or equal to the width of the overlapping legend, and collect the distance from the overlapping legend to the midpoint of the wall; Step 503: If it is greater than or equal to the width of the overlapping legend, modify the legend offset parameter according to the blank width, and offset to the midpoint of the wall;
[0054] In this step, as shown in Figure 6 , the first step is to judge whether the blank width on the left and right sides of the overlapping legend is greater than or equal to [the width of the overlapping legend], the second step is to move the point closest to the midpoint of the wall if both satisfy or both do not satisfy, and the third step is to modify the parameter "legend offset left" of the point to be equal to the width of the overlapping legend.
[0055] Step 504: For the overlapping legend of large equipment, adjust the vertical offset parameter according to the installation height, and expand the planar legend spacing to a safe distance along the wall direction. Large equipment includes distribution box and weak current box.
[0056] Step 60: After moving the overlapping legend, position and mark the ceiling-mounted equipment and wall-mounted equipment.
[0057] In this step, as shown in Figure 7 , the wall surface of the building link model is obtained, and then the positions of the indoor box, switch, socket, intercom, emergency rescue button, equipotential terminal box and control panel on each wall surface are obtained. Judge the distance between the point and the two endpoints of the wall, and mark it in the direction of short distance. If there is no other wall point at the endpoint of the wall, mark the distance from the point to the wall endpoint. If there is other point in the middle, mark the two wall points, for example, if the distance is less than 100 mm, no need to mark. Mark the position on the side of the wall where the point is located, for example, mark the distance from the wall 400 mm. If the marking overlaps, move the marking to the other side of the wall.
[0058] No need to mark: the distance between the points is less than 100 mm (the points are close to each other); the distance between the point and the endpoint of the wall is less than 50 mm (the point is close to the wall); the short side is greater than 2000 mm (such as study, bedroom and living room, etc.);
[0059] Lamp marking: First, get the lamp position point, and the lamp family name keyword "lamp". Second, find the closest wall in the perpendicular X and Y directions, and mark the distance between the lamp and the two walls. Third, mark the position to form a closed rectangle with the two walls, and mark the position relative to the rectangle with an outward expansion of 400 mm. Fourth, if the markings overlap, move the markings.
[0060] Smoke detector / fan marking: Get the smoke detector / fan position point, and the smoke detector family name keyword "smoke" and the fan family name keyword "fan". Find the closest lamp, and mark the distance between the smoke detector / fan and the lamp in the X and Y directions (no need to mark if the distance is less than 100 mm).
[0061] Mark the position to form a closed rectangle with the two walls, and mark the position relative to the rectangle with an inward expansion of 400 mm. If the lamp marking is moved inside the rectangle due to avoidance, then the smoke detector / fan marking is moved outside the rectangle with an outward expansion of 400 mm. For rooms with a short side less than 2000 mm (such as bathrooms, balconies, etc.), first, get the lamp position point, and the lamp family name keyword "lamp". Get the smoke detector / fan position point, and the smoke detector family name keyword "smoke" and the fan family name keyword "fan". Second, find the closest wall in the perpendicular X and Y directions, and mark the distance between the ceiling point and the two walls; if there are no other ceiling points at the wall surface, mark the distance between the point and the wall surface, and if there are other ceiling points in between, mark the two ceiling points (no need to mark if the distance is less than 100 mm). Third, mark the position to form a closed rectangle with the two walls, and mark the position relative to the rectangle with an outward expansion of 400 mm. Fourth, if the markings overlap, move the markings.
[0062] As an optional embodiment, the method can further include: detecting the intersection collision relationship between the ceiling-mounted devices and the wall-mounted devices, and decomposing it into a two-by-two collision sub-set; according to the priority rules, solving the sub-sets in turn, and detecting the remaining sub-sets after adjustment; if new collision components are generated after adjustment, reverting to the previous state and marking the conflict area.
[0063] In this step, the intersection collision relationship between the ceiling-mounted devices and the wall-mounted devices is decomposed into a two-by-two collision sub-set, such as the collision between the ceiling-mounted air conditioner and the wall-mounted fire sprinkler. According to the pre-set rules of large volume priority and high maintenance frequency priority, the sub-sets are solved in turn: adjust the position of the low-priority device: move the wall-mounted camera to avoid the ceiling-mounted air duct, and after each adjustment, re-detect the remaining collision sub-sets. If adjustment leads to new collisions, such as the camera blocking the lighting lamp after moving, the system will automatically revert to the state before adjustment, mark the area as a high conflict risk area, and suggest manual intervention or adjustment of the design scheme.
[0064] As an optional embodiment, before reading the point position parameters of the components based on the three-dimensional model, and before the components include ceiling devices and wall-mounted devices, the method can further include: generating an avoidance path probability distribution map of the indoor device through historical installation data training; introducing a safety threshold in the collision detection stage and the planar diagram overlap detection, calculating the minimum avoidance distance and the avoidance order according to the actual use rate of the room; and synchronously processing the avoidance distance and the avoidance order, and the pipeline length by using a multi-objective optimization algorithm, to generate a priority rule and a safety distance.
[0065] In this step, a safety threshold is introduced: the minimum distance between the edge of the device and the pipeline / structural component, and the minimum avoidance distance and the avoidance order are dynamically calculated in combination with the actual use rate of the room. The minimum avoidance distance = basic safety distance × (1 + use rate correction coefficient). The three optimization objectives are: maximum avoidance distance: reducing collision risk; reasonable avoidance order: installing main devices first and then installing branch pipe devices; and minimum pipeline length: reducing material cost and construction difficulty.
[0066] The three objective functions are solved simultaneously by using multi-objective optimization algorithms such as NSGA-II and particle swarm optimization (PSO), to generate a Pareto optimal solution set, from which a scheme that takes into account safety and economy is selected. According to the optimization results, a priority rule for device installation is developed, such as ceiling devices taking priority over wall-mounted devices to avoid pipelines, and large-diameter pipelines taking priority over small-diameter pipelines; and safety distance parameters for each device are output, such as being greater than or equal to 200 mm from the beam bottom and greater than or equal to 150 mm from the wall socket, as the basis for adjusting the point positions of the three-dimensional model.
[0067] As an optional embodiment, the avoidance path probability distribution map of the indoor device is generated through historical installation data training, specifically including: constructing a historical feature matrix, extracting house type topological features and device features, the house type topological features including room length-width ratio, beam column distribution density, and the device features including device volume weight, installation height, and maintenance frequency; and the spatio-temporal correlation of the device features is captured by using a gated recurrent unit to output an avoidance feasibility probability value of each point position parameter.
[0068] In this step, the gated recurrent unit is used to encode the features into a multi-dimensional time sequence vector to capture the spatio-temporal correlation of the device features. The update gate and the reset gate of the GRU retain local features and transmit global features, and the avoidance feasibility probability value of each point position parameter is output through a fully connected layer and a Sigmoid function, with a value in [0, 1], directly reflecting the installation suitability of the point position. The discrete point position probability values are subjected to Kriging interpolation to generate a continuous avoidance path probability distribution map, and the avoidance priority is displayed by using a color gradient to provide an intuitive reference for device installation planning.
[0069] The above is a method embodiment of the present application. Based on the same inventive concept, the embodiments of the present application also provide a point position avoidance device for indoor equipment, which has a structure as shown in Figure 8
[0070] Figure 8 A point position avoidance device for indoor equipment provided by the embodiments of the present application has an internal structure as shown in Figure 8
[0071] at least one processor 801;
[0072] and a memory 802 in communication connection with the at least one processor;
[0073] The memory 802 stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor 801 to enable the at least one processor 801 to: read point position parameters of components based on a three-dimensional model, the components including ceiling equipment and wall equipment; perform collision detection on the point position parameters of the components to determine whether there are colliding components; if there are colliding components, move the colliding components according to priority rules, the priority rules including a moving sequence and a moving direction; perform planar legend overlap detection on the moved colliding components to determine whether there are overlapping legends with intersecting bounding boxes of planar legends; if there are overlapping legends, move the overlapping legends according to wall surface directions and blank areas; and after moving the overlapping legends, position and mark the ceiling equipment and the wall equipment.
[0074] Some embodiments of the present application provide a non-volatile computer storage medium for point position avoidance of indoor equipment corresponding to Figure 1 The computer storage medium stores computer executable instructions, and the computer executable instructions are set to: read point position parameters of components based on a three-dimensional model, the components including ceiling equipment and wall equipment; perform collision detection on the point position parameters of the components to determine whether there are colliding components; if there are colliding components, move the colliding components according to priority rules, the priority rules including a moving sequence and a moving direction; perform planar legend overlap detection on the moved colliding components to determine whether there are overlapping legends with intersecting bounding boxes of planar legends; if there are overlapping legends, move the overlapping legends according to wall surface directions and blank areas; and after moving the overlapping legends, position and mark the ceiling equipment and the wall equipment.
[0075] Each of the embodiments in the present application is described in a progressive manner, and the same or similar parts of each of the embodiments can be referred to each other. Each of the embodiments focuses on the differences from other embodiments. In particular, the IoT device and medium embodiments are basically similar to the method embodiments, and thus are described simply. The relevant parts can be referred to the part of the description of the method embodiments.
[0076] The system and medium provided by the embodiments of the present application are one-to-one corresponding, and therefore, the system and medium also have similar beneficial technical effects to the method corresponding thereto. Since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the system and medium will not be described here again.
[0077] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. In addition, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage, etc.) containing computer-usable program code.
[0078] The present application is described with reference to flowcharts and / or block diagrams of the method, device (system), and computer program product according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing apparatus to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing apparatus generate a means for implementing the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 an apparatus that carries out the functions specified in one or more flows and / or blocks.
[0079] These computer program instructions can also be stored in a computer-readable memory that can direct the computer or other programmable data processing apparatus to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including instruction apparatus, which implements the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 an apparatus that carries out the functions specified in one or more flows and / or blocks.
[0080] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus, so that a series of operation steps are performed on the computer or other programmable data processing apparatus to produce a computer-implemented process, so that the instructions executed on the computer or other programmable data processing apparatus provide a means for implementing the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 an apparatus that carries out the functions specified in one or more flows and / or blocks.
[0081] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memories.
[0082] Memory can include non-persistent memory, such as volatile random access memory (RAM) and / or non-volatile memory, such as read only memory (ROM), electrically erasable read only memory (EEPROM), flash memory, or the like. Memory is an example of computer readable media.
[0083] Computer readable media includes permanent and non-permanent, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital versatile discs (DVDs) or other optical storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to a computing device. According to the definition herein, computer readable media does not include transitory media, such as modulated data signals and carrier waves.
[0084] It should also be noted that the terms "comprising", "containing", or any other similar term are intended to encompass non-exclusive inclusions such that a process, method, article, or apparatus that comprises a list of elements does not include those elements solely, but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus.
[0085] The above description is merely illustrative of the embodiments of this application and is not intended to limit the scope of the application. Various modifications and changes can be made by persons of ordinary skill in the art, which fall in the spirit and scope of the application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the application shall fall within the scope of claims of the application.
Claims
1. A point avoidance method for indoor equipment, characterized in that: The method comprises: Reading point parameters of components based on the three-dimensional model, wherein the components include ceiling-mounted devices and wall-mounted devices; Performing collision detection on the point parameters of the components to determine whether there are collision components; If the collision component exists, move the collision component according to a priority rule, wherein the priority rule includes a moving order and a moving direction; Performing plane legend overlap detection on the moved collision component to determine whether there are overlapping legends whose bounding boxes of the plane legends intersect; If the overlapping legend exists, move the overlapping legend according to the wall direction and the blank area; After the overlapping legends are moved, the ceiling-mounted devices and the wall-mounted devices are positioned and marked.
2. A point avoidance method for indoor equipment according to claim 1, characterized in that: Moving the collision component according to a priority rule specifically includes: For the ceiling device, a movement vector is determined according to the long side direction of the inscribed rectangle in the room, and the collision component is moved along the movement vector to a collision safety distance; For the wall-mounted device, obtaining the empty wall width of the wall where the collision component is located; The moving distance of the collision component is calculated according to the width of the empty wall surface.
3. A point avoidance method for indoor equipment according to claim 2, characterized in that: For the wall-mounted device, obtaining an empty wall surface of the wall where the collision component is located specifically includes: Extracting the point parameters of the wall-mounted device on the wall where the collision component is located; Dividing the wall into a plurality of sub-segments according to the point parameters; Sub-line segments with a spacing greater than a minimum spacing are selected as empty wall surfaces, where the minimum spacing is the width of the current collision component.
4. A point avoidance method for indoor equipment according to claim 1, characterized in that: If the overlapping legend exists, the overlapping legend is moved according to the wall direction and the blank area, specifically including: If there are overlapping legends of the ceiling devices, moving the overlapping components to a safe distance according to the priority rule; If there is an overlapping legend on the wall-mounted device, determine whether the blank widths on the left and right sides of the overlapping legend are greater than or equal to the width of the overlapping legend, and collect the distance between the overlapping legend and the midpoint of the wall; If it is greater than or equal to the width of the overlapping legend, modify the legend offset parameter according to the blank width and offset it toward the midpoint of the wall; For overlapping legends of large equipment, the vertical offset parameters are adjusted according to the installation height, and the plane legend spacing is expanded to a safe distance along the wall direction. The large equipment includes distribution boxes and low-voltage boxes.
5. A point avoidance method for indoor equipment according to claim 1, characterized in that: Performing collision detection on the point parameters of the components to determine whether there are collision components, specifically including: using a three-dimensional Boolean operation to perform intersections between the components; Conduct layered inspection on components arranged vertically to avoid missing collisions between upper and lower layers.
6. A point avoidance method for indoor equipment according to claim 1, characterized in that: The method further comprises: Detecting the cross-collision relationship between the ceiling-mounted device and the wall-mounted device, and decomposing it into a subset of pairwise collisions; Solving the subsets in order according to the priority rules and detecting the remaining subsets after adjustment; If new collision components are generated after adjustment, roll back to the previous state and mark the conflicting area.
7. A point avoidance method for indoor equipment according to claim 1, characterized in that: Before reading the point parameters of the component based on the three-dimensional model, where the component includes a ceiling-mounted device and a wall-mounted device, the method further includes: Generate an avoidance path probability distribution map for indoor equipment through training with historical installation data; Safety thresholds are introduced during the collision detection phase and floor plan overlap detection, and the minimum avoidance distance and avoidance order are calculated based on the actual room occupancy rate. A multi-objective optimization algorithm is used to simultaneously process the avoidance distance and avoidance sequence, as well as the pipeline length, to generate priority rules and safety distances.
8. A point avoidance method for indoor equipment according to claim 7, characterized in that: Through training with historical installation data, a probability distribution map of avoidance paths for indoor equipment is generated, specifically including: Construct a historical feature matrix to extract apartment topology features and equipment features. The apartment topology features include room aspect ratio and beam-column distribution density, and the equipment features include equipment volume weight, installation height, and maintenance frequency. The spatiotemporal correlation of the device features is captured through a gated recurrent unit, and the avoidance feasibility probability value of each point parameter is output.
9. A point avoidance device for indoor equipment, characterized in that: The device comprises: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: Reading point parameters of components based on the three-dimensional model, wherein the components include ceiling-mounted devices and wall-mounted devices; Performing collision detection on the point parameters of the components to determine whether there are collision components; If the collision component exists, move the collision component according to a priority rule, wherein the priority rule includes a moving order and a moving direction; Performing plane legend overlap detection on the moved collision component to determine whether there are overlapping legends whose bounding boxes of the plane legends intersect; If the overlapping legend exists, move the overlapping legend according to the wall direction and the blank area; After the overlapping legends are moved, the ceiling-mounted devices and the wall-mounted devices are positioned and marked.
10. A non-volatile computer storage medium for point avoidance of indoor equipment, storing computer executable instructions, characterized in that: The computer executable instructions are configured to: Reading point parameters of components based on the three-dimensional model, wherein the components include ceiling-mounted devices and wall-mounted devices; Performing collision detection on the point parameters of the components to determine whether there are collision components; If the collision component exists, move the collision component according to a priority rule, wherein the priority rule includes a moving order and a moving direction; Performing plane legend overlap detection on the moved collision component to determine whether there are overlapping legends whose bounding boxes of the plane legends intersect; If the overlapping legend exists, move the overlapping legend according to the wall direction and the blank area; After the overlapping legends are moved, the ceiling-mounted devices and the wall-mounted devices are positioned and marked.