Method of simplifying original shape of workpiece being object of power control operation of robot, simplification processing device, and computer program

By simplifying workpiece shapes into combinations of primitive solids and optimizing surface differences and overlap, the method stabilizes force control simulations, enhancing accuracy and efficiency.

JP2024127329AInactive Publication Date: 2024-09-20SEIKO EPSON CORP

Patent Information

Application Number
JP2023036426
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-09
Publication Date
2024-09-20
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing simulator software struggles to accurately simulate the forces and torques during contact between workpieces due to unstable calculation processes when converting CAD data into polyhedrons for force control operations, necessitating a more precise method to simplify workpiece shapes.

Method used

A method and device that simplify workpiece shapes by converting CAD data into combinations of primitive solids, optimizing shapes using evaluation functions to minimize surface differences and overlap, and optionally adding cut surfaces to replicate real-world deviations.

Benefits of technology

This approach stabilizes the calculation of contact forces, providing accurate simulations that closely mimic actual machine behavior, reducing errors and improving simulation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024127329000001
    Figure 2024127329000001
Patent Text Reader

Abstract

To provide a technique which can obtain a workpiece shape suitable for simulation of a power control operation.SOLUTION: A method according to the present disclosure includes the steps of: (a) acquiring first CAD data representing a first original shape of a first workpiece and second CAD data representing a second original shape of a second workpiece; (b) setting a simplification processing condition; (c) obtaining a first simplified shape of the first workpiece and a second simplified shape of the second workpiece; (d) calculating a first surface difference in surface shapes between the first original shape and the first simplified shape and a second surface difference in surface shapes between the second original shape and the second simplified shape; and (e) calculating a superposition amount representing the degree of superposition of the first simplified shape and the second simplified shape. Processing is repeated until a preset first termination condition is satisfied while executing first optimization processing that optimizes the first simplified shape and the second simplified shape by using a first evaluation function including the first surface difference, the second surface difference and the superposition amount.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a method for simplifying an original shape of a workpiece that is the subject of a force control operation of a robot, a simplification processing device, and a computer program. [Background technology]

[0002] Simulator software equipped with a physics engine is sometimes used to simulate the force control operation of a robot. Most simulator software can accept CAD data of workpieces represented as a collection of meshes and execute a simulation, but it is generally difficult to reproduce with high accuracy the forces and torques that occur when workpieces come into contact with each other. Therefore, it is desirable to improve the accuracy of the simulation by changing the shape of the workpiece.

[0003] Patent Document 1 discloses a technique for converting CAD data into a polyhedron with a mesh number that suppresses errors in any physical quantity within an allowable range and does not result in excessive precision. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2009-048537 A Summary of the Invention [Problem to be solved by the invention]

[0005] However, when a workpiece converted into a polyhedron is used in a force control operation simulation as in the above-mentioned conventional technology, there is a problem that the calculation process of the contact force between the workpieces is likely to become unstable. This is because it is necessary to repeatedly calculate the force so as to satisfy various constraints such as the positional relationship between the vertices of the mesh that constitutes the polyhedron and the positional relationship between the contacting workpieces. Therefore, a technology that can obtain a workpiece shape suitable for a force control operation simulation using a method different from the above-mentioned conventional technology is desired. [Means for solving the problem]

[0006] According to a first aspect of the present disclosure, there is provided a method for simplifying an original shape of a workpiece that is a target of a force control operation of a robot, the method including the steps of: (a) acquiring first CAD data representing a first original shape of a first workpiece and second CAD data representing a second original shape of a second workpiece that contacts the first workpiece in the force control operation; (b) setting simplification processing conditions; (c) executing a simplification process under the simplification processing conditions to obtain a first simplified shape obtained by simplifying the first original shape and a second simplified shape obtained by simplifying the second original shape; and (d) obtaining a first surface difference representing a difference in surface shapes between the first original shape and the first simplified shape and a surface difference between the second original shape and the second simplified shape. (e) calculating an overlap amount representing the degree of overlap between the first simplified shape and the second simplified shape in a relative positional relationship where the first workpiece and the second workpiece come into contact with each other during the force control operation, wherein in the step (c), a first optimization process is performed in which the first simplified shape and the second simplified shape are optimized using a first evaluation function including the first surface difference, the second surface difference, and the overlap amount, while repeating the steps (c) to (e) until a preset first termination condition is satisfied.

[0007] According to a second aspect of the present disclosure, there is provided a simplification processing device that simplifies an original shape of a workpiece that is a target of a force control operation of a robot. The simplification processing device includes a data acquisition unit that acquires first CAD data representing a first original shape of a first workpiece and second CAD data representing a second original shape of a second workpiece that contacts the first workpiece in the force control operation, a processing condition setting unit that sets simplification processing conditions, a simplification processing unit that executes a simplification process to obtain a first simplified shape obtained by simplifying the first original shape and a second simplified shape obtained by simplifying the second original shape under the simplification processing conditions, a surface difference calculation unit that calculates a first surface difference that represents a difference in surface shape between the first original shape and the first simplified shape and a second surface difference that represents a difference in surface shape between the second original shape and the second simplified shape, and an overlap amount calculation unit that calculates an overlap amount that represents an overlap degree between the first simplified shape and the second simplified shape in a relative positional relationship where the first workpiece and the second workpiece contact each other in the force control operation. The simplification processing unit executes a first optimization process that optimizes the first simplified shape and the second simplified shape using a first evaluation function including the first surface difference, the second surface difference, and the overlap amount.

[0008] According to a third aspect of the present disclosure, there is provided a computer program for causing a processor to execute a process for simplifying an original shape of a workpiece that is a target of a force control operation of a robot. The computer program includes: (a) a process for acquiring first CAD data representing a first original shape of a first workpiece and second CAD data representing a second original shape of a second workpiece that contacts the first workpiece in the force control operation; (b) a process for acquiring simplification processing conditions; (c) a simplification process for obtaining a first simplified shape obtained by simplifying the first original shape under the simplification processing conditions and a second simplified shape obtained by simplifying the second original shape; and (d) a first surface difference representing a difference in surface shape between the first original shape and the first simplified shape, and a surface difference between the second original shape and the second simplified shape. (e) calculating a second surface difference representing the difference between the first simplified shape and the second simplified shape in a relative positional relationship where the first workpiece and the second workpiece come into contact with each other during the force control operation; and (c) repeating the processes (c) to (e) while performing a first optimization process that optimizes the first simplified shape and the second simplified shape using a first evaluation function including the first surface difference, the second surface difference, and the overlap amount in the process (c) until a preset first termination condition is satisfied. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 is an explanatory diagram showing a configuration of a robot system according to an embodiment. [Diagram 2] FIG. 2 is a functional block diagram of an information processing device. [Diagram 3] FIG. 2 is an explanatory diagram showing an example of an original shape and a simplified shape of a workpiece. [Figure 4] FIG. 13 is an explanatory diagram showing another example of the original shape and simplified shape of the workpiece. [Diagram 5] 5 is a flowchart showing the procedure of workpiece shape simplification processing in the first embodiment. [Figure 6] FIG. 11 is an explanatory diagram showing an example of changing the number of primitive solids. [Figure 7] FIG. 13 is an explanatory diagram showing an example of adding cut surfaces to a rectangular parallelepiped. [Figure 8] 10 is a flowchart showing the procedure of workpiece shape simplification processing in the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] A. First embodiment: 1 is an explanatory diagram showing an example of a robot system according to an embodiment. The robot system includes a robot 100, a control device 200 that controls the robot 100, and an information processing device 300. The robot 100 is placed on a stand 500. The information processing device 300 is, for example, a personal computer.

[0011] The robot 100 includes a base 110 and a robot arm 120. The robot arm 120 is connected in sequence by four joints J1 to J4. A force sensor 410 and an end effector 150 are attached to the tip of the robot arm 120. A TCP (Tool Center Point) is set near the tip of the robot arm 120 as a control point of the robot 100. In this embodiment, a four-axis robot having four joints J1 to J4 is illustrated as an example, but a robot having any arm mechanism having a plurality of joints can be used. In addition, the robot 100 in this embodiment is a horizontal multi-joint robot, but a vertical multi-joint robot may also be used.

[0012] The force sensor 410 is a sensor that detects a force applied to the end effector 150. As the force sensor 410, a load cell capable of detecting a force in a single axial direction, or a force sensor or torque sensor capable of detecting force components in multiple axial directions can be used. In this embodiment, a six-axis force sensor is used as the force sensor 410. The six-axis force sensor detects the magnitude of a force parallel to three detection axes that are mutually orthogonal in a unique sensor coordinate system, and the magnitude of a torque around the three detection axes. Note that the force sensor 410 may be provided at a position other than the position of the end effector 150, for example, at one or more of the joints J1 to J4.

[0013] The robot 100 executes a force control operation using the first workpiece 610 and the second workpiece 620 by utilizing the detection result by the force sensor 410. In this embodiment, a fitting operation for fitting the first workpiece 610 into the second workpiece 620, or an insertion operation for inserting the second workpiece 620 into the first workpiece 610 is executed as the force control operation. Examples of specific shapes of the workpieces 610 and 620 will be described later. Other operations such as a surface matching operation and a pressing movement operation may be executed as the force control operation.

[0014] 2 is a block diagram showing functions of an information processing device 300 in an embodiment. The information processing device 300 can be realized as an information processing device such as a personal computer. The information processing device 300 has a processor 310, a memory 320, an interface circuit 330, and an input device 340 and a display device 350 connected to the interface circuit 330. The interface circuit 330 is further connected to a control device 200. Measurement results of the sensors 400 of the robot 100 are supplied to the information processing device 300 via the control device 200.

[0015] In addition to the force sensor 410 described in FIG. 1, the sensors 400 include a current sensor 430 that measures the current of a motor provided in each joint of the robot 100, and a joint encoder 440 that detects the motion position of each joint.

[0016] The processor 310 has functions as a workpiece shape adjustment unit 370 that adjusts the original shapes of the workpieces 610, 620 for simulation, and a simulator 380 that simulates the operation of the robot 100. The workpiece shape adjustment unit 370 includes functions of a data acquisition unit 371, a processing condition setting unit 372, a simplification processing unit 373, a surface difference calculation unit 374, and an overlap amount calculation unit 375. The functions of each unit included in the workpiece shape adjustment unit 370 will be described later. The functions of the workpiece shape adjustment unit 370 and the simulator 380 are realized by the processor 310 executing a computer program stored in the memory 320. However, some or all of these functions may be realized by a hardware circuit.

[0017] The memory 320 stores CAD data CD representing the original shapes of the workpieces 610, 620, workpiece shape simplification processing conditions SC, actual operation data LD for the force control operation of the robot 100, and a robot control program RP. The robot control program RP is composed of a number of commands for operating the robot 100.

[0018] FIG. 3 is an explanatory diagram showing an example of the original shape and the simplified shape of the workpieces 610 and 620. The first workpiece 610 has a hollow cylindrical main body 611 and two fitting parts 612 provided at positions facing each other on the main body 611. A cylindrical insertion hole 613 is formed in the fitting part 612. The second workpiece 620 has a rectangular base 621 and a columnar fitting part 622 provided at two positions on the base 621. The fitting part 622 of the second workpiece 620 is configured to be inserted into the insertion hole 613 of the first workpiece 610. It is also possible to call the fitting part 612 of the first workpiece 610 an "inserted part" and the fitting part 622 of the second workpiece 620 an "inserted part."

[0019] In FIG. 4, one of the fitting parts 622 of the second workpiece 620 is depicted with a mesh structure represented by the CAD data of the second workpiece 620. Other parts of the workpieces 610 and 620 also have similar mesh structures, but the mesh structures are omitted from FIG. 4 for convenience. In general, the shape of a workpiece represented by CAD data is represented by a mesh structure composed of many small triangles. Therefore, if a simulation is performed using the workpiece shape represented by CAD data as is, the calculation of force and torque is complicated, and there is a possibility that a large error will occur with respect to the force and torque obtained by the actual machine. Therefore, in the present disclosure, the calculation of force and torque obtained by simulation is simplified by simplifying the shape of the workpiece.

[0020] In this disclosure, the shapes So1 and So2 of the workpieces 610 and 620 represented by CAD data are called "original shapes So1 and So2". In the simplification process, the original shapes So1 and So2 of the individual workpieces 610 and 620 are converted into simplified shapes Ss1 and Ss2 composed of a combination of primitive solids. "Primitive solid" means a solid having a simple shape. In this embodiment, a rectangular parallelepiped is used as the primitive solid. However, other solids such as a triangular prism or a cylinder may be used as the primitive solid. Note that if a prism with a polygonal base, such as a rectangular parallelepiped or a triangular prism, is used as the primitive solid, the number of faces constituting the simplified shape of the workpiece can be reduced.

[0021] In the example of Fig. 3, the simplified shape Ss1 of the first workpiece 610 is composed of seven rectangular parallelepipeds. The cylindrical insertion holes 613 provided in the two fitting portions 612 are expressed as square cylindrical holes surrounded by four rectangular parallelepipeds. The simplified shape Ss2 of the second workpiece 620 is composed of three rectangular parallelepipeds. The two cylindrical fitting portions 622 are each expressed as one rectangular parallelepiped.

[0022] FIG. 4 is an explanatory diagram showing another example of the original shapes and simplified shapes of the workpieces 610 and 620. In this example, the simplified shape Ss1 of the first workpiece 610 is composed of four rectangular parallelepipeds. The two insertion holes 613 are expressed as one rectangular cylindrical hole surrounded by four rectangular parallelepipeds. The simplified shape Ss2 of the second workpiece 620 is composed of two rectangular parallelepipeds. In this example, the entire two cylindrical fitting parts 622 are expressed as one rectangular parallelepiped. The example of FIG. 4 is an example in which the maximum number of primitive solids usable for simplification processing is set smaller than that of the example of FIG. 3.

[0023] 5 is a flowchart showing the procedure of the workpiece shape simplification process in the first embodiment. In step S10, the data acquisition unit 371 acquires CAD data representing the original shape So1 of the first workpiece 610 and CAD data representing the original shape So2 of the second workpiece 620. This step S10 is executed by reading the CAD data from the memory 320. When a new workpiece is to be processed, the CAD data of the workpiece is input by the user and accepted by the data acquisition unit 371.

[0024] In step S20, the processing condition setting unit 372 accepts and sets simplified processing conditions SC input from the user. The simplified processing conditions SC include, for example, the following items. (1) The maximum number of primitive solids that make up the simplified shape of each workpiece. (2) A threshold value for the surface difference SD calculated in step S40, and a threshold value for the overlap amount SP calculated in step S50. (3) The termination condition of the optimization process used in the judgment in step S60. (4) The maximum number, size, and direction of cut planes that may be applied in step S80. (5) The relative positions of the workpieces 610 and 620 at the end of the mating operation.

[0025] In step S30, the simplification processing unit 373 executes simplification processing under the simplification processing condition SC to simplify the original shapes So1, So2 of the workpieces 610, 620. Specifically, as described above with reference to Fig. 3 or Fig. 4, a first simplified shape Ss1 is determined by simplifying the original shape So1 of the first workpiece 610, and a second simplified shape Ss2 is determined by simplifying the original shape So2 of the second workpiece 620.

[0026] The simplification processing unit 373 can use various algorithms for obtaining a simplified shape according to input CAD data. As this algorithm, for example, an optimization algorithm can be used that optimizes the side length and the position and orientation of each rectangular parallelepiped so as to minimize the surface difference and overlap amount described later, with the maximum number of rectangular parallelepipeds as primitive solids as a constraint condition.

[0027] Examples of the optimization algorithm that can be used include random search, genetic algorithm, Bayesian optimization, and CMA-ES (variance matrix adaptive evolution strategy). A machine learning model can also be used as the simplification algorithm. For example, a neural network may be used that receives CAD data of a workpiece as input and outputs a combination of a plurality of primitive solids. This neural network may be trained by unsupervised learning so as to minimize the surface difference SD and the overlap amount SP. In this case, it is preferable to train the neural network by adding some parameter such as a real value representing the simplification level to the input of the neural network. In this way, the output of the neural network can be adjusted.

[0028] As an evaluation function for the optimization algorithm, for example, any one of the following three examples can be used. <Evaluation function E1> E1 = k1×SD1 + k2×SD2 + k2×SP Here, k1 to k3 are positive coefficients, SD1 is the surface difference of the first workpiece 610, SD2 is the surface difference of the second workpiece, and SP is the amount of overlap. <Evaluation functions E2a, E2b> E2a = k1×SD1 + k2×SD2 E2b = SP When these evaluation functions E2a and E2b are used, a multi-objective optimization process is executed. <Evaluation functions E3a, E3b, E3c> E3a = SD1 E3b = SD2 E3c = SP When these evaluation functions E3a, E3b, and E3c are used, the multi-objective optimization process is also performed.

[0029] The optimization process using any of the three examples of the evaluation function described above corresponds to "optimization process that optimizes a simplified shape using an evaluation function including the surface difference SD1, the surface difference SD2, and the overlap amount SP."

[0030] In step S40, the surface difference calculation unit 374 calculates a surface difference SD representing the difference between the surface shape of the original shape represented by the CAD data and the simplified shape for each workpiece 610, 620. The surface difference SD is an index representing the closeness between the surface of the original shape of the workpiece and the surface of the simplified shape. The surface difference SD is calculated, for example, by the following formula.

number

[0031] As the surface difference SD, the first surface difference SD1 for the first workpiece 610 and the second surface difference SD2 for the second workpiece 620 are calculated according to (q1) to (q3). The value D1 calculated by the formula (q2) becomes smaller as the point on the surface of the original shape is closer to the surface of the simplified shape, and the value D2 calculated by the formula (q3) becomes smaller as the point on the surface of the simplified shape is closer to the surface of the original shape. Therefore, by calculating the surface difference SD, which is the sum of these, for each workpiece and searching for a combination of primitive solids that minimizes them in steps S30 to S60, a simplified shape close to the original shape can be obtained for each workpiece. Note that the calculation method of the surface difference SD is not limited to the above formula, and various methods can be used, such as calculating the surface difference SD using the distance from N points on the surface of the original shape to the surface of a rectangular parallelepiped that constitutes the simplified shape.

[0032] In step S50, the overlap amount calculation unit 375 calculates the overlap amount SP of the simplified shapes Ss1 and Ss2 of the two workpieces 610 and 620. The overlap amount SP is an index that indicates the degree of overlap between the simplified shape Ss1 of the first workpiece 610 and the simplified shape Ss2 of the second workpiece 620 in the relative positional relationship in which the first workpiece 610 and the second workpiece 620 come into contact with each other in the force control operation. When a fitting operation or an insertion operation is performed as the force control operation, the degree of overlap between the simplified shapes Ss1 and Ss2 in the state in which the two workpieces 610 and 620 are arranged in the relative positions at the time of completion of fitting or insertion is calculated as the overlap amount SP. The overlap amount SP is, for example, the volume of the overlapping portion of the two simplified shapes Ss1 and Ss2. When the simplified shapes Ss1 and Ss2 are expressed as a combination of multiple rectangular parallelepipeds, the overlap amount SP can be calculated as the sum of the overlap between the rectangular parallelepipeds. By minimizing the overlap amount SP, it is possible to prevent the two workpieces 610, 620 from interfering with each other excessively, and to obtain a simplified shape that allows a simulation closer to the behavior of the actual machine.

[0033] In step S60, the simplification processing unit 373 determines whether or not a preset termination condition is satisfied for the simplified shape obtained in the process of step S30. As the termination condition, for example, any one of the following termination conditions EC1, EC2, and EC3 can be used. <Termination condition EC1> The value of an evaluation function E1 including the surface difference SD1 of the first workpiece 610, the surface difference SD2 of the second workpiece, and the overlap amount SP is equal to or less than a preset threshold value T1. E1 = k1×SD1+ k2×SD2 + k2×SP ≦ T1 <Termination condition EC2> The values ​​of an evaluation function E2a including the surface difference SD1 of the first workpiece 610 and the surface difference SD2 of the second workpiece, and an evaluation function E2b including the overlap amount SP are less than or equal to the respective threshold values ​​T2a, T2b. E2a = k1×SD1 + k2×SD2 ≦ T2a E2b = SP ≦ T2b <Termination condition EC3> The values ​​of an evaluation function E3a including the surface difference SD1 of the first workpiece 610, an evaluation function E3b including the surface difference SD2 of the second workpiece, and an evaluation function E3c including the overlap amount SP are less than or equal to the respective threshold values ​​T3a, T3b, T3c. E3a = SD1 ≦ T3a E3b = SD2 ≦ T3b E3c = SP ≦ T3c

[0034] In addition to the above-mentioned three termination conditions EC1 to EC3, other conditions may be used as the termination condition, such as, for example, that the routine of steps S30 to S60 has been executed a predetermined number of times. The termination condition of step S60 is also referred to as a "first termination condition."

[0035] If the termination condition is not satisfied, the process returns to step S30, and steps S30 to S50 are executed again. At this time, in step S30, an optimization process is executed to optimize the simplified shape of each workpiece using one of the evaluation functions E1 to E3, which include the surface differences SD1, SD2 and the overlap amount SP.

[0036] On the other hand, if the termination condition is met, the process proceeds to step S70, where the user specifies whether or not to change the number of primitive solids.

[0037] FIG. 6 is an explanatory diagram showing an example of changing the number of primitive solids. An example of the simplified shapes Ss1, Ss2_1 of the workpieces 610, 620 obtained by the process of step S30 is displayed in the window W1. The user can select any primitive solid and specify whether to delete or divide the primitive solid. In the example in the upper part of FIG. 6, one primitive solid PM1 constituting the simplified shape Ss2_1 of the second workpiece 620 is selected, and a pop-up window PW1 is displayed in response to the selection. In the pop-up window PW1, it is specified that the primitive solid PM1 is to be deleted. After that, when the process returns from step S70 to step S30 and the optimization process of steps S30 to S60 is performed, the changed simplified shape Ss2_2 of the second workpiece 620 is displayed in step S70 as shown in the window W2 in the lower part of FIG. 6. The simplified shape Ss2_2 is composed of a smaller number of primitive solids than the original simplified shape Ss2_1.

[0038] In the example at the bottom of Fig. 6, one primitive solid PM2 constituting the simplified shape Ss2_2 of the second workpiece 620 is selected, and a pop-up window PW2 is displayed in response to the selection. In this pop-up window PW2, it is specified that the primitive solid PM2 is to be divided into two. When dividing the primitive solid, a desired number of divisions may be specified. After that, the process returns from step S70 to step S30, and the optimization process of steps S30 to S60 is executed, and the changed simplified shape Ss2_1 of the second workpiece 620 is displayed in step S70, as shown in the window W1 at the top of Fig. 6.

[0039] In this way, in the simplification process, it is preferable to select any primitive solids included in the simplified shapes Ss1, Ss2 of the workpieces 610, 620 and specify whether to delete or divide them. In this way, the number of primitive solids constituting the simplified shape of each workpiece can be adjusted to a desired number. Note that the process of step S70 can be performed at any timing, not limited to after step S60. Also, step S70 may be omitted.

[0040] If the user wishes to change the number of primitive solids, he or she may return to step S20 and change the simplification processing condition SC, rather than using a graphical user interface such as that shown in Fig. 6. By changing the maximum number of primitive solids in the simplification processing condition SC and executing the processes in step S30 and after, it is possible to change the number of primitive solids constituting the simplified solid of each work, as in the example of Fig. 6. If the user returns to step S20 and changes the maximum number of primitive solids, other conditions may be additionally changed.

[0041] If the number of primitive solids is not to be changed, the process proceeds from step S70 to step S80, where the simplification processor 373 executes a process of adding cut planes to the primitive solids that form the simplified shapes Ss1 and Ss2 of the workpieces 610 and 620.

[0042] FIG. 7 is an explanatory diagram showing an example of adding cut surfaces to a primitive solid, which is a rectangular parallelepiped. In this example, four cut surfaces CS are added to the top of the original rectangular parallelepiped RC shown on the left side as inclined surfaces inclined from the bottom surface BP of the rectangular parallelepiped RC. In this embodiment, the cut surfaces CS are also added using the side surfaces of the rectangular parallelepiped, which is a primitive solid. Therefore, in the example of FIG. 7, the process of adding the cut surfaces CS is a process of reconstructing the top of the original rectangular parallelepiped RC with one rectangular parallelepiped that provides the bottom surface BP and four rectangular parallelepipeds that are arranged diagonally so that the cut surfaces CS are the side surfaces. These five rectangular parallelepipeds are arranged in a state where they are allowed to overlap with each other. In this way, the cut surfaces CS can be added using only the primitive solid.

[0043] The presence or absence of cut planes CS for each primitive solid, the maximum number of cut planes CS, the size of the cut planes CS, and the direction of the cut planes CS are set as simplification processing conditions SC. The primitive solid to which the cut planes CS are to be added and the position to which they are added may be specified by the user. For example, in the example of FIG. 3, it is preferable to specify that the cut planes CS are added to the tips of the two cylindrical fitting parts 622 included in the second work 620. If the cut planes CS are added to a primitive solid such as a rectangular parallelepiped, it is possible to reproduce the slight roundness present at the corners of the actual work and the correction of the positional deviation caused by the roundness. As a result, it is possible to reproduce a smooth fitting with little snagging in the simulation as in the actual machine, and it is possible to perform a simulation of a force control operation close to the behavior of the actual machine. However, step S80 can be omitted. When the processing of step S80 is completed, the entire simplification processing of FIG. 5 is completed.

[0044] As described above, in the first embodiment, a simplified shape that minimizes the surface difference SD and overlap amount SP is obtained for two workpieces used in force control operation, so that a simplified shape suitable for simulating force control operation can be obtained.

[0045] B. Second embodiment: Fig. 8 is a flowchart showing the procedure of workpiece shape simplification processing in the second embodiment. This processing procedure is obtained by adding steps S90, S100, and S110 to the processing procedure of the first embodiment shown in Fig. 5, and the other steps are almost the same as those in Fig. 5. In addition, the configuration of the robot system is also the same as that of the first embodiment.

[0046] In step S90, the simulator 380 executes a simulation of the force control operation of the robot using the simplified shapes Ss1, Ss2 of the workpieces 610, 620 obtained by the processing up to step S80. In step S100, the simplification processing unit 373 calculates an operation distance indicating the difference between the operation in the simulation and the operation in the actual operation data LD. The actual operation data LD is time-series data obtained when the actual robot 100 executes the force control operation that is the subject of the simulation. The operation items of the actual operation data LD include, for example, the trajectory of a specific position of the robot 100, such as TCP (Tool Center Point), and the trajectory of the force and torque measured by the force sensor 410. The same is true for the operation in the simulation.

[0047] As the motion distance, it is preferable to use the distance between the force and torque trajectory in the actual machine motion data LD and the force and torque trajectory in the simulation. The motion distance can be calculated by various methods used for calculating the distance between time series data. Specifically, the Euclidean distance or the DTW (Dynamic Time Warping) distance may be used as the motion distance.

[0048] In step S110, the simplification processing unit 373 determines whether a preset second end condition is satisfied. As the second end condition, for example, a condition that the motion distance is equal to or less than a preset threshold value can be used. In addition to this condition, other conditions, such as the routine of steps S20 to S100 being executed a predetermined number of times, can also be used.

[0049] If the second end condition is not satisfied, the process returns from step S110 to step S20, and steps S20 to S100 are executed again. At this time, in step S20, the simplification processing unit 373 executes a second optimization process to optimize the simplification processing condition SC using an evaluation function including the motion distance. When step S20 is executed for the first time in the procedure of Fig. 8, the simplification processing condition SC may be determined automatically without user input, or may be determined randomly.

[0050] In this way, by executing the second optimization process and modifying the simplification process condition SC, the operation in the simulation gradually approaches that of the actual device, and a more desirable simplified shape can be obtained. On the other hand, when the second termination condition is met, the entire simplification process in FIG. 8 is terminated.

[0051] When the preferred simplified shapes of the workpieces 610 and 620 are obtained as a result of the simplification process in Fig. 8, various simulations can be performed using these simplified shapes. For example, simulations using simplified shapes can be used when multiple verifications are required for various patterns, such as further speeding up the force control operation or optimizing the entire manufacturing and assembly process using the target workpiece. Furthermore, when performing a simulation using simplified shapes, it is expected to shorten the verification time and suppress wear and tear on the actual workpiece and actual robot, compared to repeated trials using an actual robot.

[0052] The second embodiment described above has substantially the same effects as the first embodiment described above. In addition, the second embodiment can obtain a more desirable simplified shape that makes the operation in the simulation closer to the operation based on the actual machine operation data.

[0053] Other embodiments: The present disclosure is not limited to the above-mentioned embodiment, and can be realized in various forms without departing from the spirit of the present disclosure. For example, the present disclosure can be realized in the following aspects. The technical features in the above-mentioned embodiments corresponding to the technical features in each aspect described below can be appropriately replaced or combined in order to solve some or all of the problems of the present disclosure, or to achieve some or all of the effects of the present disclosure. Furthermore, if the technical feature is not described as essential in this specification, it can be appropriately deleted.

[0054] (1) According to a first aspect of the present disclosure, there is provided a method for simplifying an original shape of a workpiece that is a target of a force control operation of a robot. This method includes the steps of: (a) acquiring first CAD data representing a first original shape of a first workpiece and second CAD data representing a second original shape of a second workpiece that contacts the first workpiece in the force control operation; (b) setting simplification processing conditions; (c) executing a simplification process under the simplification processing conditions to obtain a first simplified shape obtained by simplifying the first original shape and a second simplified shape obtained by simplifying the second original shape; and (d) obtaining a first surface difference representing a difference in surface shapes between the first original shape and the first simplified shape and a surface difference between the second original shape and the second simplified shape. (e) calculating an overlap amount representing the degree of overlap between the first simplified shape and the second simplified shape in a relative positional relationship where the first workpiece and the second workpiece come into contact with each other during the force control operation, wherein in the step (c), a first optimization process is performed in which the first simplified shape and the second simplified shape are optimized using a first evaluation function including the first surface difference, the second surface difference, and the overlap amount, while repeating the steps (c) to (e) until a preset first termination condition is satisfied. According to this method, a simplified shape that minimizes the surface difference and overlap amount is obtained for two workpieces to be used in force control operation, so that a simplified shape suitable for simulating force control operation can be obtained.

[0055] (2) In the above method, the simplification process may be a process of constructing each of the first simplified shape and the second simplified shape as a combination of primitive solids that are rectangular parallelepipeds. According to this method, the workpiece shape can be simplified by using a primitive solid that is a rectangular parallelepiped.

[0056] (3) In the above method, the simplification process may be a process of constructing each of the first simplified shape and the second simplified shape as a combination of primitive solids, and the simplification process conditions may include a maximum number of the primitive solids that can be used in the simplification process. According to this method, the workpiece shape can be simplified using a primitive solid.

[0057] (4) The above method may further include the step of adding a cut surface to a part of the primitive solid for each of the first simplified shape and the second simplified shape. According to this method, a simplified shape with cut surfaces is used, so that it is possible to perform a simulation of force control operation that is close to the behavior of the actual machine.

[0058] (5) In the above method, the step (a) may include a step of acquiring actual operation data obtained by making the robot perform the force control operation using the first workpiece and the second workpiece. The method may further include a step of (f) executing a simulation of the force control operation using the first simplified shape and the second simplified shape, and determining an operation distance indicating a difference between an operation in the simulation and an operation in the actual operation data, and may repeatedly execute the process of repeating the steps (c) to (e) and the step (f) until a preset second end condition is satisfied, while executing a second optimization process in which the operation distance is used as a second evaluation function to optimize the simplification process conditions in the step (b). This method makes it possible to obtain a more desirable simplified shape that brings the behavior in the simulation closer to the behavior based on the actual machine operation data.

[0059] (6) According to a second aspect of the present disclosure, there is provided a simplification processing device that simplifies an original shape of a workpiece that is a target of a force control operation of a robot. The simplification processing device includes a data acquisition unit that acquires first CAD data representing a first original shape of a first workpiece and second CAD data representing a second original shape of a second workpiece that contacts the first workpiece in the force control operation, a processing condition setting unit that sets simplification processing conditions, a simplification processing unit that executes a simplification process to obtain a first simplified shape obtained by simplifying the first original shape and a second simplified shape obtained by simplifying the second original shape under the simplification processing conditions, a surface difference calculation unit that calculates a first surface difference that represents a difference in surface shape between the first original shape and the first simplified shape and a second surface difference that represents a difference in surface shape between the second original shape and the second simplified shape, and an overlap amount calculation unit that calculates an overlap amount that represents a degree of overlap between the first simplified shape and the second simplified shape in a relative positional relationship where the first workpiece and the second workpiece contact each other in the force control operation. The simplification processing unit executes a first optimization process that optimizes the first simplified shape and the second simplified shape using a first evaluation function including the first surface difference, the second surface difference, and the overlap amount.

[0060] (7) According to a third aspect of the present disclosure, there is provided a computer program for causing a processor to execute a process for simplifying an original shape of a workpiece that is a target of a force control operation of a robot. This computer program includes: (a) a process for acquiring first CAD data representing a first original shape of a first workpiece and second CAD data representing a second original shape of a second workpiece that comes into contact with the first workpiece in the force control operation; (b) a process for acquiring simplification processing conditions; (c) a simplification process for obtaining a first simplified shape obtained by simplifying the first original shape under the simplification processing conditions and a second simplified shape obtained by simplifying the second original shape; and (d) a first surface difference representing a difference in surface shape between the first original shape and the first simplified shape, and a surface difference between the second original shape and the second simplified shape. (e) calculating a second surface difference representing the difference between the first simplified shape and the second simplified shape in a relative positional relationship where the first workpiece and the second workpiece come into contact with each other during the force control operation; and (c) repeating the processes (c) to (e) while performing a first optimization process that optimizes the first simplified shape and the second simplified shape using a first evaluation function including the first surface difference, the second surface difference, and the overlap amount in the process (c) until a preset first termination condition is satisfied.

[0061] The present disclosure may be realized in various forms other than those described above, such as a robot system including a robot and a robot control device, a computer program for implementing the functions of the robot control device, a non-transitory storage medium on which the computer program is recorded, etc. [Explanation of symbols]

[0062] 100...robot, 110...base, 120...robot arm, 150...end effector, 200...control device, 300...information processing device, 310...processor, 320...memory, 330...interface circuit, 340...input device, 350...display device, 370...work shape adjustment unit, 371...data acquisition unit, 372...processing condition setting unit, 373...simplification processing unit, 374...surface difference calculation unit, 375...overlap amount calculation unit, 380...simulator, 400...sensors, 410...force sensor, 430...current sensor, 440...joint encoder, 500...frame, 610...first work, 611...main body, 612...fitting portion (inserted portion), 613...insertion hole, 620...second work, 621...base, 622...fitting portion (inserted portion)

Claims

1. 1. A method for simplifying an original shape of a workpiece that is a target of a force control operation of a robot, comprising: (a) acquiring first CAD data representing a first shape of a first workpiece and second CAD data representing a second shape of a second workpiece that contacts the first workpiece in the force control operation; (b) setting simplification processing conditions; (c) executing a simplification process under the simplification process conditions to obtain a first simplified shape obtained by simplifying the first original shape and a second simplified shape obtained by simplifying the second original shape; (d) calculating a first surface difference representing a difference in surface shape between the first original shape and the first simplified shape, and a second surface difference representing a difference in surface shape between the second original shape and the second simplified shape; (e) calculating an overlap amount representing a degree of overlap between the first simplified shape and the second simplified shape in a relative positional relationship in which the first workpiece and the second workpiece come into contact with each other in the force control operation; Including, a first optimization process is performed in step (c) to optimize the first simplified shape and the second simplified shape using a first evaluation function including the first surface difference, the second surface difference, and the overlap amount, while repeating steps (c) to (e) until a preset first termination condition is satisfied.

2. 2. The method of claim 1 , The method, wherein the simplification process is a process of constructing each of the first simplified shape and the second simplified shape as a combination of primitive solids that are rectangular parallelepipeds.

3. 2. The method of claim 1 , the simplification process is a process of configuring each of the first simplified shape and the second simplified shape as a combination of primitive solids; A method according to claim 1, wherein the simplification process conditions include a maximum number of the primitive solids that can be used in the simplification process.

4. The method according to claim 2 or 3, further comprising: adding a cut surface to a part of the primitive solid for each of the first simplified shape and the second simplified shape; A method comprising:

5. 2. The method of claim 1 , The step (a) includes a step of acquiring actual operation data obtained by making the robot perform the force control operation using the first workpiece and the second workpiece, The method further comprises: (f) executing a simulation of the force control operation using the first simplified shape and the second simplified shape, and determining an operation distance indicating a difference between the operation in the simulation and the operation based on the actual machine operation data; a second optimization process is performed in step (b) to optimize the simplification process conditions using the operating distance as a second evaluation function, while repeatedly performing steps (c) to (e) and step (f) until a preset second termination condition is satisfied.

6. A simplification processing device that simplifies an original shape of a workpiece that is a target of a force control operation of a robot, a data acquisition unit that acquires first CAD data representing a first shape of a first workpiece and second CAD data representing a second shape of a second workpiece that comes into contact with the first workpiece in the force control operation; a processing condition setting unit for setting simplification processing conditions; a simplification processing unit that executes a simplification process to obtain a first simplified shape obtained by simplifying the first original shape and a second simplified shape obtained by simplifying the second original shape under the simplification process conditions; a surface difference calculation unit that calculates a first surface difference representing a difference in surface shape between the first original shape and the first simplified shape, and a second surface difference representing a difference in surface shape between the second original shape and the second simplified shape; an overlap amount calculation unit that calculates an overlap amount that represents a degree of overlap between the first simplified shape and the second simplified shape in a relative positional relationship in which the first workpiece and the second workpiece come into contact with each other in the force control operation; Equipped with The simplification processing unit executes a first optimization process that optimizes the first simplified shape and the second simplified shape using a first evaluation function including the first surface difference, the second surface difference, and the overlap amount.

7. A computer program that causes a processor to execute a process for simplifying an original shape of a workpiece that is a target of a force control operation of a robot, (a) acquiring first CAD data representing a first shape of a first workpiece and second CAD data representing a second shape of a second workpiece that contacts the first workpiece in the force control operation; (b) a process of acquiring a simplification process condition; (c) a simplification process for obtaining a first simplified shape by simplifying the first original shape and a second simplified shape by simplifying the second original shape under the simplification process conditions; (d) calculating a first surface difference representing a difference in surface shape between the first original shape and the first simplified shape, and a second surface difference representing a difference in surface shape between the second original shape and the second simplified shape; (e) calculating an overlap amount representing a degree of overlap between the first simplified shape and the second simplified shape in a relative positional relationship in which the first workpiece and the second workpiece come into contact with each other in the force control operation; and a process of repeating the processes (c) to (e) while executing a first optimization process for optimizing the first simplified shape and the second simplified shape using a first evaluation function including the first surface difference, the second surface difference, and the overlap amount in the process (c) until a preset first end condition is satisfied; A computer program that causes the processor to execute the above.

Citation Information

Patent Citations

  • Program, device and method for generating polyhedron

    JP2009048537A

Cited By

  • Machining precision improving method and device based on multi-direction elastic force side pushing jig

    CN120065918A