Simulation device, simulation system, and simulation method
By considering physical quantities in the simulation device, the reproducibility of the movements of virtual objects is improved, the problem of inaccurate movements of virtual objects in the existing technology is solved, and a more accurate simulation and a simplified simulation process are achieved.
Patent Information
- Application Number
- CN202410175415.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-02-22
- Filing Date
- 2024-02-08
- Publication Date
- 2024-08-23
AI Technical Summary
In the existing technology, the reproducibility of the movements of virtual objects decreases, and accurate simulation results cannot be obtained, especially when they do not match the movements of the actual robot.
By considering physical quantities such as moment of inertia, gravity, and friction in the simulation device, the movement speed of the virtual movable part is calculated, and used to describe the movement of the virtual object, and fed back to the control device to generate a drive signal to ensure the accuracy of the simulation results. sex.
The reproducibility of the simulation and the accuracy of the cycle time are improved, the action of the virtual device is brought close to the action of the actual device, the simulation process is simplified, and the reproducibility of the simulation results can be easily evaluated.
Smart Images

Figure CN118537477A
Abstract
Description
Technical Field
[0001] The present disclosure relates to a simulation device, a simulation system and a simulation method. Background Art
[0002] For example, Patent Document 1 discloses a simulation device in which a robot simulator calculates the behavior of a virtual object arranged in a virtual space, and then a physical simulator calculates the behavior of a virtual object corresponding to a manipulator equipped with a robot. In this simulation device, the physical simulator and the robot simulator are synchronized in order to estimate the tact time. Prior art literature Patent Literature
[0003] Patent Document 1: Japanese Patent Application Publication No. 2021-045797 Summary of the invention Problems to be solved by the invention
[0004] However, in the conventional technology, the reproducibility of the behavior of the virtual object relative to the actual behavior of the robot may decrease, and accurate simulation results may not be obtained. Technical means to solve problems
[0005] The present disclosure can be implemented as 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 a virtual device corresponding to a device in a virtual space, the virtual device having a virtual movable part corresponding to a movable part of the device; and a calculation unit that calculates physical quantities including a moment of inertia acting on the movable part when the movable part is moved, and repeatedly calculates a movement speed of the virtual movable part using the calculated physical quantities. The rendering unit uses the calculated movement speed of the virtual movable part to render the movement of the virtual movable part. According to the simulation device of this aspect, the motion of the virtual device can be made close to the motion of the actual device by taking into account the influence of physical quantities such as the moment of inertia in the motion speed of the virtual movable part. Therefore, the reproducibility of the simulation can be improved. (2) In the simulation device of the above aspect, the physical quantity may further include a gravity acting on the movable part and a friction force acting on the movable part when the movable part is moved. According to the simulation device of this aspect, by also taking gravity and friction into consideration, the reproducibility of the simulation can be further improved. (3) In the simulation device of the above aspect, the drawing unit may display a change in the motion speed of the virtual movable unit during the operation time of the virtual movable unit. According to the simulation device of this aspect, the reproducibility of the motion speed as a simulation result with respect to the actual measurement value can be confirmed, and the simulation result can be easily evaluated. (4) According to another embodiment of the present disclosure, a simulation system is provided. The simulation system comprises: a control device that outputs a control signal for driving a movable part of a device; a drawing unit that draws a virtual device corresponding to the device in a virtual space, the virtual device having a virtual movable part corresponding to the movable part; and a calculation unit that calculates physical quantities including the moment of inertia acting on the movable part when the movable part is moved according to the control signal, and repeatedly calculates the movement speed of the virtual movable part using the calculated physical quantities. The drawing unit uses the calculated movement speed of the virtual movable part to draw the movement of the virtual movable part. The calculation unit outputs the calculated movement speed of the virtual movable part to the control device. The control device generates the control signal that reflects the input movement speed of the virtual movable part in the driving of the movable part. According to the simulation system of this aspect, the motion speed of the virtual movable part taking into account the influence of the physical quantity can be fed back to the control device. In addition, by using the control signal used in the actual device for simulation, the simulation can be performed with a simple method. The present disclosure may also be implemented in various forms other than the simulation device, for example, in the form of a device, a simulation method, a control method of a device, a control method of a simulation device, a computer program for implementing these control methods, a non-transitory recording medium recording the computer program, and the like. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Figure 1 It is an explanatory diagram showing a schematic configuration of a simulation device as a first embodiment. Figure 2 It is an explanatory diagram showing simulation results using a virtual robot as a comparative example in which no physical quantity is used, and actual measurement values using a robot. Figure 3 is a flowchart showing a processing routine executed by the simulation device. Figure 4 This is an explanatory diagram showing an example of a change in the motion speed with respect to the operating time of the virtual movable part. DETAILED DESCRIPTION
[0008] A. First Implementation Method: Figure 11 is an explanatory diagram showing a schematic configuration of a simulation system 500 having a simulation device 100 as a first embodiment of the present disclosure. The simulation system 500 includes a simulation device 100 and a control device 300. The simulation device 100 is, for example, a product design verification system (VPS: Virtual Product Simulator) based on a three-dimensional model. The simulation device 100 depicts a virtual robot V200 corresponding to the actual robot 200 in a virtual space through a so-called digital mock-up. In the simulation device 100, by using the virtual robot V200, it is possible to perform logic verification of the control program, risk verification such as malfunction and interference check of the robot 200, and debugging verification in a virtual space. For example, by performing a simulation before manufacturing the robot 200, it is possible to reduce the risk of damage, malfunction, etc. when manufacturing the robot 200. In addition, when manufacturing the robot 200, it is possible to suppress the so-called rework of alternating the correction of the robot 200 and the correction of the control program.
[0009] The robot 200 includes a base 210, a robot arm 220 mounted on the base 210, and a robot control unit 230 that controls the robot 200. The robot 200 is an example of a device that is a simulation target of the simulation device 100. A robot hand that is an end effector is mounted on the arm end that is the front end of the robot arm 220. The robot 200 performs a task of holding a workpiece with the robot hand and moving the robot arm 220 to place the workpiece in another place.
[0010] The robot arm 220 is composed of, for example, five movable parts J1, J2, J3, J4, and J5 connected in sequence. The movable parts J1-J5 are examples of actuators, and use servo motors to perform rotational motion around a drive axis. The movable parts J1 and J5 are torsion joints, and the movable parts J2, J3, and J4 are bending joints. In this embodiment, a 5-axis robot is shown as an example of a device, but a robot having any robot arm mechanism with a single joint or more than two joints can also be used. As a device, a device other than a robot such as a transport device and a processing device can be used.
[0011] The virtual robot V200 is an example of a virtual device. The virtual robot V200 is generated using the motor definition, sensor definition, etc. 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) composed of a calculation unit, an input unit, and an output unit. The control device 300 controls the operation of the movable parts J1 to J5 of the robot 200 via the robot control unit 230 .
[0013] The simulation device 100 is composed of 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 the virtual robot V200 in the virtual space. The communication unit 50 is a communication device for communicating with an external device such as the 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 the present embodiment are stored in the storage device 70. The CPU 60 executes the programs stored in the storage device 70 to realize part or all of the functions of the drawing unit 62 and the calculation unit 64. However, part or all of the functions of the drawing unit 62 and the calculation unit 64 may also be realized by a hardware circuit. In the storage device 70, as described later, speed information 72 related to the speed of the virtual movable part is stored.
[0015] The drawing unit 62 draws the virtual robot V200 corresponding to the robot 200 in the virtual space. In the present embodiment, the movement of the virtual robot V200 simulating the robot 200 in the virtual space is generated according to the control signal generated by the control device 300. In addition, the drawing unit 62 may draw the virtual robot V200 according to the control signal generated by a device other than the control device 300. In this case, the control signal shows the same content as the control signal generated by the control device 300.
[0016] The calculation unit 64 calculates the movement speed of the virtual movable parts VJ1-VJ5 possessed by the virtual robot V200. The calculation unit 64 repeatedly calculates the movement speed of the virtual movable parts VJ1-VJ5 per unit time. In the present embodiment, the calculation unit 64 also calculates the movement speed of the virtual movable parts VJ1-VJ5 by calculating physical quantities including the moment of inertia acting on the movable parts J1-J5 in order to utilize torque control and angle control. "Physical quantities" are, for example, the mass of the movable parts J1-J5, the gravity, inertia, moment of inertia, kinetic energy, and friction acting on the movable parts J1-J5. The friction force is, for example, the friction force acting on the movable parts J1-J5 when the movable parts J1-J5 are moved. Specifically, the friction force includes the friction force generated between the arm in contact with the movable parts J1-J5 and the movable parts J1-J5, and the friction force generated in the servo motor when the servo motor rotates. The physical quantities used in the simulation preferably use all of the following: mass, gravity, friction, inertia, 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 it may be used, or only the moment of inertia may be used.
[0017] When one axis is set for the virtual movable parts VJ1 to VJ5 , the moment of inertia I around the axis is calculated by using the following formula (1), for example.
[0018] [Mathematical formula 1] [Math.1 mi: mass of the particle ri: distance between the mass point and the axis
[0019] Assuming the angular velocity ω, the velocity of the particle vi = ri·ω, the kinetic energy of each particle τi = 1 / 2·(mi·vi 2 )=1 / 2·mi·(ri) 2 ·ω 2 Therefore, the kinetic energy T of the virtual movable parts VJ1 to VJ5 can be obtained by the sum of the angular momentums of the mass points using the following formula (2).
[0020] [Mathematical formula 2] [Math.2]
[0021] Figure 2 1 is an explanatory diagram showing a simulation result VV based on a virtual robot V200 as a comparative example in which no physical quantity is used, and an actual measurement value VA based on the robot 200. Figure 2 In the graph shown, the horizontal axis is the time axis, and the vertical axis shows the virtual movable part and the movement speed of the movable part. Figure 2 , the virtual movable part and the change of the motion speed of the virtual movable part within the operation time (also called "cycle time") of the virtual movable part and the motion speed of the virtual movable part are shown. The change of the motion speed of the virtual movable part is calculated by the calculation unit 64 and stored as the speed information 72 of the storage device 70. Figure 2 The change in the motion speed of the virtual movable part is displayed as a simulation result on the display unit 40. However, the simulation result by the drawing unit 62 does not have to be displayed.
[0022] The inventors have newly realized that in the simulation results without using physical quantities, differences such as Figure 2 The differences GP1, GP2, GP3, and GP4 are shown. As shown by the difference GP1, immediately after the movable parts J1-J5 are driven, the measured value VA is affected by physical quantities such as friction and gravity, and the time when the motion speed increases is delayed compared to the simulation result VV. As shown by the difference GP2, when the motion speed is accelerated to a predetermined speed and then kept constant, the measured value VA is affected by physical quantities such as inertia and moment of inertia, and the motion speed temporarily increases compared to the simulation result VV, and it takes time to stabilize at the predetermined speed compared to the simulation result.
[0023] Next, as shown by the difference GP3, in the case of deceleration from a predetermined speed, in the measured value VA, the time of deceleration is delayed compared to the simulation result VV due to the influence of physical quantities such as gravity, inertia, and moment of inertia. As shown by the difference GP4, in the case of stopping after deceleration, in the measured value VA, it takes time until the action stops due to the influence of physical quantities such as gravity, inertia, and moment of inertia. In this way, in the simulation device of the comparative example that does not use physical quantities, the action is completed at a time earlier than the measured value VA. That is, the cycle time of the virtual movable part from the start of each pre-set action to the completion is shorter than the calculated measured value. In contrast, the simulation device 100 of this embodiment can suppress or prevent the occurrence of the above-mentioned differences GP1, GP2, GP3, and GP4 by repeatedly calculating the action speed of the virtual movable parts VJ1-VJ5 per unit time using physical quantities by the calculation unit 64.
[0024] Figure 3 2 is a flowchart showing a processing routine executed by the simulation device 100. This flow is started when the simulation device 100 receives an operation to start simulation, for example.
[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 the physical quantity generated by the movement of the virtual movable parts VJ1-VJ5. More specifically, the calculation unit 64 uses mass, gravity, friction, inertia, etc. as physical quantities, and 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 uses the calculated physical quantity to repeatedly calculate the motion speed of the virtual movable parts VJ1-VJ5 per unit time. The calculation unit 64 may calculate not only the motion speed but also the position information of the virtual movable parts VJ1-VJ5. In step S40, the drawing unit 62 draws the virtual robot V200 on the virtual space in a manner that the virtual robot V200 is driven based on the motion speed and position information as the calculated result. In step S42, the calculation unit 64 outputs the calculated motion speed and position information of the virtual movable parts VJ1-VJ5 to the control device 300 one by one. The control device 300 feeds back the input motion speed and position information of the virtual movable parts VJ1-VJ5 to the motion speed and position information of the movable parts J1-J5. As a result, the control device 300 outputs a control signal based on the feedback motion speed and position information of the movable parts J1-J5 in subsequent control.
[0027] In step S50, the drawing unit 62 confirms whether the actions corresponding to the received control signals are all completed. If the actions are not all completed (S50: No), the drawing unit 62 returns the process to step S20. If the actions are all completed (S50: Yes), the process moves to step S60. In step S60, the drawing unit 62 confirms whether to end the process. As the end condition of the process, there can be cited the case where the control signal is not received within a specified time, the case where a series of actions of the virtual robot V200 set in advance are completed, etc. If the end condition is met (S60: Yes), the drawing unit 62 moves the process to step S70. If the processing condition is not met (S60: No), the process returns to step S10 and waits for the control signal to be received. In step S70, the drawing unit 62 draws the change in the motion speed relative to the calculated operation time of the virtual movable parts VJ1-VJ5 and displays it on the display unit 40.
[0028] Figure 4 2 is an explanatory diagram showing an example of changes in the motion speed of the virtual movable parts VJ1 to VJ5 relative to the running time. Figure 4In the graphs shown, the horizontal axis is the time axis, and the vertical axis shows the position of the movable part. The graphs GS1, GS2, GS3, GS4, and GS5 shown in dotted lines in the figure show the simulation results based on the simulation device that does not use physical quantities as a comparative example. The graphs GA1, GA2, GA3, GA4, and GA5 shown in solid lines show the simulation results based on 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 changes of the virtual movable parts VJ1-VJ5 during the cycle time. Figure 4 The simulation result of the cycle time shown is calculated by the calculation unit 64 and stored as the speed information 72 of the storage device 70. In the present embodiment, the drawing unit 62 displays the simulation result of the cycle time on the display unit 40. In addition, for easy understanding, the graphs other than the graph GS1 and the graph GA1 are displayed vertically offset from the graph GS1 and the graph GA1. The simulation result by the drawing unit 62 may not be displayed.
[0029] like Figure 4 As shown by the graph GS1, in the simulation result based on the simulation device of the comparative example, the time when the action of the virtual movable part VJ1 is completed is time t1. As shown by the graph GA1, in the simulation result of the simulation device 100 of the present embodiment, the time when the action of the virtual movable part VJ1 is completed is time t2. According to the simulation device 100 of the present embodiment, the action time TA of the movable part J1 uses a physical quantity, so it becomes more accurate than the action time TS in the simulation result of the comparative example. As a result, the time t2 when the action is completed is roughly consistent with the action completion time t3 in the actual measurement value of the robot 200.
[0030] As described above, the simulation device 100 according to the present 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 of the movable parts J1-J5 acting on the robot 200, and repeatedly calculates the motion speed of the virtual movable parts VJ1-VJ5 using the calculated physical quantities. The drawing unit 62 draws the motion of the virtual movable parts VJ1-VJ5 using the calculated motion speed of the virtual movable parts VJ1-VJ5. By considering the influence of physical quantities such as the moment of inertia in the motion speed of the virtual movable parts VJ1-VJ5, the motion of the virtual robot V200 can be made close 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 quantity includes the gravity acting on the movable parts J1-J5 and the friction force acting on the movable parts J1-J5 when the movable parts J1-J5 are moved, in addition to the moment of inertia. 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 the present embodiment, the change in the motion speed of the virtual movable parts VJ1-VJ5 during the running time is calculated by the calculation unit 64 and stored as the speed information 72 in the storage device 70. As the result of the simulation, the drawing unit 62 displays the change in the motion speed of the virtual movable parts VJ1-VJ5 during the running time on the display unit 40. According to the simulation device 100 of the present embodiment, the reproducibility of the motion speed of the simulation result VV with respect to the actual measurement value VA can be confirmed, and the simulation result can be easily evaluated.
[0033] According to the simulation system 500 of the present embodiment, the drawing unit 62 uses the calculated motion speed and position information of the virtual movable unit VJ1 to draw the motion of the virtual movable units VJ1-VJ5. The calculation unit 64 outputs the calculated motion speed and position information of the virtual movable units VJ1-VJ5 to the control device 300, and the control device 300 generates a control signal that reflects the input motion speed and position information of the virtual movable units VJ1-VJ5 in the driving of the movable unit J1. Therefore, the motion speed and position information of the virtual movable units VJ1-VJ5 that takes into account the influence of the physical quantity can be fed back to the control device 300.
[0034] According to the simulation system 500 of the present embodiment, the drawing unit 62 drives the virtual device in the virtual space using the control signal output from the control device 300 for driving the movable parts J1-J5. By using the control signal used in the robot 200 as a real machine for simulation, it is not necessary to prepare a control signal for simulation separately, and simulation can be performed in a simple method.
[0035] The present disclosure is not limited to the above-mentioned embodiments, and can be implemented in various configurations within the scope of the main purpose. For example, the technical features in the embodiments corresponding to the technical features in each method recorded in the "Contents of the Invention" column can be appropriately replaced or combined in order to solve part or all of the above-mentioned problems, or to achieve part or all of the above-mentioned effects. In addition, as long as the technical feature is not described as a necessary technical feature in this specification, it can be appropriately deleted. Description of Reference Numerals
[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…Moveable part, V200…Virtual robot, VJ1-VJ5…Virtual movable part, GP1-GP4…Difference.
Claims
1. A simulation device comprising: a rendering unit that renders a virtual device corresponding to the device in a virtual space, the virtual device having a virtual movable portion corresponding to a movable portion of the device; and a calculation unit that calculates physical quantities including a moment of inertia acting on the movable unit when the movable unit is moved, and repeatedly calculates a movement speed of the virtual movable unit using the calculated physical quantities, The drawing unit draws the motion of the virtual movable unit using the calculated motion speed of the virtual movable unit.
2. The simulation device according to claim 1, wherein: The physical quantity further includes a gravity acting on the movable part and a friction force acting on the movable part when the movable part is moved.
3. The simulation device according to claim 1, wherein: The drawing unit draws a change in a motion speed of the virtual movable unit within a running time of the virtual movable unit.
4. A simulation system comprising: a control device that outputs a control signal for driving a movable part of the device; a rendering unit that renders a virtual device corresponding to the device in a virtual space, the virtual device having a virtual movable part corresponding to the movable part; and a calculation unit that calculates physical quantities including a moment of inertia acting on the movable unit when the movable unit is moved according to the control signal, and repeatedly calculates a movement speed of the virtual movable unit using the calculated physical quantities, The drawing unit draws the movement of the virtual movable part using the calculated movement speed of the virtual movable part. The calculation unit outputs the calculated motion speed of the virtual movable unit to the control device, The control device generates the control signal reflecting the input operation speed of the virtual movable part in driving the movable part.
5. A simulation method, Calculate physical quantities including the moment of inertia acting on the movable part of the device when the movable part is moved. using the calculated physical quantity, repeatedly calculating a motion speed of the virtual movable part in a virtual device having a virtual movable part corresponding to the movable part, The movement of the virtual movable part is drawn in a virtual space using the calculated movement speed of the virtual movable part.
