A connection relationship configuration method, device, electronic device and storage medium
By generating entity groups and automatically connecting ports, the problem of time-consuming configuring multiple entity connection relationships is solved, and configuration efficiency is improved.
Patent Information
- Application Number
- CN202510157497.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-12
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2045-02-12
AI Technical Summary
In the prior art, manually configuring the connection relationship between multiple entities takes time and is inefficient, especially when there are a large number of devices in the scenario.
By displaying the simulation interface of the target scene, a entity group is generated and its correspondence is recorded, and the entity port is automatically connected to the connection command to reduce the number of manual operations.
It improves the efficiency of connecting relationship configuration between multiple entities, reduces the number of manual operations and time, and simplifies the configuration process.
Smart Images

Figure CN119623128B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of modeling and simulation technology, and in particular to a connection relationship configuration method, device, electronic device and storage medium. Background Art
[0002] Currently, robot scheduling or logistics planning for a certain scene is usually carried out in the following way: three-dimensional modeling and simulation of the equipment in the scene (such as machines, shelves, production lines, operating tables, etc.) and the scene are performed in the simulation interface to obtain the three-dimensional model of each device and the three-dimensional scene. The three-dimensional model of the equipment is referred to as the entity below; and the operation route of the robot or the circulation route of the goods is simulated by configuring the connection relationship between the entities in the three-dimensional scene.
[0003] Usually, it is necessary to manually connect an entity as a starting point and an entity as an end point to realize the configuration of the connection relationship between the entities in the three-dimensional scene. Since the number of devices contained in the scene is large, and therefore the number of entities in the three-dimensional scene is large, the above configuration method of the connection relationship between the entities will result in a large number of manual connections and a long time consumption, thereby reducing the efficiency of the configuration of the connection relationship between the entities. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a connection relationship configuration method, device, electronic device and storage medium to improve the efficiency of configuring the connection relationship between entities. The specific technical solution is as follows:
[0005] The present application provides a connection relationship configuration method, the method comprising:
[0006] Displaying a first simulation interface of a target scene, wherein the first simulation interface displays a plurality of entities, each of the entities being used to represent a device in the target scene;
[0007] In response to an entity group generation instruction inputted into the first simulation interface, a plurality of entities selected by the entity group generation instruction are determined, an entity group is generated, and a corresponding relationship between the generated entity group and the determined entities is recorded;
[0008] Displaying a second simulation interface, wherein the second simulation interface displays the multiple entities and each entity group that has been generated;
[0009] In response to a first connection instruction input to the second simulation interface, determining a first entity group, a first port, a second entity group, and a second port indicated by the first connection instruction, determining a first entity that has a corresponding relationship with the first entity group, and determining a second entity that has a corresponding relationship with the second entity group;
[0010] For each of the first entities, the first port of the first entity is connected to the second port of each of the second entities respectively.
[0011] In a possible embodiment, the method further includes:
[0012] In response to a second connection instruction input to the second simulation interface, determining a third entity group, a third port, a target entity, and a fourth port indicated by the second connection instruction, and determining a third entity that has a corresponding relationship with the third entity group;
[0013] The fourth port of the target entity is connected to the third port of each of the third entities respectively.
[0014] In a possible embodiment, the second simulation interface further displays a first connection relationship between the entity group and the entity, the first connection relationship is represented in the form of a connection line, and the port of the entity group is represented by a ring mark;
[0015] For any two fourth entities and fourth entity groups having a first connection relationship, the connection line for indicating the first connection relationship between the fourth entity group and the fourth entity is connected to the first point of the ring mark of the fourth entity group and is connected to the port of the fourth entity;
[0016] The orientation of the first point relative to the center of the annular mark of the fourth entity group is the same as the orientation of the fourth entity relative to the fourth entity group.
[0017] In a possible embodiment, the method further includes:
[0018] In response to a parameter modification instruction inputted into the second simulation interface, determining a fifth entity group, a target parameter, and a target parameter value indicated by the parameter modification instruction, and determining a fifth entity having a corresponding relationship with the fifth entity group;
[0019] The parameter value of the target parameter of each of the fifth entities is modified to the target parameter value.
[0020] In a possible embodiment, displaying the second simulation interface includes:
[0021] For each generated entity group, in response to a first display instruction input for the generated entity group, counting horizontal positions of entities corresponding to the generated entity group to obtain a target horizontal position of the generated entity group;
[0022] For each entity group that has been generated, the entity group that has been generated is displayed at the target horizontal position and the preset vertical height of the second simulation interface.
[0023] In a possible embodiment, the method further includes:
[0024] In response to an adjustment instruction input for the second simulation interface, a target entity group and a target vertical height indicated by the adjustment instruction are determined, and the position of the target entity group is adjusted to the target horizontal position and target vertical height of the second simulation interface.
[0025] In a possible embodiment, the second simulation interface further displays a second connection relationship between each generated entity group; and the method further includes:
[0026] In response to a second display instruction input for the second simulation interface, determine a sixth entity group indicated by the second display instruction, and display the sixth entity group, a sixth entity corresponding to the sixth entity group, a seventh entity group, and a seventh entity corresponding to the seventh entity group in a first style, and display other entity groups and other entities in a second style;
[0027] The seventh entity group is an entity group having a second connection relationship with the sixth entity group, and the first style is different from the second style.
[0028] In a possible embodiment, the second connection relationship is represented by a connection line, and the port of the entity group is represented by a ring mark;
[0029] For any two entity groups having a second connection relationship, the connection line for indicating the second connection relationship between the two entity groups is connected to the second point of the annular mark of the eighth entity group and to the third point of the annular mark of the ninth entity group, wherein the eighth entity group is one of the two entity groups and the ninth entity group is the other of the two entity groups;
[0030] Among them, the orientation of the second point relative to the center of the annular mark of the eighth entity group is the same as the orientation of the ninth entity group relative to the eighth entity group, and the orientation of the third point relative to the center of the annular mark of the ninth entity group is the same as the orientation of the eighth entity group relative to the ninth entity group.
[0031] In a possible embodiment, the method further includes:
[0032] In response to a third display instruction input for the second simulation interface, the tenth entity group indicated by the third display instruction is determined, and the eighth entity that has a corresponding relationship with the tenth entity group is displayed in a third style, and entities other than the eighth entity are displayed in a fourth style; wherein the third style is different from the fourth style.
[0033] In a possible embodiment, the second simulation interface displays a third connection relationship between the entities, and the method further includes:
[0034] In response to a delete instruction input to the second simulation interface, a third connection relationship between two entities indicated by the delete instruction is determined as a target connection relationship, and the target connection relationship is deleted.
[0035] The embodiment of the present application also provides a connection relationship configuration device, the device comprising:
[0036] A first simulation interface display module, used to display a first simulation interface of a target scene, wherein the first simulation interface displays a plurality of entities, each of which is used to represent a device in the target scene;
[0037] An entity group generation module, for responding to an entity group generation instruction inputted into the first simulation interface, determining a plurality of entities selected by the entity group generation instruction, generating an entity group, and correspondingly recording a correspondence between the generated entity group and the determined entities;
[0038] A second simulation interface display module, used to display a second simulation interface, wherein the second simulation interface displays the multiple entities and each entity group that has been generated;
[0039] an entity determination module, configured to determine, in response to a first connection instruction input for the second simulation interface, a first entity group, a first port, a second entity group, and a second port indicated by the first connection instruction, determine a first entity that has a corresponding relationship with the first entity group, and determine a second entity that has a corresponding relationship with the second entity group;
[0040] The port connection module is used to connect the first port of each of the first entities with the second port of each of the second entities respectively.
[0041] In a possible embodiment, the device further includes:
[0042] A first determining module, configured to determine, in response to a second connection instruction inputted to the second simulation interface, a third entity group, a third port, a target entity, and a fourth port indicated by the second connection instruction, and determine a third entity having a corresponding relationship with the third entity group;
[0043] A connection module is used to connect the fourth port of the target entity to the third port of each of the third entities respectively.
[0044] In a possible embodiment, the second simulation interface further displays a first connection relationship between the entity group and the entity, the first connection relationship is represented in the form of a connection line, and the port of the entity group is represented by a ring mark;
[0045] For any two fourth entities and fourth entity groups having a first connection relationship, the connection line for indicating the first connection relationship between the fourth entity group and the fourth entity is connected to the first point of the ring mark of the fourth entity group and is connected to the port of the fourth entity;
[0046] The orientation of the first point relative to the center of the annular mark of the fourth entity group is the same as the orientation of the fourth entity relative to the fourth entity group.
[0047] In a possible embodiment, the device further includes:
[0048] a second determination module, configured to determine, in response to a parameter modification instruction inputted into the second simulation interface, a fifth entity group, a target parameter, and a target parameter value indicated by the parameter modification instruction, and determine a fifth entity corresponding to the fifth entity group;
[0049] A parameter value modification module is used to modify the parameter value of the target parameter of each of the fifth entities to the target parameter value.
[0050] In a possible embodiment, displaying the second simulation interface includes:
[0051] For each generated entity group, in response to a first display instruction input for the generated entity group, counting horizontal positions of entities corresponding to the generated entity group to obtain a target horizontal position of the generated entity group;
[0052] For each entity group that has been generated, the entity group that has been generated is displayed at the target horizontal position and the preset vertical height of the second simulation interface.
[0053] In a possible embodiment, the device further includes:
[0054] The position adjustment module is used to respond to the adjustment instruction input for the second simulation interface, determine the target entity group and the target vertical height indicated by the adjustment instruction, and adjust the position of the target entity group to the target horizontal position and target vertical height of the second simulation interface.
[0055] In a possible embodiment, the second simulation interface further displays a second connection relationship between each generated entity group; and the device further includes:
[0056] A first display module, configured to, in response to a second display instruction input for the second simulation interface, determine a sixth entity group indicated by the second display instruction, and display the sixth entity group, a sixth entity corresponding to the sixth entity group, a seventh entity group, and a seventh entity corresponding to the seventh entity group in a first style, and display other entity groups and other entities in a second style;
[0057] The seventh entity group is an entity group having a second connection relationship with the sixth entity group, and the first style is different from the second style.
[0058] In a possible embodiment, the second connection relationship is represented by a connection line, and the port of the entity group is represented by a ring mark;
[0059] For any two entity groups having a second connection relationship, the connection line for indicating the second connection relationship between the two entity groups is connected to the second point of the annular mark of the eighth entity group and to the third point of the annular mark of the ninth entity group, wherein the eighth entity group is one of the two entity groups and the ninth entity group is the other of the two entity groups;
[0060] Among them, the orientation of the second point relative to the center of the annular mark of the eighth entity group is the same as the orientation of the ninth entity group relative to the eighth entity group, and the orientation of the third point relative to the center of the annular mark of the ninth entity group is the same as the orientation of the eighth entity group relative to the ninth entity group.
[0061] In a possible embodiment, the device further includes:
[0062] A second display module is used to respond to a third display instruction input for the second simulation interface, determine the tenth entity group indicated by the third display instruction, and display the eighth entity that has a corresponding relationship with the tenth entity group in a third style, and display entities other than the eighth entity in a fourth style; wherein the third style is different from the fourth style.
[0063] In a possible embodiment, the second simulation interface displays a third connection relationship between the entities, and the device further includes:
[0064] The deletion module is used to respond to the deletion instruction input to the second simulation interface, determine the third connection relationship between the two entities indicated by the deletion instruction as the target connection relationship, and delete the target connection relationship.
[0065] The present application also provides an electronic device, including:
[0066] Memory, used to store computer programs;
[0067] The processor is used to implement any of the above-mentioned connection relationship configuration methods when executing the program stored in the memory.
[0068] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the above-mentioned connection relationship configuration methods is implemented.
[0069] An embodiment of the present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any of the above-mentioned connection relationship configuration methods.
[0070] Beneficial effects of the embodiments of the present application:
[0071] A connection relationship configuration method, device, electronic device and storage medium provided by the embodiment of the present application can display a first simulation interface of a target scene, wherein the first simulation interface displays multiple entities, each entity is used to represent a device in the target scene; in response to an entity group generation instruction input for the first simulation interface, multiple entities selected by the entity group generation instruction are determined, and entity groups are generated, and the corresponding relationship between the generated entity group and the determined entity is recorded; a second simulation interface is displayed, wherein the second simulation interface displays multiple entities and each entity group that has been generated. The generation and display of multiple entity groups can be achieved in the above manner, and the corresponding relationship between each entity group and the entity can be recorded. In response to a first connection instruction input for the second simulation interface, the first entity group, the first port, the second entity group, and the second port indicated by the first connection instruction are determined, the first entity that has a corresponding relationship with the first entity group is determined, and the second entity that has a corresponding relationship with the second entity group is determined; for each first entity, the first port of the first entity is connected to the second port of each second entity. Since the corresponding relationship between each entity group and the entity is recorded, the two entity groups and the ports of the entity groups that need to be connected can be determined by inputting the first connection instruction, and the connection relationship between the two entity groups can be configured, so that the entities that need to be connected in batches and the ports of the entities can be determined, and the connection relationship between the entities that have a corresponding relationship with the two entity groups can be configured. In addition, it can be understood that if the number of entity groups in the second simulation interface is less than the number of entities, the number of operations required to configure the connection relationship between each entity group is less than the number of operations required to configure the connection relationship between each entity. Therefore, compared with the method of manually configuring the connection relationship between each entity in turn, the embodiment of the present application can reduce the number of operations required to configure the connection relationship between each entity, reduce the time required to configure the connection relationship between each entity, and improve the efficiency of configuring the connection relationship between each entity.
[0072] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.
[0074] Figure 1a A schematic diagram of an application scenario provided for an embodiment of the present application;
[0075] Figure 1bA schematic diagram of a connection relationship configuration provided in an embodiment of the present application;
[0076] Figure 1c Another connection relationship configuration diagram provided in an embodiment of the present application;
[0077] Figure 2 A schematic diagram of a flow chart of a connection relationship configuration method provided in an embodiment of the present application;
[0078] Figure 3a A schematic diagram of an entity group generation control provided in an embodiment of the present application;
[0079] Figure 3b Another schematic diagram of an entity group generation control provided in an embodiment of the present application;
[0080] Figure 4 Another flowchart of the connection relationship configuration method provided in the embodiment of the present application;
[0081] Figure 5a A schematic diagram of a first connection relationship provided in an embodiment of the present application;
[0082] Figure 5b Another schematic diagram of the first connection relationship provided in the embodiment of the present application;
[0083] Figure 5c Another schematic diagram of the first connection relationship provided in the embodiment of the present application;
[0084] Figure 5d A schematic diagram of a second connection relationship provided in an embodiment of the present application;
[0085] Figure 6a A top view of the second simulation interface provided in the embodiment of the present application;
[0086] Figure 6b A schematic diagram of a first style adjustment interface provided in an embodiment of the present application;
[0087] Figure 6c Another top view of the second simulation interface provided in the embodiment of the present application;
[0088] Figure 6d Another top view of the second simulation interface provided in the embodiment of the present application;
[0089] Figure 7a A schematic diagram of a flow chart of a method for displaying a second simulation interface provided in an embodiment of the present application;
[0090] Figure 7b A schematic diagram of a second simulation interface provided in an embodiment of the present application;
[0091] Figure 7c Another top view of the second simulation interface provided in the embodiment of the present application;
[0092] Figure 8a A schematic diagram of an adjustment interface provided in an embodiment of the present application;
[0093] Figure 8b A schematic diagram of a second style adjustment interface provided in an embodiment of the present application;
[0094] Figure 9a A schematic diagram of another flow chart of the connection relationship configuration method provided in the embodiment of the present application;
[0095] Figure 9b A schematic diagram of a parameter modification interface provided in an embodiment of the present application;
[0096] Fig.10a A schematic diagram of another flow chart of the connection relationship configuration method provided in the embodiment of the present application;
[0097] Fig.10b Another schematic diagram of the second simulation interface provided in the embodiment of the present application;
[0098] Fig.11 A schematic diagram of a structure of a connection relationship configuration device provided in an embodiment of the present application;
[0099] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0100] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field based on the present application belong to the scope of protection of the present application.
[0101] In order to more clearly illustrate a connection relationship configuration method, device, electronic device and storage medium provided by the present application, some terms appearing in this document are explained below:
[0102] Entity: A 3D model used to simulate the machines, shelves, production lines, operating tables and other equipment in the target scene. Entities are added to the 3D scene by the user after the target scene is modeled to obtain the 3D scene.
[0103] Port: A port is a component of an entity and is an endpoint used to connect entities.
[0104] In order to more clearly illustrate the connection relationship configuration method provided by the present application, the possible application scenarios of the connection relationship configuration method provided by the present application will be exemplified below. It can be understood that the following examples are only possible application scenarios of the connection relationship configuration method provided by the present application. In other possible embodiments, the connection relationship configuration method provided by the present application can be applied to other possible application scenarios, and the following examples do not impose any limitations on this.
[0105] like Figure 1a In the scenario shown, the factory includes 5 shelves and 3 machines. The 5 shelves are recorded as: Shelf 1, Shelf 2, Shelf 3, Shelf 4, Shelf 5, and the 3 machines are recorded as: Machine 1, Machine 2, Machine 3. The materials in the 5 shelves need to flow to the 3 machines, that is, the materials in Shelf 1 need to flow to Machine 1, Machine 2 and Machine 3 respectively, and the materials in Shelf 2 need to flow to Machine 1, Machine 2 and Machine 3 respectively, and so on. The flow relationship of the materials from one device to another is the logistics. Correspondingly, one device in the flow relationship is the logistics starting point, and the other device in the flow relationship is the logistics end point. For example, in the logistics of the materials from shelf 1 flowing to machine 1, the logistics starting point is shelf 1 and the logistics end point is machine 1, then the logistics can be recorded as shelf 1→machine 1. In order to facilitate logistics planning (hereinafter referred to as logistics simulation) or robot scheduling planning for the above scenario, it is necessary to configure the connection relationship between the above 5 shelves and 3 machines in the simulation interface of the software system.
[0106] Currently, the connection relationship between the above five shelves and three machines is usually configured in the following two ways:
[0107] Method 1: See Figure 1b As shown, in the three-dimensional scene created for the factory scene, 8 entities are displayed, of which 5 entities are used to represent the above-mentioned shelves 1 to shelves 5, and 3 entities are used to represent the above-mentioned machines 1 to machines 3. The connection relationship between the entities is configured by manually connecting all the logistics starting points and end points. Specifically, for logistics shelf 1→machine 1, the port of the entity representing shelf 1 and the port of the entity representing machine 1 are manually connected. And the mode of each logistics flow is manually configured. The mode of logistics flow refers to: manual handling, robot handling, etc.
[0108] However, in the first method, the starting point and the end point of each logistics need to be manually connected, so that the number of operations required to configure the connection relationship between the entities is large, the configuration time is long, and the efficiency of configuring the connection relationship between the entities is low. Figure 1a In the example shown, the number of operations required to configure the connection relationship between the entities in mode 1 is 15.
[0109] Method 2: See Figure 1c As shown, in the simulation interface, all the starting points of logistics are created as a group, and all the end points of logistics are created as a group, that is, shelf 1-shelf 5 are created as a group, and this group is recorded as a shelf group, and machine 1-machine 3 are created as a group, and this group is recorded as a machine group. Figure 1c The two-dimensional configuration interface of the logistics relationship shown in the figure configures the connection relationship between the shelf group and the machine group, that is, the configuration of the connection relationship between each entity is realized. The second method is the two-dimensional configuration method.
[0110] However, in method 2, when viewing the connection relationship, the user can only view Figure 1c The two-dimensional configuration interface of the logistics relationship shown in the figure enables the user to only see the two groups with a connection relationship, but cannot view the entities included in the two groups, that is, the user cannot view the connection relationship between the entities. Therefore, the two-dimensional configuration method in the second method is not intuitive enough, and requires the user to abstract the three-dimensional scene in the simulation interface into a two-dimensional configuration interface, which is not convenient for the user to view the connection relationship between the entities.
[0111] Based on this, in order to improve the efficiency of configuring the connection relationship between entities and facilitate users to view the connection relationship between entities, the present application provides a connection relationship configuration method, such as Figure 2 As shown, the method includes:
[0112] S201, displaying a first simulation interface of a target scene.
[0113] The first simulation interface displays multiple entities, each of which is used to represent a device in the target scene.
[0114] S202, in response to an entity group generation instruction inputted into the first simulation interface, determining a plurality of entities selected by the entity group generation instruction, generating an entity group, and correspondingly recording a correspondence between the generated entity group and the determined entities.
[0115] S203, displaying a second simulation interface.
[0116] The second simulation interface displays multiple entities and entity groups that have been generated.
[0117] S204, in response to a first connection instruction input for a second simulation interface, determining a first entity group, a first port, a second entity group, and a second port indicated by the first connection instruction, determining a first entity that has a corresponding relationship with the first entity group, and determining a second entity that has a corresponding relationship with the second entity group.
[0118] S205 , for each first entity, respectively connect the first port of the first entity to the second port of each second entity.
[0119] By applying the embodiment of the present application, on the one hand, the first simulation interface of the target scene can be displayed, wherein the first simulation interface displays multiple entities, each entity is used to represent a device in the target scene; in response to the entity group generation instruction input for the first simulation interface, the multiple entities selected by the entity group generation instruction are determined, and the entity group is generated, and the corresponding relationship between the generated entity group and the determined entity is recorded; the second simulation interface is displayed, wherein the second simulation interface displays multiple entities and each entity group that has been generated. The generation and display of multiple entity groups can be achieved in the above manner, and the corresponding relationship between each entity group and the entity can be recorded. In response to the first connection instruction input for the second simulation interface, the first entity group, the first port, the second entity group, and the second port indicated by the first connection instruction are determined, the first entity that has a corresponding relationship with the first entity group is determined, and the second entity that has a corresponding relationship with the second entity group is determined; for each first entity, the first port of the first entity is connected to the second port of each second entity. Since the correspondence between each entity group and the entity is recorded, the two entity groups and the ports of the entity groups that need to be connected can be determined by inputting the first connection instruction, and the connection relationship between the two entity groups can be configured, so that the entities and the ports of the entities that need to be connected in batches can be determined, and the connection relationship between the entities that have a corresponding relationship with the two entity groups can be configured. And, it can be understood that if the number of entity groups in the second simulation interface is less than the number of entities, the number of operations required to configure the connection relationship between each entity group is less than the number of operations required to configure the connection relationship between each entity. For example, in Figure 1a In the example shown, the number of operations required to configure the connection relationship between entities according to the connection relationship configuration method provided in this application is 1. Figure 1a In the example shown, the number of operations required to configure the connection relationship between each entity according to method one is 15 times. Obviously, compared with the method of manually configuring the connection relationship between each entity in turn (i.e., method one), the embodiment of the present application can reduce the number of operations required to configure the connection relationship between each entity, reduce the time required to configure the connection relationship between each entity, and improve the efficiency of configuring the connection relationship between each entity.
[0120] On the other hand, compared with the two-dimensional configuration method in the above-mentioned method 2, the connection relationship configuration method provided in the present application is: by configuring the connection relationship of the entity group in the three-dimensional scene of the simulation interface, the connection relationship between each entity is configured, so that the display of the connection relationship is more intuitive, which is convenient for users to view the connection relationship between each entity.
[0121] The above S201-S205 will be described exemplarily below:
[0122] In S201, the target scenario is any scenario that requires task planning such as logistics simulation and robot scheduling planning. For example, the target scenario can be Figure 1a The scene shown in .
[0123] The first simulation interface displays a three-dimensional scene obtained by modeling the target scene, and multiple entities. An entity refers to a three-dimensional model obtained by modeling a device in the target scene, that is, each entity can be used to represent a device in the target scene. Figure 1a In the scene shown, the target scene includes 8 devices: shelf 1, shelf 2, shelf 3, shelf 4, shelf 5, machine 1, machine 2, and machine 3. Correspondingly, the first simulation interface includes 8 entities, among which entity 1 is used to represent shelf 1, entity 2 is used to represent shelf 2, entity 3 is used to represent shelf 3, and so on.
[0124] In S202, the multiple entities selected by the user by inputting the entity group generation instruction should be entities with the same business logic. Exemplarily, in the application scenario of robot scheduling planning, entities with the same business logic can refer to: robots with the same running path and performing the same task, that is, entities with the same task flow. For example, if the 10 robots Robot 1 to Robot 10 all need to go to Shelf 1 to carry goods, then Robot 1 to Robot 10 in the first simulation interface are 10 entities with the same task flow.
[0125] In the application scenario of logistics simulation, entities with the same business logic can refer to: shelves with goods in the same circulation position and the same circulation method, that is, entities with the same flow direction of goods. For example, the goods in shelves 1 to 5 need to be transferred to machines 1 to 3 respectively by robot transportation, then shelves 1 to 5 in the first simulation interface are 5 entities with the same flow direction of goods. Entities with the same business logic can also refer to: equipment for receiving goods with the same source of goods and the same circulation method. For example, the equipment for receiving and obtaining refers to a machine, and the goods in shelves 1 to 5 need to be transferred to machines 1 to 3 respectively by robot transportation, then machines 1 to 3 in the first simulation interface are 3 entities with the same business logic. For another example, a factory uses 100 shelves to store raw materials, and the goods in these shelves need to be transported to the first process. Then the user can batch select 100 shelf entities and create an entity group.
[0126] Users can also configure necessary parameters for the entity group, such as the entity group name, to distinguish the purpose of the entity group.
[0127] The user can input the entity group generation instruction for the first simulation interface by first clicking on the multiple entities displayed in the first simulation interface and then clicking on the control for generating the entity group (hereinafter referred to as the entity group generation control), wherein the multiple entities clicked by the user are the multiple entities selected by the entity group generation instruction. The user can also input the entity group generation instruction for the first simulation interface by first clicking on the control for generating the entity group and then clicking on the multiple entities, wherein the multiple entities clicked by the user are the multiple entities selected by the entity group generation instruction.
[0128] Entity group generation controls can be Figure 3a As shown, it is set in the first simulation interface 31 in the form of a button. Figure 3a , the entity group generation control can be set in the right area 32 of the first simulation interface 31. The entity group generation control can also be set above the first simulation interface 31. In other possible embodiments, the entity group generation control can also be set below or on the left side of the first simulation interface 31, etc.
[0129] Entity group generation controls can also be Figure 3b As shown, the first simulation interface 31 is provided in the form of a drop-down menu 33. The present application does not impose any limitation on the form of the entity group generation control and the location where it is provided in the first simulation interface.
[0130] When the execution subject generates an entity group according to the multiple entities selected by the entity group generation instruction, it will also record the corresponding relationship between the generated entity group and the multiple entities selected by the entity group generation instruction. Exemplarily, assuming that the multiple entities selected by the entity group generation instruction are: machine 1, machine 2, machine 3, and the generated entity group is recorded as the machine group, then the members of the entity group "machine group" include: machine 1, machine 2, machine 3, that is, the entities that have a corresponding relationship with the entity group "machine group" are: machine 1, machine 2, machine 3. Among them, the execution subject is any electronic device used to execute the connection relationship configuration method provided in this application, such as a server, a laptop computer, etc.
[0131] In S203, each time the user inputs an entity group generation instruction, the aforementioned S202 is executed once, so that multiple entity groups can be generated. The execution subject can display the generated entity group in the first simulation interface each time an entity group is generated. At this time, the first simulation interface displaying the generated entity group can be regarded as the second simulation interface.
[0132] The execution body can also display a second simulation interface independent of the first simulation interface when generating the first entity group. The second simulation interface displays multiple entities displayed in the first simulation interface and the first generated entity group. Afterwards, the execution body displays the generated entity group in the second simulation interface each time it generates an entity group.
[0133] In S204, the ports included in the entity or entity group are of different types, and the port types of the entities in the same target scenario are the same. For example, in the application scenario of logistics simulation, the port types of the entities may include: manual handling type ports and robot handling type ports. Correspondingly, when configuring the connection relationship between entities, the types of the connected ports are different, and the types represented by the connection relationship are also different.
[0134] For example, assuming that the goods in shelf 1-shelf 5 need to be transferred to machines 1-machine 3 respectively by robot transportation, and the type of port A of shelf 1-shelf 5 and machine 1-machine 3 is a manual transportation type port, and the type of port B of shelf 1-shelf 5 and machine 1-machine 3 is a robot transportation type port, then when configuring the connection relationship between entities, it is necessary to connect port B of shelf 1-shelf 5 to port B of machine 1-machine 3 respectively.
[0135] Therefore, when configuring the connection relationship between entities, it is necessary to determine the port of the entity to be connected. The port type of the entity group is the same as the port type of the entity that has a corresponding relationship with the entity group. The entities corresponding to the aforementioned entity group "machine group" are: Machine 1, Machine 2, Machine 3. The three entities of Machine 1, Machine 2, and Machine 3 all include two ports, Port A and Port B, where the type of Port A is a manual handling type port, and the type of Port B is a robot handling type port. Then the entity group "machine group" also includes two ports, Port A and Port B.
[0136] In a possible embodiment, the user can input the first connection instruction for the second simulation interface by clicking the entity group as the starting point of the connection relationship and the entity group as the end point of the connection relationship in the second simulation interface, and clicking the ports on the two entity groups respectively. In this example, the entity group clicked by the user as the starting point of the connection relationship is the first entity group, the entity group as the end point of the connection relationship is the second entity group, the port clicked by the user for the first entity group is the first port, and the port clicked by the user for the second entity group is the second port.
[0137] In another possible embodiment, in the second simulation interface, the user can also input the first connection instruction for the second simulation interface by dragging a line from the port of the entity group as the starting point of the connection relationship to the port of the entity group as the end point of the connection relationship. In this example, the entity group as the starting point of the connection relationship is the first entity group, the entity group as the end point of the connection relationship is the second entity group, the port of the entity group as the starting point of the connection relationship is the first port, and the port of the entity group as the end point of the connection relationship is the second port.
[0138] In S205, as described in the aforementioned S204, the port type of the entity group and the port type of the entity corresponding to the entity group are the same, therefore, the port selected when configuring the connection relationship between the entity groups is the port required to be selected when configuring the connection relationship between the entities corresponding to the entity groups. The configuration of the connection relationship between the entity groups can be realized by the first connection instruction in the aforementioned S204, and the connection relationship configured by the first connection instruction is: the first port of the first entity group is connected to the second port of the second entity group. The entity corresponding to the first entity group is the first entity, and the entity corresponding to the second entity group is the second entity. Then, by configuring the connection relationship between the entity groups by the first connection instruction, the configuration of the connection relationship between each first entity and each second entity can be realized, and the connection relationship between each first entity and each second entity is: the first port of each first entity is respectively connected to the second port of each second entity.
[0139] For example, assuming that the first entity group is the aforementioned “shelf group”, the “shelf group” includes two ports, port A and port B, the first entities are: shelf 1, shelf 2, shelf 3, shelf 4, shelf 5, and the first port is port A; the second entity group is the aforementioned “machine group”, the “machine group” includes two ports, port A and port B, the second entities are: machine 1, machine 2, machine 3, and the second port is port A, then the first port of the first entity refers to: port A of shelf 1, port A of shelf 2, port A of shelf 3, port A of shelf 4, and port A of shelf 5; the second port of the second entity refers to: port A of machine 1, port A of machine 2, and port A of machine 3. Then, when configuring the connection relationship between each first entity and each second entity, for shelf 1, it is necessary to connect port A of shelf 1 to port A of machine 1, connect port A of shelf 1 to port A of machine 2, and connect port A of shelf 1 to port A of machine 3; for shelf 2, it is necessary to connect port A of shelf 2 to port A of machine 1, connect port A of shelf 2 to port A of machine 2, and connect port A of shelf 2 to port A of machine 3; and so on.
[0140] The configuration of the connection relationship between each first entity and each second entity can be achieved through the method in S205. As for the display of the connection relationship between each first entity and each second entity, in a possible embodiment, after the configuration of the connection relationship between each first entity and each second entity is completed by default, the connection relationship between each first entity and each second entity can be directly displayed in the second simulation interface.
[0141] In another possible embodiment, an entity connection relationship display control may be provided in the second simulation interface, and the user controls the display of the connection relationship between each first entity and each second entity through the entity connection relationship display control. Specifically, the user may click the entity connection relationship display control to put the entity connection relationship display control in a display state, so that the connection relationship between each first entity and each second entity is displayed in the second simulation interface. By clicking the entity connection relationship display control to put the entity connection relationship display control in a hidden state, the connection relationship between each first entity and each second entity is not displayed in the second simulation interface.
[0142] The entity connection relationship display control can be Figure 3a As shown, the entity connection relationship display control is set on the right side of the second simulation interface in the form of a button. The entity connection relationship display control can also be set above, below or on the left side of the second simulation interface. In another possible embodiment, the entity connection relationship display control can also be set as Figure 3b As shown, the entity connection relationship display control is set in the second simulation interface in the form of a drop-down menu. The present application does not impose any limitation on the form of the entity connection relationship display control and the position set in the second simulation interface.
[0143] The above S201-S205 have been described as examples. It is understandable that if the user needs to connect multiple entities to one entity, Figure 2 In the embodiment shown, it is still necessary to create the above-mentioned entity as an entity group, which makes the operation more complicated. Based on this, in a possible embodiment, see Figure 4 The connection relationship configuration method provided in this application also includes:
[0144] S401, in response to a second connection instruction input to a second simulation interface, determining a third entity group, a third port, a target entity, and a fourth port indicated by the second connection instruction, and determining a third entity corresponding to the third entity group.
[0145] The user can input the second connection instruction for the second simulation interface by clicking the entity group as the starting point of the connection relationship and the entity as the end point of the connection relationship in the second simulation interface, and clicking the entity group and the port on the entity respectively. In this example, the entity group as the starting point of the connection relationship clicked by the user is the third entity group, the entity as the end point of the connection relationship is the target entity, the port clicked by the user for the third entity group is the third port, and the port clicked for the target entity is the fourth port.
[0146] Alternatively, the user can input the second connection instruction for the second simulation interface by clicking on the entity as the starting point of the connection relationship and the entity group as the end point of the connection relationship in the second simulation interface, and clicking on the entity group and the port on the entity respectively. In this example, the entity clicked by the user as the starting point of the connection relationship is the target entity, the entity group as the end point of the connection relationship is the third entity group, the port clicked by the user for the third entity group is the third port, and the port clicked for the target entity is the fourth port.
[0147] S402, respectively connect the fourth port of the target entity to the third port of each third entity.
[0148] Exemplarily, assuming that the third entity group is the aforementioned "machine group", the "machine group" includes two ports, port A and port B, the third entities are: machine 1, machine 2, machine 3, and the third port is port A, then the third port of the third entity refers to: port A of machine 1, port A of machine 2, and port A of machine 3; and assuming that the target entity is shelf 1, the fourth port is port C, the target entity is the starting point of the connection relationship, and the third entity group is the end point of the connection relationship, then connect port C of shelf 1 to port A of machine 1, connect port C of shelf 1 to port A of machine 2, and connect port C of shelf 1 to port A of machine 3.
[0149] By selecting this embodiment, when the user needs to connect multiple entities to one entity, there is no need to create an entity group for one entity, thereby reducing the number of operations. At the same time, the connection relationship between entities can be directly configured by configuring the connection relationship between the entity group and the entity. Compared with the method of manually configuring the connection relationship between each entity in turn, the number of operations can be effectively reduced and the efficiency of configuring the connection relationship between each entity can be improved.
[0150] In the method of configuring the connection relationship between entities shown in the aforementioned method 1, since there may be hundreds or thousands of devices in a factory or warehouse in an actual scene, the number of entities in the three-dimensional scene is large, and manual configuration of the connection relationship between entities is prone to configuration omissions. At the same time, a large number of connection relationships between entities are displayed in the simulation interface, which makes the information displayed through the connection relationship in the simulation interface more complicated, which is not conducive to manual verification of the accuracy of the connection relationship.
[0151] Based on this, Figure 4 In the illustrated embodiment, the user can also input a second connection instruction for the second simulation interface by connecting an entity group with an entity, then the entity group connected by the user is the third entity group, the entity connected by the user is the target entity, the port of the entity group connected by the user is the third port, and the port of the entity connected by the user is the fourth port. In the above embodiment, the first connection relationship between the entity group and the entity is also displayed in the second simulation interface. In this embodiment, the connection relationship between the entity and the entity can be reflected by the first connection relationship between the entity group and the entity, so that the connection relationship in the simulation interface is relatively simple, which is convenient for the user to check the connection relationship between the entity and the entity according to the first connection relationship between the entity group and the entity.
[0152] For example, see Figure 5a As shown, the first connection relationship is represented by a connecting line. Figure 5a The shelf group in is the created entity group. The shelf group includes port A and port B. Port A of the shelf group is connected to machine 2, and port B of the shelf group is connected to machine 1. Figure 5a As shown, the positions of port A and port B of the shelf group are fixed, so that when the user views the second simulation interface at certain angles, the two connection lines between the shelf group and machine 2, and between the shelf group and machine 1 are staggered, which affects the display effect of the connection and is not convenient for the user to check the accuracy of the staggered connection lines.
[0153] Based on this, in a possible embodiment, as Figure 5b , Figure 5c As shown, the port of the entity group is represented by a ring mark; for any two fourth entities and fourth entity groups that have a first connection relationship, the connecting line used to represent the first connection relationship between the fourth entity group and the fourth entity is connected to the first point of the ring mark of the fourth entity group and is connected to the port of the fourth entity; wherein the orientation of the first point relative to the center of the ring mark of the fourth entity group is the same as the orientation of the fourth entity relative to the fourth entity group.
[0154] See also Figure 5b, the shelf group includes two ports, port A and port B. Port A of the shelf group is connected to the port of machine 1, and port B of the shelf group is connected to the port of machine 2. Port A and port B are both represented in the form of ring marks. Assuming that the fourth entity is machine 1 and the fourth entity group is the shelf group, then Figure 5b 51 in the figure is the first point, and the orientation of the first point 51 relative to the center of the annular mark of the port A is the same as the orientation of the machine 1 relative to the shelf group.
[0155] Assume that the fourth entity is machine 2 and the fourth entity group is the shelf group, then Figure 5b 52 in the figure is the first point, and the orientation of the first point 52 relative to the center of the annular mark of port B is the same as the orientation of the machine 2 relative to the shelf group.
[0156] If the position of the machine 2 relative to the shelf group changes, then the position of the first point 52 on the annular mark of port B will also change accordingly. Figure 5b as well as Figure 5c , the machine 2 moves from the left side of the shelf group to the right side of the shelf group, and the position of the first point 52 on the annular mark of port B also moves from the left side to the right side.
[0157] When this embodiment is selected, the second simulation interface also displays a first connection relationship between the entity group and the entity. The first connection relationship is represented by a connection line, and the port of the entity group is represented by a ring mark, so that the orientation of the first point relative to the center of the ring mark of the fourth entity group and the orientation of the fourth entity relative to the fourth entity group remain the same, thereby reducing the situation where the connection lines between entity groups and entities are intertwined, making it convenient for users to check the accuracy of the connection lines between entity groups and entities.
[0158] The configuration and display of the connection relationship between entity groups and entities have been exemplarily described above. Corresponding to the input method of the second connection instruction, it can be understood that in the aforementioned S204, the user can also input the first connection instruction for the second simulation interface by connecting entity groups to entity groups. Then, the entity group as the starting point in the entity group connected by the user is the first entity group, and the entity group as the end point is the second entity group. The port of the first entity group connected by the user is the first port, and the port of the second entity group connected by the user is the second port. In the above embodiment, the second simulation interface also displays the second connection relationship between the entity groups that have been generated.
[0159] In this embodiment, the second simulation interface may display the second connection relationship between each generated entity group and the third connection relationship between each entity. Alternatively, the second simulation interface may only display the second connection relationship between each generated entity group and not display the third connection relationship between each entity.
[0160] By selecting this embodiment, the macroscopic connection relationship between entities can be presented more clearly through the second connection relationship between entity groups, so that the connection relationship in the simulation interface is relatively simple, which is convenient for users to verify the accuracy of the connection relationship between entities according to the second connection relationship between entity groups. For example, assuming that 100 shelves are respectively connected to 100 machines in the second simulation interface, only the connection relationship between the shelf group including 100 shelves and the machine group including 100 machines can be displayed. If the connection relationship is displayed in the form of a connecting line, the second simulation interface can be macroscopically reflected through a connecting line between the shelf group and the machine group. The connection relationship between the 100 shelves and the 100 machines is connected.
[0161] In an embodiment where the second connection relationship between the generated entity groups is also displayed in the second simulation interface, if Figure 5a As shown, the position of the port of the entity group is fixed, and the second connection relationship is represented by a connection line. Then, when the user views the second simulation interface at a certain angle, the connection lines between the entity groups are staggered, which affects the display effect of the connection lines and is not convenient for the user to check the accuracy of the staggered connection lines.
[0162] Based on this, in a possible embodiment, as Figure 5d As shown, the ports of the entity groups are represented by ring marks; for any two entity groups having a second connection relationship, a connecting line for representing the second connection relationship between the two entity groups is connected to the second point of the ring mark of the eighth entity group, and is connected to the third point of the ring mark of the ninth entity group, wherein the eighth entity group is one of the two entity groups, and the ninth entity group is the other of the two entity groups; wherein the orientation of the second point relative to the center of the ring mark of the eighth entity group is the same as the orientation of the ninth entity group relative to the eighth entity group, and the orientation of the third point relative to the center of the ring mark of the ninth entity group is the same as the orientation of the eighth entity group relative to the ninth entity group.
[0163] See also Figure 5d The eighth entity group is the shelf group, the ninth entity group is the machine group, 53 is the second point, 54 is the third point, the orientation of the second point 53 relative to the center of the circular mark of the shelf group is the same as the orientation of the machine group relative to the shelf group, and the orientation of the third point 54 relative to the center of the circular mark of the machine group is the same as the orientation of the shelf group relative to the machine group.
[0164] When this embodiment is selected, a second connection relationship between entity groups is also displayed in the second simulation interface. The second connection relationship is represented by a connecting line, and the port of the entity group is represented by a ring mark, so that the orientation of the second point relative to the center of the ring mark of the eighth entity group is the same as the orientation of the ninth entity group relative to the eighth entity group, and the orientation of the third point relative to the center of the ring mark of the ninth entity group is the same as the orientation of the eighth entity group relative to the ninth entity group, thereby reducing the situation where the connecting lines between entity groups are intertwined, making it convenient for users to check the accuracy of the connection lines between entity groups.
[0165] In an embodiment in which the second connection relationship between each generated entity group is also displayed in the second simulation interface, the connection relationship configuration method provided by the present application also includes: in response to a second display instruction input for the second simulation interface, determining the sixth entity group indicated by the second display instruction, and displaying the sixth entity group, the sixth entity having a corresponding relationship with the sixth entity group, the seventh entity group, and the seventh entity having a corresponding relationship with the seventh entity group in a first style, and displaying other entity groups and other entities in a second style; wherein the seventh entity group is an entity group having a second connection relationship with the sixth entity group, and the first style is different from the second style.
[0166] See also Figure 6a The top view of the second simulation interface shown in FIG. 1 shows seven entity groups, namely, shelf group 1, shelf group 2, shelf group 3, shelf group 4, machine group 1, machine group 2, and picking area group. In order to more clearly reflect the effect of this embodiment, Figure 6a Only a plurality of entity groups are shown in the figure. In other possible embodiments, a plurality of entities are also displayed in the top view of the second simulation interface.
[0167] Other entity groups refer to entity groups other than the sixth entity group and the seventh entity group in the second simulation interface, and other entities refer to entities other than the sixth entity and the seventh entity in the second simulation interface.
[0168] In order to highlight the sixth entity group, the sixth entity corresponding to the sixth entity group, the seventh entity group, and the seventh entity corresponding to the seventh entity group, the prominence of the first style should be greater than the prominence of the second style. The prominence of a certain style refers to the visual appeal of the entity group and the entity to the user when displayed in the style. Correspondingly, the prominence of the first style should be greater than the prominence of the second style, which means that the visual appeal of the entity group and the entity displayed in the first style to the user is greater than the visual appeal of the entity group and the entity displayed in the second style to the user, that is, the user can give priority to the entity group and the entity displayed in the first style in the second simulation interface.
[0169] Exemplarily, the first style may refer to display, and the second style may refer to non-display, or the first style may refer to opaque display, and the second style may refer to semi-transparent weakened display, and so on.
[0170] In a possible embodiment, the first style and the second style are defaulted to any one of the above examples. In another possible embodiment, a first style adjustment control is provided in the second simulation interface, and the user can adjust the first style and the second style through the first style adjustment control. Exemplarily, after the user clicks the first style adjustment control, the first style adjustment interface can be displayed, such as Figure 6b As shown, the first style adjustment interface includes multiple possible style examples of the first style, such as style 1, style 2, style 3, ..., and multiple possible style examples of the second style, such as style 4, style 5, style 6, ..., and the user can adjust the first style to the style by clicking on a style under the first style, and adjust the second style to the style by clicking on a style under the second style. Figure 6b In the example shown, the first style is style 1 and the second style is style 4.
[0171] The first style adjustment interface can also be Figure 6b Other ways of displaying than the examples shown, for example, multiple possible style examples of the first style and multiple possible style examples of the second style are all displayed in the form of a drop-down menu. The present application does not impose any restrictions on the display method of the first style adjustment interface.
[0172] The user can input the second display instruction by clicking on the entity group. If the sixth entity group indicated by the second display instruction is machine group 1, then the entity groups having the second connection relationship with machine group 1 are: picking area group and machine group 2, that is, the seventh entity group is the picking area group and machine group 2. Figure 6c , machine group 1, picking area group, machine group 2, entities corresponding to machine group 1, entities corresponding to the picking area group, and entities corresponding to machine group 2 can be displayed only in the second simulation interface.
[0173] If the sixth entity group indicated by the second display instruction is machine group 2, then the entity groups having a second connection relationship with machine group 2 are: shelf group 2, shelf group 3, shelf group 4 and machine group 1, that is, the seventh entity group is shelf group 2, shelf group 3, shelf group 4 and machine group 1. Figure 6d, machine group 2, shelf group 2, shelf group 3, shelf group 4 and machine group 1, entities corresponding to machine group 2, entities corresponding to shelf group 2, entities corresponding to shelf group 3, entities corresponding to shelf group 4, and entities corresponding to machine group 1 can be displayed only in the second simulation interface.
[0174] When the connection relationship between entities is complex, there are a large number of connection relationships between entities and second connection relationships between entity groups in the second simulation interface. This embodiment is selected so that the user can clearly see the connection relationship of the sixth entity group selected by the user. The sixth entity group is the object of concern to the user. The user can then see the connection relationship of the object of concern to him more clearly and avoid interference information.
[0175] The display of the second connection relationship has been exemplarily described above. It is understandable that in the process of modeling the target scene and the equipment in the target scene, the user can create an entity group. At this time, the user may give priority to completing the modeling of the target scene and the equipment in the target scene, and will not configure the connection relationship between the entities by configuring the connection relationship between the entity groups. At this time, the display of the entity group is a kind of interference information for the user. Based on this, in a possible embodiment, for each entity group that has been generated, in response to a hide instruction input for the entity group that has been generated, the entity group that has been generated is hidden; in response to a first display instruction input for the entity group that has been generated, the entity group that has been generated is displayed.
[0176] Specifically, the user can control the display of a certain generated entity group through the entity group display control, and input a first display instruction by clicking the entity group display control to put the entity group display control in a display state, so that the generated entity group is displayed in the second simulation interface. The user can input a hiding instruction by clicking the entity group display control to put the entity group display control in a hidden state, so that the generated entity group is not displayed in the second simulation interface.
[0177] The entity group display control can be Figure 3a As shown, the entity group display control is set on the right side of the second simulation interface in the form of a button. The entity group display control can also be set above, below or on the left side of the second simulation interface. In another possible embodiment, the entity group display control can also be set as Figure 3b As shown, the entity group display control is set in the second simulation interface in the form of a drop-down menu. The present application does not impose any limitation on the form of the entity group display control and the position where it is set in the second simulation interface.
[0178] This embodiment can meet different needs of users at different stages. In the process of modeling the target scene and the devices in the target scene, the entity group can be hidden to avoid interference information. In the process of configuring the connection relationship between the entities, the entity group display can be turned on to present the macro connection relationship.
[0179] In the above embodiments, see Figure 7a Specifically, the second simulation interface showing each generated entity group can be displayed in the following manner, including:
[0180] S2031 , for each generated entity group, in response to a first display instruction input for the generated entity group, counting horizontal positions of entities corresponding to the generated entity group to obtain a target horizontal position of the generated entity group.
[0181] The method of inputting the first display instruction has been exemplarily described in the foregoing text, and will not be repeated here.
[0182] See also Figure 7b The second simulation interface shown in the figure has a three-dimensional coordinate system in the lower left corner. The horizontal position of the entity refers to the coordinate of the entity on the xy plane. The mean of the coordinates of the entities on the xy plane that correspond to the generated entity group can be used as the coordinates of the generated entity group on the xy plane, that is, as the target horizontal position of the generated entity group.
[0183] S2032: For each entity group that has been generated, display the entity group that has been generated at a target horizontal position and a preset vertical height on the second simulation interface.
[0184] See also Figure 7b , the preset vertical height is the value of the generated entity group in the z-axis direction. According to the aforementioned target horizontal position and the preset vertical height, the three-dimensional coordinates of the generated entity group in the second simulation interface can be obtained. The x-coordinate and y-coordinate of the three-dimensional coordinates are the x-coordinate and y-coordinate of the aforementioned target horizontal position, and the z-coordinate of the three-dimensional coordinates is the preset vertical height. The generated entity group is displayed at the three-dimensional coordinates in the second simulation interface. Exemplary, Figure 7b It shows that there are two entity groups that have been generated and the names of the two entity groups that have been generated, namely Figure 7b The shelf groups and machine groups in the.
[0185] In this embodiment, the top view of the second simulation interface can be as follows: Figure 7c As shown. The entities that have a corresponding relationship with the shelf group entity group are Figure 7cFor the convenience of description, the six shelves shown in the figure are respectively recorded as: shelf 1, shelf 2, shelf 3, shelf 4, shelf 5, and shelf 6; the entity that has a corresponding relationship with the machine group entity group is Figure 7c For the convenience of description, the two machines shown in the figure are respectively referred to as machine 1 and machine 2. The entity group of the shelf group is located at the center of all entities that have a corresponding relationship with the shelf group, and the entity group of the machine group is located at the center of all entities that have a corresponding relationship with the machine group.
[0186] By selecting this embodiment, the target horizontal position of the entity group can be determined based on the horizontal position of the entity that has a corresponding relationship with the entity group, and by setting a preset vertical height, the entity group can be displayed at the center position above all entities that have a corresponding relationship with the entity group, thereby facilitating the reflection of the corresponding relationship between the entity group and the entities.
[0187] It is understandable that the heights of the devices in the target scene may be inconsistent, and correspondingly, the heights of the entities in the second simulation interface are also inconsistent. Therefore, if the preset vertical height is set to be smaller, the preset vertical height may be smaller than the height of some entities, that is, entities are displayed at the height of the entity group displayed in the second simulation interface, resulting in overlapping entity groups, which is inconvenient for users to distinguish overlapping entity groups and entities. In addition, in the commonly used connection relationship configuration method, it is necessary to click on the entity group or the port of the entity. The overlapping entity group and entity are not convenient for users to click on the entity group or the port of the entity, which is also inconvenient for users to configure the connection relationship between entity groups or between entity groups and entities.
[0188] If the preset vertical height is set to a large value, the entity group and the entity corresponding to the entity group may be far apart in the vertical direction, making it difficult to reflect the corresponding relationship between the entity group and the entity, and the entity group and the entity may not be displayed in the second simulation interface at the same time, requiring sliding to see the entity group or the entity. In addition, since there are many entities in the target scene, it is difficult to fully count the heights of each entity and determine a suitable preset vertical height.
[0189] Based on this, in a possible embodiment, the connection relationship configuration method provided in the present application also includes: in response to an adjustment instruction input for the second simulation interface, determining the target entity group and the target vertical height indicated by the adjustment instruction, and adjusting the position of the target entity group to the target horizontal position and target vertical height of the second simulation interface.
[0190] After the user clicks on a certain entity group, the second simulation interface can display Figure 8a In the adjustment interface shown, the entity group clicked by the user is the target entity group. Figure 8a This is the adjustment interface displayed for the target entity group. The user can adjust the height of the target entity group through the height adjustment control in the adjustment interface. Specifically, the user can adjust the height of the target entity group by dragging Figure 8a The adjustment instruction is entered by clicking the circular icon (i.e., the height adjustment control) after the "Group Entity Height" shown in the figure. The value corresponding to the position after the circular icon is dragged is the target vertical height indicated by the adjustment instruction. The execution subject responds to the adjustment instruction input by the user to adjust the position of the target entity group to the target horizontal position and target vertical height of the second simulation interface.
[0191] In another possible embodiment, the height adjustment control may also be in the form of an input box, and the user may enter an adjustment instruction by entering a number in the input box, and the number entered by the user in the input box is the target vertical height. The present application does not impose any limitation on the form of the height adjustment control.
[0192] In this embodiment, since the height of each entity in the second simulation interface varies and is not a fixed height, the user can control the height of the entity group displayed in the second simulation interface by inputting adjustment instructions, avoiding the situation where the entity and the entity group overlap and cause poor display effects, thereby facilitating the user to distinguish between entity groups and entities, and facilitating the user to configure the connection relationship between entity groups or between entity groups. At the same time, it can ensure that the entity group and the entity are displayed in the second simulation interface at the same time, which is convenient for reflecting the corresponding relationship between the entity group and the entity, and there is no need to conduct complete statistics on the height of each entity, thereby reducing resource consumption.
[0193] See also Figure 8a , users can also drag the target entity group Figure 8a The size of the entity group displayed in the second simulation interface is controlled by using the circular icon (i.e., the size adjustment control) after the "group entity size" shown in the figure. The value corresponding to the position after the circular icon is dragged is the target size that the entity group needs to display. The execution body responds to the user's operation and adjusts the size of the target entity group to the target size.
[0194] In another possible embodiment, the size adjustment control may also be in the form of an input box, and the user may control the size of the entity group displayed in the second simulation interface by inputting a number in the input box, and the number input by the user in the input box is the target size. The present application does not impose any limitation on the form of the size adjustment control.
[0195] The size adjustment control and the height adjustment control can be placed together in Figure 8aIn the adjustment interface shown, in another possible embodiment, the size adjustment control and the height adjustment control may be located in different interfaces respectively. This application does not make any limitation to this.
[0196] By selecting this embodiment, the user can control the size of the entity group display according to the size of each entity in the second simulation interface, so that each entity and entity group can be displayed more clearly in the second simulation interface.
[0197] In other possible embodiments, the user can also adjust the horizontal position of the entity group through the entity group position control. The style of the entity group position control can be the same as Figure 8a Alternatively, the user can also adjust the horizontal position of the entity group by inputting a set of two-dimensional coordinates in the input box, and the execution body can use the two-dimensional coordinates input by the user as the horizontal position of the entity group and display the entity group in the second simulation interface.
[0198] Entity group position controls can be placed together with size and height controls such as Figure 8a In the adjustment interface shown, in another possible embodiment, the entity group position control, the size adjustment control, and the height adjustment control may be located in different interfaces, respectively. This application does not make any limitation to this.
[0199] The above has been described as an example of adjusting the display of entity groups. In order to facilitate users to view the correspondence between entity groups and entities, in a possible embodiment, the connection relationship configuration method provided by the present application also includes: in response to a third display instruction input for the second simulation interface, determining the tenth entity group indicated by the third display instruction, and displaying the eighth entity that has a correspondence relationship with the tenth entity group in a third style, and displaying entities other than the eighth entity in a fourth style; wherein the third style is different from the fourth style.
[0200] The user can input the third display instruction by clicking on the entity group, and the entity group clicked by the user is the tenth entity group. The third style can refer to color highlighting, and the fourth style can refer to non-color highlighting; or the third style can refer to displaying the eighth entity in a window independent of the second simulation interface, and the fourth style refers to not displaying entities other than the eighth entity in the window independent of the second simulation interface.
[0201] In a possible embodiment, the third style and the fourth style are defaulted to any one of the above examples. In another possible embodiment, a second style adjustment control is provided in the second simulation interface, and the user can adjust the third style and the fourth style through the second style adjustment control. Exemplarily, after the user clicks the second style adjustment control, the second style adjustment interface can be displayed, such as Figure 8b As shown, the second style adjustment interface includes multiple possible style examples of the third style, such as style 1, style 2, style 3, ..., and multiple possible style examples of the fourth style, such as style 4, style 5, style 6, ..., and the user can adjust the third style to the style by clicking on a certain style under the third style, and adjust the fourth style to the style by clicking on a certain style under the fourth style. Figure 8b In the example shown, the third style is style 3 and the fourth style is style 5.
[0202] The second style adjustment interface can also be Figure 8b Other ways of displaying than the examples shown, for example, multiple possible style examples of the third style and multiple possible style examples of the fourth style are all displayed in the form of a drop-down menu. The present application does not impose any restrictions on the display mode of the second style adjustment interface.
[0203] By selecting this embodiment, it is convenient for users to view the correspondence between entity groups and entities, and it is convenient for users to configure the connection relationship between entities by configuring the connection relationship between entity groups or between entity groups and entities based on the correspondence.
[0204] The display of the corresponding relationship between the entity group and the entity has been exemplarily described above. It is understandable that when the user configures the connection relationship between the entities, a configuration error may occur. In order to correct the misconfigured connection relationship, in a possible embodiment, the connection relationship configuration method provided by the present application also includes: in response to a delete instruction input to the second simulation interface, determining a third connection relationship between the two entities indicated by the delete instruction as a target connection relationship, and deleting the target connection relationship.
[0205] The third connection relationship between the entities in the second simulation interface can be displayed in the form of a connection line. The user can enter a deletion instruction by clicking the connection line between two entities and clicking the delete control. The connection line clicked by the user is the target connection relationship.
[0206] Deleting a control can be done as follows Figure 3aAs shown in FIG. 1 , the delete control is set on the right side of the second simulation interface in the form of a button. The delete control can also be set above, below or on the left side of the second simulation interface. In another possible embodiment, the delete control can also be set as Figure 3b As shown, the second simulation interface is set in the form of a drop-down menu. The present application does not impose any restrictions on the form of the deletion control and the location where it is set in the second simulation interface.
[0207] For example, assuming that the user needs to connect shelf 1 to shelf 9 with machine 1 to machine 10, and shelf 10 with machine 1 to machine 9, the user can create shelf 1 to shelf 10 as a shelf group, and machine 1 to machine 10 as a machine group. By connecting the shelf group and the machine group, the execution subject connects shelf 1 to shelf 10 with machine 1 to machine 10, and at the same time, deletes the connection relationship between shelf 10 and machine 10. In the above process, the user only needs to perform one connection operation between entity groups and one deletion operation to configure the connection relationship between each entity, which greatly reduces the number of operations required for the user to configure the connection relationship between each entity and improves the efficiency of configuring the connection relationship between each entity.
[0208] By selecting this embodiment, it is convenient for users to delete incorrectly configured connection relationships. At the same time, the number of times required to configure the connection relationships between entities can be reduced through the deletion, thereby improving the efficiency of configuring the connection relationships between entities.
[0209] The above has been described in an exemplary manner for deleting the target connection relationship. It is understandable that when the user models the device in the target scene to obtain an entity representing the device, he or she will also set and modify the relevant parameters of the entity, such as the remaining amount of goods in the shelf, etc. If the relevant parameters of the entity are modified manually one by one, due to the large number of entities, the number of operations required for the user to modify the relevant parameters of the entity will be large, and the efficiency will be low.
[0210] Based on this, in a possible embodiment, see Figure 9a The connection relationship configuration method provided in this application also includes:
[0211] S901, in response to a parameter modification instruction input to a second simulation interface, determining a fifth entity group, a target parameter, and a target parameter value indicated by the parameter modification instruction, and determining a fifth entity that has a corresponding relationship with the fifth entity group.
[0212] S902: Modify the parameter value of the target parameter of each fifth entity to the target parameter value.
[0213] The user can click on the fifth entity group to open the parameter modification interface corresponding to the fifth entity group. Figure 9b In the parameter modification interface shown, the user can modify the parameter value of a parameter in the input box after a parameter. The parameter corresponding to the input box clicked by the user is the target parameter, and the value originally modified by the user is the target parameter value.
[0214] By selecting this embodiment, in response to the parameter modification instruction input for the second simulation interface, determining the fifth entity group, target parameters and target parameter values indicated by the parameter modification instruction, and determining the fifth entity that has a corresponding relationship with the fifth entity group, and modifying the parameter values of the target parameters of each fifth entity to the target parameter value, the parameter values of the parameters of all entities that have a corresponding relationship with the entity group can be modified at one time, thereby reducing the number of operations required for the user to modify the parameters of the entity and improving the efficiency of the user in modifying the parameters of the entity.
[0215] The following will illustrate the connection relationship configuration method provided by the present application through the interaction between user operations and execution subject processing. Fig.10a , Fig.10a The system in the above is the execution subject, and the system processing is the execution subject processing. The connection relationship configuration method provided in this application includes:
[0216] Step 01, the user creates an entity group.
[0217] Step 01 corresponds to the aforementioned S202 for generating an entity group input instruction for the first simulation interface. Please refer to the relevant description in the aforementioned S202, which will not be repeated here.
[0218] Step 02, the system records the members of the entity group.
[0219] Step 02 corresponds to the corresponding relationship between the entity group generated by the corresponding record in the aforementioned S202 and the determined entity. Please refer to the relevant description in the aforementioned S202, which will not be repeated here.
[0220] Step 03, the user turns on entity group display.
[0221] Step 03 corresponds to the first display instruction input for the generated entity group in the aforementioned S2031. Please refer to the relevant description in the aforementioned S2031 and will not be repeated here.
[0222] Step 04, the system calculates the display position of the entity group.
[0223] Step 04 corresponds to the aforementioned S2031-S2032. Please refer to the relevant description in the aforementioned S2031-S2032, which will not be repeated here.
[0224] Step 05, user connects to entity group.
[0225] Step 05 corresponds to the first connection instruction input for the second simulation interface in the aforementioned S204. Please refer to the relevant description in the aforementioned S204, which will not be repeated here. After step 05 is executed, the schematic diagram of the second simulation interface can be as follows Fig.10b As shown, Fig.10b The second connection relationship between two entity groups and the names of the two entity groups are shown in Fig.10b The shelf groups and machine groups in the.
[0226] Step 06: The system establishes batch connection relationships.
[0227] Step 06 corresponds to the aforementioned S205, and the relevant description in the aforementioned S205 can be referred to, and will not be repeated here. After step 06 is executed, the schematic diagram of the second simulation interface can be as follows Figure 5d shown.
[0228] Corresponding to the aforementioned connection relationship configuration method, the present application embodiment also provides a connection relationship configuration device, see Fig.11 , the device comprises:
[0229] A first simulation interface display module 1101, used to display a first simulation interface of a target scene, wherein the first simulation interface displays a plurality of entities, each entity being used to represent a device in the target scene;
[0230] An entity group generation module 1102, for responding to an entity group generation instruction inputted into the first simulation interface, determining a plurality of entities selected by the entity group generation instruction, generating an entity group, and correspondingly recording a correspondence between the generated entity group and the determined entities;
[0231] A second simulation interface display module 1103, used to display a second simulation interface, wherein the second simulation interface displays a plurality of entities and each entity group that has been generated;
[0232] An entity determination module 1104 is used to determine, in response to a first connection instruction input for a second simulation interface, a first entity group, a first port, a second entity group, and a second port indicated by the first connection instruction, determine a first entity that has a corresponding relationship with the first entity group, and determine a second entity that has a corresponding relationship with the second entity group;
[0233] The port connection module 1105 is used to connect the first port of each first entity with the second port of each second entity respectively.
[0234] In a possible embodiment, the device further includes:
[0235] A first determining module, configured to determine, in response to a second connection instruction inputted to the second simulation interface, a third entity group, a third port, a target entity, and a fourth port indicated by the second connection instruction, and determine a third entity having a corresponding relationship with the third entity group;
[0236] The connection module is used to respectively connect the fourth port of the target entity with the third port of each third entity.
[0237] In a possible embodiment, the second simulation interface further displays a first connection relationship between the entity group and the entity, the first connection relationship is represented in the form of a connection line, and the port of the entity group is represented by a ring mark;
[0238] For any two fourth entities and fourth entity groups having a first connection relationship, a connection line for indicating the first connection relationship between the fourth entity group and the fourth entity is connected to a first point of a ring mark of the fourth entity group and is connected to a port of the fourth entity;
[0239] The orientation of the first point relative to the center of the annular mark of the fourth entity group is the same as the orientation of the fourth entity relative to the fourth entity group.
[0240] In a possible embodiment, the device further includes:
[0241] a second determination module, configured to determine, in response to a parameter modification instruction inputted to the second simulation interface, a fifth entity group, a target parameter, and a target parameter value indicated by the parameter modification instruction, and determine a fifth entity corresponding to the fifth entity group;
[0242] The parameter value modification module is used to modify the parameter value of the target parameter of each fifth entity to the target parameter value.
[0243] In a possible embodiment, displaying the second simulation interface includes:
[0244] For each generated entity group, in response to a first display instruction input for the generated entity group, horizontal positions of entities corresponding to the generated entity group are counted to obtain a target horizontal position of the generated entity group;
[0245] For each entity group that has been generated, the entity group that has been generated is displayed at a target horizontal position and a preset vertical height on the second simulation interface.
[0246] In a possible embodiment, the device further includes:
[0247] The position adjustment module is used to respond to the adjustment instruction input for the second simulation interface, determine the target entity group and the target vertical height indicated by the adjustment instruction, and adjust the position of the target entity group to the target horizontal position and target vertical height of the second simulation interface.
[0248] In a possible embodiment, the second simulation interface further displays a second connection relationship between each generated entity group; the device further includes:
[0249] A first display module, configured to respond to a second display instruction input for the second simulation interface, determine a sixth entity group indicated by the second display instruction, and display the sixth entity group, a sixth entity corresponding to the sixth entity group, a seventh entity group, and a seventh entity corresponding to the seventh entity group in a first style, and display other entity groups and other entities in a second style;
[0250] The seventh entity group is an entity group having a second connection relationship with the sixth entity group, and the first style is different from the second style.
[0251] In a possible embodiment, the second connection relationship is represented by a connection line, and the port of the entity group is represented by a ring mark;
[0252] For any two entity groups having a second connection relationship, a connection line for indicating the second connection relationship between the two entity groups is connected to the second point of the annular mark of the eighth entity group and to the third point of the annular mark of the ninth entity group, wherein the eighth entity group is one of the two entity groups and the ninth entity group is the other of the two entity groups;
[0253] Among them, the orientation of the second point relative to the center of the circular mark of the eighth entity group is the same as the orientation of the ninth entity group relative to the eighth entity group, and the orientation of the third point relative to the center of the circular mark of the ninth entity group is the same as the orientation of the eighth entity group relative to the ninth entity group.
[0254] In a possible embodiment, the device further includes:
[0255] The second display module is used to respond to the third display instruction input for the second simulation interface, determine the tenth entity group indicated by the third display instruction, and display the eighth entity that corresponds to the tenth entity group in the third style, and display entities other than the eighth entity in the fourth style; wherein the third style is different from the fourth style.
[0256] In a possible embodiment, the second simulation interface displays a third connection relationship between the entities, and the device further includes:
[0257] The deletion module is used to respond to the deletion instruction input to the second simulation interface, determine the third connection relationship between the two entities indicated by the deletion instruction as the target connection relationship, and delete the target connection relationship.
[0258] The present application also provides an electronic device, such as Fig.12 As shown, including:
[0259] Memory 1201, used for storing computer programs;
[0260] The processor 1202 is used to implement the following steps when executing the program stored in the memory 1201:
[0261] Displaying a first simulation interface of the target scene, wherein the first simulation interface displays a plurality of entities, each entity being used to represent a device in the target scene;
[0262] In response to an entity group generation instruction inputted into the first simulation interface, a plurality of entities selected by the entity group generation instruction are determined, an entity group is generated, and a corresponding relationship between the generated entity group and the determined entities is recorded;
[0263] Displaying a second simulation interface, wherein the second simulation interface displays a plurality of entities and entity groups that have been generated;
[0264] In response to a first connection instruction inputted for a second simulation interface, determining a first entity group, a first port, a second entity group, and a second port indicated by the first connection instruction, determining a first entity having a corresponding relationship with the first entity group, and determining a second entity having a corresponding relationship with the second entity group;
[0265] For each first entity, the first port of the first entity is connected to the second port of each second entity respectively.
[0266] Furthermore, the electronic device may further include a communication bus and / or a communication interface, and the processor 1202, the communication interface, and the memory 1201 communicate with each other via the communication bus.
[0267] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0268] The communication interface is used for communication between the above electronic device and other devices.
[0269] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0270] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0271] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above connection relationship configuration methods are implemented.
[0272] In another embodiment provided in the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any connection relationship configuration method in the above embodiments.
[0273] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a solid-state hard disk (SSD), etc.
[0274] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0275] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the device, electronic device, computer-readable storage medium, and computer program product containing instructions, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0276] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
Claims
1. A connection relationship configuration method, characterized in that: The method comprises: Displaying a first simulation interface of a target scene, wherein the first simulation interface displays a plurality of entities, each of the entities being used to represent a device in the target scene; In response to an entity group generation instruction inputted into the first simulation interface, a plurality of entities selected by the entity group generation instruction are determined, an entity group is generated, and a corresponding relationship between the generated entity group and the determined entities is recorded; Displaying a second simulation interface, wherein the second simulation interface displays the multiple entities and each entity group that has been generated; In response to a first connection instruction input for the second simulation interface, determining a first entity group, a first port, a second entity group, and a second port indicated by the first connection instruction, determining a first entity that has a corresponding relationship with the first entity group, and determining a second entity that has a corresponding relationship with the second entity group; For each of the first entities, the first port of the first entity is connected to the second port of each of the second entities respectively.
2. The method according to claim 1, characterized in that The method further comprises: In response to a second connection instruction input to the second simulation interface, determining a third entity group, a third port, a target entity, and a fourth port indicated by the second connection instruction, and determining a third entity that has a corresponding relationship with the third entity group; The fourth port of the target entity is connected to the third port of each of the third entities respectively.
3. The method according to claim 2, characterized in that The second simulation interface also displays a first connection relationship between the entity group and the entity, the first connection relationship is represented by a connection line, and the port of the entity group is represented by a ring mark; For any two fourth entities and fourth entity groups having a first connection relationship, the connection line for indicating the first connection relationship between the fourth entity group and the fourth entity is connected to the first point of the ring mark of the fourth entity group and is connected to the port of the fourth entity; The orientation of the first point relative to the center of the annular mark of the fourth entity group is the same as the orientation of the fourth entity relative to the fourth entity group.
4. The method according to claim 1, characterized in that: The method further comprises: In response to a parameter modification instruction inputted into the second simulation interface, determining a fifth entity group, a target parameter, and a target parameter value indicated by the parameter modification instruction, and determining a fifth entity having a corresponding relationship with the fifth entity group; The parameter value of the target parameter of each of the fifth entities is modified to the target parameter value.
5. The method according to claim 1, characterized in that The displaying of the second simulation interface includes: For each generated entity group, in response to a first display instruction input for the generated entity group, counting horizontal positions of entities corresponding to the generated entity group to obtain a target horizontal position of the generated entity group; For each entity group that has been generated, the entity group that has been generated is displayed at the target horizontal position and the preset vertical height of the second simulation interface.
6. The method according to claim 5, characterized in that The method further comprises: In response to an adjustment instruction input for the second simulation interface, a target entity group and a target vertical height indicated by the adjustment instruction are determined, and the position of the target entity group is adjusted to the target horizontal position and target vertical height of the second simulation interface.
7. The method according to claim 1, characterized in that The second simulation interface also displays a second connection relationship between each generated entity group; the method further includes: In response to a second display instruction input for the second simulation interface, determine a sixth entity group indicated by the second display instruction, and display the sixth entity group, a sixth entity corresponding to the sixth entity group, a seventh entity group, and a seventh entity corresponding to the seventh entity group in a first style, and display other entity groups and other entities in a second style; The seventh entity group is an entity group having a second connection relationship with the sixth entity group, and the first style is different from the second style.
8. The method according to claim 7, characterized in that The second connection relationship is represented by a connection line, and the port of the entity group is represented by a ring mark; For any two entity groups having a second connection relationship, the connection line for indicating the second connection relationship between the two entity groups is connected to the second point of the annular mark of the eighth entity group and to the third point of the annular mark of the ninth entity group, wherein the eighth entity group is one of the two entity groups and the ninth entity group is the other of the two entity groups; Among them, the orientation of the second point relative to the center of the annular mark of the eighth entity group is the same as the orientation of the ninth entity group relative to the eighth entity group, and the orientation of the third point relative to the center of the annular mark of the ninth entity group is the same as the orientation of the eighth entity group relative to the ninth entity group.
9. The method according to claim 1, characterized in that: The method further comprises: In response to a third display instruction input for the second simulation interface, the tenth entity group indicated by the third display instruction is determined, and the eighth entity that has a corresponding relationship with the tenth entity group is displayed in a third style, and entities other than the eighth entity are displayed in a fourth style; wherein the third style is different from the fourth style.
10. The method according to claim 1, characterized in that The second simulation interface displays a third connection relationship between the entities, and the method further includes: In response to a delete instruction input to the second simulation interface, a third connection relationship between two entities indicated by the delete instruction is determined as a target connection relationship, and the target connection relationship is deleted.
11. A connection relationship configuration device, characterized in that: The device comprises: A first simulation interface display module, used to display a first simulation interface of a target scene, wherein the first simulation interface displays a plurality of entities, each of which is used to represent a device in the target scene; An entity group generation module, for responding to an entity group generation instruction inputted into the first simulation interface, determining a plurality of entities selected by the entity group generation instruction, generating an entity group, and correspondingly recording a correspondence between the generated entity group and the determined entities; A second simulation interface display module, used to display a second simulation interface, wherein the second simulation interface displays the multiple entities and each entity group that has been generated; an entity determination module, configured to determine, in response to a first connection instruction input for the second simulation interface, a first entity group, a first port, a second entity group, and a second port indicated by the first connection instruction, determine a first entity that has a corresponding relationship with the first entity group, and determine a second entity that has a corresponding relationship with the second entity group; The port connection module is used to connect the first port of each of the first entities with the second port of each of the second entities respectively.
12. The device according to claim 11, characterized in that The device also includes: A first determining module, configured to determine, in response to a second connection instruction inputted to the second simulation interface, a third entity group, a third port, a target entity, and a fourth port indicated by the second connection instruction, and determine a third entity having a corresponding relationship with the third entity group; a connecting module, configured to respectively connect the fourth port of the target entity to the third port of each of the third entities; and / or, The second simulation interface also displays a first connection relationship between the entity group and the entity, the first connection relationship is represented by a connection line, and the port of the entity group is represented by a ring mark; For any two fourth entities and fourth entity groups having a first connection relationship, the connection line for indicating the first connection relationship between the fourth entity group and the fourth entity is connected to the first point of the ring mark of the fourth entity group and is connected to the port of the fourth entity; Wherein, the orientation of the first point relative to the center of the annular mark of the fourth entity group is the same as the orientation of the fourth entity relative to the fourth entity group; and / or, The device also includes: a second determination module, configured to determine, in response to a parameter modification instruction inputted into the second simulation interface, a fifth entity group, a target parameter, and a target parameter value indicated by the parameter modification instruction, and determine a fifth entity corresponding to the fifth entity group; a parameter value modification module, configured to modify the parameter value of the target parameter of each of the fifth entities to the target parameter value; and / or, The displaying of the second simulation interface includes: For each generated entity group, in response to a first display instruction input for the generated entity group, counting horizontal positions of entities corresponding to the generated entity group to obtain a target horizontal position of the generated entity group; For each entity group that has been generated, display the entity group that has been generated at the target horizontal position and the preset vertical height on the second simulation interface; and / or, The device also includes: a position adjustment module, for determining, in response to an adjustment instruction input for the second simulation interface, a target entity group and a target vertical height indicated by the adjustment instruction, and adjusting the position of the target entity group to the target horizontal position and target vertical height of the second simulation interface; and / or, The second simulation interface also displays a second connection relationship between each generated entity group; the device also includes: A first display module, configured to, in response to a second display instruction input for the second simulation interface, determine a sixth entity group indicated by the second display instruction, and display the sixth entity group, a sixth entity corresponding to the sixth entity group, a seventh entity group, and a seventh entity corresponding to the seventh entity group in a first style, and display other entity groups and other entities in a second style; The seventh entity group is an entity group having a second connection relationship with the sixth entity group, and the first style is different from the second style; and / or, The second connection relationship is represented by a connection line, and the port of the entity group is represented by a ring mark; For any two entity groups having a second connection relationship, the connection line for indicating the second connection relationship between the two entity groups is connected to the second point of the annular mark of the eighth entity group and to the third point of the annular mark of the ninth entity group, wherein the eighth entity group is one of the two entity groups and the ninth entity group is the other of the two entity groups; The orientation of the second point relative to the center of the annular mark of the eighth entity group is the same as the orientation of the ninth entity group relative to the eighth entity group, and the orientation of the third point relative to the center of the annular mark of the ninth entity group is the same as the orientation of the eighth entity group relative to the ninth entity group; and / or, The device also includes: a second display module, configured to, in response to a third display instruction input for the second simulation interface, determine the tenth entity group indicated by the third display instruction, and display an eighth entity corresponding to the tenth entity group in a third style, and display entities other than the eighth entity in a fourth style; wherein the third style is different from the fourth style; and / or, The second simulation interface displays a third connection relationship between the entities, and the device further includes: The deletion module is used to respond to the deletion instruction input to the second simulation interface, determine the third connection relationship between the two entities indicated by the deletion instruction as the target connection relationship, and delete the target connection relationship.
13. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-10 when executing a program stored in a memory.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Logistics data simulation method and device, electronic equipment and storage medium
CN112529347A
Multifunctional robot teaching simulation workstation
CN114137854A