A pipeline simulation method, device and electronic equipment
By setting up simulated assembly line bodies, control points and assembly machines in a virtual scene and utilizing human-computer interaction technology, the problem of complex programming required for assembly line simulation is solved, and efficient assembly line simulation is achieved for non-professionals.
Patent Information
- Application Number
- CN202510279431.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-10
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2045-03-10
AI Technical Summary
In the existing technology, pipeline simulation requires complex logic programming, resulting in low simulation efficiency. It can only be completed by professional engineers and is difficult for non-professionals to operate.
Through human-computer interaction technology, simulated production line bodies, simulated control points and simulated assembly machines are set up in the virtual scene, and users can directly operate to realize production line simulation without the need for complex logic programming.
The difficulty of pipeline simulation is reduced, the efficiency of simulation is improved, and non-professionals can also perform pipeline simulation.
Smart Images

Figure CN119781415B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of pipeline technology, and in particular to a pipeline simulation method, device and electronic equipment. Background Art
[0002] An assembly line, also known as an assembly line or production line, is an industrial production method in which each production unit focuses on a specific task to improve efficiency and output. Depending on the conveyor type, assembly lines can be categorized as belt assembly lines, plate chain lines, double-speed chain lines, plug-in lines, mesh belt lines, suspension lines, and roller lines.
[0003] In order to ensure that the pipeline can operate normally after construction and to avoid various losses caused by design problems in the pipeline, it is usually possible to simulate the real pipeline in advance and establish a simulation pipeline. By running and debugging the simulation pipeline, reasonable design parameters of the pipeline can be obtained.
[0004] In related technologies, simulation software is often used to perform pipeline simulation. It generally uses complex logic programming to establish a simulation pipeline. Although it is flexible, it is technically difficult and requires professional engineers with a programming foundation to complete the simulation, which greatly reduces the efficiency of pipeline simulation. Summary of the Invention
[0005] The purpose of the embodiments of the present application is to provide a pipeline simulation method, device, and electronic device to reduce the difficulty of pipeline simulation and improve the efficiency of pipeline simulation. The specific technical solution is as follows:
[0006] In a first aspect, an embodiment of the present application provides a pipeline simulation method, the method comprising:
[0007] In response to a first configuration operation of a user on a preset pipeline body element, a simulated pipeline body for simulating a real pipeline is set in a preset virtual scene;
[0008] In response to the user's second configuration operation on the preset simulation control point element, each simulation control point is set on the simulation pipeline body; wherein the simulation control point includes: a main element and a generation component that are associated and set;
[0009] In response to the user's control operation on any generation component, a simulation assembly machine of the simulation control point to which the generation component belongs is set at a position outside the simulation assembly line body and on a specified side of the associated main element indicated by the generation component; wherein each simulation assembly machine is used to: simulate the assembly of the workpiece to be assembled when the workpiece to be assembled is simulated and transferred by the simulation assembly line body to the simulation control point to which the simulation assembly machine belongs.
[0010] In a second aspect, an embodiment of the present application provides a pipeline simulation device, the device comprising:
[0011] A line body setting module is used to set a simulated pipeline line body for simulating a real pipeline in a preset virtual scene in response to a first configuration operation of a user on a preset pipeline line body element;
[0012] A control point setting module is configured to set various simulation control points on the simulation pipeline body in response to the user's second configuration operation on the preset simulation control point element; wherein the simulation control point includes: a main element and a generation component that are associated and set;
[0013] An assembly machine setting module is used to set a simulation assembly machine of a simulation control point to which the generation component belongs, in response to the user's control operation on any generation component, at a position outside the simulation assembly line body and on a specified side of the associated main element indicated by the generation component; wherein each simulation assembly machine is used to simulate the assembly of the workpiece to be assembled when the workpiece to be assembled is simulated and transferred by the simulation assembly line body to the simulation control point to which the simulation assembly machine belongs.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0015] Memory for storing computer programs;
[0016] The processor is used to implement any pipeline simulation method provided in the first aspect when executing the program stored in the memory.
[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, any one of the pipeline simulation methods provided in the first aspect is implemented.
[0018] In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any one of the pipeline simulation methods provided in the first aspect above.
[0019] Beneficial effects of the embodiments of the present application:
[0020] As can be seen from the above, by applying the solution provided in the embodiment of the present application, the user sets up a simulated pipeline body for simulating a real pipeline in a preset virtual scene through a first configuration operation on a preset pipeline body element, and sets each simulation control point on the simulated simulated pipeline body through a second configuration operation on a preset simulation control point element. In this way, the user sets up a simulation assembly machine for the simulation control point to which the generation component belongs, at a position outside the simulation pipeline body and on a specified side of the associated main element indicated by the generation component, through a control operation on the generation component of any simulation control point. Thus, when the workpiece to be assembled is simulated and transferred to the simulation control point to each simulation assembly machine by the simulated pipeline body, the simulation assembly machine can simulate the assembly of the workpiece to be assembled.
[0021] Based on this, by applying the solution provided in the embodiment of the present application, when performing pipeline simulation, with the help of human-computer interaction technology, users can directly set up a simulated pipeline in a preset virtual scene to realize pipeline simulation by operating the pipeline line elements, simulation control point elements, and generation components of the simulated assembly machine, without the need for complex logic programming, thereby greatly reducing the difficulty of pipeline simulation and improving the efficiency of pipeline simulation. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other embodiments can also be obtained based on these drawings.
[0023] Figure 1 A flow chart of a pipeline simulation method provided in an embodiment of the present application;
[0024] Figure 2 A schematic diagram of a simulation control point provided in an embodiment of the present application;
[0025] Figure 3 A schematic diagram of simulation control points set on a pipeline body provided in an embodiment of the present application;
[0026] Figure 4 A schematic diagram of a simulated pipeline obtained by a pipeline simulation provided in an embodiment of the present application;
[0027] Figure 5 A schematic diagram of a flow chart of another pipeline simulation method provided in an embodiment of the present application;
[0028] Figure 6 A schematic diagram of a simulated assembly machine provided in an embodiment of the present application;
[0029] Figure 7 A schematic diagram of the modeling logic of a pipeline simulation method provided in an embodiment of the present application;
[0030] Figure 8 A schematic diagram of the execution logic of goods processing control on an assembly line provided in an embodiment of the present application;
[0031] Figure 9 A schematic diagram of the structure of a pipeline simulation device provided in an embodiment of the present application;
[0032] Figure 10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field based on this application are within the scope of protection of this application.
[0034] For ease of understanding, the following explains the professional terms involved in the embodiments of this application:
[0035] Assembly line: Assembly line, also known as assembly line, is an industrial production method in which each production unit focuses on processing only a certain part of the work to improve work efficiency and output.
[0036] According to the conveying form of the assembly line: the conveying form of the assembly line can be roughly divided into belt assembly line, plate chain line, double speed chain, plug-in line, mesh belt line, suspension line and roller assembly line and other forms of assembly lines.
[0037] The key components of the assembly line: the assembly line body, the assembly station (i.e. the simulation control point in the embodiment of the present application), and the assembly worker (i.e. the operator in the embodiment of the present application).
[0038] In related technologies, simulation software is often used to perform pipeline simulation. It generally uses complex logic programming to establish a simulation pipeline. Although it is flexible, it is technically difficult and requires professional engineers with a programming foundation to complete the simulation, which greatly reduces the efficiency of pipeline simulation.
[0039] In order to solve the above technical problems, an embodiment of the present application provides a pipeline simulation method.
[0040] Among them, this method can be applied to various application scenarios in which assembly lines are used to assemble workpieces. For example, robot production lines, food production lines, electronic product production lines, etc. In addition, the execution subject of this method can be various electronic devices, which are specifically used to set up simulation lines in response to user operations. In specific applications, the electronic device can be a server, a desktop computer, etc., and the electronic device can be a single electronic device or an electronic device cluster consisting of multiple electronic devices. Based on this, the embodiments of this application do not specifically limit the application scenarios and execution subjects of this method.
[0041] An embodiment of the present application provides a pipeline simulation method, which may include the following steps:
[0042] In response to a first configuration operation of a user on a preset pipeline body element, a simulated pipeline body for simulating a real pipeline is set in a preset virtual scene;
[0043] In response to the user's second configuration operation on the preset simulation control point element, each simulation control point is set on the simulation pipeline body; wherein the simulation control point includes: a main element and a generation component that are associated and set;
[0044] In response to the user's control operation on any generation component, a simulation assembly machine of the simulation control point to which the generation component belongs is set at a position outside the simulation assembly line body and on a specified side of the associated main element indicated by the generation component; wherein each simulation assembly machine is used to: simulate the assembly of the workpiece to be assembled when the workpiece to be assembled is simulated and transferred by the simulation assembly line body to the simulation control point to which the simulation assembly machine belongs.
[0045] As can be seen from the above, by applying the solution provided in the embodiment of the present application, the user sets up a simulated pipeline body for simulating a real pipeline in a preset virtual scene through a first configuration operation on a preset pipeline body element, and sets each simulation control point on the simulated simulated pipeline body through a second configuration operation on a preset simulation control point element. In this way, the user sets up a simulation assembly machine of the simulation control point to which the generation component belongs, at a position outside the simulated pipeline body and on a specified side of the associated main element indicated by the generation component, through a control operation on the generation component of any simulation control point. In this way, when the workpiece to be assembled is simulated and transferred to the simulation control point to each simulation assembly machine by the simulated pipeline body, the simulation assembly machine can simulate the assembly of the workpiece to be assembled.
[0046] Based on this, by applying the solution provided in the embodiment of the present application, when performing pipeline simulation, with the help of human-computer interaction technology, users can directly set up a simulated pipeline in a preset virtual scene to realize pipeline simulation by operating the pipeline line elements, simulation control point elements, and generation components of the simulated assembly machine, without the need for complex logic programming, thereby greatly reducing the difficulty of pipeline simulation and improving the efficiency of pipeline simulation.
[0047] Below, in conjunction with the accompanying drawings, a pipeline simulation method provided in an embodiment of the present application is described in detail.
[0048] Figure 1 This is a flow chart of a pipeline simulation method provided in an embodiment of the present application. Figure 1 As shown, the method may include the following steps S101-S103.
[0049] S101: In response to a first configuration operation of a user on a preset pipeline body element, a simulated pipeline body for simulating a real pipeline is set in a preset virtual scene.
[0050] In an embodiment of the present application, pipeline body elements of various types of pipelines can be pre-set, so that when performing pipeline simulation, users can choose to establish various types of simulation pipelines according to the needs of actual applications. Moreover, during multiple pipeline simulations, users can also switch the type of established simulation pipeline by switching the style of the pipeline body elements during each pipeline simulation according to the needs of actual applications.
[0051] For example, the assembly line body can be a three-dimensional solid model, and its line body styles can include an assembly line belt, an assembly line roller, and an assembly line roller.
[0052] Thus, when performing pipeline simulation, the user can select the required pipeline body element through the first configuration operation on the preset pipeline body element, and set the simulated pipeline body for simulating the real pipeline in the preset virtual scene. The above-mentioned virtual scene can be a three-dimensional scene.
[0053] Exemplarily, the first configuration operation may include a drag operation, i.e., after the user selects the desired pipeline line element, the user drags the selected pipeline line element to a pre-set virtual scene to complete the setting of the simulated pipeline line. Exemplarily, the first configuration operation may also include a click operation, wherein the simulated pipeline line is set by clicking the pipeline line element. Of course, the first configuration operation is not limited to drag operations and click operations. Any configuration operation that can be performed on a pipeline line element can be used as the first configuration operation.
[0054] Optionally, in a specific implementation, step S101, in response to a user's first configuration operation on a preset pipeline body element, setting a simulated pipeline body for simulating a real pipeline in a preset virtual scene may include the following steps:
[0055] Step A: In response to a first configuration operation of a user on a preset pipeline body element of a specified type, a simulated pipeline body for simulating a real pipeline is set in a preset virtual scene;
[0056] The specified types include at least: a conveyor belt line, a conveyor roller line, or a conveyor roller line.
[0057] In this specific implementation, a specified type of pipeline body element can be pre-set. Thus, the user can select a desired pipeline body element from the specified type according to their needs and, through a first configuration operation, place the selected pipeline body element in the virtual scene. It will be understood that there may be multiple types of pipeline line elements pre-set in the virtual scene, and the type for which the first configuration operation is performed may be referred to as the specified type.
[0058] For example, taking a conveyor belt line as an example, usually, the conveyor line body of a real conveyor belt line can include a straight line part and an arc part. Therefore, when setting the simulated conveyor line body, the user can select multiple conveyor line body elements separately and splice them through a first configuration operation, so that the electronic device responds to the first configuration operation and is set to obtain a complete conveyor line body including a straight line part and an arc part.
[0059] In this specific implementation, by pre-setting the specified type of pipeline body elements, when setting the simulation pipeline body, the simulation pipeline body can be directly set in the virtual scene through the first configuration operation to improve the setting efficiency of the simulation pipeline body.
[0060] S102: In response to a second configuration operation of the user on a preset simulation control point element, various simulation control points are set on the simulation pipeline body.
[0061] Among them, the simulation control points include: the main elements of the associated settings and the generated components.
[0062] It is understandable that during the operation of a real assembly line, according to the assembly process of the workpieces transmitted by the real assembly line, assembly machines will be set up on the side of the real assembly line, and workers, robotic arms and other execution elements (also called actuators) will be set up at each assembly machine to perform assembly operations on the workpieces transmitted by the real assembly line and flowing through the assembly machine. Among them, the assembly positions where the assembly machines are set up to perform assembly operations on the workpieces can be called control points of the real assembly line. Therefore, when performing assembly line simulation, simulation control points must also be set up on the established simulation assembly line. Among them, the above-mentioned simulation control points can include: associated main elements and generation components. The main element is an interface element used to represent the control point, and the generation component is a component used to generate the assembly machine.
[0063] In an embodiment of the present application, simulation control point elements may be pre-set for selection by relevant personnel, that is, the user issues a second configuration operation.
[0064] For example, Figure 2 As shown in Figure 1, it is a schematic diagram of a simulation control point. Figure 2 The pipeline control point in the figure is the simulation control point, and the "field-shaped" area is the control point body, that is, the main element associated with the simulation control point in the embodiment of the present application. The triangles located above and below the "field-shaped" area are respectively the assembly machine generation control button 1 and the assembly machine generation control button 2, that is, the generation components associated with the simulation control point in the embodiment of the present application. The above-mentioned assembly machine generation control button 1 and assembly machine generation control button 2 can also be located on the left and right sides of the "field-shaped" area, respectively, and this embodiment of the present application does not make specific limitations on this.
[0065] In this way, after setting up a simulated assembly line body for simulating a real assembly line in a pre-set virtual scene, the user can determine the various assembly positions on the assembly line body based on the assembly process of the real assembly line. Thus, the user can select the simulation control point element and set the selected simulation control point element at the above-mentioned assembly positions to obtain the various simulation control points on the above-mentioned assembly line body.
[0066] Exemplarily, the second configuration operation can be a drag operation. Thus, when the user drags the selected simulation control point element, the simulation control point element can automatically adsorb onto the assembly line body when it approaches the assembly line body. Of course, the second configuration operation can also be other operations, such as selecting a simulation control point element and configuring its distribution method or position on the simulation assembly line. Any configuration operation that can implement a simulation control point element is applicable to this application.
[0067] For example, Figure 3 As shown in the figure, the user drags the processing station control point element (i.e. simulation control point element) to Figure 3 On the pipeline body in the virtual scene (i.e. the simulated pipeline body set in the virtual scene), complete the setting of a simulation control point. The set simulation control point is Figure 3 Control points of the processing station are shown.
[0068] It is understood that a real assembly line can typically include multiple control points. In this specific implementation, multiple simulation control points can be set by dragging the simulation control point elements multiple times to different positions on the assembly line. Furthermore, during the process of setting the multiple simulation control points, the order of the assembly operations in the assembly process of the established simulation assembly line can be adjusted by setting the control parameters of the different control points.
[0069] Based on this, the electronic device, as the execution subject, can respond to the user's second configuration operation on the preset simulation control point element and set each simulation control point on the simulated assembly line at each assembly position determined based on the assembly process of the real assembly line. This completes the setting of each simulation control point on the simulated assembly line.
[0070] S103: In response to a user's control operation on any generation component, a simulation assembly machine of the simulation control point to which the generation component belongs is set at a position outside the simulation pipeline body and on a designated side of the associated main element indicated by the generation component.
[0071] Each simulation assembly machine is used to simulate the assembly of the workpiece to be assembled when the workpiece to be assembled is simulated and transferred to the simulation control point to which the simulation assembly machine belongs by the simulation production line.
[0072] As mentioned above, for each simulation control point, the user can determine to set up a simulation assembly machine on one side or both sides of the simulation control point according to the needs of the actual application. For the sake of convenience, the side of each simulation control point where the simulation assembly machine needs to be set up is referred to as the designated side. In this way, for each simulation control point, the user can set up the simulation assembly machine of the simulation control point to which the generation component belongs, at a position outside the simulation assembly line body and on the designated side of the associated main element indicated by the generation component, by controlling the operation of any generation component for the simulation control point. In this way, when the workpiece to be assembled is simulated and transferred by the simulation assembly line to the simulation control point to which each simulation assembly machine belongs, the simulation assembly machine can simulate the assembly of the workpiece to be assembled.
[0073] Among them, the above-mentioned user control operation on any generation component can be a click operation triggered by the user, etc., and this embodiment of the application does not make any specific limitation on this.
[0074] For example, by clicking the assembly machine generation control button, the user triggers the control operation of any generation component, thereby setting the simulation assembly machine of the simulation control point to which the generation component belongs at a position outside the simulation pipeline body and on the specified side of the associated main element indicated by the generation component.
[0075] For example, Figure 3 As shown, the user clicks the mouse Figure 3 The assembly machine generation control button 1 is located above the processing station control point (i.e., simulation control point) in the virtual scene. An assembly machine (i.e., simulated assembly machine) is automatically generated outside the assembly line body (i.e., the simulated assembly line body set in the virtual scene) and above the processing station control point (i.e., simulation control point). Click Figure 3 The assembly machine generation control button 2 is located below the processing station control point (i.e., the simulation control point) in the virtual scene. An assembly machine (i.e., a simulated assembly machine) is automatically generated outside the assembly line body (i.e., the simulated assembly line body set in the virtual scene) and below the processing station control point (i.e., the simulation control point). This completes the setup of a simulation control point. The assembly machine generation control button 1 and assembly machine generation control button 2 are the generation components associated with the simulation control point in the embodiments of this application.
[0076] Furthermore, since a plurality of simulation control points are provided on the simulation assembly line body set in the above virtual scene, the user can trigger the control operation of the generation component for each simulation control point to generate a simulation assembly machine for the simulation control point.
[0077] For example, Figure 4As shown, a plurality of simulation control points are set on the simulation assembly line body set in the above virtual scene, and a simulation assembly machine is generated for each simulation control point.
[0078] Based on this, the electronic device serving as the execution subject can respond to the user's control operation on any generation component and set a simulation assembly machine for the simulation control point to which the generation component belongs at a position outside the simulation pipeline body and on the specified side of the associated subject element indicated by the generation component. At this point, the setting of the simulation assembly machine for each simulation control point on the above-mentioned simulation pipeline body is completed.
[0079] As can be seen from the above, by applying the solution provided in the embodiment of the present application, the user sets up a simulated pipeline body for simulating a real pipeline in a preset virtual scene through a first configuration operation on a preset pipeline body element, and sets each simulation control point on the simulated simulated pipeline body through a second configuration operation on a preset simulation control point element. In this way, the user sets up a simulation assembly machine of the simulation control point to which the generation component belongs, at a position outside the simulated pipeline body and on a specified side of the associated main element indicated by the generation component, through a control operation on the generation component of any simulation control point. In this way, when the workpiece to be assembled is simulated and transferred to the simulation control point to each simulation assembly machine by the simulated pipeline body, the simulation assembly machine can simulate the assembly of the workpiece to be assembled.
[0080] Based on this, by applying the solution provided in the embodiment of the present application, when performing pipeline simulation, with the help of human-computer interaction technology, users can directly set up a simulated pipeline in a preset virtual scene to realize pipeline simulation by operating the pipeline line elements, simulation control point elements, and generation components of the simulated assembly machine, without the need for complex logic programming, thereby greatly reducing the difficulty of pipeline simulation and improving the efficiency of pipeline simulation.
[0081] Optionally, in a specific implementation, such as Figure 5 As shown, a pipeline simulation method provided by an embodiment of the present application may further include the following steps S104-S106.
[0082] S104: Controlling the simulated assembly line so that the simulated assembly line simulates the transmission of the workpiece to be assembled at a preset running speed.
[0083] When controlling the above-mentioned simulated assembly line to simulate the operation of a real assembly line, the electronic device as the execution subject can control the above-mentioned simulated assembly line body to simulate the transmission of the workpieces to be assembled according to the preset operation speed, thereby simulating the application scenario of the real assembly line, in which the assembly line body of the real assembly line transmits the workpieces to be assembled, and the workpieces to be assembled move forward with the assembly line body. It should be emphasized that the above-mentioned preset operation speed can be the default initial operation speed set by the electronic device for the simulated assembly line. Of course, it can also be the operation speed set by the user for the simulated assembly line, which is reasonable.
[0084] S105: When the workpiece to be assembled moves to each simulation control point where a simulation assembly machine is set, the simulation assembly machine at the simulation control point is controlled so that the simulation assembly machine at the simulation control point simulates and performs a preset assembly operation on the workpiece to be assembled according to a preset processing speed and assembly materials.
[0085] In the process of controlling the above-mentioned simulated assembly line body to simulate the transmission of the workpiece to be assembled according to the running speed, when the workpiece to be assembled on the simulated assembly line body moves to each simulation control point where a simulated assembly machine is set, the electronic device serving as the execution body controls the simulated assembly machine at the simulation control point so that the simulated assembly machine at the simulation control point simulates the preset assembly operation on the workpiece to be assembled according to the preset processing speed and assembly materials.
[0086] For example, the preset processing speed and assembly materials can be default settings for the electronic device or user-defined. Furthermore, different types of workpieces to be assembled may require different assembly materials, and the same workpiece to be assembled may also require different assembly materials for different control points. For example, if the workpiece to be assembled is a mobile phone body, the required assembly materials may include the battery, keypad, or back cover. If the workpiece to be assembled is a vehicle frame, the required assembly materials may include operating levers, doors, windows, tires, and the like.
[0087] S106: After each simulated assembly operation is performed on each simulated assembly machine, the shape of the workpiece to be assembled is changed to the shape after the assembly operation is completed, and the available quantity of the assembly material in the current material data is deducted according to the quantity of the assembly material used.
[0088] For each simulation control point, when the simulation assembly machine that controls the simulation control point simulates the assembly operation on the workpiece to be assembled according to the processing speed and assembly materials, the above-mentioned assembly materials stored in the simulation assembly machine of the simulation control point will be consumed. As a result, the available quantity of the above-mentioned assembly materials in the material data of the simulation assembly machine will be reduced. Therefore, after each simulation assembly machine simulates the execution of the assembly operation each time, the electronic device that serves as the execution subject will change the shape of the workpiece to be assembled to the shape after the assembly operation is completed, and deduct the available quantity of the assembly materials in the current material data according to the quantity of assembly materials used in the assembly operation.
[0089] In this specific implementation, after controlling the simulated assembly line to simulate the transmission of the workpiece to be assembled at a preset operating speed, each time the workpiece to be assembled passes through a simulation control point, the simulated assembly machine at the simulation control point will simulate the preset assembly operation on the workpiece to be assembled according to the preset processing speed and assembly materials. In this way, as the number of simulation control points passed by the workpiece to be assembled increases, that is, as the workpiece to be assembled moves along the conveyor line of the simulated assembly line, the workpiece to be assembled will be closer to the target shape. For example, if the workpiece to be assembled is a vehicle frame, as the number of simulation control points passed by the vehicle frame increases, the shape of the workpiece to be assembled will be closer to the shape of a complete vehicle. Accordingly, after each simulated assembly machine simulates the execution of an assembly operation, the available quantity of assembly materials in the current material data can be deducted according to the quantity of assembly materials used.
[0090] Optionally, in a specific implementation, each simulated assembly machine includes: a workbench and an execution element, wherein the execution element includes at least: a robotic arm, or an operator;
[0091] In the above step S105, controlling the simulation assembly machine of the simulation control point so that the simulation assembly machine of the simulation control point simulates and performs the preset assembly operation on the workpiece to be assembled according to the preset processing speed and assembly materials may include the following step B:
[0092] Step B: Control the execution element of the simulated assembly machine of the simulation control point so that the execution element takes the preset assembly material from the workbench of the simulated assembly machine of the simulation control point and simulates the preset assembly operation on the assembly workpiece according to the preset processing speed.
[0093] In a specific application, the simulated assembly machine includes a workbench and an execution element, wherein the workbench is used to store assembly materials, and the execution element is used to perform assembly operations. The execution element at least includes a robotic arm or an operator.
[0094] For example, Figure 6, which is a schematic diagram of a simulated assembly machine, wherein the simulated assembly machine includes an operator 601 as an execution element and a workbench 602 .
[0095] When setting up the simulation assembly machine, the execution elements of the simulation assembly machine can be set up simultaneously with the simulation assembly machine, that is, in response to the user's control operation on any generated component, the workbench and the execution elements are set up simultaneously.
[0096] In some cases, different assembly machines on the same production line can have different execution elements. Therefore, when setting up a simulated assembly machine, the user can simultaneously select the execution element for the set simulated assembly machine. In this case, the assembly machine's execution element is not set simultaneously with the simulated assembly machine. Instead, it is generated in response to a user control operation on any generated component, after generating an icon for the simulated assembly machine. Then, in response to another user control operation, such as a click operation, the execution element for the simulated assembly machine is generated.
[0097] In this specific implementation method, the execution element of the simulated assembly machine of the simulation control point is controlled so that the execution element takes the preset assembly material from the workbench of the simulated assembly machine of the simulation control point, and then simulates the preset assembly operation on the assembly workpiece according to the preset processing speed.
[0098] It is understandable that in different application scenarios, the workpieces to be assembled and the assembly materials stored on the workbench are different. For example, in the application scenario of mobile phone manufacturing, the workpiece to be assembled may be the mobile phone body, and the assembly materials stored on the workbench may be the mobile phone battery, mobile phone buttons, mobile phone back cover, etc.; in the application scenario of automobile manufacturing, the workpiece to be assembled may be the vehicle frame, and the assembly materials stored on the workbench may be operating levers, doors, windows, tires, etc. This is all reasonable.
[0099] In this specific implementation, when the workpiece to be assembled passes through each simulation control point, the required assembly materials are obtained from the workbench of the simulated assembly machine at the simulation control point by controlling the robotic arm, or the operator, and the preset assembly operation is simulated and performed on the workpiece to be assembled according to the preset processing speed. In this way, as the number of simulation control points passed by the workpiece to be assembled increases, that is, as the workpiece to be assembled moves along the conveyor line of the simulated assembly line, the workpiece to be assembled gets closer to the target shape. For example, if the workpiece to be assembled is a vehicle frame, as the number of simulation control points passed by the vehicle frame increases, the shape of the workpiece to be assembled gets closer to the shape of the complete vehicle. Moreover, during the operation of the entire simulated assembly line, by combining different types of execution elements, it is possible to use the robotic arm to perform the assembly operation when human labor is unable to do so; and when the robotic arm cannot complete the assembly operation, the operator can complete it manually to improve the operation efficiency of the entire simulated assembly line. In addition, the combination of different types of execution elements can more realistically simulate the operation state of the real assembly line.
[0100] Optionally, in a specific implementation, before controlling the simulation pipeline body, the pipeline simulation method provided in the embodiment of the present application may further include the following step C:
[0101] Step C: Set the line parameters of the simulated assembly line, the control parameters of each simulated control point, and the machine parameters and material data of each simulated assembly machine.
[0102] Among them, the line parameters include at least: the running speed; the control parameters of each simulation control point include at least: the assembly operations performed by the simulation assembly machine of the simulation control point for the simulated assembly of the workpiece to be assembled and the required assembly materials; the machine parameters of each simulation assembly machine include at least: the processing speed for the simulated assembly of the workpiece to be assembled, and the material data of each simulation assembly machine records the available quantity of the currently stored assembly materials.
[0103] In this specific implementation, considering that a real pipeline usually has a certain movement speed, before controlling the simulated pipeline body, a running speed can be set for the set simulated pipeline body as a body parameter of the simulated pipeline body.
[0104] Optionally, a real assembly line body usually also has a certain size, so the above-mentioned line body parameters may also include width and length.
[0105] For example, the user can click on a selected pipeline element and, in the parameter setting page displayed in response to the click operation, set the line parameters of the selected pipeline element by clicking, inputting, etc. Furthermore, the user can drag the selected pipeline element with the completed line parameter settings into a preset virtual scene.
[0106] For another example, the user clicks on a pipeline element in the set simulation pipeline body, and in the parameter setting page displayed in response to the above-mentioned click operation, sets the line parameters of the selected pipeline element by clicking, entering, etc., to complete the setting of the line parameters.
[0107] Taking into account that on a real assembly line, different assembly machines may have different assembly operations and required assembly materials for the simulated assembly of the workpiece to be assembled. Therefore, before controlling the simulated assembly line, the simulated assembly machine of each simulation control point can be directly set with the assembly operations and required assembly materials for the simulated assembly of the workpiece to be assembled as the control parameters of the simulation control point.
[0108] For example, when setting each simulation control point, the user can click on the selected simulation control point element and, in the parameter setting page displayed in response to the click operation, set the control parameters of the currently set simulation control point by clicking, inputting, etc. The user can then drag the simulation control point with the control parameters set to the assembly position of the simulated assembly line set in the virtual scene.
[0109] For another example, the user clicks on a pipeline element in the set simulation pipeline body, and in the parameter setting page displayed in response to the above click operation, sets the control parameters of the currently set simulation control point by clicking, entering, etc.
[0110] Optionally, the control parameters of each simulation control point may also include: the assembly time for assembling the workpiece to be assembled transmitted by the simulated assembly line body at the simulation control point. The assembly time can be used to simulate the length of time that the workpiece to be assembled transmitted by the assembly line body stays at the simulation control point due to assembly when it reaches the simulation control point, that is, the total time required for the workpiece to be assembled to be taken to the simulation assembly machine at the simulation control point, assembled on the simulation assembly machine, and returned to the assembly line body after assembly. It can be set according to the application requirements in the actual scenario. Of course, in some cases, due to reasons such as process adjustments of the assembly line body, the assembly time can also be 0.
[0111] In addition, the control parameters of each simulation control point mentioned above may also include other contents such as assembly process, which is not specifically limited in the embodiment of the present application.
[0112] Taking into account that on a real assembly line, each simulated assembly machine has a certain processing speed when simulating the assembly of the workpiece to be assembled, and consumes a certain amount of assembly materials, therefore, when setting up each simulated assembly machine, the above-mentioned processing speed can be directly set as the machine parameter of the simulated assembly machine, and the available quantity of the currently stored assembly materials can be recorded.
[0113] For example, when the user sets up each simulated assembly machine, the parameter setting interface can be displayed at the same time as the icon of the simulated assembly machine is generated through control operations on any generated component. Therefore, the user can set the machine parameters of the currently set simulated assembly machine by clicking, entering, etc. in the above parameter setting page. Then, when the above machine parameter settings are completed, the setting of the simulated assembly machine is completed.
[0114] As mentioned above, the assembly line has a running speed. When the workpiece to be assembled is placed on the assembly line, the workpiece to be assembled will move forward with the assembly line. When the workpiece to be assembled passes the assembly line control point, the assembly machine at the assembly line control point will assemble the workpiece to be assembled and put the workpiece to be assembled back onto the assembly line.
[0115] Typically, in practical applications, the assembly materials stored at each assembly machine are transported by mobile robots at a certain frequency, and the quantity of assembly materials transported each time is also fixed. Therefore, in some cases, due to factors such as untimely delivery by the mobile robots or excessive processing speeds of the assembly machine's execution elements, the assembly machine may run out of assembly materials, causing the assembly line to stop operating. However, the above-mentioned related art assembly line simulation methods lack simulation of whether the assembly machines have sufficient materials.
[0116] Based on this, optionally, in a specific implementation, before controlling the simulation pipeline body, a pipeline simulation method provided by an embodiment of the present application may further include the following steps D1-D4:
[0117] Step D1: Controlling the virtual mobile robot in the virtual scene so that the virtual mobile robot simulates transporting assembly materials to each simulated assembly machine according to a preset feeding frequency and feeding quantity;
[0118] Step D2: After each simulated delivery of assembly materials by the virtual mobile robot, the current material data is updated according to the delivery quantity;
[0119] Step D3: For each simulated assembly machine, based on the material data after quantity deduction, determine whether the assembly materials stored in the simulated assembly machine are sufficient; if not, execute step D4;
[0120] Step D4: Control the simulated assembly line and the virtual mobile robot to stop running, and perform the preset material shortage processing operation.
[0121] In this specific implementation, after obtaining the above-mentioned simulated assembly line, the electronic device can control the simulated assembly line to simulate the operation of a real assembly line. Considering that in the application scenario of the real assembly line, the assembly materials stored in each assembly machine are usually transported by a mobile robot according to a certain delivery frequency, and the amount of assembly materials transported each time is also certain, therefore, in the virtual scene of the above-mentioned simulated assembly line, a virtual mobile robot for transporting assembly materials to each simulated assembly machine can be set, and the feeding frequency and feeding quantity of the virtual mobile robot can be set. Among them, the above-mentioned feeding frequency refers to: the number of times the virtual mobile robot transports assembly materials to each simulated assembly machine per unit time, that is, it can reflect how often the virtual mobile robot transports assembly materials to each simulated assembly machine, and the above-mentioned feeding quantity refers to: the amount of assembly materials transported by the virtual mobile robot to each simulated assembly machine each time.
[0122] In this way, the electronic device, acting as the executing entity, controls the virtual mobile robot in the virtual scene, enabling it to deliver assembly materials to each simulated assembly machine according to a preset delivery frequency and quantity. With each delivery of assembly materials by the virtual mobile robot, the amount of available materials stored at each simulated assembly machine changes. Therefore, the electronic device can update the current material data based on the delivered quantity, simulating the application scenario of a real assembly line, where the mobile robot delivers assembly materials to each controlled assembly machine on the real assembly line.
[0123] Afterward, for each simulated assembly machine, as it simulates assembly operations on the workpieces, based on the processing speed and assembly materials, the materials stored on that simulated assembly machine will be consumed, reducing the available quantity of assembly materials in the material data for that simulated assembly machine. Therefore, for each simulated assembly machine, the availability of assembly materials stored on that simulated assembly machine is determined based on the material data after the quantity deduction.
[0124] Among them, if the judgment result is insufficient, it can be explained that in the above-mentioned simulated assembly line, the available quantity of assembly materials stored in at least one simulated assembly machine is insufficient, and in the real assembly line, when there is an assembly machine with insufficient available quantity of assembly materials, the real assembly line will stop. Therefore, when the above-mentioned judgment result is insufficient, the electronic device as the execution subject can control the simulated assembly line body and the virtual mobile robot to stop running, and perform the predetermined material shortage processing operation.
[0125] In this specific implementation, a virtual mobile robot is used in conjunction with a simulated assembly line to assemble the workpieces to be assembled, so as to improve the processing efficiency of the assembly line on the workpieces.
[0126] Optionally, in a specific implementation, the above-mentioned execution of the preset material shortage processing operation may include the following step E:
[0127] Step E: outputting a material shortage alarm; and / or, updating at least one of the operating speed, processing speed, feeding frequency, feeding quantity and control parameters of each simulation control point, and returning to the step of controlling the simulation assembly line body.
[0128] In this specific implementation, when the above judgment result is insufficient, considering that in actual scenarios, the real assembly line will stop, therefore, in order to reduce the problem of assembly line stopping, the electronic device as the execution body can control the simulated assembly line body and the virtual mobile robot to stop running, and output a material shortage alarm to remind the staff.
[0129] Taking into account the situation that the available quantity of assembly materials stored in the simulated assembly machines is insufficient, it may be caused by the mismatch between the running speed of the simulated assembly line, the processing speed of each simulated assembly machine, the feeding frequency of the virtual mobile robot, the feeding quantity of the virtual mobile robot, and the control parameters of each simulation control point set during the simulation operation of the above-mentioned simulation assembly line. That is, inappropriate data may exist in the above-mentioned data. Therefore, when the above-mentioned judgment result is insufficient, it is also possible to update the various data in the operation process of the above-mentioned simulation assembly line by adjusting the above-mentioned running speed, processing speed, feeding frequency, feeding quantity, and at least one of the control parameters of each simulation control point, and perform the simulation operation of the above-mentioned simulation assembly line again according to the updated data, in the hope of finding the most suitable data.
[0130] Among them, since the control parameters of each simulation control point include at least: the assembly operations performed by the simulation assembly machine of the simulation control point to simulate the assembly of the workpiece to be assembled and the required assembly materials, therefore, adjusting the control parameters of each simulation control point can be understood as adjusting the process of each simulation control point of the above-mentioned simulation assembly line in the assembly process of the created workpiece to be assembled.
[0131] Optionally, when the above judgment result is insufficient, a material shortage alarm is output. In this way, after receiving the alarm, the staff adjusts and updates the operating speed, processing speed, feeding frequency, feeding quantity and at least one of the control parameters of each simulation control point, and performs the simulation operation of the above simulation pipeline again according to the updated data.
[0132] Optionally, in a specific implementation, the pipeline simulation method provided in the embodiment of the present application may further include the following step F.
[0133] Step F: If the assembly materials stored in each simulated assembly machine are sufficient, then continue to control the operation of the simulated assembly line and the virtual mobile robot.
[0134] In this specific implementation, for each simulated assembly machine, if the result of judging whether the assembly materials stored in the simulated assembly machine are sufficient based on the material data after the quantity deduction is sufficient, it means that the above-mentioned simulated assembly line currently does not have a material shortage. Then, the electronic device serving as the execution subject can continue to control the operation of the simulated assembly line body and the virtual mobile robot, that is, continue to loop the above steps S104-S106 until it is determined that there is a simulated assembly machine with insufficient assembly materials, or until the user stops using the above-mentioned simulated assembly line to simulate the operation of the real assembly line.
[0135] In this specific implementation, the above-mentioned simulation pipeline can be used to simulate the operation of a real pipeline, and in accordance with the application scenario of the real pipeline, a virtual mobile robot can be controlled to transport assembly materials to each simulated assembly machine of the simulation pipeline. Therefore, whether there is a material shortage alarm during the above-mentioned simulation process can be used to determine whether the various parameters of the currently established simulation pipeline are appropriate, which makes up for the lack of simulation of whether the materials of the assembly machine are sufficient in the existing technology. Furthermore, it is convenient for users to adjust the various parameters of the simulation pipeline to obtain more appropriate parameters for creating a real pipeline, so as to avoid various losses caused by the inability of the real pipeline to operate normally after it is established due to design problems in the pipeline.
[0136] The following is an example of a pipeline simulation method provided in an embodiment of the present application, with reference to specific embodiments.
[0137] After the settings of the simulated assembly line body, the simulation control points on the assembly line body, and the simulation assembly machines at the simulation control points are completed in the preset virtual scene, the simulation of the assembly line can be completed to obtain the simulated assembly line. Figure 4 shown.
[0138] That is, in the embodiment of the present application, the simulation of the assembly line mainly includes: the assembly line body, the assembly line control points (ie, the simulation control points), and the setting of the assembly machine (ie, the simulation assembly machine) generated by the assembly line control points.
[0139] For example, Figure 7 As shown, it is the modeling logic of the simulation of the pipeline, and the modeling logic may include the following steps S701-S705.
[0140] S701: Inserting a pipeline entity into the three-dimensional scene.
[0141] That is, the preset virtual scene is a three-dimensional scene. In response to the user's dragging operation (first configuration operation) on a specified type of pipeline line element, a pipeline line body (i.e., a pipeline entity) for simulating a real pipeline is set in the above three-dimensional scene.
[0142] S702: Set the length, width and running speed of the assembly line.
[0143] That is, after setting up the above-mentioned assembly line body (i.e., assembly line entity), you can then set the length, width, and running speed of the assembly line body.
[0144] S703: Place pipeline control points on the pipeline.
[0145] That is, in response to the user's dragging operation (second configuration operation) on the preset simulation control point element, each simulation control point (i.e., pipeline control point) is set on the pipeline body at each assembly position determined based on the assembly process of the real pipeline.
[0146] S704: Automatically generate assembly machines on both sides of the assembly line through assembly line control points.
[0147] That is, after setting each simulation control point (i.e., pipeline control point), in response to the user's control operation on any generation component, a simulation assembly machine of the simulation control point (i.e., assembly machines on both sides of the pipeline) is set at a position outside the simulation pipeline body and on the specified side of the associated main element indicated by the generation component, and the machine parameters and material data of the simulation assembly machine are set.
[0148] S705: Configure the assembly time, processing operations, and material requirements at the assembly line control points.
[0149] That is, after setting each simulation control point (i.e., assembly line control point), you can continue to set the assembly time, processing operations (i.e., the assembly operations required to assemble the processed parts transported by the assembly line at this control point), and material requirements (i.e., the assembly materials required to assemble the processed parts transported by the assembly line at this control point) of each simulation control point as control parameters of the simulation control point.
[0150] In this way, after the physical object (the workpiece to be assembled) enters the assembly line body, it will flow forward with the assembly line body. When the physical object passes through the assembly line control point, it will stop for assembly and perform processing transformation at the assembly line control point. For example, Figure 8 This is a schematic diagram of the control execution logic for goods processing on an assembly line provided in an embodiment of the present application. The goods on the assembly line and the workpieces are the workpieces to be assembled in this embodiment of the present application; the control points and assembly line control points are the simulation control points in this embodiment of the present application.
[0151] S801: When the workpiece reaches the control point;
[0152] S802: Execute assembly operation;
[0153] S803: The workpiece is updated to the post-processing state;
[0154] S804: The reserve materials of the assembly machine are deducted according to the assembly demand, and step S805 is executed;
[0155] S805: Determine whether the material is sufficient; if so, execute step S807; if not, execute step S806;
[0156] S806: The assembly line stops and a material shortage alarm is prompted;
[0157] S807: The workpiece continues to move forward along the conveyor line of the assembly line and returns to step S801.
[0158] In this specific embodiment, a simulation pipeline is used to simulate the operation of a real pipeline, and the application scenario of the real pipeline is imitated. When the workpiece arrives at the control point, the assembly machine at the control point performs the assembly operation and updates the workpiece to the processed form. At the same time, in the process of transporting assembly materials to each simulated assembly machine of the simulation pipeline, the materials reserved by the assembly machine are deducted according to the quantity of assembly materials required for the assembly operation. Afterwards, it is judged whether the materials are sufficient to determine whether there is a material shortage alarm during the simulation process. If so, the pipeline is controlled to stop and a material shortage alarm is prompted. If not, the workpiece can continue to move forward along the conveyor line of the pipeline body and return to the above step S801, and the above steps S801-S807 are executed for the next workpiece arriving at the control point.
[0159] This approach, by determining whether materials are sufficient and whether there are material shortage warnings during the simulation, can determine whether the parameters of the currently established simulated pipeline are appropriate. This addresses the existing lack of simulation to determine whether the assembly machine has sufficient materials. Furthermore, it allows users to easily adjust the parameters of the simulated pipeline to obtain more appropriate parameters for creating a real pipeline, thus avoiding various losses caused by the actual pipeline not functioning properly due to design issues after it is established.
[0160] Corresponding to the pipeline simulation method provided in the above-mentioned embodiment of the present application, the embodiment of the present application also provides a pipeline simulation device.
[0161] Figure 9 A schematic diagram of the structure of a pipeline simulation device provided in an embodiment of the present application is shown in FIG. Figure 9 As shown, the device may include the following modules:
[0162] The line body setting module 910 is used to set a simulated pipeline line body for simulating a real pipeline in a preset virtual scene in response to a first configuration operation of a user on a preset pipeline line body element;
[0163] The control point setting module 920 is configured to set various simulation control points on the simulation pipeline body in response to the user's second configuration operation on the preset simulation control point element; wherein the simulation control point includes: an associated main element and a generated component;
[0164] The assembly machine setting module 930 is used to set a simulation assembly machine of the simulation control point to which the generation component belongs, in response to the user's control operation on any generation component, at a position outside the simulation assembly line body and on a specified side of the associated main element indicated by the generation component; wherein each simulation assembly machine is used to: simulate the assembly of the workpiece to be assembled when the workpiece to be assembled is simulated and transferred by the simulation assembly line body to the simulation control point to which the simulation assembly machine belongs.
[0165] As can be seen from the above, by applying the solution provided in the embodiment of the present application, the user sets up a simulated pipeline body for simulating a real pipeline in a preset virtual scene through a first configuration operation on a preset pipeline body element, and sets each simulation control point on the simulated simulated pipeline body through a second configuration operation on a preset simulation control point element. In this way, the user sets up a simulation assembly machine of the simulation control point to which the generation component belongs, at a position outside the simulated pipeline body and on a specified side of the associated main element indicated by the generation component, through a control operation on the generation component of any simulation control point. In this way, when the workpiece to be assembled is simulated and transferred to the simulation control point to each simulation assembly machine by the simulated pipeline body, the simulation assembly machine can simulate the assembly of the workpiece to be assembled.
[0166] Based on this, by applying the solution provided in the embodiment of the present application, when performing pipeline simulation, with the help of human-computer interaction technology, users can directly set up a simulated pipeline in a preset virtual scene to realize pipeline simulation by operating the pipeline line elements, simulation control point elements, and generation components of the simulated assembly machine, without the need for complex logic programming, thereby greatly reducing the difficulty of pipeline simulation and improving the efficiency of pipeline simulation.
[0167] Optionally, in a specific implementation, the device further includes:
[0168] A control module, configured to control the simulated assembly line so that the simulated assembly line simulates the transmission of the workpiece to be assembled at a preset operating speed;
[0169] an assembly simulation module, configured to control the simulation assembly machine at each simulation control point provided with a simulation assembly machine when the workpiece to be assembled moves to the point where the simulation assembly machine is provided, so that the simulation assembly machine at the simulation control point simulates and performs a preset assembly operation on the workpiece to be assembled according to a preset processing speed and assembly material;
[0170] The material judgment module is used to change the shape of the workpiece to be assembled to the shape after the assembly operation is completed after each simulated assembly machine simulates the execution of the assembly operation, and deduct the available quantity of the assembly material in the current material data according to the quantity of the assembly material used.
[0171] Optionally, in a specific implementation, the device further includes:
[0172] a setting module, configured to set the line parameters of the simulated assembly line, the control parameters of each simulation control point, and the machine parameters and material data of each simulated assembly machine before controlling the simulated assembly line;
[0173] Among them, the line parameters include at least: the running speed; the control parameters of each simulation control point include at least: the assembly operation performed by the simulation assembly machine of the simulation control point to simulate the assembly of the workpiece to be assembled and the required assembly materials; the machine parameters of each simulation assembly machine include at least: the processing speed for the simulated assembly of the workpiece to be assembled, and the material data of each simulation assembly machine records the available quantity of the currently stored assembly materials.
[0174] Optionally, in a specific implementation, the device further includes:
[0175] a robot control module, configured to control a virtual mobile robot in the virtual scene so that the virtual mobile robot simulates transporting the assembly materials for each simulated assembly machine according to a preset feeding frequency and feeding quantity;
[0176] A data updating module, configured to update the current material data according to the delivery quantity after each simulation of the virtual mobile robot delivering the assembly material;
[0177] a material determination module, configured to determine, for each simulated assembly machine, based on the material data after quantity deduction, whether the assembly materials stored in the simulated assembly machine are sufficient; if not, triggering the operation execution module;
[0178] The operation execution module is used to control the simulated assembly line body and the virtual mobile robot to stop running and execute a preset material shortage processing operation.
[0179] Optionally, in a specific implementation, the operation execution module is specifically configured to:
[0180] Outputting a material shortage alarm; and / or updating at least one of the operating speed, the processing speed, the feeding frequency, the feeding quantity and the control parameters of each simulation control point, and triggering the control module.
[0181] Optionally, in a specific implementation, each simulated assembly machine includes: a workbench and an execution element, wherein the execution element includes at least: a robotic arm, or an operator;
[0182] The assembly simulation module is specifically used for:
[0183] The execution element of the simulated assembly machine of the simulation control point is controlled so that the execution element takes the preset assembly material from the workbench of the simulated assembly machine of the simulation control point and simulates the preset assembly operation on the workpiece to be assembled according to the preset processing speed.
[0184] Optionally, in a specific implementation, the line setting module 910 is specifically configured to:
[0185] In response to the user's first configuration operation for a preset assembly line element of a specified type, a simulated assembly line body for simulating a real assembly line is set in a preset virtual scene; wherein the specified type includes at least: an assembly belt line, an assembly roller line, or an assembly roller line.
[0186] The present application also provides an electronic device, such as Figure 10 Shown, including:
[0187] Memory 1001, used for storing computer programs;
[0188] The processor 1002 is configured to implement the steps of any pipeline simulation method provided in the above-mentioned embodiments of the present application when executing the program stored in the memory 1001.
[0189] Furthermore, the electronic device may further include a communication bus and / or a communication interface, and the processor 1002, the communication interface, and the memory 1001 communicate with each other via the communication bus.
[0190] The communication bus mentioned in the electronic devices mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. This communication bus can be divided into address buses, data buses, control buses, etc. For ease of illustration, only a single thick line is used in the figure, but this does not mean that there is only one bus or only one type of bus.
[0191] The communication interface is used for communication between the above electronic device and other devices.
[0192] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage. Alternatively, the memory may be at least one storage device located away from the processor.
[0193] 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, and discrete hardware components.
[0194] In another embodiment provided by the present application, a computer-readable storage medium is also provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any pipeline simulation method provided in the above-mentioned embodiment of the present application are implemented.
[0195] In another embodiment provided by the present application, a computer program product containing instructions is also provided. When the computer program product is run on a computer, the computer executes the steps of any pipeline simulation method provided by the above-mentioned embodiments of the present application.
[0196] In the above embodiments, all or part of the embodiments can be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented 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 processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via 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 can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be magnetic media (e.g., floppy disk, hard disk, tape), optical media (e.g., DVD), or solid-state drive (SSD).
[0197] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.
[0198] Each embodiment in this specification is described in a related manner. Similar portions between the various embodiments can be referenced to each other. Each embodiment focuses on the differences between the other embodiments. In particular, since the apparatus embodiments, electronic device embodiments, computer-readable storage medium embodiments, and computer program product embodiments are generally similar to the method embodiments, their descriptions are relatively simple. For related portions, reference can be made to the descriptions of the method embodiments.
[0199] The above description is only a preferred embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application are included in the scope of protection of the present application.
Claims
1. A pipeline simulation method, characterized in that: The method comprises: In response to a first configuration operation of a user on a preset pipeline body element, a simulated pipeline body for simulating a real pipeline is set in a preset virtual scene; wherein the real pipeline is a production pipeline; In response to the user's second configuration operation on the preset simulation control point element, various simulation control points are set on the simulated assembly line body; wherein the simulation control point includes: a main element and a generation component that are set in association, the simulation control point is used to simulate a control point on a real assembly line, and the control point on the real assembly line is an assembly position where an assembly machine is set to perform an assembly operation on the workpiece; the main element is an interface element for representing the control point, and the generation component is a component that can be operated by the user and is used to generate a simulated assembly machine. The control parameters of each simulation control point include at least: the assembly operation performed by the simulated assembly machine at the simulation control point to simulate the assembly of the workpiece to be assembled and the required assembly materials; In response to a control operation by the user on any generation component in the simulation control point set on the simulation assembly line body, a simulation assembly machine of the simulation control point to which the generation component belongs is set at a position outside the simulation assembly line body and on a designated side of the associated main element indicated by the generation component; wherein each simulation assembly machine is configured to: simulate assemble the workpiece to be assembled according to the control parameters of the simulation control point to which the workpiece to be assembled belongs when the workpiece to be assembled is simulated and transferred by the simulation assembly line body to the simulation control point to which the simulation assembly machine belongs; The method further comprises: Controlling the simulated assembly line so that the simulated assembly line simulates the transmission of the workpiece to be assembled at a preset operating speed; When the workpiece to be assembled moves to each simulation control point where a simulation assembly machine is provided, the simulation assembly machine at the simulation control point is controlled so that the simulation assembly machine at the simulation control point simulates performing a preset assembly operation on the workpiece to be assembled according to a preset processing speed and assembly materials; wherein the materials used by the simulation assembly machine when assembling the workpiece are simulated and transported by a virtual mobile robot in the virtual scene; After each simulated assembly machine simulates the execution of the assembly operation each time, the shape of the workpiece to be assembled is changed to the shape after the assembly operation is completed, and the available quantity of the assembly material in the current material data is deducted according to the quantity of the assembly material used.
2. The method according to claim 1, characterized in that Before controlling the simulation pipeline body, the method further includes: Setting the line parameters of the simulated assembly line, the control parameters of each simulation control point, and the machine parameters and material data of each simulated assembly machine; Wherein, the line parameters include at least: the running speed; The machine parameters of each simulated assembly machine include at least: a processing speed for simulating the assembly of the workpiece to be assembled; and the material data of each simulated assembly machine records the available quantity of the currently stored assembly material.
3. The method according to claim 1, characterized in that The method further comprises: Controlling the virtual mobile robot in the virtual scene so that the virtual mobile robot simulates transporting the assembly materials for each simulated assembly machine according to a preset feeding frequency and feeding quantity; After each simulation of the virtual mobile robot transporting the assembly material, updating the current material data according to the delivery quantity; For each simulated assembly machine, based on the material data after quantity deduction, determining whether the assembly material stored in the simulated assembly machine is sufficient; If it is insufficient, the simulated assembly line and the virtual mobile robot are controlled to stop running, and the preset material shortage processing operation is performed.
4. The method according to claim 3, characterized in that The execution of the preset material shortage processing operation includes: Output material shortage alarm; and / or, Update at least one of the operating speed, the processing speed, the feeding frequency, the feeding quantity and the control parameters of each simulation control point, and return to the step of controlling the simulation assembly line body.
5. The method according to any one of claims 1 to 4, characterized in that Each simulation assembly machine includes: a workbench and an execution element, wherein the execution element includes at least: a robotic arm, or an operator; The controlling of the simulation assembly machine of the simulation control point so that the simulation assembly machine of the simulation control point simulates and performs a preset assembly operation on the workpiece to be assembled according to a preset processing speed and assembly materials includes: The execution element of the simulated assembly machine of the simulation control point is controlled so that the execution element takes the preset assembly material from the workbench of the simulated assembly machine of the simulation control point and simulates the preset assembly operation on the workpiece to be assembled according to the preset processing speed.
6. The method according to any one of claims 1 to 4, characterized in that The step of setting a simulated pipeline body for simulating a real pipeline in a preset virtual scene in response to a user's first configuration operation on a preset pipeline body element includes: In response to a first configuration operation of a user on a preset pipeline body element of a specified type, setting a simulated pipeline body for simulating a real pipeline in a preset virtual scene; The designated types include at least: a conveyor belt line, a conveyor roller line, or a conveyor roller line.
7. A pipeline simulation device, characterized in that: The device comprises: A line body setting module is used to set a simulated line body for simulating a real line in a preset virtual scene in response to a user's first configuration operation on a preset line body element; wherein the real line is a production line; A control point setting module is configured to set various simulation control points on the simulated assembly line in response to a second configuration operation of the user on a preset simulation control point element; wherein the simulation control point includes: a principal element and a generation component that are associated and set; the simulation control point is used to simulate a control point on a real assembly line, and the control point on the real assembly line is an assembly position where an assembly machine is set to perform an assembly operation on a workpiece; the principal element is an interface element for representing the control point, and the generation component is a component that can be operated by the user and is used to generate a simulated assembly machine; the control parameters of each simulation control point include at least: the assembly operation performed by the simulated assembly machine at the simulation control point on the workpiece to be assembled and the assembly materials required; An assembly machine setting module is configured to, in response to a control operation by the user on any generation component in the simulation control point set on the simulation assembly line body, set a simulation assembly machine for the simulation control point to which the generation component belongs, at a position outside the simulation assembly line body and on a designated side of the associated main element indicated by the generation component; wherein each simulation assembly machine is configured to: simulate the assembly of the workpiece to be assembled according to the control parameters of the simulation control point to which the workpiece belongs, when the workpiece to be assembled is simulated and transferred by the simulation assembly line body to the simulation control point to which the simulation assembly machine belongs; The device further comprises: A control module, configured to control the simulated assembly line so that the simulated assembly line simulates the transmission of the workpiece to be assembled at a preset operating speed; An assembly simulation module is configured to control the simulated assembly machine at each simulation control point when the workpiece to be assembled moves to the simulated assembly machine, so that the simulated assembly machine at the simulation control point simulates performing a preset assembly operation on the workpiece to be assembled according to a preset processing speed and assembly materials; wherein the materials used by the simulated assembly machine when assembling the workpiece are simulated and transported by a virtual mobile robot in the virtual scene; The material judgment module is used to change the shape of the workpiece to be assembled to the shape after the assembly operation is completed after each simulated assembly machine simulates the execution of the assembly operation, and deduct the available quantity of the assembly material in the current material data according to the quantity of the assembly material used.
8. The device according to claim 7, characterized in that The device further comprises: a setting module, configured to set the line parameters of the simulated assembly line, the control parameters of each simulation control point, and the machine parameters and material data of each simulated assembly machine before controlling the simulated assembly line; Wherein, the line parameters include at least: the running speed; The machine parameters of each simulated assembly machine include at least: a processing speed for simulating the assembly of the workpiece to be assembled; and the material data of each simulated assembly machine records the available quantity of the currently stored assembly material; And / or, the device further comprises: a robot control module, configured to control a virtual mobile robot in the virtual scene so that the virtual mobile robot simulates transporting the assembly materials for each simulated assembly machine according to a preset feeding frequency and feeding quantity; A data updating module, configured to update the current material data according to the delivery quantity after each simulation of the virtual mobile robot delivering the assembly material; a material determination module, configured to determine, for each simulated assembly machine, based on the material data after quantity deduction, whether the assembly materials stored in the simulated assembly machine are sufficient; if not, triggering the operation execution module; The operation execution module is used to control the simulated assembly line body and the virtual mobile robot to stop running and execute a preset material shortage processing operation; And / or, the operation execution module is specifically configured to: Outputting a material shortage alarm; and / or updating at least one of the operating speed, the processing speed, the feeding frequency, the feeding quantity, and the control parameters of each simulation control point, and triggering the control module; And / or, each simulated assembly machine includes: a workbench and an execution element, wherein the execution element includes at least: a robotic arm, or an operator; the assembly simulation module is specifically used to: The execution element of the simulated assembly machine of the simulation control point is controlled so that the execution element takes the preset assembly material from the workbench of the simulated assembly machine of the simulation control point and simulates the preset assembly operation on the workpiece to be assembled according to the preset processing speed.
9. The device according to any one of claims 7 or 8, characterized in that The line setting module is specifically used to: In response to the user's first configuration operation for a preset assembly line element of a specified type, a simulated assembly line body for simulating a real assembly line is set in a preset virtual scene; wherein the specified type includes at least: an assembly belt line, an assembly roller line, or an assembly roller line.
10. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the method according to any one of claims 1 to 6 when executing a program stored in a memory.
11. 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 6 is implemented.
Citation Information
Patent Citations
Automatic virtual automobile simulation method and device based on assembly line
CN115455564A