Simulation device, simulation system, and simulation method
The simulation device enhances reproducibility by calculating operation speeds of virtual robot parts using physical quantities, ensuring accurate simulation results that align with actual robot behavior.
Patent Information
- Application Number
- JP2023025958
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-22
- Publication Date
- 2024-09-03
AI Technical Summary
Conventional simulation technologies fail to accurately reproduce the behavior of virtual objects in actual robots, leading to reduced reproducibility and inaccurate simulation results.
A simulation device that incorporates a drawing unit to draw virtual equipment with virtual movable parts and a calculation unit to calculate operation speeds considering physical quantities like moment of inertia, gravity, and frictional force, enhancing the reproducibility of simulation results.
The simulation device improves reproducibility by aligning virtual robot operations with actual robot operations, providing accurate simulation results and enabling easy evaluation of simulation outcomes.
Smart Images

Figure 2024119214000001
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a simulation device, a simulation system, and a simulation method. [Background technology]
[0002] For example, Patent Document 1 discloses a simulation device in which a robot emulator calculates the behavior of a virtual object placed in a virtual space, and then a physical simulator calculates the behavior of a virtual object corresponding to a robot hand attached to the robot. In this simulation device, the physical simulator and the robot emulator are synchronized to estimate the takt time. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent Publication No. 2021-045797 Summary of the Invention [Problem to be solved by the invention]
[0004] However, with conventional techniques, the reproducibility of the behavior of a virtual object relative to the behavior of an actual robot decreases, and accurate simulation results may not be obtained. [Means for solving the problem]
[0005] The present disclosure can be realized in the following forms.
[0006] (1) According to one embodiment of the present disclosure, a simulation device is provided. The simulation device includes a rendering unit that renders in a virtual space a virtual facility corresponding to a facility and having a virtual moving part corresponding to a moving part of the facility, and a calculation unit that calculates a physical quantity including a moment of inertia acting on the moving part when the moving part is operated, and iteratively calculates a motion speed of the virtual moving part using the calculated physical quantity. The rendering unit renders the motion of the virtual moving part using the calculated motion speed of the virtual moving part. According to the simulation device of this embodiment, the influence of physical quantities such as the moment of inertia on the motion speed of the virtual moving part is taken into consideration, so that the motion of the virtual equipment can be made closer to the motion of the actual equipment, thereby improving the reproducibility of the simulation. (2) In the simulation device of the above aspect, the physical quantity may further include gravity acting on the movable part, and a frictional force acting on the movable part when the movable part is operated. According to the simulation device of this aspect, the reproducibility of the simulation can be further improved by taking into account gravity and frictional force. (3) In the simulation device of the above aspect, the drawing section may display a change in the motion speed of the virtual moving part during an operation time of the virtual moving part. According to the simulation device of this embodiment, it is possible to check the reproducibility of the operation speed as a simulation result with respect to an actual measurement value, and the simulation result can be easily evaluated. (4) According to another aspect of the present disclosure, a simulation system is provided. The simulation system includes a control device that outputs a control signal for driving a movable part of equipment, a rendering unit that renders in a virtual space a virtual equipment corresponding to the equipment, the virtual equipment having a virtual movable part corresponding to the movable part, and a calculation unit that calculates a physical amount including a moment of inertia acting on the movable part when the movable part is operated according to the control signal, and repeatedly calculates a motion speed of the virtual movable part using the calculated physical amount. The rendering unit renders the motion of the virtual movable part using the calculated motion speed of the virtual movable part. The calculation unit outputs the calculated motion speed of the virtual movable part to the control device. The control device generates the control signal that reflects the input motion speed of the virtual movable part in the drive of the movable part. According to the simulation system of this embodiment, the operating speed of the virtual moving part, which takes into account the influence of physical quantities, can be fed back to the control device. Also, by using the control signal used in the actual equipment in the simulation, the simulation can be performed in a simple manner. The present disclosure can also be realized in various forms other than a simulation device, for example, in the form of equipment, a simulation method, a method for controlling equipment, a method for controlling a simulation device, a computer program for realizing these control methods, a non-transitory recording medium on which the computer program is recorded, etc. [Brief description of the drawings]
[0007] [Figure 1] FIG. 1 is an explanatory diagram showing a schematic configuration of a simulation device according to a first embodiment. [Diagram 2] FIG. 13 is an explanatory diagram showing the results of a simulation using a virtual robot as a comparative example not using physical quantities, and actual measured values using the robot. [Diagram 3] 4 is a flowchart showing a processing routine executed by the simulation device. [Figure 4] FIG. 11 is an explanatory diagram showing an example of a change in the motion speed with respect to the operating time of a virtual moving part. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] A. First embodiment: FIG. 1 is an explanatory diagram showing a schematic configuration of a simulation system 500 including a simulation device 100 as a first embodiment of the present disclosure. The simulation system 500 includes the simulation device 100 and a control device 300. The simulation device 100 is, for example, a product design verification system (VPS: Virtual Product Simulator) using a three-dimensional model. The simulation device 100 draws a virtual robot V200 corresponding to an actual robot 200 in a virtual space by a so-called digital mock-up. In the simulation device 100, by using the virtual robot V200, it is possible to perform verification of the logic of a control program, risk verification such as malfunction and interference check of the robot 200, and debug verification in the virtual space. For example, by performing a simulation before manufacturing the robot 200, it is possible to reduce the risk of damage or malfunction when manufacturing the robot 200. In addition, it is possible to suppress so-called rework, in which correction of the robot 200 and correction of the control program are alternately performed when manufacturing the robot 200.
[0009] The robot 200 includes a base 210, a robot arm 220 attached to the base 210, and a robot control unit 230 that controls the robot 200. The robot 200 is an example of equipment that is a target of simulation by the simulation device 100. A robot hand is attached to an arm end, which is the tip of the robot arm 220, as an end effector. The robot 200 performs a task of gripping a workpiece with the robot hand and moving the robot arm 220 to place it in another location.
[0010] The robot arm 220 is, for example, connected in sequence by five movable parts J1, J2, J3, J4, and J5. The movable parts J1-J5 are an example of an actuator, and perform rotational motion around a drive axis using a servo motor. The movable parts J1 and J5 are torsional joints, and the movable parts J2, J3, and J4 are bending joints. In this embodiment, a five-axis robot is shown as an example of the equipment, but a robot having any robot arm mechanism having a single joint or two or more joints may be used. The equipment may be equipment other than a robot, such as a conveying device or a processing device.
[0011] The virtual robot V200 is an example of a virtual facility. The virtual robot V200 is generated using the motor definition, sensor definition, and the like of the robot 200. The virtual robot V200 includes virtual movable parts VJ1, VJ2, VJ3, VJ4, and VJ5 corresponding to the movable parts J1-J5.
[0012] The control device 300 is a programmable logic controller (PLC) that includes an arithmetic unit, an input unit, and an output unit. The control device 300 controls the operations of the movable parts J1-J5 of the robot 200 via the robot control unit 230.
[0013] The simulation device 100 is configured by a computer including a display unit 40, a communication unit 50, a CPU 60 as a central processing unit, and a storage device 70. The CPU 60, the storage device 70, the communication unit 50, and the display unit 40 are connected to each other via an internal bus or an interface circuit. The display unit 40 is, for example, a liquid crystal display or an organic EL display, and displays a virtual robot V200 in a virtual space. The communication unit 50 is a communication device for communicating with an external device such as a control device 300.
[0014] The storage device 70 is, for example, a RAM, a ROM, a hard disk drive (HDD), a solid state drive (SSD), etc. Various programs for realizing the functions provided in this embodiment are stored in the storage device 70. The CPU 60 executes the programs stored in the storage device 70 to realize some or all of the functions of the drawing unit 62, the calculation unit 64, etc. However, some or all of the functions of the drawing unit 62 and the calculation unit 64 may be realized by a hardware circuit. The storage device 70 stores speed information 72 related to the speed of the virtual movable part, as described later.
[0015] The drawing unit 62 draws a virtual robot V200 corresponding to the robot 200 in a virtual space. In this embodiment, the drawing unit 62 generates the behavior of the virtual robot V200 by simulating the robot 200 in a virtual space in accordance with a control signal generated by the control device 300. Note that the drawing unit 62 may draw the virtual robot V200 in accordance with a control signal generated by a device other than the control device 300. In this case, the control signal indicates the same content as the control signal generated by the control device 300.
[0016] The calculation unit 64 calculates the motion speeds of the virtual moving parts VJ1-VJ5 of the virtual robot V200. The calculation unit 64 repeatedly calculates the motion speeds of the virtual moving parts VJ1-VJ5 for each unit time. In this embodiment, the calculation unit 64 further calculates physical quantities including the moment of inertia acting on the moving parts J1-J5 to utilize torque control and angle control, and calculates the motion speeds of the virtual moving parts VJ1-VJ5. The "physical quantities" are, for example, the mass of the moving parts J1-J5, gravity, inertia, moment of inertia, kinetic energy acting on the moving parts J1-J5, and frictional force. The frictional force is, for example, a frictional force acting on the moving parts J1-J5 when the moving parts J1-J5 are operated. Specifically, the friction force includes friction force generated between the movable parts J1-J5 and the arms or the like in contact with the movable parts J1-J5, and friction force generated in the servo motor when the servo motor rotates. It is preferable that all of the physical quantities used in the simulation are mass, gravity, friction force, inertial force, moment of inertia, and kinetic energy. However, in order to reduce the calculation load of the calculation unit 64, for example, only the moment of inertia and the kinetic energy calculated using the moment of inertia may be used, or only the moment of inertia may be used.
[0017] When one axis is defined for the imaginary movable parts VJ1-VJ5, the moment of inertia I about the axis is calculated, for example, by using the following formula (1).
[0018]
number
[0019] When the angular velocity is ω and the velocity of the mass point is vi=ri·ω, the kinetic energy of each mass point is τi=1 / 2·(mi·vi 2 )=1 / 2·mi·(ri) 2 ω 2 Therefore, the kinetic energy T of the imaginary movable parts VJ1-VJ5 can be calculated as the sum of the angular momentum of the mass points using the following equation (2).
[0020]
number
[0021] FIG. 2 is an explanatory diagram showing a simulation result VV by a virtual robot V200 as a comparative example not using physical quantities, and an actual measurement value VA by the robot 200. In the graph shown in FIG. 2, the horizontal axis is the time axis, and the vertical axis indicates the motion speed of the virtual movable part and the movable part. FIG. 2 shows the change in the motion speed of the virtual movable part and the movable part during the operation time (also called "cycle time") during which the virtual movable part and the movable part perform one motion. The change in the motion speed of the virtual movable part is calculated by the calculation unit 64 and stored as speed information 72 in the storage device 70. The drawing unit 62 causes the display unit 40 to display the change in the motion speed of the virtual movable part shown in FIG. 2 as a simulation result. However, the simulation result by the drawing unit 62 does not have to be displayed.
[0022] The inventors have newly found that, in the simulation results when no physical quantities are used, for example, differences GP1, GP2, GP3, and GP4 shown in Fig. 2 occur with respect to the actual measured value VA. As shown by difference GP1, immediately after the moving parts J1-J5 are driven, the actual measured value VA is affected by physical quantities such as frictional force and gravity, and the timing at which the operating speed increases is delayed compared to the simulation result VV. As shown by difference GP2, when the operating speed is accelerated to a predetermined speed and then made constant, the actual measured value VA is temporarily faster than the simulation result VV due to the influence of physical quantities such as inertial force and moment of inertia, and it takes longer to stabilize at the predetermined speed compared to the simulation result.
[0023] Next, as shown by the difference GP3, when deceleration is started from a predetermined speed, the timing of deceleration is later in the actual measurement value VA than in the simulation result VV due to the influence of physical quantities such as gravity, inertial force, and inertial moment. As shown by the difference GP4, when stopping after deceleration, it takes time to complete the stop of the operation in the actual measurement value VA due to the influence of physical quantities such as gravity, inertial force, and inertial moment. In this way, in the simulation device of the comparative example that does not use physical quantities, the operation is completed at a timing earlier than the actual measurement value VA. That is, the cycle time from when the virtual moving part starts to complete each predetermined operation is calculated to be shorter than the actual measurement value. In contrast, in the simulation device 100 of this embodiment, the calculation unit 64 repeatedly calculates the operation speeds of the virtual moving parts VJ1-VJ5 for each unit time using physical quantities, so that the occurrence of the above differences GP1, GP2, GP3, and GP4 can be suppressed or prevented.
[0024] 3 is a flowchart showing a processing routine executed by simulation device 100. This flow starts, for example, when simulation device 100 receives an operation to start a simulation.
[0025] In step S10, the simulation device 100 receives a control signal from the control device 300. In step S20, the calculation unit 64 calculates physical quantities generated by the operations of the virtual moving parts VJ1-VJ5. More specifically, the calculation unit 64 uses mass, gravity, frictional force, inertial force, etc. as the physical quantities, calculates the moment of inertia using the above formula (1), and calculates the kinetic energy using the above formula (2).
[0026] In step S30, the calculation unit 64 repeatedly calculates the motion speeds of the virtual moving parts VJ1-VJ5 for each unit time using the calculated physical quantities. The calculation unit 64 may calculate not only the motion speeds but also the position information of the virtual moving parts VJ1-VJ5. In step S40, the drawing unit 62 draws the virtual robot V200 in the virtual space so that the virtual robot V200 is driven based on the motion speeds and position information as the calculation results. In step S42, the calculation unit 64 sequentially outputs the calculated motion speeds and position information of the virtual moving parts VJ1-VJ5 to the control device 300. The control device 300 feeds back the input motion speeds and position information of the virtual moving parts VJ1-VJ5 to the motion speeds and position information of the moving parts J1-J5. As a result, the control device 300 outputs a control signal based on the fed back motion speeds and position information of the moving parts J1-J5 in the subsequent control.
[0027] In step S50, the drawing unit 62 checks whether or not all the operations corresponding to the received control signal have been completed. If all the operations have not been completed (S50: NO), the drawing unit 62 returns the process to step S20. If all the operations have been completed (S50: YES), the process proceeds to step S60. In step S60, the drawing unit 62 checks whether or not to end the process. The end conditions for the process include a case where a control signal is not received within a predetermined time, and a case where a series of predetermined operations of the virtual robot V200 is completed. If the end conditions are met (S60: YES), the drawing unit 62 transfers the process to step S70. If the processing conditions are not met (S60; NO), the drawing unit 62 returns the process to step S10 and waits for the reception of a control signal. In step S70, the drawing unit 62 draws the calculated change in the operation speed of the virtual movable parts VJ1-VJ5 with respect to the operating time, and displays it on the display unit 40.
[0028] FIG. 4 is an explanatory diagram showing an example of the change in the operating speed of the virtual movable parts VJ1-VJ5 with respect to the operating time. In the graph shown in FIG. 4, the horizontal axis is the time axis, and the vertical axis indicates the position of the movable part. The graphs GS1, GS2, GS3, GS4, and GS5 shown by dashed lines in the figure show the simulation results as a comparative example by a simulation device that does not use physical quantities. The graphs GA1, GA2, GA3, GA4, and GA5 shown by solid lines show the simulation results by the simulation device 100 of this embodiment. The simulation results of the graphs GA1-GA5 and GS1-GS5 correspond to the virtual movable parts VJ1-VJ5 of the virtual robot V200, and show the position change of the virtual movable parts VJ1-VJ5 during the cycle time. The simulation result of the cycle time shown in FIG. 4 is calculated by the calculation unit 64 and stored as the speed information 72 of the storage device 70. In this embodiment, the drawing unit 62 causes the display unit 40 to display the simulation result of the cycle time. For ease of understanding, the graphs other than the graph GS1 and the graph GA1 are shown shifted up and down from the graph GS1 and the graph GA1. The simulation results by the drawing unit 62 do not have to be displayed.
[0029] As shown by graph GS1 in Fig. 4, in the simulation results using the simulation device of the comparative example, the time at which the movement of the virtual moving part VJ1 is completed is time t1. As shown by graph GA1, in the simulation results using the simulation device 100 of this embodiment, the time at which the movement of the virtual moving part VJ1 is completed is time t2. According to the simulation device 100 of this embodiment, the movement time TA of the moving part J1 is more accurate than the movement time TS in the simulation results of the comparative example because a physical quantity is used. As a result, the movement completion time t2 is approximately equal to the movement completion time t3 of the actual measured value of the robot 200.
[0030] As described above, the simulation device 100 of this embodiment includes a drawing unit 62 that draws the virtual robot V200 corresponding to the robot 200 in a virtual space, and a calculation unit 64 that calculates physical quantities such as the moment of inertia acting on the moving parts J1-J5 of the robot 200 and repeatedly calculates the motion speeds of the virtual moving parts VJ1-VJ5 using the calculated physical quantities. The drawing unit 62 draws the motions of the virtual moving parts VJ1-VJ5 using the calculated motion speeds of the virtual moving parts VJ1-VJ5. By taking into account the influence of the physical quantities such as the moment of inertia on the motion speeds of the virtual moving parts VJ1-VJ5, the motion of the virtual robot V200 can be made closer to the motion of the actual robot 200. Therefore, the reproducibility of the simulation can be improved, and the calculation accuracy of the cycle time can be improved.
[0031] According to the simulation device 100 of this embodiment, the physical quantities include, in addition to the moment of inertia, gravity acting on the movable parts J1-J5 and frictional forces acting on the movable parts J1-J5 when the movable parts J1-J5 are operated. Therefore, the movement speed of the virtual robot V200 can be made closer to the movement speed of the actual robot 200.
[0032] In the simulation device 100 of this embodiment, the change in the motion speed of the virtual movable parts VJ1-VJ5 during operation time is calculated by the calculation unit 64 and stored as speed information 72 in the storage device 70. The drawing unit 62 causes the display unit 40 to display the change in the motion speed of the virtual movable parts VJ1-VJ5 during operation time as a result of the simulation. According to the simulation device 100 of this embodiment, it is possible to confirm the reproducibility of the motion speed as the simulation result VV relative to the actual measured value VA, and the simulation result can be easily evaluated.
[0033] According to the simulation system 500 of this embodiment, the drawing unit 62 draws the movements of the virtual moving parts VJ1-VJ5 using the calculated movement speed and position information of the virtual moving part VJ1. The calculation unit 64 outputs the calculated movement speed and position information of the virtual moving parts VJ1-VJ5 to the control device 300, and the control device 300 generates a control signal that reflects the input movement speed and position information of the virtual moving parts VJ1-VJ5 in the drive of the moving part J1. Therefore, the movement speed and position information of the virtual moving parts VJ1-VJ5 that take into account the influence of physical quantities can be fed back to the control device 300.
[0034] According to the simulation system 500 of this embodiment, the drawing unit 62 drives the virtual equipment in the virtual space using the control signal for driving the movable parts J1-J5, which is output from the control device 300. By using the control signal used for the robot 200 as the actual machine in the simulation, the simulation can be performed in a simple manner without separately preparing a control signal for the simulation.
[0035] The present disclosure is not limited to the above-mentioned embodiment, and can be realized in various configurations without departing from the spirit of the present disclosure. For example, the technical features in the embodiments corresponding to the technical features in each aspect described in the Summary of the Invention column can be appropriately replaced or combined to solve some or all of the above-mentioned problems or to achieve some or all of the above-mentioned effects. Furthermore, if the technical feature is not described as essential in this specification, it can be appropriately deleted. [Explanation of symbols]
[0036] 40...display unit, 50...communication unit, 60...CPU, 62...drawing unit, 64...calculation unit, 70...storage device, 72...speed information, 100...simulation device, 200...robot, 210...base, 220...robot arm, 230...robot control unit, 300...control device, 500...simulation system, J1-J5...moving unit, V200...virtual robot, VJ1-VJ5...virtual moving unit, GP1-GP4...difference
Claims
1. A simulation device, comprising: a rendering unit configured to render, in a virtual space, a virtual facility corresponding to the facility, the virtual facility having a virtual movable part corresponding to a movable part of the facility; a calculation unit that calculates a physical quantity including a moment of inertia acting on the movable part when the movable part is operated, and repeatedly calculates a motion speed of the virtual movable part using the calculated physical quantity, The rendering unit renders the motion of the virtual moving part using the calculated motion speed of the virtual moving part. Simulation device.
2. The simulation device according to claim 1 , wherein the physical quantities further include a gravity force acting on the movable part, and a frictional force acting on the movable part when the movable part is operated.
3. The simulation device according to claim 1 , wherein the drawing section draws a change in the motion speed of the virtual moving part during an operating time of the virtual moving part.
4. 1. A simulation system comprising: A control device that outputs a control signal for driving a movable part of the equipment; a drawing unit that draws, in a virtual space, a virtual facility corresponding to the facility, the virtual facility having a virtual movable part corresponding to the movable part; a calculation unit that calculates a physical quantity including a moment of inertia acting on the movable part when the movable part is operated in accordance with the control signal, and repeatedly calculates a motion speed of the virtual movable part using the calculated physical quantity, the rendering unit renders a motion of the virtual moving part using the calculated motion speed of the virtual moving part; The calculation unit outputs the calculated motion speed of the virtual moving part to the control device, the control device generates the control signal in which the input motion speed of the virtual moving part is reflected in the driving of the moving part. Simulation system.
5. 1. A simulation method, comprising: Calculating a physical quantity including a moment of inertia acting on a movable part of the equipment when the movable part is operated; Using the calculated physical quantity, repeatedly calculating a motion speed of a virtual moving part in a virtual facility having a virtual moving part corresponding to the moving part; A motion of the virtual moving part is depicted in a virtual space using the calculated motion speed of the virtual moving part. Simulation method.
Citation Information
Patent Citations
Robot operation supporting system
JP1989131904A
Simulation device, simulation program, and simulation method
JP2021045797A
