Method and device for designing equipment component, intelligent equipment and storage medium

By constructing bounding boxes and adjusting component model parameters, collision problems are automatically detected and resolved, which solves the technical challenges of heavy workload and design issues in equipment design, and achieves an efficient equipment design process.

CN118568800APending Publication Date: 2024-08-30SHENZHEN HAOBAO TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410713648.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-08-30

Smart Images

  • Figure CN118568800A
    Figure CN118568800A
Patent Text Reader

Abstract

The invention relates to the technical field of equipment design, in particular to a method and device for designing equipment parts, intelligent equipment and a storage medium. The method comprises the following steps: acquiring an infrastructure model, wherein the infrastructure model comprises a plurality of component models, a dependency relationship among the plurality of component models and a model parameter of each component model; updating information is obtained, model parameters of the at least one component model are modified based on the updating information, and a boundary box is constructed based on each model parameter; and carrying out collision detection based on the boundary box, when collision is detected, obtaining the priority of the collision part model corresponding to the collision boundary box, and adjusting the model parameters of the collision part model based on the priority until all collisions are solved. The method can save time and workload and improve efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of equipment design, and in particular to a method, a device, an intelligent device and a storage medium for designing equipment components. Background Art

[0002] Equipment design is usually modified based on the basic equipment model according to the customer's personalized needs. However, as a large and complex structure, even local modifications often require global adjustments. This situation increases the workload of design engineers and is also prone to design problems. For example, modifications may cause collisions or interferences between different components, affecting the normal operation of the equipment. Summary of the invention

[0003] The technical problem to be solved by the embodiments of the present invention is to provide a method, apparatus, intelligent device and storage medium for designing equipment components to solve the problems in the prior art of large workload and design problems that cause the equipment to fail to work properly.

[0004] The present invention discloses a method for designing equipment components, comprising: obtaining a basic equipment model, wherein the basic equipment model comprises a plurality of component models, dependency relationships between the plurality of component models and model parameters of each of the component models;

[0005] Acquire update information, modify model parameters of at least one of the component models based on the update information, and construct a bounding box based on each of the model parameters;

[0006] Collision detection is performed based on the bounding box. When a collision is detected, the priority of the collision component model corresponding to the bounding box where the collision occurs is obtained, and model parameters of the collision component model are adjusted based on the priority until all collisions are resolved.

[0007] Optionally, the bounding box comprises at least one of an axis-aligned bounding box and an oriented bounding box.

[0008] Optionally, the step of constructing a bounding box based on each of the model parameters or the update parameters comprises:

[0009] Vertex information of all vertices of the component model is obtained, a maximum coordinate value and a minimum coordinate value on each coordinate axis are obtained according to the vertex information, and the axis-aligned bounding box is constructed according to the maximum coordinate value and the minimum coordinate value.

[0010] Optionally, the step of constructing a bounding box based on each of the model parameters or the update parameters comprises:

[0011] Acquire vertex information of all vertices of the component model, and perform principal component analysis based on the vertex information to acquire a principal axis;

[0012] All vertices are projected onto the main axis, a maximum main axis value and a minimum main axis value are obtained, and the oriented bounding box is constructed according to the maximum main axis value and the minimum main axis value.

[0013] Optionally, the step of modifying a model parameter of at least one of the component models based on the update information comprises:

[0014] Acquire a target component model and target parameters corresponding to the target component model according to the update information;

[0015] Acquire a neighboring model of the target component model according to the dependency relationship, and acquire a neighboring parameter of the neighboring model according to the dependency relationship and the target parameter;

[0016] Based on the optimization algorithm, an optimal parameter set of the target parameter and the neighboring parameter that meets the preset constraint conditions is obtained as a new model parameter.

[0017] Optionally, after the step of adjusting the model parameters or update parameters of the collision component model based on the priority, the method further comprises:

[0018] At least one model layout solution is obtained, and an optimal configuration in the at least one model layout solution is obtained using a genetic algorithm.

[0019] Optionally, the step of obtaining the optimal configuration of at least one model component solution using a genetic algorithm comprises:

[0020] Acquire at least one model layout scheme, and select a parent layout scheme from the at least one model layout scheme through fitness evaluation;

[0021] Obtaining a new layout scheme by performing crossover operations and mutation operations on the parent layout scheme;

[0022] The above steps are repeated using the new layout scheme as the new parent layout scheme until the target layout scheme is obtained.

[0023] The present invention also discloses a device for designing equipment components, comprising:

[0024] The original module is used to obtain a basic equipment model, wherein the basic equipment model includes a plurality of component models, and obtain dependencies between the plurality of component models and model parameters of each of the component models;

[0025] An updating module, configured to obtain update information, modify a model parameter of at least one of the component models based on the update information and the dependency relationship to obtain an update parameter, and construct a bounding box based on each of the model parameters or the update parameter;

[0026] A collision module is used to perform collision detection based on the boundary box. When a collision is detected, the priority of the collision component model corresponding to the boundary box where the collision occurs is obtained, and the model parameters or update parameters of the collision component model are adjusted based on the priority until all collisions are resolved.

[0027] The present invention also discloses an intelligent device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above method.

[0028] The present invention also discloses a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the steps of the method described above.

[0029] Compared with the prior art, the method for designing equipment components provided by the embodiment of the present invention has the following beneficial effects:

[0030] Model parameters of at least one component model are modified according to the update information, and bounding boxes are constructed based on each of the model parameters. Collision detection is performed based on the bounding boxes. By utilizing collision detection technology, collision problems can be automatically detected and resolved without manual intervention, thus saving time and workload and improving efficiency. Parameters can be adjusted in a targeted manner according to the priority of the collision component model to ensure that the overall performance of the device is maintained as much as possible while resolving the collision. By comprehensively considering the dependencies and collision situations between multiple component models, the stability and consistency of the overall model can be maintained when adjusting parameters to avoid new problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The scheme of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments, in which:

[0032] Figure 1 It is a flow chart of an embodiment of the method for designing equipment components provided by the present invention;

[0033] Figure 2 It is a structural schematic diagram of an embodiment of the device for designing equipment components provided by the present invention;

[0034] Figure 3 An internal structure diagram of a smart device in one embodiment is shown.

[0035] The reference numerals in the figures are:

[0036] 10. Device for designing equipment components; 11. Original module; 12. Update module; 13. Collision module 13. DETAILED DESCRIPTION

[0037] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. Now, in conjunction with the accompanying drawings, a preferred embodiment of the present invention is described in detail.

[0038] See also Figure 1 , Figure 1 It is a flow chart of an embodiment of the method for designing equipment components provided by the present invention. When designing equipment, engineers usually determine the basic equipment model of the equipment. For example, they can select a model in the template library as the basic equipment model according to the purpose of the equipment, budget and other parameters, and then make detailed adjustments to each component in the basic equipment model according to the customer's demand plan, for example, replace different components, exchange the positions of two components, reduce / enlarge the size of a component, add new components, etc.

[0039] The method for designing equipment components provided by the present invention comprises the following steps:

[0040] S101: Acquire a basic equipment model, which includes multiple component models, and acquire dependencies between the multiple component models and model parameters of each component model.

[0041] In a specific implementation scenario, the basic equipment model is first obtained. The basic equipment model includes the component models of the basic parts required by a device. The component model includes the model parameters of the component, such as three-dimensional size parameters, position parameters, posture parameters, etc. The basic equipment model also includes the dependencies between multiple component models. For example, if component B needs to be assembled on component A, there is an assembly order dependency between component model A and component model B. If component B and component C have a linkage relationship, there is a motion dependency between component model B and component model C. If the size and / or shape of component C depends on the space between component D and component E, there is a geometric dependency between component model C and component model D and component model E.

[0042] S102: Acquire update information, modify model parameters of at least one component model based on the update information to acquire update parameters, and construct a bounding box based on each model parameter or update parameter.

[0043] In a specific implementation scenario, update information is obtained, and the update information is information generated according to the customer's demand plan to modify at least one component model in the basic equipment model, including the modified component model, and the parameters of the component model that need to be modified, such as at least one of the size parameters, position parameters, and posture parameters. Or if the component needs to be replaced with another component, the parameters of the replaced component are used as the update information. Or if another component needs to be added near the component, the parameters of the newly added component are used as the update information. Furthermore, when there is a newly added component, the update information also includes the dependency relationship between the newly added component and the original component.

[0044] In other implementation scenarios, the model parameters of at least one component model are modified based on the update information and the dependency relationship to obtain the update parameters. The component model to be updated included in the update information is set as the target component model, and the parameters of the target component model are first modified accordingly to obtain the target parameters, and then the neighboring models that have a dependency relationship with the component model are adjusted in sequence according to the dependency relationship, and the neighboring parameters of the neighboring models are obtained according to the dependency relationship and the target parameters. For example, component model A needs to be replaced with component model B, and the size of component model B is offset by x cm compared with the size of component model A. Then, component models C, component model D, and component model E that have a dependency relationship with component model A are adjusted accordingly to obtain neighboring parameters, such as adjusting the position, posture, etc. of component model C, component model D, and component model E, so that the dependency relationship between component model B and component model C, component model D, and component model E can continue to hold. For example, component A and component C have a linkage relationship, so when the size is offset by x cm, the size of the corresponding component model C will also be offset by x cm.

[0045] Furthermore, since the position, posture and other parameters of component model C, component model D and component model E have changed, other component models are adjusted accordingly according to the dependency relationship between component model C, component model D and component model E and other models, until all related component models are adjusted. The parameters of all adjusted component models are used as new model parameters.

[0046] For the same update information, there may be different model parameters. Based on the optimization algorithm, the optimal parameter set of target parameters and neighboring parameters that meet the preset constraints is obtained as the new model parameters.

[0047] For the component model after adjusting the parameters, a bounding box is constructed based on its new model parameters. For the component model without adjusting the parameters, a bounding box is constructed based on its original model parameters. According to the three-dimensional model parameters, the position and size of the bounding box of the corresponding component model are calculated. According to the calculated position and size parameters, a bounding box is constructed. The bounding box is usually a minimum cube or rectangular box that can enclose the entire component model. The position is usually represented by the coordinates of the center point of the box, and the size is represented by the length, width, and height of the box. The bounding box can be a cube with its center point located at the center of the model and a side length equal to the diagonal length of the maximum size of the model; or it can be a rectangular box that encloses all points of the model.

[0048] Specifically, bounding box types include axis-aligned bounding box (AABB) and oriented bounding box (OBB). AABB is a cubic or rectangular box parallel to the coordinate axis, and its boundaries are aligned with the coordinate axis, so it works well when representing simple geometric shapes. AABB is simple and easy to calculate, and collision detection is efficient. It is suitable for most cases, especially for models in the shape of a cuboid or cube. OBB is a box that can be rotated arbitrarily and is not restricted by the coordinate axis, so it can better adapt to the actual shape of the model. OBB can surround the model more accurately, especially when the rotation of the model needs to be considered. It can better describe the real shape of the model. For simple models and fast collision detection, AABB may be a more appropriate choice; while for situations where model rotation and more accurate collision detection need to be considered, OBB may be more suitable. You can choose the appropriate bounding box type according to the specific situation to achieve the best effect. Therefore, the multiple bounding boxes corresponding to a basic device model can include axis-aligned bounding boxes, oriented bounding boxes, or both.

[0049] Furthermore, when the bounding box to be constructed is an axis-aligned bounding box, the vertex information of all vertices of the component model is obtained, and the vertex information is three-dimensional coordinate information. For each coordinate axis (x-axis, y-axis, z-axis), all vertices are traversed, and the maximum and minimum values ​​on each coordinate axis are updated, and finally the maximum coordinate value and the minimum coordinate value on each coordinate axis are obtained. The axis-aligned bounding box is constructed using the maximum coordinate value and the minimum coordinate value on each coordinate axis. The bounding box constructed in this way will surround the vertices of all component models, and each face is parallel to the coordinate axis.

[0050] When the bounding box to be constructed is an oriented bounding box, the vertex information of all vertices of the component model is obtained, and the principal axis is obtained by performing principal component analysis based on the vertex information. Specifically, the center of mass of the component model is obtained by averaging the coordinate information of all vertices. The center of mass is the arithmetic mean of the coordinates of all vertices. The center of mass can help determine the position of the component model in space, so as to better locate and place the component. If the parameters of the oriented bounding box need to be modified later, if the oriented bounding box needs to be rotated, the center of mass can also be used as a reference point when rotating the component model to help determine the rotation axis and angle, thereby achieving precise rotation operations.

[0051] Suppose there are n vertices in the three-dimensional space of the component model {(x 1 ,y 1 ,z 1 ), (x 2 ,y 2 ,z 2 )},…,(x n ,y n ,z n ), the centroid C can be calculated according to the following formula:

[0052]

[0053] For each vertex, calculate the difference vector between it and the centroid. Based on the difference vector, obtain the covariance matrix, which reflects the distribution of vertices relative to the centroid. Assume there are n vertices and the difference vector is D 1 , D 2 ,…,D i , where D i =(x i -c x ,y i -c y ,z i -c z ). The elements of the covariance matrix are calculated as follows:

[0054] variance:

[0055]

[0056] Covariance:

[0057]

[0058]

[0059] The covariance matrix Σ is a symmetric matrix whose elements are:

[0060]

[0061] By calculating the difference vector between each vertex and the centroid and using these difference vectors to calculate the covariance matrix, we can better understand the distribution and shape characteristics of the vertices. By performing principal component analysis on the covariance matrix, we can find the principal axis of the object. Principal component analysis (PCA) is a common data analysis technique used to find the main directions in the data, namely the principal components or principal axes.

[0062] Specifically, the covariance matrix is ​​subjected to eigenvalue decomposition. Eigenvalue decomposition produces eigenvalues ​​and corresponding eigenvectors. The formula for eigenvalue decomposition is: ∑v i =λ i v i ,λ i is the eigenvalue, v i is the corresponding eigenvector. Eigenvalue λ i Indicates that the data corresponds to the eigenvector v i The degree of change in direction. The larger the eigenvalue, the greater the change in the data in that direction. The eigenvectors with the largest eigenvalues ​​are selected as the principal axis. These eigenvectors define the main direction of the data, that is, the principal axis direction.

[0063] For each vertex of the component module, project its coordinates into the direction of the found principal axis. The projection value is the coordinate of the vertex in the direction of the principal axis. For each principal axis, find the maximum and minimum of the projection values ​​of all vertices in the direction of that principal axis. These values ​​will become the boundaries of the oriented bounding box. Using the maximum and minimum principal axis values ​​found, construct an oriented bounding box. This bounding box is a rectangle or cuboid that is oriented along the principal axis and tightly encloses the overall shape of the data.

[0064] S103: performing collision detection based on the bounding box, and when a collision is detected, obtaining the priority of the collision component model corresponding to the bounding box where the collision occurs, and adjusting the model parameters of the collision component model based on the priority until all collisions are resolved.

[0065] In a specific implementation scenario, collision detection is performed on axis-aligned bounding boxes. When two bounding boxes intersect, it means that the corresponding objects have collided. For axis-aligned bounding boxes (AABB boxes), their intersection conditions in the three coordinate axis directions can be determined by comparing their respective maximum and minimum values ​​to determine whether they intersect. Specifically, if in any coordinate axis direction, the maximum value of one box is less than the minimum value of another box, or the minimum value of one box is greater than the maximum value of another box, then the two boxes do not intersect.

[0066] In another implementation scenario, collision detection is performed on oriented bounding boxes. The separating axis theorem is used to determine whether two OBBs intersect. The theorem states that if there is an axis such that the projections of two OBBs on the axis do not overlap, then the two OBBs must not intersect. For each OBB, there are 15 possible separating axes: the normal vectors of 9 edges and 6 axes obtained by the cross product of the edge vectors of the two OBBs. The two OBBs are projected onto each separating axis, and then their projections on the axis are checked to see if they overlap. If there is any axis that makes the projections non-overlapping, the two OBBs do not intersect. If all separating axes do not result in non-overlapping projections, it can be determined that the two OBBs intersect.

[0067] In another implementation scenario, when one is an axis-aligned bounding box (AABB) and the other is an oriented bounding box (OBB), the OBB can be converted to a bounding box so that its bounding box is an AABB. This AABB can be the smallest AABB that encloses the OBB, or a slightly larger AABB to ensure that the OBB is completely enclosed. Once the OBB is converted to an AABB, the intersection detection method of AABB and AABB can be used to determine whether the two bounding boxes intersect. That is, compare their maximum and minimum values ​​in each coordinate axis direction to see if they overlap.

[0068] In other implementation scenarios, some parts may be movable parts. In this case, bounding boxes are constructed for these movable parts in various positions and collision detection is performed, so that the shape changes of the object during movement can be taken into account. For each movable part, it is necessary to define the changes in different position states, and for each position state of each part, a corresponding bounding box is constructed. Different position states can be AABB, OBB or other more complex bounding bodies, depending on the shape and movement of the part. For the bounding box in each position state, collision detection is performed.

[0069] In this implementation scenario, when a collision is detected, the priority of the collision component model corresponding to the bounding box where the collision occurred is obtained, and the priority can be set according to the importance or criticality of the component. For example, if a component has an important impact on the behavior of the entire system, it can be set to a high priority, and when a collision occurs, the component model of the component is maintained unchanged. The priority can be set according to the motion state of the component. For example, a component that can move may be more likely to cause a collision, and it can be set to a high priority. When multiple collisions occur, the collision caused by the component is handled first. The priority is set according to the dependency relationship between components. For example, if a component has an important impact on multiple other components, it can be set to a high priority, and when a collision occurs, the component model of the component is maintained unchanged.

[0070] In one implementation scenario, the model parameters of the collision component model are adjusted, and at least one of the position parameters, rotation parameters, shape parameters, and posture parameters of the component is adjusted. Each time the model parameters are adjusted, a new collision detection may be required until the new collision detection is completed and no new collision is detected.

[0071] In a complex basic equipment model, there may be complex collision relationships between multiple component models. Different solutions to collision situations may lead to different layout solutions. In addition, when adjusting parameters, different parameter adjustments may lead to different layout solutions. Therefore, after adjusting the steps above, there may be multiple different layout solutions for the same component model, and the genetic algorithm is used to obtain the optimal configuration in at least one model layout solution.

[0072] Genetic algorithm is an optimization algorithm that simulates natural selection and genetic mechanisms and is often used to solve optimization problems. In this algorithm, the concept of biological evolution is borrowed, and the optimal solution is gradually found by simulating the inheritance, mutation and selection process of "genes". For each model layout scheme, fitness evaluation is required, that is, the pros and cons of each layout are evaluated according to specific evaluation criteria or objective functions. The model layout scheme with higher fitness is selected as the parent layout scheme for subsequent reproduction.

[0073] In optimization problems, an objective function is usually defined to quantitatively evaluate the quality of a model layout solution. This objective function can be a single one or a combination of multiple objectives. For example, in model layout optimization, the objective function may include the model's performance indicators (such as accuracy, speed, etc.) and design constraints (such as area, power consumption, etc.). If multiple objective functions are involved, it is necessary to consider how to comprehensively evaluate these objectives. Common methods include weighted summation, multi-objective optimization algorithms, etc. In addition to the objective function, possible constraints need to be considered. These constraints can be hard constraints (must be met) or soft constraints (try to meet them). During the evaluation, it is necessary to ensure that the model layout solution meets these constraints.

[0074] A new layout scheme is obtained by performing crossover and mutation operations on the parent layout scheme. Crossover is an operation used in genetic algorithms to generate new individuals. A new layout scheme is generated by combining the features of two parent layout schemes. In the crossover operation, two parent layout schemes are first selected, and then some parts are randomly selected from their features and exchanged to create a new layout scheme. Common crossover operations include single-point crossover, multi-point crossover, uniform crossover, etc. Single-point crossover is to exchange the features of the parent individual at a randomly selected position, multi-point crossover is to exchange at multiple positions, and uniform crossover is to randomly select each feature to exchange according to a certain probability. The crossover operation helps to retain the favorable features of the parent individuals and introduce diversity in the new individuals, helping the algorithm to better explore the search space.

[0075] Mutation is an operation used in genetic algorithms to maintain population diversity. New individuals are generated by randomly changing certain features of individuals. In the mutation operation, certain features of one or more individuals are selected and randomly changed. Mutation is usually achieved by introducing small random perturbations to prevent the algorithm from falling into a local optimal solution. Mutation operations can be single-point mutation, multi-point mutation, uniform mutation, etc. Single-point mutation is to change the feature at a randomly selected position, multi-point mutation is to change at multiple positions, and uniform mutation is to randomly select each feature to mutate according to a certain probability. Mutation operations help maintain the diversity of the population and prevent the algorithm from falling into a local optimal solution. It also helps to introduce new feature combinations to better explore the search space.

[0076] The new layout scheme is used as the new parent layout scheme and the above steps are repeated until the target layout scheme is obtained. Through crossover and mutation operations, the genetic algorithm can generate new individuals in continuous iterations and gradually optimize the model layout scheme to find a better solution. The features mentioned above can be any parameter of the component model, including position parameters, posture parameters, size parameters, etc.

[0077] From the above description, it can be seen that in this embodiment, the model parameters of at least one component model are modified according to the update information, a bounding box is constructed based on each model parameter, and collision detection is performed based on the bounding box. By using collision detection technology, the system can automatically detect and solve collision problems without human intervention, which can save time and workload and improve efficiency. According to the priority of the collision component model, the parameters can be adjusted in a targeted manner to ensure that the overall performance of the equipment is maintained as much as possible while resolving the collision. By comprehensively considering the dependencies and collision situations between multiple component models, the stability and consistency of the overall model can be maintained when adjusting the parameters to avoid new problems.

[0078] See also Figure 2 , Figure 2The schematic diagram of the structure of an embodiment of the device for designing equipment components provided by the present invention is as follows: The device 10 for designing equipment components comprises: an original module 11 , an update module 12 and a collision module 13 .

[0079] The original module 11 is used to obtain a basic device model, which includes multiple component models, and obtain the dependency relationship between the multiple component models and the model parameters of each component model; the update module 12 is used to obtain update information, modify the model parameters of at least one component model based on the update information and the dependency relationship to obtain update parameters, and construct a bounding box based on each model parameter or update parameter; the collision module 13 is used to perform collision detection based on the bounding box. When a collision is detected, the priority of the collision component model corresponding to the bounding box where the collision occurs is obtained, and the model parameters or update parameters of the collision component model are adjusted based on the priority until all collisions are resolved.

[0080] The bounding box includes at least one of an axis-aligned bounding box and an oriented bounding box.

[0081] The updating module 12 is further used to obtain vertex information of all vertices of the component model, obtain the maximum coordinate value and the minimum coordinate value on each coordinate axis according to the vertex information, and construct an axis-aligned bounding box according to the maximum coordinate value and the minimum coordinate value.

[0082] The updating module 12 is also used to obtain vertex information of all vertices of the component model, perform principal component analysis based on the vertex information to obtain the principal axis; project all vertices onto the principal axis, obtain the maximum principal axis value and the minimum principal axis value, and construct a directional bounding box based on the maximum principal axis value and the minimum principal axis value.

[0083] The updating module 12 is also used to obtain the target component model and the target parameters corresponding to the target component model according to the updated information; obtain the neighboring model of the target component model according to the dependency relationship, and obtain the neighboring parameters of the neighboring model according to the dependency relationship and the target parameters; and obtain the optimal parameter set of the target parameters and neighboring parameters that meet the preset constraints as new model parameters based on the optimization algorithm.

[0084] The collision module 13 is also used to obtain at least one model layout solution, and use a genetic algorithm to obtain an optimal configuration in at least one model layout solution.

[0085] The collision module 13 is also used to obtain at least one model layout scheme, select a parent layout scheme from at least one model layout scheme through fitness evaluation; obtain a new layout scheme by performing crossover operations and mutation operations on the parent layout scheme; and repeat the above steps with the new layout scheme as a new parent layout scheme until the target layout scheme is obtained.

[0086] From the above description, it can be seen that in this embodiment, the model parameters of at least one component model are modified according to the update information, a bounding box is constructed based on each model parameter, and collision detection is performed based on the bounding box. By using collision detection technology, the system can automatically detect and solve collision problems without manual intervention, which can save time and workload and improve efficiency. According to the priority of the collision component model, the parameters can be adjusted in a targeted manner to ensure that the overall performance of the equipment is maintained as much as possible while resolving the collision. By comprehensively considering the dependencies and collision situations between multiple component models, the stability and consistency of the overall model can be maintained when adjusting the parameters to avoid new problems. The genetic algorithm obtains the optimal configuration in the model layout scheme, which can bring beneficial effects such as global optimization, adaptability, diversity, efficiency, parallelism and flexibility.

[0087] See also Figure 3 , Figure 3 FIG. 1 shows an internal structure diagram of an intelligent device in an embodiment. The intelligent device may be a terminal or a server. Figure 3 As shown, the smart device includes a processor, a memory and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the smart device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor can implement the temperature control method described above. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor can implement the age recognition method. Those skilled in the art will understand that Figure 3 The structure shown in the figure is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the smart device to which the solution of the present application is applied. A specific smart device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0088] In one embodiment, a smart device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes Figure 1 Steps shown.

[0089] In one embodiment, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the processor executes Figure 1 Steps shown.

[0090] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0091] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0092] It should be understood that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. For those skilled in the art, the technical solutions described in the above embodiments can be modified, or some of the technical features therein can be replaced by equivalents; and all these modifications and replacements should fall within the scope of protection of the claims attached to the present invention.

Claims

1. A method for designing a device component, characterized in that: include: Acquire a basic equipment model, wherein the basic equipment model includes a plurality of component models, dependency relationships between the plurality of component models, and model parameters of each of the component models; Acquire update information, modify model parameters of at least one of the component models based on the update information, and construct a bounding box based on each of the model parameters; Collision detection is performed based on the bounding box. When a collision is detected, the priority of the collision component model corresponding to the bounding box where the collision occurs is obtained, and model parameters of the collision component model are adjusted based on the priority until all collisions are resolved.

2. The method for designing equipment components according to claim 1, characterized in that: The bounding box includes at least one of an axis-aligned bounding box and an oriented bounding box.

3. The method for designing equipment components according to claim 2, characterized in that: The step of constructing a bounding box based on each of the model parameters or the update parameters comprises: Vertex information of all vertices of the component model is obtained, a maximum coordinate value and a minimum coordinate value on each coordinate axis are obtained according to the vertex information, and the axis-aligned bounding box is constructed according to the maximum coordinate value and the minimum coordinate value.

4. The method for designing equipment components according to claim 2, characterized in that: The step of constructing a bounding box based on each of the model parameters or the update parameters comprises: Acquire vertex information of all vertices of the component model, and perform principal component analysis based on the vertex information to acquire a principal axis; All vertices are projected onto the main axis, a maximum main axis value and a minimum main axis value are obtained, and the oriented bounding box is constructed according to the maximum main axis value and the minimum main axis value.

5. The method for designing a device component according to claim 1, characterized in that: The step of modifying a model parameter of at least one of the component models based on the update information comprises: Acquire a target component model and target parameters corresponding to the target component model according to the update information; Acquire a neighboring model of the target component model according to the dependency relationship, and acquire a neighboring parameter of the neighboring model according to the dependency relationship and the target parameter; Based on the optimization algorithm, an optimal parameter set of the target parameter and the neighboring parameter that meets the preset constraint conditions is obtained as a new model parameter.

6. The method for designing a device component according to claim 1, characterized in that: After the step of adjusting the model parameters or update parameters of the collision component model based on the priority, the method further comprises: At least one model layout solution is obtained, and an optimal configuration in the at least one model layout solution is obtained using a genetic algorithm.

7. The method for designing a device component according to claim 6, characterized in that: The step of using a genetic algorithm to obtain the optimal configuration in the at least one model component solution comprises: Acquire at least one model layout scheme, and select a parent layout scheme from the at least one model layout scheme through fitness evaluation; Obtaining a new layout scheme by performing crossover operations and mutation operations on the parent layout scheme; The above steps are repeated using the new layout scheme as the new parent layout scheme until the target layout scheme is obtained.

8. A device for designing equipment components, characterized in that: include: The original module is used to obtain a basic equipment model, wherein the basic equipment model includes a plurality of component models, and obtain dependencies between the plurality of component models and model parameters of each of the component models; An updating module, configured to obtain update information, modify a model parameter of at least one of the component models based on the update information and the dependency relationship to obtain an update parameter, and construct a bounding box based on each of the model parameters or the update parameter; A collision module is used to perform collision detection based on the boundary box. When a collision is detected, the priority of the collision component model corresponding to the boundary box where the collision occurs is obtained, and the model parameters or update parameters of the collision component model are adjusted based on the priority until all collisions are resolved.

9. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 7.

10. A smart device, characterized in that: The method comprises a plurality of power supplies to be matched, a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method as claimed in any one of claims 1 to 7.

Citation Information

Cited By

  • Production method of large-scale group intelligent sports in movie and television animation production

    CN119762633A

  • Modularized logistics system data analysis method and system

    CN120634406A