Simulation device and simulation program
The simulation device and program automate the design of cable routing for industrial robots by optimizing parameters using a physics simulator, addressing the inefficiencies of manual cable installation and ensuring load constraints, thereby reducing costs and time.
Patent Information
- Application Number
- JP2020213178
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-12-23
- Publication Date
- 2024-09-26
- Estimated Expiration
- 2040-12-23
AI Technical Summary
The manual and time-consuming process of determining cable routing for industrial robots, which involves trial and error, necessitates a method to design cable installation positions and lengths in advance.
A simulation device and program that calculate the behavior of cables attached to equipment via multiple guides, optimizing parameters such as position, orientation, and length using a physics simulator to ensure load constraints are met, allowing for automated cable routing design.
Enables efficient and accurate pre-design of cable routing for industrial robots, reducing costs and time by optimizing cable installation parameters while ensuring load constraints are satisfied.
Smart Images

Figure 0007556283000010 
Figure 0007556283000023 
Figure 0007556283000019
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a simulation device and a simulation program capable of estimating the behavior of an object placed in a three-dimensional virtual space. [Background technology]
[0002] Simulations using computers are applied in various technical fields. As an example of using such simulations in FA (Factory Automation), for example, Japanese Patent Application Laid-Open Publication No. 2016-042378 (Patent Document 1) discloses a simulation of a control program executed in a controller that controls the movement of a machine. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2016-042378 A Summary of the Invention [Problem to be solved by the invention]
[0004] In the field of FA, there has been a demand for designing in advance the layout of cables to be attached to industrial robots, which are an example of machinery. More specifically, in the past, when laying cables for industrial robots, users would actually operate the cables to determine the appropriate installation position or cable length, but this work required repeated trial and error and took a long time. Therefore, there has been a demand for designing cable layout (installation position or cable length, etc.) in advance.
[0005] An object of the present disclosure is to provide a simulation device and a simulation program that enable the routing of cables to be attached to equipment to be designed in advance. [Means for solving the problem]
[0006] The simulation device of this disclosure, which calculates the behavior of a cable attached to equipment via multiple guides, includes a partial cable behavior calculation unit that calculates the behavior of a second object placed in a virtual space corresponding to a partial cable between each of the guides based on the behavior of a first object corresponding to equipment placed in the virtual space, using a parameter set related to cable attachment including the position and posture of each of the multiple guides in the virtual space and the partial cable length between each of the guides; a parameter determination unit that calculates, for each partial cable, a load on the second object corresponding to the partial cable based on the behavior of the second object corresponding to the partial cable calculated by the partial cable behavior calculation unit using the parameter set, and determines, for each parameter set, whether the calculated magnitude of the second object corresponding to the partial cable satisfies a constraint condition; and a parameter determination unit that determines, for each partial cable, a parameter set that satisfies a condition related to the attachment of the entire cable including each partial cable, from one or more parameter sets determined by the parameter determination unit to satisfy the constraint condition.
[0007] According to this disclosure, a parameter set can be determined for each partial cable, and a parameter set for attaching the entire cable to a device can be determined from the determined parameter sets for each partial cable.
[0008] In the above disclosure, the constraint condition includes a condition that the magnitude of the load applied to the second object corresponding to the partial cable does not exceed a threshold value.
[0009] According to this disclosure, the parameters of each partial cable can be determined according to the condition that the magnitude of the load on the second object corresponding to that partial cable does not exceed a threshold value.
[0010] In the above disclosure, the constraint condition includes a condition that when the length of a partial cable changes within a predetermined range, the magnitude of the load applied to the second object corresponding to the partial cable does not exceed a threshold value.
[0011] According to this disclosure, the condition for determining the parameters of a partial cable can be that the magnitude of the load does not exceed a threshold even if the length of the partial cable changes within a specified range, i.e., robustness to the length of the cable is satisfied.
[0012] In the above disclosure, the conditions regarding the installation of the entire cable include the condition that the position and orientation of the guides shared between adjacent partial cables are common.
[0013] According to this disclosure, the conditions for the parameters of the entire cable include a condition that the position and orientation of the guide shared between adjacent partial cables are common.
[0014] In the above disclosure, the behavior of the first object includes behavior calculated for each specified time step, and the partial cable behavior calculation unit calculates the behavior of the second object for each time step using a parameter set based on the behavior of the first object corresponding to that time step.
[0015] According to the above disclosure, the behavior of the cable can be calculated for each time step based on the behavior of the device calculated for each time step.
[0016] In the above disclosure, the partial cable behavior calculation unit includes a physical simulator. According to the above disclosure, the behavior of the cable can be calculated using a physical simulator.
[0017] In the above disclosure, the second object includes a modeled rigid body link in which adjacent rigid bodies are connected with joints, and the physical simulator calculates the behavior of the second object by performing calculations based on the behavior of the first object according to equations that represent the relationship in positions and orientations between adjacent rigid bodies in the modeled rigid body link and the constraint conditions that correspond to the joints and are imposed on the relationship in positions and orientations between the rigid bodies.
[0018] According to the above disclosure, the cable can be modeled as a rigid link with constraints imposed, and the behavior can be calculated using equations that represent the model.
[0019] In the above disclosure, the constraints include a parameter representing the stiffness of the cable. According to the above disclosure, the behavior of the second object corresponding to the partial cable can be calculated using the stiffness of the cable to be attached to the device.
[0020] In the above disclosure, the load includes a load on each rigid body that the second object comprises. According to the above disclosure, the load acting on each rigid body can be calculated.
[0021] In the above disclosure, the system further includes an evaluation unit that evaluates the behavior of the second object calculated by the partial cable behavior calculation unit based on the calculated load.
[0022] According to the above disclosure, for each partial cable, the behavior of the corresponding second object can be evaluated based on the calculated load.
[0023] In the above disclosure, the device includes a robot, and the behavior of the first object is calculated by emulation of a robot program having command codes for operating the robot.
[0024] According to the above disclosure, a simulation of the behavior of a cable attached to a robot can be performed based on the behavior of a first object calculated by an emulator of a robot program.
[0025] In the above disclosure, the simulation device calculates the behavior of an object corresponding to a peripheral device of the robot, which is arranged in a virtual space, by executing a simulation program including instructions or parameters for controlling the peripheral device.
[0026] According to the above disclosure, it is possible to calculate the behavior of the second object corresponding to the cable and the behavior of the object corresponding to the peripheral device in the same virtual space.
[0027] In the above disclosure, the simulation device further includes an image generation unit that generates an image that visualizes the virtual space.
[0028] According to the above disclosure, a virtual space with a simulated object arrangement can be visualized and provided to a user.
[0029] The simulation program according to the present disclosure is a program that causes a computer to execute a method for calculating the behavior of a cable attached to equipment via multiple guides.
[0030] The above method includes a step of calculating the behavior of a second object placed in the virtual space corresponding to the partial cable between each of the guides based on the behavior of a first object corresponding to equipment placed in the virtual space, using a parameter set related to cable installation including the position and posture of each of the multiple guides in the virtual space and the partial cable length between each of the guides, and a step of determining parameters for each partial cable, wherein the step of determining parameters includes a step of calculating, for each partial cable, a load on the second object corresponding to the partial cable based on the behavior of the second object corresponding to the partial cable calculated using the parameter set, for each of a plurality of parameter sets, and a step of determining, for each of the plurality of parameter sets, whether the magnitude of the calculated load of the second object corresponding to the partial cable satisfies the constraint conditions, and the method further includes a step of determining, for each partial cable, a parameter set that satisfies the conditions related to the installation of the entire cable including each of the partial cables, from one or more parameter sets determined to satisfy the constraint conditions in the parameter determining step.
[0031] According to this disclosure, a parameter set can be determined for each partial cable, and a parameter set for attaching the entire cable to a device can be determined from the determined parameter sets for each partial cable. Effect of the Invention
[0032] According to the present disclosure, the routing of cables to be attached to equipment can be designed in advance. [Brief description of the drawings]
[0033] [Figure 1] FIG. 1 is a diagram illustrating an example of an application scene of a cable simulation device 1B according to the present embodiment. [Diagram 2] FIG. 1 is a diagram illustrating a model of a device simulated by a simulation device 1 according to the present embodiment. [Diagram 3] 2 is a schematic diagram showing an example of a unit configuration of a control system 2 according to the present embodiment. FIG. [Figure 4] FIG. 1 is a schematic diagram showing an example of a hardware configuration for realizing a simulation device 1 according to an embodiment of the present invention. [Diagram 5] FIG. 1 is a schematic diagram showing an example of a functional configuration for implementing a simulation device 1 according to an embodiment of the present invention. [Figure 6] FIG. 1 is a diagram showing a schematic diagram of an example of a model of a robot arm having cables and guides attached thereto. [Figure 7] FIG. 13 is a diagram illustrating a schematic diagram of a partial cable model for simulation. [Figure 8] FIG. 2 is a diagram illustrating an example of a model of a physical simulation of a cable according to the present embodiment. [Figure 9] FIG. 9 is a diagram showing an example of simultaneous equations 147 of the physical simulation model of the cable of FIG. 8. [Figure 10] 11A and 11B are diagrams illustrating an example of updating a position in a physical simulation according to the present embodiment. [Figure 11] FIG. 2 is a diagram illustrating an example of a simulation sequence according to the present embodiment. [Figure 12] 12 is a process flowchart of the cable simulation (step S100) in FIG. 11. [Figure 13]It is a flowchart of the partial cable optimization process (step S110) in FIG. 12. [Figure 14] It is a flowchart of the overall cable optimization process (step S120) in FIG. 12. [Figure 15] It is a diagram for explaining the number of segments to be optimized and the guide position and orientation in the arm of the robot. [Figure 16] It is a diagram schematically showing an example of the pick-and-place motion of the robot arm. [Figure 17] It is a graph showing the result of the simulation. [Figure 18] It is a diagram showing the relationship between each motion in FIG. 17, the optimal parameter set of the overall cable, and the shape of the cable. [Figure 19] It is a diagram schematically showing a method for estimating the spring constant. [Figure 20] It is a diagram showing in tabular form the measured vertical displacement for each cable length in FIG. 19(a). [Figure 21] It is a diagram schematically showing the relationship between the torsional moment with respect to the axis of the cylinder and the torsional angle. [Figure 22] It is a graph showing the relationship between the torsional angle and the torsional moment. [Figure 23] It is a diagram schematically showing an example of a UI screen related to the parameter setting of the cable according to the present embodiment. [Figure 24] It is a diagram showing an example of a screen showing in tabular form the implementable parameter set according to the present embodiment.
Mode for Carrying Out the Invention
[0034] Hereinafter, each embodiment will be described with reference to the drawings. In the following description, the same parts and components are denoted by the same reference numerals. Their names and functions are also the same. Therefore, detailed descriptions thereof will not be repeated.
[0035] <A. Application Example> An example of a scene in which the present invention is applied will be described. FIG. 1 is a diagram that shows a schematic diagram of an example of a scene in which the cable simulation device 1B according to the present embodiment is applied. Referring to FIG. 1, the cable simulation device 1B calculates (estimates) the behavior of a cable 340 that can be attached to a robot 30, which is an example of a device provided in a FA production line. The device to which the cable 340 is attached is not limited to the robot 30. The robot 30 is also provided with, for example, an arm 301 that is configured with multiple joints, although this is not limited thereto. The robot 30 is provided with a robot hand 210 that is detachably attached to the arm 301 at the tip end by a connector 7. The cable 340 is attached via a cable guide of the robot hand 210 and cable guides 350 and 351 installed on a surface 306 (see FIG. 21) of the arm 301. Hereinafter, the cable guide is also simply referred to as a guide. In a state in which the cable 340 is attached to the robot 30 by these multiple guides, the cable between each guide is referred to as a partial cable. 1, the partial cables include a partial cable 341 between the guide of the robot hand 210 and guide 350, a partial cable 342 between guides 350 and 351, and a partial cable 343 between guides 351 and 352. Cable 340 is also referred to as whole cable 340 to distinguish it from the partial cables.
[0036] The partial cables 341, 342, and 343 are referred to as "partial cables" in the common description. The cable 340 is configured, for example, by covering a linear conductor constituting a signal line with an insulator. The material of the insulator is not limited, but resin materials such as plastic, rubber, and vinyl can be used. The material of the conductor is not limited, but metal having electrical conductivity can be used. The cable 340 may include, for example, an air cable through which a gas such as air flows. The guides 350, 351, and 352 have similar characteristics (shape, material, etc.), so they are collectively referred to as "guides" in the common description. By attaching the cable 340 to the robot 30 via the guide, other devices such as the robot controller 310 (see FIG. 2) can exchange signals with the robot 30 via the cable 340.
[0037] Considering that cables 340 for robots are generally expensive and that the work of laying them takes a long time as described above, if an appropriate layout of the cables 340 to be attached to the actual robot 30 is designed in advance and the user lays the cables 340 based on the design results, it is possible to reduce the costs, including the expenses and work time, involved in laying the cables 340. This advance design is realized by performing a cable simulation using the cable simulation device 1B.
[0038] More specifically, the cable simulation device 1B includes an equipment behavior generation module 151 that generates equipment behavior data 2520 that represents the behavior of an equipment (robot 30), and a cable simulator 165 that calculates (estimates) the behavior in a three-dimensional virtual space of an object (hereinafter also referred to as a second target) corresponding to the cable 340 attached to the robot 30. The equipment behavior data 2520 indicates the behavior of an object (hereinafter also referred to as a first target) corresponding to the robot 30, which is placed in the same three-dimensional virtual space as the object of the entire cable 340. The "first target" is not limited to, but includes, for example, an object corresponding to the robot 30 and the robot hand 210 attached to the robot 30.
[0039] The cable simulator 165 calculates the behavior of the object in the three-dimensional virtual space using the equipment behavior data 2520 and a plurality of parameter sets. A three-dimensional absolute coordinate system defined by orthogonal X-axis, Y-axis, and Z-axis, for example, is applied to this three-dimensional virtual space. The cable simulation device 1B can be implemented in an information processing device 100 constituted by, for example, a general-purpose computer, and the information processing device 100 executes a predetermined program to realize the equipment behavior generation module 151, the cable simulator 165, and the evaluation module 177.
[0040] The cable simulator 165 calculates the behavior of the cable 340 attached via multiple guides installed on the robot 30, and determines an optimal parameter set for the attachment of the entire cable 340 from among multiple parameter sets based on the calculated behavior. The cable simulator 165 includes a partial cable optimization unit for optimizing the parameter set of each partial cable, and an entire cable optimization unit for optimizing the parameter set of the entire cable 340, in order to determine the optimal parameter set for the attachment of the entire cable 340. The partial cable optimization unit is one embodiment of a "parameter determination unit" that determines an optimal parameter set for the attachment of each partial cable. In the present disclosure, the parameter set for the attachment includes the position and posture of the guide and the cable length.
[0041] The partial cable optimization unit includes a partial cable behavior calculation module 166 which is an embodiment of the "partial cable behavior calculation unit", a load calculation module 167 which is an embodiment of the "load calculation unit", a constraint condition determination module 168 which is an embodiment of the "constraint condition determination unit", and a robustness determination module 169. The partial cable behavior calculation module 166 optimizes a parameter set related to the installation of each partial cable between guides installed at adjacent positions, using the load calculation module 167, the constraint condition determination module 168, and the robustness determination module 169. More specifically, based on the behavior (equipment behavior data 2520) of a first object corresponding to an apparatus arranged in a virtual space, the partial cable behavior calculation module 166 calculates the behavior of a second object arranged in the virtual space corresponding to the partial cable between each guide for each parameter set, using each parameter set including the position of each guide in the virtual space and the partial cable length between each guide.
[0042] The load calculation module 167 calculates the load applied to the second object for each of the multiple parameter sets, based on the behavior of the second object corresponding to each partial cable calculated by the partial cable behavior calculation module 166. The type of load calculated by the load calculation module 167 is not limited, but may include, for example, bending, stretching, twisting, and impact (collision of the second object) of the second object, and a force (reaction force) applied to the second object in the event of a collision when the equipment behaves in accordance with the equipment behavior data 2520.
[0043] The constraint condition determination module 168 determines whether the magnitude of the load calculated for the second target corresponding to each partial cable satisfies the constraint condition. More specifically, the constraint condition may include a condition that the magnitude of the load does not exceed a threshold. The constraint condition may also include a condition (hereinafter also referred to as a robustness condition) that the magnitude of the load applied to the second target corresponding to each partial cable does not exceed the above-mentioned threshold even if the length of each partial cable changes within a predetermined range. The constraint condition determination module 168 determines that the magnitude of various loads satisfies the constraint condition when the magnitude of various loads does not exceed a threshold. The robustness determination module 169 determines whether the magnitude of the load calculated for the second target corresponding to each partial cable satisfies the above-mentioned robustness condition.
[0044] The cable simulator 165 defines one or more parameter sets that are determined by the constraint condition determination module 168 or the robustness determination module 169 to satisfy the constraint condition (or the robustness condition) for each partial cable as a set D of optimal parameter sets for the partial cable. 2,n is decided.
[0045] The parameter determination module 170 of the overall cable optimization unit is an example of a "parameter determination unit." The parameter determination module 170 determines a set D of optimal parameter sets for each partial cable that is determined to satisfy the constraints. 2,nFrom the above, the optimal parameter set d of the entire cable that satisfies the conditions for installation of the entire cable 340 including each partial cable is obtained. * The conditions for installation of the overall cable 340 include, for example, a condition that the parameter set is such that the cable length of the overall cable 340, which is the sum of the partial cables, is the shortest.
[0046] In the present disclosure, the parameter set satisfying the constraint conditions may be further configured to satisfy robustness against disturbances such as errors in calculations by simulations and errors in cable installation by a user. More specifically, the optimal parameter set for each partial cable is determined to be the optimal parameter set that satisfies the above constraint conditions even when the partial cable length is shortened and extended within a certain range.
[0047] When the optimal parameter set for each partial cable is determined, the parameter determination module 170 determines an optimal parameter set for attachment of the entire cable 340. The parameter determination module 170 determines an optimal parameter set d for the entire cable 340 from the set of optimal parameter sets for each partial cable under the adjacent condition that the position and orientation of the guide must be shared between the adjacent partial cables in order to connect the partial cables. * In addition, when a plurality of optimal parameter sets are obtained for the entire cable 340, the parameter determination module 170 selects, from among the plurality of optimal parameter sets, a parameter set that makes the length of the entire cable 340 the shortest.
[0048] As described above, in the present disclosure, for the predetermined motion of the robot 30 indicated by the device behavior data 2520, parameters related to cable attachment, that is, a parameter set composed of the cable length and the position and orientation (the "position and orientation" represents the position and orientation) where the guide is installed, are optimized. In the simulation, if the position and orientation of the guide for attaching the entire cable 340 and the cable length between the guides are simultaneously set as the optimization targets, the number of parameters is too large and the simulation incurs a large amount of cost (such as calculation time). In contrast, the cable simulator 165 according to the present disclosure performs the optimization of the parameter set related to the attachment of the entire cable 340 by dividing it into the optimization of the parameter sets of each partial cable. As a result, the optimization of the parameter set by simulation can be replaced with the optimization of a limited number of parameters consisting of the position and orientation of adjacent guides and the partial cable length between those guides. Therefore, the cost of the simulation can be reduced, and the routing of the cable attached to the device can be designed in advance using the parameter set of the entire cable 340 determined by the simulation.
[0049] Hereinafter, more specific application examples of the present embodiment will be described. <B. Example of Control System> FIG. 2 is a diagram showing a model of a device simulated by the simulation device 1 according to the present embodiment. The simulation device 1 includes a system simulation device 1A that estimates the behavior of a device, which is an actual device controlled by a PLC (Programmable Logic Controller) 200 of a control system 2 provided in a FA production line. The simulation device 1 can be implemented in an information processing device 100 that is configured with a general-purpose computer including a terminal device such as a PC (Personal Computer) or a tablet terminal, and the information processing device 100 executes a predetermined program to realize a system simulation that estimates the behavior of the device. The information processing device 100 provides a support tool for supporting a user in operating the control system 2. The support tool includes a setting tool for preparing an execution environment of the simulation, an execution environment of a control program for the control system 2, and a communication environment of the control system 2. The support tool is provided to the user by, for example, a UI (User Interface).
[0050] 2, the information processing device 100 is communicatively connected to the PLC 200, but the simulation can also be performed without being connected to the PLC 200. The above-described cable simulation device 1B can be provided in the simulation device 1. In that case, the simulation device 1 provides an environment in which the cable simulation and the system simulation can be performed.
[0051] 2, the control system 2 includes a PLC 200, a robot controller 310, and servo motor drivers 531, 532. The PLC 200, the robot controller 310, and the servo motor drivers 531, 532 are connected in a daisy chain via a field network 22. For example, EtherCAT (registered trademark) is adopted for the field network 22. However, the field network 22 is not limited to EtherCAT. The information processing device 100 may be connected to the PLC 200 via a network 80. Any wired or wireless communication means may be adopted for the network 80. The PLC 200 and the information processing device 100 communicate with each other according to, for example, USB (Universal Serial Bus).
[0052] The PLC 200 executes the designed control program based on field values including sensor output values from the field network 22, and controls the robot 30 and equipment related to the transportation of the conveyor 230 by providing target values to the robot controller 310 or servo motor drivers 531, 532, respectively, according to the results of the execution.
[0053] Servo motor drivers 531 and 532 drive the servo motors 41 and 42 of the conveyor 230. Encoders 236 and 238 are disposed on the rotation shafts of the servo motors 41 and 42. The encoders output the position (rotation angle), rotation speed, cumulative number of rotations, etc. of the servo motors 41 and 42 to the PLC 200 as feedback values of the servo motors 41 and 42.
[0054] The robot 30 and the conveyor 230 work together to move the workpiece 232. For simplicity, the movement of the workpiece 232 will be described here, but is not limited to the movement. For example, the robot 30 may process the workpiece 232 placed on the tray 9.
[0055] 2, servo motors 1301, 1302, 1303, and 1304 (hereinafter collectively referred to as "robot servo motors") provided in the robot 30 and a robot controller 310 that drives the robot servo motors are illustrated as an example of a drive device for the robot 30. Similarly, servo motor drivers 531 and 532 that drive servo motors 41 and 42 provided in the conveyor 230 are illustrated as an example of a drive device for the conveyor 230.
[0056] The robot controller 310 drives the robot servo motors of the robot 30. An encoder (not shown) is disposed on the rotation shaft of each robot servo motor. The encoder outputs the position (rotation angle), rotation speed, cumulative number of rotations, etc. of the servo motor to the robot controller 310 as feedback values of the robot servo motor.
[0057] The servo motor drivers 531, 532 drive the corresponding servo motors 41, 42 according to the command values. The control system 2 further includes a photoelectric sensor 6 and an openable / closable stopper 8 associated with the conveyor 230. The photoelectric sensor 6 detects that a tray 9 provided on the transport surface of the conveyor 230 has arrived in front of a predetermined work tracking area, and transmits the detection value to the PLC 200. The stopper 8 performs a closing operation according to the command value to stop (fix) the tray 9 that has arrived within the tracking area.
[0058] The robot hand 210 of the robot 30 is attached depending on the process. The type of the robot hand 210 includes, but is not limited to, a parallel hand, a multi-fingered hand, a multi-jointed hand, and the like, and may also include a type that picks and places the workpiece 232 by suction, for example.
[0059] The robot 30 performs, for example, pick and place as a motion according to command values from the robot controller 310. Specifically, the robot 30 picks up the workpiece 232 placed on the tray 9 on the conveyor 230 with the robot hand 210, moves the workpiece 232 to the table 55 at a predetermined position while holding the picked workpiece, and places (places) it on the table 55. The robot hand 210 controls the opening and closing operation of the hand for picking or placing the workpiece 232 according to command values from the robot controller 310.
[0060] Examples of devices whose behavior is estimated by the simulation performed by the system simulation device 1A include the conveyor 230 that conveys the workpiece 232 and the robot 30 (the robot 30 and the robot hand 210) that handles the workpiece 232. However, the devices whose behavior is estimated are not limited to these. The cable simulation device 1B calculates (estimates) the behavior of the cable based on the behavior of the device calculated (estimated) by the system simulation.
[0061] The control program may be designed by the information processing device 100 using the results of such simulations. The control program designed on the information processing device 100 is sent to the PLC 200 via the field network 22.
[0062] Also, the PLC 200 may have components of the simulation device 1 of the information processing device 100.
[0063] <C. Overall Configuration of Control System> Fig. 3 is a schematic diagram showing an example of a unit configuration of the control system 2 according to the present embodiment. Referring to Fig. 3, the control system 2 includes a PLC 200, servo motor drivers 531, 532 and a remote IO terminal 5 connected to the PLC 200 via a field network 22, a robot controller 310 to which a cable 340 is connected, and IO devices provided in the field, such as a photoelectric sensor 6, a proximity sensor 87 provided in a stopper 8, and encoders 236, 238.
[0064] The PLC 200 includes a calculation unit 13 that executes main calculation processing, one or more IO units 14, and a special unit 17. These units are configured to be able to exchange data with each other via a system bus 81, and are supplied with power from a power supply unit 12. An information processing device 100 can be connected to the calculation unit 13.
[0065] The IO unit 14 collects detection values 61, 71, 237, and 239 from IO devices including the photoelectric sensor 6, the proximity sensor 87 of the stopper 8, and the encoders 236, 238. The proximity sensor 87 detects in a non-contact manner that the tray 9 has approached the stopper 8 to within a predetermined distance. The detection values from each IO device are set (written) in, for example, a memory provided in the IO unit 14. The arithmetic unit 13 executes calculations of a control program using the values collected by the IO unit 14, and sets (writes) the values of the calculation results in the memory of the IO unit 14. The peripheral devices or IO devices operate by referring to the values in the memory of the IO unit 14.
[0066] The field network 22 may be connected to the robot controller 310, servo motor drivers 531 and 532, and a remote IO terminal 5. The IO remote terminal 5 includes a communication coupler 52 for performing processing related to data transmission in the field network 22, and one or more IO units 53. These units are configured to be able to exchange data with each other via a remote IO terminal bus 51.
[0067] The servo motor drivers 531 and 532 are connected to the arithmetic unit 13 via the field network 22, and drive the servo motors 41 and 42 according to command values from the arithmetic unit 13. The arithmetic unit 13 generates these command values based on the detection values 237 and 239 from the encoders 236 and 238.
[0068] The arithmetic unit 13 executes a predetermined control program with reference to the detection values from the IO devices described above, and causes the robot 30 to perform pick and place. Specifically, when the arithmetic unit 13 detects from the detection value 61 of the photoelectric sensor 6 and the detection value 71 of the proximity sensor 87 that the workpiece 232 has approached a predetermined tracking area, it generates a control command 211 for the arm 301 of the robot that performs pick and place and a control command 222 for the robot hand 210, and outputs them to the robot 30 via the cable 340 through the robot controller 310.
[0069] <D. Hardware Configuration> Next, an example of the hardware configuration of the simulation device 1 according to the present embodiment will be described.
[0070] FIG. 4 is a schematic diagram showing an example of the hardware configuration for realizing the simulation device 1 according to the present embodiment. In the present embodiment, the simulation device 1 can be implemented in an information processing device 100 as shown in FIG. 4. Specifically, the simulation device 1 is realized by the processor 102 of the information processing device 100 executing a necessary program. In FIG. 4, the simulation device 1 is provided with an environment for performing system simulation and cable simulation.
[0071] The information processing device 100 includes, as main components, a processor 102 that executes an operating system (OS) and various programs as described below, a main memory 104 that provides a working area for storing data necessary for the processor 102 to execute the programs, an operation unit 106 that accepts user operations such as a keyboard and a mouse, an output unit 108 that outputs processing results such as a display 109, various indicators, and a printer, a network interface 110 that is connected to various networks including the network 80, an optical drive 112, a local communication interface 116 that communicates with external devices, and a storage 111. These components are connected to each other so as to be able to communicate data with each other via an internal bus 118 or the like.
[0072] The information processing device 100 reads various programs or data from a computer-readable storage medium 114, including an optical storage medium (e.g., a DVD (Digital Versatile Disc)) that non-transiently stores computer-readable programs, using an optical drive 112, and installs the programs or data in storage 111, etc.
[0073] Various programs or data executed by the information processing device 100 may be installed via a computer-readable storage medium 114, or may be installed by downloading them via a network interface 110 from a server device (not shown) on the network.
[0074] The storage 111 is composed of, for example, a hard disk drive (HDD) or a flash solid state drive (SSD), and stores a program executed by the processor 102. Specifically, the storage 111 stores, as simulation programs for realizing the simulation according to the present embodiment, a virtual time generation program 120, a relay program 121, a physical simulation program 122, physical simulation parameters 124 related to the physical simulation, a PLC simulation program 126, PLC parameters 128 related to the PLC simulation, a robot emulation program 130, robot parameters 132 related to the robot emulation, an integration program 134, and a cable simulation program 137. The storage 111 further stores an image processing program 136 for generating an image displaying an object arranged in a three-dimensional virtual space, an evaluation program 143, and a parameter setting program 145.
[0075] When executed, the cable simulation program 137 realizes a cable simulator 165 having various modules of the partial cable optimization unit shown in Fig. 1 and a parameter determination module 170 of the overall cable optimization unit. The cable simulation program 137 includes a constraint condition determination program 1371 for realizing the constraint condition determination module 168 and a robustness determination program 1372 for realizing the robustness determination module 169. The load applied to the cable object, which is calculated by executing the cable simulation program 137, is stored as load information 142.
[0076] The evaluation program 143 evaluates the behavior of the object corresponding to the cable 340 calculated by the cable simulation program 137, based on the behavior, and outputs evaluation data 144 indicating the evaluation result. The evaluation data 144 may be stored in the storage 111. The evaluation data includes data for evaluating the load applied to the cable model in the cable simulation.
[0077] The parameter setting program 145 stores cable parameters 139, which are set based on, for example, the contents of a user operation on the information processing device 100, in the storage 111. The cable parameters 139 include a threshold value of a constraint condition, a robustness range R described below, a candidate parameter set, etc. The cable parameters 139 further include a bending constant, a damping coefficient, a stiffness value, etc. of the cable 340.
[0078] The virtual time generating program 120 generates a virtual time for a simulation. The simulation device 1 executes a simulation at a period based on the virtual time.
[0079] The physical simulation program 122 calculates the behavior of an object corresponding to equipment that operates in relation to the movement of the workpiece 232. Equipment for which the behavior of the corresponding object is calculated by the physical simulation program 122 includes, for example, a photoelectric sensor 6, a conveyor 230, a tray 9, a stopper 8, and a robot hand 210 that are related to the transportation or movement of the workpiece 232. The physical simulation program 122 is provided with physical simulation parameters 124 including parameters for defining the behavior of the object corresponding to such equipment and parameters for defining the weight or shape of the workpiece 232. The values of the physical simulation parameters 124 may be changed as appropriate by a user operation, an integrated program 134, or the like.
[0080] CAD (Computer Aided Design) data of the workpiece 232 and equipment related to the transportation or movement of the workpiece 232 may be used as the physical simulation parameters 124. By using the CAD data, the behavior of the actual equipment can be reproduced more accurately using an object.
[0081] The PLC simulation program 126 calculates the positions of the equipment and workpieces 232 for which the behavior of the corresponding objects is calculated by the physical simulation program 122. The calculated positions are provided to the physical simulation program 122. The PLC simulation program 126 is provided with PLC parameters 128 including parameters necessary for calculating the above positions.
[0082] The robot emulation program 130 functions as a simulator that reproduces the behavior of the robot 30 by an object. The robot emulation program 130 reproduces a predetermined motion of the robot 30 handling a workpiece 232 based on the result (behavior of the object) calculated by the physical simulation program 122. The robot emulation program 130 is provided with robot parameters 132 including parameters necessary for reproducing the behavior of the robot 30 by the corresponding object.
[0083] The relay program 121 provides a relay function for the physical simulation program 122 and the robot emulation program 130 to exchange data with each other. Although not limited to this, the relay function of the relay program 121 is described, for example, in the form of a script command.
[0084] The integrated program 134 executes a process for linking the physical simulation program 122, the PLC simulation program 126, the robot emulation program 130, and the relay program 121 with each other. Specifically, the integrated program 134 generates and updates virtual space information 105, which describes the state of an object in a three-dimensional virtual space, typically on the main memory 104. The physical simulation program 122, the PLC simulation program 126, and the robot emulation program 130 refer to (read) the virtual space information 105 to execute the process of each simulation, and reflect necessary information among the execution results in the virtual space information 105. The function provided by the integrated program 134 reproduces the behavior and processing of the equipment in the control system 2 that includes the equipment that transports the workpiece 232 and the robot 30 that moves the workpiece 232 by a predetermined motion.
[0085] The image processing program 136 is provided with 3D (three-dimensional) visualization data 135 for display on the display 109. The 3D visualization data 135 includes behavior data 252 and image data 253. The image data 253 includes equipment image data 2530 for rendering an object corresponding to the equipment to be simulated, and cable image data 2531 for rendering an object corresponding to the cable 340. The cable image data 2531 includes image data corresponding to an object of a rigid body 304 (described below).
[0086] The behavior data 252 includes equipment behavior data 2520 and cable behavior data 2521, which include three-dimensional coordinates P(x, y, z) that are positions calculated using a predetermined function for the positions of each equipment in the virtual space information 105 and time-series data. The cable behavior data 2521 indicates the behavior of an object placed in the three-dimensional virtual space corresponding to the cable 340, which is calculated by the cable simulator 165 based on the equipment behavior data 2520.
[0087] The image processing program 136 uses the device image data 2530 and the device behavior data 2520 to generate image data for three-dimensionally rendering the behavior of each object of interest for the workpiece 232, the devices and the robot 30 related to the conveyance of the workpiece 232, and the robot hand 210 attached to the robot 30, and outputs the image data to the display 109. Further, the image processing program 136 uses the cable image data 2531 and the cable behavior data 2521 to generate image data for three-dimensionally rendering the behavior of the object corresponding to the cable 340 in a three-dimensional virtual space, and outputs the image data to the display 109.
[0088] As a result, on the display 109, the objects are displayed according to the behavior calculated by the simulation, the behavior of the devices of the control system 2 is reproduced, and the behavior of the cable 340 linked to the behavior of the devices is reproduced. Note that the image data 253 may include CAD (Computer-Aided Design) data or the like.
[0089] FIG. 4 shows an example of realizing the simulation device 1 by a single information processing apparatus 100, but the simulation device 1 may be realized by linking a plurality of information processing apparatuses. In this case, a part of the processing necessary for realizing the simulation device 1 may be executed by the information processing apparatus 100, and the remaining processing may be executed by a server (cloud) or the like on the network.
[0090] FIG. 4 shows an example in which the simulation device 1 is realized by the processor 102 executing one or more programs, but a part of the processing and functions necessary for realizing the simulation device 1 may be implemented using a circuit such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field-Programmable Gate Array).
[0091] <E. Functional Configuration> Next, an example of the functional configuration of the simulation device 1 according to the present embodiment will be described. FIG. 5 is a schematic diagram showing an example of the functional configuration for realizing the simulation device 1 according to the present embodiment. The functions shown in FIG. 5 are typically realized by the processor 102 of the information processing device 100 executing programs (such as a virtual time generation program 120, a relay program 121, a physical simulation program 122, a PLC simulation program 126, a robot emulation program 130, an integration program 134, an image processing program 136, a cable simulation program 137, an evaluation program 143, and a parameter setting program 145). The simulation device 1 includes functions for the system simulation device 1A and the cable simulation device 1B, a period generation module 154 that generates an execution period of the system simulation and the cable simulation, and a 3D visualizer 164 that draws an object in a three-dimensional virtual space based on the simulation result. The 3D visualizer 164 may include a function realized by the image processing program 136 being executed.
[0092] (E1. Configuration of system simulation device 1A) 5, the system simulation device 1A includes a virtual space information management module 150, a PLC simulator 152, a workpiece behavior simulator 155, a physical simulator 156, a relay module 158, a robot emulator 160, and a workpiece tracking module 162.
[0093] The virtual space information management module 150 is realized by executing the integrated program 134 (Figure 4), and manages the virtual space information 105 for specifying the behavior (position, posture, etc.) of each object in the three-dimensional virtual space in which the simulation is performed.
[0094] The PLC simulator 152 is realized by executing the PLC simulation program 126 (FIG. 4), and calculates the behavior of an object corresponding to equipment related to the transportation of the workpiece 232 according to the physical simulation parameters 124. The information calculated by the PLC simulator 152 is reflected in the virtual space information 105.
[0095] The PLC simulator 152 is a program that estimates the behavior of the equipment involved in the transportation of the workpiece 232, and corresponds to a simulation program that includes a plurality of instructions included in the PLC program. These instructions may include a group of instructions for controlling the behavior of the equipment involved in the transportation included in the PLC program. The PLC program is written in, for example, a cyclic execution language (for example, a program language written in a ladder language).
[0096] Each time these commands of the PLC simulator 152 are executed based on the data of the virtual space information 105 , command values for controlling the servo motors 41 and 42 of the conveyor 230 , for example, are generated and stored in the virtual space information 105 .
[0097] The relay module 158 outputs the measurement result of the workpiece 232 by the measurement process using the image measurement parameters 129 of the workpiece 232 to the robot emulator 160. The robot emulator 160 reproduces the behavior of the robot 30 that transports the workpiece arranged in the virtual space according to the measurement result from the relay module 158. Information on the behavior of the robot 30 calculated by the robot emulator 160 is reflected in the virtual space information 105. The robot emulator 160 is realized by executing the robot emulation program 130. The robot emulator 160 outputs the equipment behavior data 2520 that indicates the behavior of the robot 30 that moves the workpiece 232 arranged in the three-dimensional virtual space. The robot emulator 160 performs a simulation by regarding the arm 301 of the robot 30 and the robot hand 210 attached to the tip of the arm 301 as an integrated rigid body.
[0098] Specifically, the robot emulation program 130 includes a set of instructions included in the program of the robot controller 310. The set of instructions includes instructions of the robot program having a command code for making the robot 30 operate the workpiece 232. These commands include an instruction to calculate a target trajectory of the robot 30 based on the output data of the PLC simulator 152 of the virtual space information 105, and to calculate command values indicating the behavior of each axis based on the calculated trajectory.
[0099] In this way, when the robot emulator 160 executes a command, it generates command values for each axis that controls the behavior of the robot 30, and outputs the generated command values to the virtual space information management module 150. The virtual space information management module 150 manages (stores) the command values from the robot emulator as virtual space information 105.
[0100] The workpiece behavior simulator 155 calculates the behavior of one or more workpieces 232 objects arranged in a three-dimensional virtual space. Specifically, the workpiece behavior simulator 155 is realized by executing the physical simulation program 122 (FIG. 4), and calculates and updates the behavior of the workpiece 232 arranged in the three-dimensional virtual space according to information on the behavior of the object corresponding to the transport device of the workpiece 232 by the PLC simulator 152. When calculating the behavior of the workpiece 232, the workpiece behavior simulator 155 calculates the position, posture, moving speed, moving direction, etc. of the workpiece 232. The position and posture of the workpiece 232 are calculated based on work parameters arbitrarily set by a user or the like. The information on the position and posture of the workpiece 232 calculated by the workpiece behavior simulator 155 is reflected in the virtual space information 105. The workpiece parameters can also be included in the physical simulation parameters 124.
[0101] The physical simulator 156 is realized by executing the physical simulation program 122 (FIG. 4). The physical simulator 156 calculates the behavior (position, posture, moving speed, moving direction, etc.) of an object corresponding to a device for transporting or moving the workpiece 232 in accordance with the physical simulation parameters 124. Targets simulated by the physical simulator 156 include the photoelectric sensor 6, the stopper 8, the tray 9, the robot hand 210, the conveyor 230, and the workpiece 232.
[0102] The physics simulator 156 calculates the behavior of the positions, orientations, etc. of these objects in accordance with a predetermined physics calculation. The physics simulator 156 performs the calculation by setting the mass parameter 127 of the object, among the physics simulation parameters 124 used in this physics calculation, to zero.
[0103] The physical simulator 156 stores the three-dimensional coordinates P(x, y, z) of the robot hand 210 calculated by physical calculation as equipment behavior data 2520. The physical simulator 156 is executed for each time step ti (i=1, 2, 3, . . .), so that the equipment behavior data 2520 includes the time-series three-dimensional coordinates P(x, y, z) corresponding to the robot hand 210.
[0104] The work tracking module 162 is realized by executing the robot emulation program 130. The work tracking module 162 tracks the workpiece 232 picked and placed by the robot 30 in the three-dimensional virtual space, based on behavior information of the robot 30 from the robot emulator 160. Position information (workpiece position) of the workpiece 232 tracked by the work tracking module 162 is reflected in the virtual space information 105.
[0105] (E2. Configuration of cable simulation device 1B) 5, the cable simulation device 1B includes a cable simulator 165 that is realized by executing a cable simulation program 137, and an evaluation module 177 that is realized by executing an evaluation program 143.
[0106] The cable simulator 165 is executed for each time step ti, and calculates the behavior of an object placed in the three-dimensional virtual space corresponding to the cable 340, using the cable parameters 139 based on the equipment behavior data 2520 corresponding to the time step ti, and stores the calculation result as cable behavior data 2521.
[0107] The cable simulator 165 calculates the behavior of the object corresponding to the cable 340 for each time step ti, and thereby the cable behavior data 2521 indicates the time-series behavior of the cable 340 in the three-dimensional virtual space.
[0108] The 3D visualizer 164 corresponds to an image generating unit that generates an image that visualizes the three-dimensional virtual space. The 3D visualizer 164 calculates three-dimensional coordinates P(x, y, z) of objects in the three-dimensional virtual space that respectively correspond to the workpiece 232, the robot 30, the robot hand 210, and the peripheral equipment, based on the command value for each time step ti of the virtual space information 105. Equipment behavior data 2520 including the time-series three-dimensional coordinates P(x, y, z) is calculated. The peripheral equipment is, for example, a peripheral equipment of the robot 30 (robot arm 301), and includes equipment related to the transportation of the workpiece 232.
[0109] The 3D visualizer 164 generates image data for visualizing the behavior of the equipment in the three-dimensional virtual space based on the equipment behavior data 2520 and the equipment image data 2530, and generates image data for visualizing the behavior of the cable in the three-dimensional virtual space based on the cable behavior data 2521 and the cable image data 2531. These image data are output to the display 109. As a result, an image showing the behavior of the equipment calculated by the system simulation and an image showing the behavior of the cable 340 calculated by the cable simulation are displayed on the display 109.
[0110] The period generating module 154 is realized by executing the virtual time generating program 120. Based on the output of a timer (not shown) included in the processor 102, the period generating module 154 outputs a signal ST synchronized with the output of the timer to each of the other parts. Each part executes a process or program in synchronization with a predetermined time step ti, which is a period in which the signal ST is output from the period generating module 154. As a result, each part in FIG. 5 executes in synchronization with each other for each time step ti. The output period of the signal ST may be determined based on, but is not limited to, the communication period of the field network 22 (hereinafter also referred to as the "control period") that follows the time synchronization of the control system 2 in FIG. 3. Note that the period indicated by the time step ti based on the signal ST may be variable. The value of "i" of the time step ti changes to a predetermined maximum value, for example, 1, 2, 3, etc., in synchronization with the output period of the signal ST, and the maximum value may be determined based on the length of time required from the start to the end of the predetermined motion described above.
[0111] By linking the various functions as shown in FIG. 5 with each other, it is possible to reproduce the behavior of cable 340 linked to the behavior of the device.
[0112] In this embodiment, the simulation device 1 in FIG. 5 can activate one of the system simulation device 1A and the cable simulation device 1B according to an instruction from a user received via, for example, the operation unit 106. Further, the simulation device 1 can determine the timing for activating the system simulation device 1A or the cable simulation device 1B according to an instruction from a user received via, for example, the operation unit 106. For example, the simulation device 1 activates the system simulation device 1A and then sets the activation timing of the cable simulation device 1B. Thereby, when the cable simulation device 1B is activated, the device behavior data 2520 can be provided to the cable simulator.
[0113] Note that in FIG. 5, the information processing device 100 implements both the system simulation device 1A and the cable simulation device 1B. However, if the device behavior data 2520 is provided to the cable simulation device 1B in a manner that can be utilized, the information processing device 100 may implement only the cable simulation device 1B.
[0114] <F. 3D Virtual Space and Device Behavior Data> Referring to FIG. 2 again, the control of the robot 30 and the conveyor 230, which are the target devices of the system simulation, and the behavior of these devices in the 3D virtual space will be described.
[0115] As described above, the robot 30 and the conveyor 230 have movable parts that can be moved by a plurality of drive shafts. Each of these drive shafts is driven by a servo motor. Specifically, the robot 30 has a plurality of arms that are driven by the rotation of the robot servo motors (servo motors 1301 to 1304). Each robot servo motor drives each corresponding arm by rotating. The robot controller 310 controls the driving of the robot servo motors, so that each arm is driven three-dimensionally. The behavior of the robot 30 is realized by driving each arm in this way. Similarly, the conveyor 230 and the tray 9 on the conveying surface move by the rotation of the servo motors 41 and 42. The amount of movement (speed, direction, distance, etc. of the movement) is determined by the amount of rotation (direction of rotation, angle) of the servo motors 41 and 42. The behavior of the conveyor 230, the tray 9, and other devices is realized by driving the servo motors 41 and 42 in this way.
[0116] In this embodiment, a virtual axis is associated with each arm 301 of the robot 30, and the position of each axis determines the position of the robot 30. The PLC 200 controls the robot 30 according to a target position converted into a time series of each axis, and the speed and trajectory of the movement of each arm 301 are changed to the speed and trajectory following the target.
[0117] The target position of the robot 30 is stored in advance, for example, in the PLC 200. The robot controller 310 receives the target position from the PLC 200, determines the amount of rotation of each robot servo motor based on the received target position, and outputs a command value specifying the determined amount of rotation to each robot servo motor.
[0118] The system simulation device 1A can also calculate the behavior in the three-dimensional virtual space of the object corresponding to the workpiece 232 and the conveyor 230 that transports the workpiece 232 in the same manner as the robot 30, and output the calculation results as equipment behavior data 2520.
[0119] Furthermore, the devices are time-synchronized with each other in the control system 2. Specifically, the multiple devices connected to the field network 22, namely the PLC 100, the robot controller 310, the servo motor drivers 531 and 532, and the robot hand 210, have timers 90, 91, 92, 93, and 94 that are time-synchronized with each other, respectively, and the devices operate based on these timers, thereby synchronizing the timing of transmission and reception of data including control commands.
[0120] (F1. Equipment behavior data (joint angle time series data T(t))) An example of a process for calculating the position and orientation of the robot 30 in the three-dimensional virtual space according to this embodiment will be described. In this embodiment, an absolute coordinate system shared by each unit such as the robot 30 and the PLC 200 is exemplified as a coordinate system in the three-dimensional virtual space. When calculating the position in the absolute coordinate system, in this embodiment, the rotation amount of the servo motor 1301 is represented as αA, the rotation amount of the servo motor 1302 as αB, the rotation amount of the servo motor 1303 as αC, and the rotation amount of the servo motor 1304 as αD. By performing a calculation using a predetermined function for each of the servo motor rotation amounts (αA, αB, αC, αD), each of the servo motor rotation amounts (αA, αB, αC, αD) can be converted into the position of the joint in the three-dimensional virtual space (three-dimensional coordinate P(x, y, z)). In this embodiment, the system simulation device 1A uses the equipment behavior generation module 151 to calculate a time series change in the behavior (position in the three-dimensional virtual space) of a first object placed in a three-dimensional virtual space corresponding to an equipment (more specifically, the arm 301 of the robot 30), and outputs the joint angle time series data T(t) as the calculated equipment behavior data 2520.
[0121] (F2. How to generate joint angle time series data T(t)) Further, the joint angle time series data T(t) may be generated using CAD (Computer-Aided Design) regardless of the time series change in the rotation amount of the servo motor described above. More specifically, when the device behavior generation module 151 has a CAD (Computer-Aided Design) module, if the user specifies a predetermined motion (behavior) that the arm of the robot 30 should take, the CAD module executes motion planning for the specified motion, and as a calculation result of the motion planning, the joint angle time series data T(t) is acquired. Hereinafter, as the above-mentioned predetermined motion, pick-and-place, which is widely used as an industrial robot application, is exemplified, but the type of motion is not limited to pick-and-place.
[0122] <G. Model of Simulation Target> FIG. 6 is a diagram schematically showing an example of a model of an arm of a robot with a cable and a guide attached thereto. In the present embodiment, as a model to be simulated, an N-link robot arm having N links shown in FIG. 6 is used. The model in FIG. 6 has joints θ1, θ2, θ3 ··· θ in the direction from the base of the arm to the end effector (robot hand 210) at the tip. N The arm further has an absolute coordinate system Σ L0 and a link L0 connecting the origin (base of the arm) of the absolute coordinate system Σ to joint θ1, a link L1 connecting joint θ1 and joint θ2, a link L2 connecting joint θ2 and joint θ3, ···, a link L connecting joint θ N-1 and joint θ N including N links L N The link corresponds to an axis connecting between each joint. The model further includes a guide G n (1 ≦ n ≦ N) installed for link L n (1 ≦ n ≦ N), and a partial cable C n stretched and attached between adjacent guides G (n+1) and guide G n (n = 1, 2, ···, N).
[0123] The model includes an absolute coordinate system ΣL0 with the root of link L0 as the origin, and a link L n The base of the link L n the origin side end of the link L n The coordinate system ΣL rotates with n In the model, the coordinate system ΣL n is the joint angle θ(t)=[θ1(t), θ2(t), . . . , θ N-1 (t)] T In Fig. 6, the link L n The black circles on the top represent the installation positions. These installation positions are assumed to be the installation positions of guides and sensors, and correspond to the positions and orientations of the screw holes prepared in advance on the arm of the actual robot 30. In the model, the coordinate system ΣL n Guide G in n The position and orientation of is the relative position and orientation P n For simplicity, in the following, the position and orientation P n Guide G n The position and orientation of the guide G in the absolute coordinate system ΣL0 of the model is called Pn. n The position and orientation of n (t)(1≦n≦N) and position / posture P n It can be treated as a function of (1≦n≦N).
[0124] (G1. Partial cable model) FIG. 7 is a diagram showing a model of a partial cable for a simulation. In the simulation according to this embodiment, a model expressing the shape of the partial cable is generated, and a physical simulation is performed using the generated model. In this embodiment, the model of the partial cable includes a plurality of segments constituting the cable and joints connecting the segments. The segments of the model are treated as rigid bodies in the physical simulation, and the joints act as constraint conditions for the behavior of the segments on both sides. That is, in the simulation, when the behavior of a segment is calculated, a force and a torque shown in formula (1) proportional to the difference between the relative position and posture of the adjacent segments and the initial relative position and posture are applied to the components of the behavior according to Hooke's law. The method of calculating the spring constant of formula (1) will be described later.
[0125]
number
[0126] Partial cable C shown in Figure 7 n The model has a total of S n It is composed of segments Seg of the same length and joints (not shown) that connect them in a row. In the model, the first segment is the guide G n Position and orientation of P n Fixed at S n The th segment Seg is the partial cable C (n+1) The first segment Seg and S n Therefore, the cable segment C is connected through the n According to the model, partial cable C n The shape of the S n The position and orientation of each segment is calculated by the following formula. More specifically, because the connections between segments Seg are limited to neighboring segments, the constraint equation shown in formula (1) is constructed as a sparse determinant. Therefore, in the simulation, a convergent solution is derived using an iterative method such as the Gauss-Seidel method. The guide G calculated over time t by the simulation is nPosition and orientation P n and guide G (n+1) Position and orientation P (n+1) By changing the position and orientation P of the and guide G, the shape (behavior) of the partial cable C n will also change.
[0127] <H. Specific models and behavior calculations of physical simulation> With reference to FIGS. 8, 9 and 10, a specific example of physical simulation using the model of the partial cable will be described.
[0128] (H1. Specific model of physical simulation of partial cable) FIG. 8 is a diagram schematically showing an example of a model of physical simulation of a cable according to the present embodiment.
[0129] The cable simulator 165 according to the present embodiment includes a physical simulator that executes physical simulation. An object (second object) corresponding to the partial cable that is the target of physical simulation includes a rigid body link in which a plurality of rigid bodies 304 are connected in series by joints 305 between adjacent segments, which are rigid bodies 304. Specifically, in the simulation, the rigid body 304 is treated as a segment having a predetermined size and shape, and in the rigid body link, the rigid bodies 304 are connected in a row by joints 305. The physical simulation parameter 124 includes parameters such as the size and shape of the segment.
[0130] The rigid body 304 is, for example, a cylindrical object that does not deform. In the physical simulation, focusing on the center of the rigid body 304, the rigid body 304 is defined as a mass point having a current position and a previous position of the center. The joint 305 corresponds to a joint such as a spring or a damper, and in the model, the joint 305 corresponds to the above-mentioned constraint condition that restricts the translation and rotation of adjacent rigid bodies 304 in each of the x, y, and z axes. FIG. 8 shows a state in which both ends of the row of rigid bodies 304 are attached to the surface 306 of the arm of the robot 30 by the object 302 corresponding to the cable guide 350. Thus, in the cable simulation, the rigid body link is modeled by a joint structure that adds a constraint condition to the relationship between adjacent rigid bodies regarding the position and posture of the rigid body 304. In FIG. 8, the rigid body link is made up of three rigid bodies 304, but the number of rigid bodies 304 is not limited to three. That is, the number of rigid bodies 304 is set according to the cable length (Cable length in FIG. 23) specified by the parameter set.
[0131] In the cable simulation, the partial cable behavior calculation module 166 includes a physical simulator. The physical simulator calculates the behavior of the rigid link model in the three-dimensional virtual space (cable behavior data 2521) by calculating a constraint equation including a constraint condition representing the rigid link model of Fig. 8 using a parameter set based on a given behavior (joint angle time-series data T(t)) of an object in the three-dimensional virtual space corresponding to the robot 30.
[0132] FIG. 9 is a diagram showing an example of the simultaneous equations 147 of the physical simulation model of the cable in FIG. 8. The simultaneous equations 147 include equations Ati, Bti, and Cti corresponding to each of the rigid bodies 304 in FIG. 8. Each equation of the simultaneous equations 147 includes variables of the position (coordinates of each of the x-axis, y-axis, and z-axis) and attitude (tilts ψ (roll), θ (pitch), and φ (yaw) of each of the x-axis, y-axis, and z-axis) of the rigid body 304, and the values of these variables are calculated by solving the simultaneous equations (equation 147). That is, the cable simulator 165 repeatedly solves the simultaneous equations (equation 147) for each time step ti based on the joint angle time series data T(t) and using the parameters 139. This makes it possible to calculate the values of the variables corresponding to the position and attitude of each rigid body 304 for each time step ti.
[0133] (H2. Position update according to constraints) The partial cable behavior calculation module 166 includes a physical simulator. More specifically, in the cable simulation, the position of the rigid body 304 is updated (modified) according to a position-based physical simulation (Position Based Dynamics: PBD). Fig. 10 is a diagram showing a schematic diagram of updating the position of the physical simulation according to this embodiment. The process of updating the position of the rigid body 304 performed in the cable simulation will be described with reference to Fig. 10.
[0134] Specifically, in the cable simulation, the behavior of each rigid body 304 is calculated for each time step ti. As a result of the simulation, when adjacent rigid bodies 304 collide with each other, one of the colliding rigid bodies 304 may invade (sink) into the other body (FIG. 10(A)). The cable simulator 165 detects whether or not a rigid body 304 invades another rigid body 304 (FIG. 10(A)).
[0135] In (A) of FIG. 10, the cable simulator 165 calculates a predicted position Xpredict (Xpredict=x0+v×Δt, where x0=calculated position, Δt=time of time step ti, and v=velocity) using the calculated positions x0 of the objects (rigid bodies 304) in the three-dimensional virtual space for each time step ti, and detects the presence or absence of a collision between the objects based on the relationship between the predicted positions Xpredict between the objects. A collision includes, for example, a case where the distance between the position (coordinates) of an object and the position (coordinates) of another object in the three-dimensional virtual space is equal to or less than a threshold value. The threshold value may be a value based on the size (width, height, etc.) of the objects. Note that the method of detecting a collision is not limited to this.
[0136] When an intrusion is detected in FIG. 10A, the cable simulator 165 changes the positions (position: Xpredict) of the colliding rigid bodies 304 so as to resolve the intrusion (FIG. 10B). At this time, when the position X0 (position: Xpredict) of a certain rigid body 304 is changed to the position X (corrected position: Xcorrect), the position of the other rigid bodies 304 adjacent to the rigid body 304 may shift due to the change. Then, by repeating such position changes, the behavior of each rigid body 304 becomes stable in the cable simulation. In this embodiment, the above-mentioned constraint conditions correspond to physical constraint parameters for transitioning the behavior of the object to such a stable state.
[0137] When the position of the rigid body 304 is changed by the cable simulator 165, that is, when the position X of the rigid body 304 (corrected position: Xcorrect) is calculated, the velocity v is changed (FIG. 10C). Specifically, the cable simulator 165 calculates the corrected velocity Vcorrect according to Vcorrect=(X-X0) / Δt, and the calculated velocity Vcorrect is set as the velocity v for the next time step ti (velocity vt in FIG. 10A).
[0138] Although the update of the x - coordinate position of the rigid body 304 has been described above, in the cable simulation, the updates of the y - coordinate position and the z - coordinate position are also performed in the same way as the update of the x - coordinate position.
[0139] In this way, for the adjacent rigid bodies in the rigid - body link that models the partial cable C n the operation according to the equations (Equation 147 and Equation (1)) that represent the relationship between the positions and postures of the adjacent rigid bodies and the constraint conditions imposed on the relationship between the positions and postures of the rigid bodies corresponding to the joint 305 is repeatedly performed based on the joint - angle time - series data T(t), whereby the behavior of the rigid - body link is calculated. At each time step ti of the simulation, for the rigid - body link in the state where there is no intrusion of the rigid body 304 (the state where the indentation is resolved), its behavior can be calculated.
[0140] In the cable simulation according to the present embodiment, as parameters related to the constraint condition of Equation (1) for shifting the behavior of the partial cable C n to a stable state, parameters representing the hardness of the cable 340 can be included. The hardness parameters include, for example, the parameter Stiffness and the parameter Damping specific to the material of the cable 340. The parameter Stiffness indicates the difficulty of deformation of the rigid body 304 and is, for example, equivalent to the Young's modulus. Also, the parameter Damping indicates the attenuation characteristics with respect to the vibration of the rigid body 304.
[0141] <I. Partial Cable Optimization> The process of partial cable optimization according to the present embodiment will be described. The cable simulator 165 performs optimization of the partial cable path for the partial cable C n by the partial cable behavior calculation module 166. The optimization of the partial cable path corresponds to the optimization of the set of attachment parameters of the partial cable C n . The set of attachment parameters of the partial cable C n includes the number of segments S n that make up the partial cable C n , the guide G nPosition and orientation of P n and Guide G (n+1) Position and orientation of P (n+1) It contains three parameters:
[0142] The cable simulator 165 optimizes the partial cable path by using all types of candidate parameter sets consisting of parameter candidates. More specifically, a cable shape model is created based on physical parameters, and from the cable shape model, a model of the cable initial shape corresponding to the robot arm shape is generated based on one candidate parameter set and initial joint angle data T(0) corresponding to t=0 among the joint angle time series data T(t). Next, the cable simulator 165 calculates cable behavior data 2521 representing the cable shape corresponding to the joint angle time series T(t) by physical simulation over time t based on the generated model. The cable simulator 165 determines whether the candidate parameter set used in the simulation satisfies the following constraint conditions from the calculated time-series cable shape. A candidate parameter set determined to satisfy the constraint conditions is used as the cable initial shape model for the partial cable C. n is held as the optimal parameter set.
[0143] (I1. Load Calculation) The load calculation module 167 calculates the load of the partial cable C based on the cable behavior data 2521. n Then, load information 142 indicating the load acting on the rigid link (second object) is calculated. In this embodiment, types of load that can be calculated include, but are not limited to, bending, stretching, twisting, impact, and repulsive force.
[0144] The load calculation module 167 calculates the load applied to each rigid body 304, that is, each position 1411, according to a predetermined calculation based on the behavior (position and posture) of each rigid body 304. For example, the twist and bend of each rigid body 304 is calculated from the behavior of the rigid body 304 and adjacent rigid bodies 304, the extension is calculated from the distance between the adjacent rigid bodies 304 (the greater the distance, the greater the pulling force), and the repulsive force is calculated from the penetration distance at the time of collision (the greater the distance, the greater the repulsive force). The impact calculated by the load calculation module 167 may include a collision between the rigid body 304 and another object different from the rigid body 304. The other object includes objects such as peripheral equipment, the robot 30 having the arm 301, and the workpiece 232. The load calculation module 167 detects a collision between the rigid body 304 and another object. More specifically, the load calculation module 167 detects the above collision based on the relative positional relationship in the three-dimensional virtual space between the behavior (position and posture) of the rigid body 304 of the cable indicated by the cable behavior data 2521 and the behavior (position and posture) of another object indicated by the equipment behavior data 2520. The load calculation module 167 detects a collision between the rigid body 304 and an object, for example, the arm 301, based on the relative positional relationship in the three-dimensional virtual space between the position and posture of the rigid body 304 at the time step ti indicated by the cable behavior data 2521 and the position and posture of the arm indicated by the joint angle time series data T(t).
[0145] (I2. Constraints) The above constraints are, for example, n The cable parameters 139 include the following conditions that indicate that the magnitude of the load on the rigid link does not exceed a threshold value:
[0146] Condition 1. The impact that the cable receives from contact with the robot arm or peripheral devices is below the threshold value (Impulse_th).
[0147] Condition 2: The stretch rate of the distance between the cable segments relative to the initial distance is less than or equal to a threshold value (Stretch_th).
[0148] Condition 3. The radius of curvature of the cable does not fall below a threshold (Curvature_th) determined by the material of the cable.
[0149] Partial Cable C n In the optimization of the parameter set of , first, a set of candidate parameter sets D is generated from all combinations of the mounting parameter candidates. 1,n Formulate the following.
[0150]
number
[0151] A set of candidate parameter sets D that satisfy the above conditions 1, 2, and 3. 1,n is expressed by equation (3).
[0152]
number
[0153] Here, set D 1,n The set of parameters is then used as the partial cable C n Instead of using a set of optimal parameter sets for each partial cable C n Further optimize the parameter set.
[0154] Because set D 1,n When the cable is attached according to the parameter set of the parameter set of the parameter set of the cable, the parameter set D may be a cause of a failure during operation of the robot 30 due to a modeling error of the cable, an error of the physical simulation, and an installation error at the time of attaching the cable. 1,n In particular, the variation in installation error due to the user's skill level increases in cable wiring, and the set D 1,n There may be cases where the cable is not installed according to the optimal parameter set.
[0155] To prevent the occurrence of the above cases, the cable simulator 165 applies the robustness condition to the set D 1,n to determine the optimal parameter set for the partial cable C n In the present embodiment, robustness indicates whether the parameter set to be optimized is susceptible to the influence of the above errors. A parameter set that is less susceptible to the influence of errors has robustness, and a parameter set that is susceptible to the influence of errors has no robustness.
[0156] In the present embodiment, attention is paid to the robustness of the number of segments S n of the partial cable C n More specifically, even when the number of segments S n increases or decreases within a certain range ±R, it is required to satisfy the constraints of the above formula (3). That is, among the set D 1,n , the subset of the parameter sets that satisfy conditions 1 to 3 even when the number of segments S n increases or decreases within a certain range ±R is the set D 2,n of the optimal parameter sets having the robustness. The set D 2,n of the optimal parameter sets is represented by the following formula (4). The cable parameter 139 includes the parameters in the range R.
[0157]
Equation
[0158] The cable simulator 165 performs the above processing (simulation) for each partial cable C n As a result, for each partial cable C n , the set D 1,n of the optimal parameter sets and the set D 2,n are calculated.
[0159] <J. Overall Cable Optimization> The cable simulator 165 is the set D n of the optimal parameter sets of each partial cable C 2,nBased on the above, a parameter set is derived that minimizes the cable length of the entire cable, i.e., minimizes the number of segments of the entire cable. This determines an optimized parameter set for installing the entire cable.
[0160] More specifically, the cable simulator 165 calculates the distance between adjacent partial cables C n Set D of 2,n Among the parameter sets, one or more parameter sets that satisfy the sharing condition are derived. In this embodiment, the sharing condition is that the adjacent partial cables C n The guide G is connected between the two partial cables, i.e., it is shared by both partial cables. n (G (n+1) ) position and orientation P n (P (n+1) The cable simulator 165 includes the condition that each partial cable C n A set of optimal parameter sets D 2,n Extract one or more parameter sets that satisfy this sharing condition from each partial cable C n A set of parameter sets D for the entire cable consisting of one or more parameter sets extracted for 3,n Determine.
[0161] More specifically, the parameter determination module 170 determines whether adjacent partial cables C n and partial cable C (n+1) For each pair of partial cables, D 2,n As a result of the comparison, the parameter sets of the pair are compared by the parameter determination module 170. n Position and orientation of P n is shared (common) by both partial cables, there is one or more optimal parameter sets for partial cable C. n Set D of 2,n and partial cable C (n+1) Set D of 2,nThe relay guide is, for example, guide G2 in the pair of adjacent partial cables C1 and C2 in FIG.
[0162] The parameter determination module 170 determines each partial cable C based on the sharing conditions according to the procedure described above. n Set D of 2,n One or more optimal parameter sets are extracted from these partial cables C n The set D3 of optimal parameters is shown in equation (5).
[0163]
number
[0164] Each partial cable C indicated by set D3 n The one or more optimal parameter sets are parameter sets that satisfy the constraints (impact, elongation, radius of curvature) and the commonality conditions, and are also referred to as implementable parameter sets.
[0165] The parameter determination module 170 finally determines a parameter set that minimizes the number of segments constituting the entire cable 340, i.e., the partial cable C, among one or more parameter sets of the set D3. n Number of segments in S n The parameter set that minimizes the total value of each partial cable C n Determine each of the determined partial cables C n The set of parameter sets is called the optimal parameter set d * Let us assume that.
[0166]
number
[0167] In addition, the optimal parameter set d that matches the total number of segments constituting the entire cable 340 is *When a plurality of them are calculated, the parameter determination module 170 determines all partial cables C n Based on the impact received by the segments of, the elongation rate between segments, and the bending radius, a plurality of optimal parameter sets d * From, one optimal parameter set d * Is selected.
[0168] <Schematic Processing Flow of K. Simulation> FIG. 11 is a diagram schematically showing an example of the sequence of the simulation according to the present embodiment. In FIG. 11, the processing of the cable simulation performed by the cable simulation device 1B is shown in association with the peripheral processing. For the sake of explanation, the device behavior data 2520 used in the following cable simulation shows the joint angle time series data T(t).
[0169] Referring to FIG. 11, the user operates the operation unit 106 to input an instruction for setting a system simulation and an instruction for adding a cable simulation to the information processing apparatus 100 (step S80, step S83). The processor 102 sets various parameters for the system simulation so as to be able to execute the system simulation according to the instruction from the user. Further, the processor 102 sets a state in which the cable simulation can be executed according to the instruction to add the cable simulation. For example, the cable simulator 165 is set so that the device behavior data 2520 (joint angle time series data T(t)) can be referred to.
[0170] The user operates the operation unit 106 to input an instruction for executing the system simulation and storing the device behavior data 2520 to the information processing apparatus 100 (step S85).
[0171] The processor 102 starts the system simulation device 1A (step S87), stores (retains) the equipment behavior data 2520, which is the result of the system simulation, in the storage 111 (step S88), and outputs a notification that storage of the equipment behavior data 2520 has been completed, for example, to the display 109 (step S89).
[0172] The user operates the operation unit 106 to input the cable parameters 139 to the information processing device 100 (step S91). The parameter setting program 145 executed by the processor 102 stores the cable parameters 139 received from the operation unit 106 in the storage 111.
[0173] The user operates the operation unit 106 to input an instruction to start execution of a cable simulation to the information processing device 100 (step S93). The processor 102 starts up the cable simulator 165 in response to the instruction to start execution of the cable simulation.
[0174] When the cable simulator 165 is started, it performs a cable simulation (step S100). More specifically, for partial cable optimization, the simulation is repeated (loop processing) while changing the time t for each partial cable, and an overall cable optimization process is performed based on the optimal parameter set calculated for each partial cable.
[0175] The evaluation module 177 executes an evaluation process of the cable simulation result (step S130). The evaluation module 177 outputs information of the evaluation data 144, which is the evaluation result (step S140). For example, an image based on the evaluation data 144 is displayed on the display 109.
[0176] (K1. Outline of cable simulation processing flow) Fig. 12 is a process flowchart of the cable simulation (step S100) in Fig. 11. Referring to Fig. 12, when a user designates a predetermined motion (pick and place) from the operation unit 106, joint angle time-series data T(t) corresponding to the equipment behavior data 2520 is calculated by the motion planning of the equipment behavior generation module 151 of the cable simulator 165 (step S88a).
[0177] The cable simulator 165 performs partial cable optimization processing for each of the n partial cables (step S110), n A set of parameter sets D consisting of one or more optimal parameter sets for 2,n (n=1,2,3...) and calculate the total length of each partial cable C n A set of optimal parameter sets D 2,n Based on this, an optimized parameter set d for the entire cable 340 is * (Step S120). The optimal parameter set d * corresponds to an implementable parameter set that allows for the attachment of cables to the robot 30.
[0178] (K2. Partial cable optimization process flow) 13 is a process flow chart of the partial cable optimization process (step S110) of FIG. 12. Referring to FIG. 13, n A set of optimal parameter sets D 2,n The process of calculating the optimal parameter set D for the other partial cables is described below. 2,n Here, the cable parameters 139 include a plurality of candidate parameter sets set by the user.
[0179] First, a first candidate parameter set of the cable parameters 139 is set as a target parameter set for the simulation, and joint angle time series data T(t) is set (step S111). n A model of the initial shape of the partial cable C is generated using the target parameter set, the size of the segment of the physical simulation parameters 124, the shape model of the robot arm, etc. (step S112). n This model is shown, for example, in the rigid link model of FIG. 8 and equation 147 of FIG.
[0180] Partial Cable C n From the model of the initial shape, the behavior (shape change) of the cable accompanying the behavior of the arm 301 of the robot 30 is calculated (step S113). That is, the partial cable behavior calculation module 166 repeatedly solves the simultaneous equations (Equation 147) for each time step ti based on the joint angle time series data T(t), thereby deriving a variable P n The value, i.e., behavior, is calculated.
[0181] The time-series change in position and orientation P calculated for the relevant cable section n Based on the load, it is determined whether the behavior of the partial cable satisfies the constraint condition (step S114). More specifically, the load calculation module 167 calculates the load applied to the rigid link, which is a model of the partial cable, and the constraint condition determination module 168 determines whether the behavior of the partial cable satisfies the constraint condition based on the load, using the threshold value of the constraint condition of the cable parameter 139 (step S115).
[0182] If it is determined that the constraint condition is not satisfied (NO in step S115), it is determined whether or not the optimization of the parameter set of the partial cable has been completed, that is, whether or not the process of optimizing the partial cable has been performed using all candidate parameter sets of the cable parameters 139 (step S19). If it is determined that the optimization of the parameter set of the partial cable has been completed (YES in step S119), the process of Fig. 8 ends, but if it is determined that the optimization of the parameter set of the partial cable has not been completed (NO in step S119), the process returns to step S111. In step S111, the next candidate parameter set of the cable parameters 139 is set as the target parameter set of the simulation, and the processes from step S112 onwards are repeated for the target parameter set in the same manner as described above.
[0183] On the other hand, if it is determined that the constraint condition is satisfied (YES in step S115), the robustness determination module 169 determines whether or not the behavior of the partial cable satisfies the robustness condition by using the range R of the cable parameters 139 (step S116).
[0184] If it is not determined that the robustness condition is satisfied (NO in step S117), the process proceeds to step S119. However, if it is determined that the robustness condition is satisfied (YES in step S117), the cable simulator 165 assigns the target parameter set to the partial cable C n That is, the cable simulator 165 registers the target parameter set as the optimal parameter set for the partial cable C n Set D of 2,n Include in.
[0185] The process of FIG. 13 is performed for each partial cable, so that each partial cable C n For each, a set D of one or more optimal parameter sets 2,n is calculated.
[0186] (K3. Overall cable optimization process flow) FIG. 14 is a process flowchart of the overall cable optimization process (step S120) of FIG. 12. Referring to FIG. 14, the optimal parameter set d * The procedure for calculating the above will be described.
[0187] The parameter determination module 170 determines the n Set D of 2,n and the relevant cable C n Part C of cable adjacent to (n+1) Set D of 2,n Between each parameter set, the position and orientation P n The values of P and P are compared, and based on the comparison result, the position and orientation P that satisfy the adjacent condition are n A parameter set having the following structure is determined for each partial cable C n Set D of 2,n One or more combinations of parameter sets that satisfy the adjacent condition determined in are obtained.
[0188] The parameter determination module 170 sets a first combination of the one or more combinations as a target combination, and the number of segments S of each partial cable included in the target combination is set to 1. n The sum of these is calculated (step S122), and it is determined whether the total cable length indicated by the calculated sum is the shortest among the total cable lengths of all the combinations (step S123).
[0189] Calculated number of segments S n If it is not determined that the sum of these values indicates the shortest cable length (NO in step S124), it is determined whether or not the process of FIG. 14 has been performed for all combinations of parameter sets that satisfy the adjacency condition (step S126). If it is determined that the process of FIG. 14 has been performed for all combinations (NO in step S126), the process ends. On the other hand, if it is determined that the process of FIG. 14 has not been performed for all combinations (NO in step S126), the process returns to step S122, the next combination is set as the target combination, and the processes from step S122 onwards are performed for the target combination in the same manner as described above.
[0190] On the other hand, when it is determined that the total value of the number of segments S n calculated for the target combination indicates the shortest cable length (NO in step S124), the parameter set (the number of segments S of each partial cable n , the position and orientation P of each guide n ) indicated by the target combination is determined as the optimal parameter set d of the entire cable * , that is, the implementable parameter set.
[0191] <Specific Example of Cable Simulation> A specific example of cable simulation will be described for the case of attaching a cable to the arm of a 6-axis vertical articulated robot. Here, the case of attaching a cable with the product number AWG28x5PIFVV-SB manufactured by Fujikura Ltd. to the arm of a robot with the model number Viper850 manufactured by Omron Corporation will be described.
[0192] First, the arrangement of the guides and the cable will be described, and then, following the processing procedure shown in FIG. 12, three processes of joint angle time series generation, partial cable optimization, and overall cable optimization will be described. The simulation optimizes the cable path for each motion assuming a plurality of motions.
[0193] (L1. Example of Arrangement of Guides and Cable) FIG. 15 is a diagram for explaining the number of segments to be optimized and the guide position and orientation on the arm of the robot. An absolute coordinate system Σ L0 is defined at the base of the robot arm. Also, coordinate systems with the equipment mounting positions on links L3 and L4 as the origins are defined as Σ L3 and Σ L4 respectively. Since an end effector (robot hand 210) is mounted on link L6, guide G6 is replaced by the cable insertion port associated with the end effector. That is, the position and orientation P6 of guide G6 are fixed. Due to the structure of the robot arm, guide G is provided on link L5 ncannot be installed. Therefore, a partial cable C4 is connected between the guide G4 and the guide G6 of the link L4, and the parameters to be optimized for the partial cable C4 are the number of segments S4 and the guide position / posture P4. A partial cable C3 is connected between the guide G3 and the guide G4 of the link L3, and the parameters to be optimized for the partial cable C3 are the number of segments S3 and the guide position / posture P3 and P4. Furthermore, the guides G2 and G3 (not shown) of the link L2 may be connected by a partial cable C2 (not shown), but since it is common for a cable from the frame or the ceiling to be connected to the guide G3, the parameters of the partial cable C2 are not subject to optimization.
[0194] In the following, cable route optimization will be described for partial cables C3 and C4 shown in FIG. 15, which connect guide G3 and guide G6 via guide G4. That is, as described above, guide G5 is not used. Also, the position and orientation P6 of guide G6 is uniquely determined by the specifications of the end effector. Therefore, the parameters to be optimized are the numbers of segments S3 and S4 of partial cables C3 and C4 and the guide positions and orientations P3 and P4. Note that partial cables to be the subject of the simulation are not limited to partial cables C3 and C4.
[0195] (L2. Example of joint angle time series generation) The generation of joint angle time series data T(t) by motion planning will be described with reference to Figs. 15 and 16. Fig. 16 is a diagram showing an example of a pick-and-place motion of a robot arm. When a user specifies pick-and-place as the predetermined motion, the predetermined motion is a motion in which the robot arm picks up an object (the object corresponds to the workpiece 232) placed in front of it and places the object in the absolute coordinate system Σ shown in Fig. 15. L0 The user places the object at a position, for example, 300 mm away in the X-axis direction and 300 mm away in the Y-axis direction, with a predetermined angle θ. L0With the Z axis at the reference point, seven types are set in increments of 15° from -45° to 45°. This allows the user to specify seven types of pick-and-place motion corresponding to the angle θ as the pick-and-place motion. Each of the seven types of motion is called motion θ. Here, the absolute coordinate system Σ L0 The angle parallel to the X-axis of is 90°. Each of the seven types of motion starts from the initial pose shown in FIG. 16(a), then moves to the pick pose shown in FIG. 16(b), then moves to a place pose corresponding to one of the seven types of angles θ, and finally returns to the initial pose of FIG. 16(a). In FIG. 16(c), (d), and (e), place poses of -45°, 0°, and 45° are illustrated as the motion θ. For each of the seven types of pick and place motions specified by the user, the equipment behavior generation module 151 executes motion planning according to the time step ti, and for each of the seven types of pick and place motions, joint angle time series data T(t) according to the time step ti is calculated.
[0196] (L3. Specific example of partial cable optimization) In partial cable optimization, the joint angle time series data T(t) is used to obtain an optimal parameter set including the numbers of segments S3 and S4 and the positions and postures P3 and P4 of the guides G3 and G4, for example, for the partial cables C3 and C4. When obtaining the optimal parameter set, the cable simulator 165 determines a search range for the parameter set.
[0197] In this embodiment, the minimum value for the search range of the segment number S3 is set based on the distance between the guides, and the maximum value is set to approximately several times the distance between the guides to avoid contact between the cable and the robot arm. When the search range of the segment number S3 is set in this manner, the cable length range searched for is between 100 mm and 300 mm for cable C3 and between 200 mm and 440 mm for cable C4. In this embodiment, the unit segment length is set to 5 mm, and the sampling interval for the segment number Sn is set to 4, so the candidates for the segment numbers S3 and S4 are respectively (S 3,1 , S 3,2 , S 3,11 )=(20,24,...,60) and (S 4,1 , S 4,2 , S 4,13 ) = (40, 44, ..., 88). The numbers of candidates for the optimal parameters for the segment numbers S3 and S4, respectively, are I3 = 11 and I4 = 13.
[0198] As mentioned earlier, P n The position (x, y, z) and orientation (φ, θ, ψ) of the link L n The coordinate system of Σ LnThe equipment installation position in is used as a reference. The φ direction of the posture is the cable twist direction, but if the cable is twisted in advance and attached to the robot, it will cause the cable's life to be shortened, so in this embodiment, φ is fixed to 0. In this embodiment, the position candidate set, which is a set of optimal parameters for position P3, is set to {(x,y,z)|x=0,y=-40,0,40,z=0,20}. Also, for the above-mentioned reasons, the posture of position P3 is fixed to (φ,θ,ψ)=(0,0,0), and J3=6. On the other hand, the position candidate set, which is a set of optimal parameters for position P4, is set to {(x,y,z)|x=0,50,y=-50,0,50,z=0,20}. The posture candidate set, which is a set of optimal parameters for position P4, is set to {(φ,θ,ψ)|φ=0,θ=0,45,ψ=-90,0,90}. Therefore, J4 = 72. As described above, the position and orientation P6 of guide G6 is fixed, so J6 = 1. Here, the unit of position is mm, and the unit of orientation is degrees. There are 4,752 candidate combinations of optimal parameters for cable C3 and 936 for cable C4. In the simulation, the unit segment length is represented by a cylinder and a gap, the length of the cylinder is set to 3.5 mm, the length of the gap is set to 1.5 mm, and the diameter of the cylinder representing the segment is set to 8 mm.
[0199] The cable simulator 165 calculates an optimal parameter set for each of the partial cables C3 and C4. Here, as constraints, the cable impact threshold (Impulse_th) is set to 0, the inter-segment elongation threshold (Stretch_th) is set to 102%, and the curvature radius threshold (Curvature_th) is set to 48 mm. The curvature radius threshold is set based on, for example, six times the diameter, which is the cable guarantee standard. In this embodiment, for cable C3, a set D of candidate parameter sets is created. 0,3 A physical simulation is performed using each of the parameter sets included in the set D, and a set of candidate parameter sets D that satisfies the three constraints 1 to 3 is obtained. 1,3 is calculated. This set D 1,3For the cable length, the number of segments is in a certain range R (e.g., R = 8 mm). The optimal parameter set set D of the cable C3 is a set of candidate parameter sets that satisfy the robustness condition. 2,3 For the partial cable C4, a set of candidate parameter sets D 0,4 A physical simulation is performed using each of the parameter sets included in 1,4 is calculated, and the set D 1,4 A set of optimal parameter sets D that satisfy the robustness condition. 2,4 is calculated.
[0200] (L4. Example of overall cable optimization) Based on the result of optimizing the parameter sets of the partial cables, the parameter set of the entire cable is optimized. More specifically, the cable simulator 165 optimizes a set D of optimal parameter sets of the partial cables C3 and C4. 2,3 and set D 2,4 Based on this, a set D3 of implementable parameter sets that satisfies the adjacent condition between the partial cables C3 and C4 is calculated, and the optimal parameter set d of the entire cable is calculated from the calculated set D3. * is calculated.
[0201] FIG. 17 is a graph showing the results of the simulation. The graph quantitatively shows the relationship between a plurality of motions and the number of implementable parameter sets. These may be generated and displayed by the evaluation module 177. FIG. 18 is a diagram showing the relationship between each motion in FIG. 17 and the optimal parameter set for the entire cable and the shape of the cable. The horizontal axis of the graph in FIG. 17 shows the angle of the arm when the Place Pose (posture at the time of placing) is taken as the type of motion, and the vertical axis shows the number of implementable parameter sets for each type of Place Pose on the horizontal axis (each angle of the arm when the posture at the time of placing is taken).
[0202] In FIG. 17, the number of implementable parameter sets calculated at a motion of 45° where the angle difference between the link L3 and the link L4 at the time of Place Pose is 0° is 71, and the number of implementable parameter sets decreases as the angle at the time of Place Pose decreases. The number of implementable parameter sets at a motion of -60° is 1, and the number of implementable parameter sets at a motion of -75° is 0. As shown in FIG. 17, the robot arm that realizes the motion of -75° does not have a cable path. In this embodiment, the evaluation module 177 generates evaluation data 144 including the graph of FIG. 17 and outputs it to the display 109. From the simulation result of FIG. 15, the user of the production line can obtain a criterion for determining whether or not it is necessary to reconsider the design of the production line including the motion of the robot arm, the arrangement angle of the work 232, and the arrangement of peripheral equipment.
[0203] In FIG. 18, a set of implementable parameters d calculated for each motion θ (=45°, 0°, −45°) is associated with the motion θ. * (i.e., the optimal parameter set d *) and the cable shapes at the time of Pick Pose and Place Pose are shown. In this embodiment, the evaluation module 177 generates evaluation data 144 including the association information of FIG. 18 and outputs it to the display 109. As shown in FIG. 18, for the motion θ=45°, the angle difference between the link L3 and the link L4 is 0°, so there are optimal parameter sets that are symmetrical, that is, cable attachment modes of right-to-left and left-to-right shapes. When the angle at the time of the Place Pose becomes small, the link L4 rotates counterclockwise with respect to the link L3, so the cable attachment mode is limited to the left-to-right shape. Compared with the motion θ=0°, the Place Pose of the motion θ=-45° corresponds to a case where the rotation angle of the link L4 with respect to the link L3 is large. In this case, there is a possibility that the cable may interfere (contact) with the robot arm, but in order to avoid the interference, the position of the guide G4 for the motion θ=-45° is moved to the upper right side from the guide G4 for the motion θ=0°. This allows us to avoid the bending radius constraint during the Place Pose for the motion θ = -45°, but the implementable parameter set d * is the implementable parameter set d for motion θ=0° * For example, the cable length of the partial cable C4 is extended by 60 mm, and the cable length of the partial cable C3 is shortened by 40 mm, resulting in an extension of the cable length of the entire cable 340 by only 20 mm.
[0204] The information shown in FIG. 17 can support the user in quantitatively determining the presence or absence of a cable path and the degree of difficulty of cable installation based on the number of implementable parameter sets. Also, the information shown in FIG. 18 can support the user in quantitatively determining the presence or absence of a cable path and the degree of difficulty of cable installation based on the number of implementable parameter sets. *Based on this, it is possible to support the user so that the change in the optimal values of the cable length and the guide position / attitude as the angle between links L3 and L4 at Place Pose increases can be qualitatively analyzed. The derivation of the optimal parameter set for each partial cable or the implementable parameter set for the entire cable shown here, and the analysis method indicated by the information in FIG. 17 or FIG. 18 for the derived results can also be applied to cable route optimization for different types of motion than the motion targeted in this embodiment.
[0205] <M. Parameter Set Setting and UI Screen> The candidate parameter set including the number of segments and the position / attitude of the guide for the cable simulation described above can be set by the user. The parameter setting program 145 provides a UI tool to assist the user in setting the parameter set. FIG. 23 is a diagram schematically showing an example of the UI screen for setting the parameters of the cable according to this embodiment.
[0206] By the UI tool, the UI screen in FIG. 23 is displayed on the display 109. On the right side of the UI screen, a 3D image of the arm of the robot 30 to which the cable 340 is attached is displayed together with the object image W of the workpiece 232 by the 3D visualizer 164. The 3D image is generated by the processor 102 from CAD data such as the device image data 2530.
[0207] The user can set candidate parameter sets as cable parameters 139 by operating the UI screen on the left side of FIG. 23. Each candidate parameter set includes parameters 191 including the length (Cable Length) of the entire cable 340, and parameters 192 (or 193) including the position / posture and partial cable length of each cable guide 350. In FIG. 23, for example, a set of parameters 191 and 192 and a set of parameters 191 and 193 are shown as two candidate parameter sets, but the number of candidate parameter sets is not limited to two. The parameter setting program 145 derives the absolute coordinate position / posture P of each guide from parameters 192 (or 193) according to a predetermined calculation. n Calculate the number of cable segments S to be installed between each guide. n Calculate.
[0208] Furthermore, on the UI screen, the user can set parameters 194 related to the constraint conditions and parameters 195 that specify the robustness range R. The parameters 194 include a threshold value (e.g., 5) for the radius of curvature and a display color of the 3D image when the load calculated by the simulation exceeds each threshold value of the constraint conditions. When a cable simulation is performed according to the parameter set set on the UI screen and it is determined that the load (elongation rate, radius of curvature, and impact) of a certain partial cable exceeds a predetermined threshold value, the display color of the object image corresponding to the partial cable in the 3D image on the right side of the screen in FIG. 23 is changed to a color (e.g., blue, red, or green) specified by the parameters 194 by the 3D visualizer 164 based on the evaluation data 144. Thus, the magnitude of the load applied to the rigid link model of the partial cable is visually presented by the display color of the image of the cable displayed on the display 109.
[0209] FIG. 24 is a diagram showing an example of a screen that presents the implementable parameter set according to the present embodiment in tabular form. The implementable parameter set calculated by the cable simulator 165 is displayed on the display 109 by the evaluation module 177, for example, in tabular form. In the table of FIG. 24, the partial cable length 196 is shown as a value within the robustness range R. When the user selects a parameter set on the UI screen of FIG. 24, the 3D visualizer 164 displays a 3D image of the robot with the cable and guide attached according to the selected parameter set. Based on the device behavior data 2520 (i.e., the joint angle time series data T(t)) and the cable behavior data 2521 by the virtual space information management module 150, virtual space information 105 representing the behavior of the arm of the robot 30 and the cable attached to the arm is generated according to the implementable parameter set. The 3D visualizer 164 displays a 3D image according to the generated virtual space information 105 on the display 109.
[0210] <Method for calculating the N. spring constant> In this embodiment, the spring constant in formula (1) is estimated using, for example, Scan2Flex proposed by Hermansson et al., but the estimation method is not limited to the method using Scan2Flex. A method of estimating (calculating) the bending spring constant kθ among the spring constants will be described with reference to Figs. 19 and 20. Fig. 19 is a diagram showing a schematic diagram of a method of estimating the spring constant. Fig. 20 is a diagram showing in table form the measured vertical displacement for each cable length in Fig. 19(a). In estimating the spring constant, the bending spring constant around the joint is calculated based on the change in cable shape due to gravity. For the estimation, as shown in Fig. 19(a), one end point of the cable of the actual machine is fixed horizontally, and the cable length is changed from 100 mm to 200 mm at 20 mm intervals to measure the vertical displacement of the tip. The measured vertical displacement for each cable length is shown in Fig. 20. In the estimation, as shown in Fig. 19(b), a cable model with the same length as Fig. 19(a) was created by simulation, and one end of the cable model was fixed horizontally. The mass of the segments constituting the cable model was set so that the overall cable mass was the same, and a vertical acceleration of -9.8 [m / s 2 ] is given to calculate the bending spring constant (swing stiffness) that realizes the vertical displacement measured for each cable length. The calculation results are shown in the bottom row of the table in Figure 20. From the average value of the calculated values, the bending spring constant kθ is set to 70.5.
[0211] Next, a method for calculating the torsional spring constant will be described with reference to Fig. 21 and Fig. 22. Fig. 21 is a diagram that shows a schematic diagram of the relationship between the torsional moment and the torsional angle (Angle of Twist) with respect to the axis of a cylinder. Fig. 22 is a graph that shows the relationship between the torsional angle and the torsional moment. In this embodiment, the torsional spring constant kφ around the joint is estimated from the relationship between the torsional angle and the torsional moment of the cable. As shown in Fig. 21, if the torsional angle of the cable when a torsional moment M is applied to the cable is φ, the relationship between the two is expressed as M = kφ × φ.
[0212] An example of the relationship between the torsional moment M applied to the cable by the robot arm and the torsional angle φ is shown in the graph in Figure 22. The slope of the graph is calculated to be, for example, 25.7 by the least squares method. This corresponds to the torsional spring constant k'φ of the entire cable. In other words, since the segment unit length is set to 5 mm in the simulation, the number of segments S included in a cable with a cable length of 300 mm is n is 60, and the number of joints N connecting them is also 60. Therefore, from the relationship k'φ=kφ / N, kφ=1,542 is calculated.
[0213] In this embodiment, the damping coefficient is determined by trial and error while observing the convergence of the calculation.
[0214] <O.プログラム> The processor 102 of the information processing device 100 executes a simulation program to realize the system simulation device 1A or the cable simulation device 1B. The storage 111 can store programs and data for realizing these simulation devices.
[0215] The storage medium of the storage 111 is not limited to a HDD or SSD. Furthermore, the program or data relating to the simulation may be downloaded to the storage 111 via various communication lines. Alternatively, the program or data may be downloaded to the storage 111 via a storage medium 114. The storage medium 114 is a medium that stores information such as a program by electrical, magnetic, optical, mechanical, or chemical action so that a computer or other device, machine, or the like can read the recorded information such as the program. The information processing device 100 may obtain the program or data relating to the simulation from the storage medium 114.
[0216] The program can be executed by one or more processors such as a CPU, or by a combination of a processor and circuits such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field-Programmable Gate Array).
[0217] <P. Supplementary Note> The present embodiment as described above includes the following technical ideas. [Configuration 1] A simulation device (1) for calculating the behavior of a cable (340) attached to a device (30) via a plurality of guides (G n ), comprising: Based on the behavior of a first object corresponding to the device arranged in the virtual space, a parameter set (P n , S n ) regarding cable attachment, including the positions and postures of the plurality of guides in the virtual space and the partial cable lengths between the guides, is used to calculate the behavior of a second object arranged in the virtual space corresponding to each partial cable (C n ) by a partial cable behavior calculation unit (166); For each of the partial cables, For each of the plurality of parameter sets, based on the behavior of the second object corresponding to the partial cable calculated by the partial cable behavior calculation unit using the parameter set, the load applied to the second object corresponding to the partial cable is calculated; For each of the plurality of parameter sets, a parameter determination unit (167, 168, 169) determines whether the magnitude of the calculated load of the second object corresponding to the partial cable satisfies a constraint condition; For each of the partial cables, a parameter determination unit determines a parameter set that satisfies the conditions regarding the attachment of the entire cable formed by combining the partial cables from one or more of the parameter sets determined to satisfy the constraint condition. A simulation device comprising a parameter determination unit (170). [Configuration 2] The constraint condition is 2. The simulation device according to configuration 1, further comprising a condition that the magnitude of the load applied to the second target corresponding to the partial cable does not exceed a threshold value. [Configuration 3] The constraint is: The simulation device according to configuration 1, further comprising a condition that when the length of the partial cable changes within a predetermined range (R), the magnitude of the load applied to the second object corresponding to the partial cable does not exceed a threshold value. [Configuration 4] The simulation device according to any one of configurations 1 to 3, wherein the conditions regarding the installation of the entire cable include a condition that the position and posture of a guide shared between adjacent partial cables are common. [Configuration 5] The behavior of the first target includes a behavior calculated for each predetermined time step (ti), The partial cable behavior calculation unit 5. The simulation device according to any one of configurations 1 to 4, wherein, for each time step, a behavior of the second object is calculated based on a behavior of the first object corresponding to the time step by using the parameter set. [Configuration 6] 6. The simulation device according to any one of configurations 1 to 5, wherein the partial cable behavior calculation unit includes a physical simulator. [Configuration 7] The second object includes a rigid body link modeled by connecting adjacent rigid bodies (304) with joints (305) between them; The physical simulator includes: The simulation device according to configuration 6, wherein the behavior of the second object is calculated by performing, based on the behavior of the first object, an operation according to an equation expressing a relationship between positions and orientations between adjacent rigid bodies in the modeled rigid link and a constraint condition corresponding to the joint and imposed on the relationship between positions and orientations between the rigid bodies. [Configuration 8] 8. The simulation apparatus according to claim 7, wherein the constraint condition includes a parameter representing a stiffness of the cable. [Configuration 9] 9. The simulation apparatus of claim 8, wherein the load includes a load applied to each of the rigid bodies of the second object. [Configuration 10] 10. The simulation device according to any one of configurations 1 to 9, further comprising an evaluation unit (177) that evaluates the behavior of the second target calculated by the partial cable behavior calculation unit based on the calculated load. [Configuration 11] The apparatus includes a robot (30); 11. The simulation device according to any one of configurations 1 to 10, wherein the behavior of the first object is calculated by emulation of a robot program having a command code for operating the robot. [Configuration 12] The simulation device comprises: The simulation device according to configuration 11, which calculates the behavior of an object corresponding to a peripheral device (230) of the robot arranged in the virtual space by executing a simulation program (126, 122) including instructions or parameters for controlling the peripheral device. [Configuration 13] 12. The simulation device according to any one of configurations 1 to 11, further comprising an image generation unit (164) that generates an image that visualizes the virtual space. [Configuration 14] The computer (100) is provided with multiple guides (G n a simulation program for executing a method for calculating the behavior of a cable (340) attached to a device (30) via a The method comprises: A parameter set (P) relating to cable installation including a position and an attitude of each of the plurality of guides in the virtual space and a partial cable length between each of the guides is calculated based on a behavior of a first object corresponding to the device arranged in a virtual space. n ,S n) to calculate a behavior of a second object disposed in the virtual space corresponding to the partial cables between each guide; determining parameters for each of the partial cables; The step of determining the parameter comprises: For each of said partial cables, For each of the plurality of parameter sets, calculating a load applied to the second object corresponding to the partial cable based on a behavior of the second object corresponding to the partial cable calculated using the parameter set; For each of the plurality of parameter sets, determining whether the calculated load magnitude of the second object corresponding to the partial cable satisfies a constraint condition; The method further comprises: A simulation program comprising a step of determining, in the step of determining the parameters, a parameter set that satisfies the conditions for installation of the entire cable including each of the partial cables from one or more of the parameter sets that are determined to satisfy the constraint conditions for each of the partial cables.
[0218] The embodiments disclosed herein should be considered to be illustrative and not restrictive in all respects. The scope of the present invention is defined by the claims, not by the description of the embodiments described above, and is intended to include all modifications within the meaning and scope of the claims. [Explanation of symbols]
[0219] 1 Simulation device, 1A System simulation device, 1B Cable simulation device, 2 Control system, 30 Robot, 100 Information processing device, 102 Processor, 104 Main memory, 105 Virtual space information, 106 Operation unit, 108 Output unit, 109 Display, 110 Network interface, 111 Storage, 112 Optical drive, 114 Storage medium, 116 Local communication interface, 118 Internal bus, 120 Virtual time generation program, 121 Relay program, 122 Physical simulation program, 124 Physical simulation parameters, 126 PLC simulation program, 130 Robot emulation program, 132 Robot parameters, 134 Integration program, 135 3D visualization data, 136 Image processing program, 137 Cable simulation program, 139 Cable parameters, 142 Load information, 143 Evaluation program, 144 Evaluation data, 145 Parameter setting program, 147 Simultaneous equations, 150 Virtual space information management module, 151 Equipment behavior generation module, 152 PLC simulator, 154 Period generation module, 155 Work behavior simulator, 156 Physical simulator, 158 Relay module, 160 Robot emulator, 162 Work tracking module, 164 3D visualizer, 165 Cable simulator, 166 Partial cable behavior calculation module, 167 Load calculation module, 168 Constraint condition judgment module, 169 Robustness judgment module, 170 Parameter determination module, 177 Evaluation module, 210 Robot hand, 232 Work, 252 Behavior data, 253 Image data, 301 Arm, 304 Rigid body, 306 Surface, 310 Robot controller, 340 Whole cable, 341, 342, 343, C n Partial cable, 350, 351, G, G n Cable guide, 1371 constraint condition judgment program, 2520 equipment behavior data, 2521 cable behavior data, 2530 equipment image data, 2531 cable image data, S n Number of segments, P nBehavior / Posture, R range.
Claims
1. A simulation device for calculating the behavior of a cable attached to a device via multiple guides, comprising: a partial cable behavior calculation unit that calculates behavior of a second object that is placed in a virtual space and corresponds to a partial cable between each of the guides, based on behavior of a first object that corresponds to the device placed in the virtual space, by using a parameter set related to cable installation including positions and orientations of each of the multiple guides in the virtual space and partial cable lengths between each of the guides; For each of said partial cables, For each of the plurality of parameter sets, a load applied to the second object corresponding to the partial cable is calculated based on a behavior of the second object corresponding to the partial cable calculated by the partial cable behavior calculation unit using the parameter set; a parameter determination unit that determines whether or not a calculated load magnitude of the second target corresponding to each of the plurality of parameter sets satisfies a constraint condition; a parameter determination unit that determines, for each of the partial cables, from one or more of the parameter sets that are determined by the parameter determination unit to satisfy the constraint condition, a parameter set that satisfies a condition related to installation of the entire cable including each of the partial cables; the constraint condition includes a first constraint condition that the magnitude of the load applied to the second object corresponding to the partial cable does not exceed a threshold; A simulation device, wherein the conditions regarding the installation of the entire cable include a condition that the position and posture of a guide shared between adjacent partial cables are common.
2. The first constraint condition is: The simulation device according to claim 1 , further comprising a condition that, when the length of the partial cable changes within a predetermined range, the magnitude of the load applied to the second object corresponding to the partial cable does not exceed a threshold value.
3. The behavior of the first target includes a behavior calculated for each predetermined time step; The partial cable behavior calculation unit 3 . The simulation device according to claim 1 , further comprising: a parameter set that is used to calculate, for each time step, a behavior of the second object based on a behavior of the first object corresponding to the time step.
4. The simulation device according to claim 1 , wherein the partial cable behavior calculation unit includes a physical simulator.
5. The second object includes a rigid body link modeled by connecting adjacent rigid bodies with joints; The physical simulator includes:
5. The simulation device according to claim 4, wherein the behavior of the second object is calculated by performing, based on the behavior of the first object, an operation according to an equation that represents a relationship in positions and orientations between adjacent rigid bodies in the modeled rigid link and a constraint condition that corresponds to the joint and is imposed on the relationship in positions and orientations between the rigid bodies.
6. The simulation device according to claim 5 , wherein the constraint condition includes a parameter representing a stiffness of the cable.
7. The simulation apparatus according to claim 6 , wherein the load includes a load acting on each of the rigid bodies included in the second target.
8. The simulation device according to claim 1 , further comprising an evaluation unit that evaluates the behavior of the second target calculated by the partial cable behavior calculation unit based on the calculated load.
9. The device includes a robot; 9. The simulation device according to claim 1, wherein the behavior of the first target is calculated by emulating a robot program having a command code for operating the robot.
10. The simulation device comprises:
10. The simulation device according to claim 9, wherein the behavior of an object corresponding to a peripheral device of the robot arranged in the virtual space is calculated by executing a simulation program including commands or parameters for controlling the peripheral device.
11. The simulation device according to claim 1 , further comprising an image generation unit that generates an image that visualizes the virtual space.
12. A simulation program for causing a computer to execute a method for calculating behavior of a cable attached to equipment via multiple guides, comprising: The method comprises: Calculating behavior of a second object placed in a virtual space corresponding to a partial cable between each of the guides, based on behavior of a first object corresponding to the device placed in the virtual space, using a parameter set related to cable installation including positions and orientations of each of the multiple guides in the virtual space and partial cable lengths between each of the guides; determining parameters for each of the partial cables; The step of determining the parameter comprises: For each of said partial cables, For each of the plurality of parameter sets, calculating a load applied to the second object corresponding to the partial cable based on a behavior of the second object corresponding to the partial cable calculated using the parameter set; For each of the plurality of parameter sets, determining whether the calculated load magnitude of the second object corresponding to the partial cable satisfies a constraint condition; The method further comprises: In the step of determining the parameters, a step of determining a parameter set that satisfies a condition for installation of the entire cable including each of the partial cables from one or more of the parameter sets that are determined to satisfy the constraint condition for each of the partial cables is included; the constraint condition includes a first constraint condition that the magnitude of the load applied to the second object corresponding to the partial cable does not exceed a threshold; A simulation program, wherein the conditions regarding the installation of the entire cable include a condition that the position and attitude of a guide shared between adjacent partial cables are common.
Citation Information
Patent Citations
Method for designing integrated circuit mask layout
JP1994291190A
Simulation method for filamentary member
JP1995182017A
Apparatus and method for support of wiring design and computer-readable storage medium
JP2001251741A
Simulation method of non-rigid object added to robot and state diagnosing method of non-rigid object added to robot
JP2005293331A
Simulation device, simulation method, and simulation program
JP2016042378A
