Three-dimensional data generation device and robot control system
By configuring virtual workpieces and visual sensors in virtual space, generating local three-dimensional data and generating mobile programs, the problem of low efficiency in generating workpiece detection data in robot vision is solved, and efficient and fast workpiece detection is achieved, which is suitable for scattered scenes in complex scenes. Pile picking.
Patent Information
- Application Number
- CN202010691324.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-07-22
- Filing Date
- 2020-07-17
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-07-17
AI Technical Summary
In robot vision, the three-dimensional data generation of offline teaching workpieces has the problems of low efficiency and long matching processing time. Especially in random picking scenarios, it is difficult to achieve high-precision and high-speed workpiece detection with existing technology.
By configuring virtual workpieces and virtual vision sensors in the virtual space, local three-dimensional data is calculated and generated to reduce the generation time of master data for workpiece detection, and the robot can quickly adjust to the detection position through the mobile program to achieve high-speed matching processing.
It realizes the automatic generation of master data for workpiece detection, reduces the trial and error time of teaching personnel, improves the efficiency and accuracy of workpiece detection, can quickly detect workpieces under offline conditions, and is suitable for complex scenarios such as random picking.
Smart Images

Figure CN112276936B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a three-dimensional data generating device and a robot control system, and in particular to a three-dimensional data generating device and a robot control system that generate local three-dimensional data of a workpiece in an offline manner as master data for workpiece detection in robot vision. Background Art
[0002] In robot vision used for controlling industrial robots, at least one of the previously taught position and posture of the robot is corrected by detecting the workpiece from the data obtained by the visual sensor, or at least one of the position and posture of the robot is directly taught. As a workpiece detection method, pattern matching is widely used, and two-dimensional patterns or three-dimensional patterns are used as master data for workpiece detection in pattern matching. Three-dimensional patterns are superior to two-dimensional patterns in that they can detect workpieces robustly not only for rotation and scale changes of the workpiece, but also for changes in brightness values.
[0003] As a three-dimensional pattern, in addition to the overall three-dimensional data representing the overall shape of the workpiece, local three-dimensional data representing the local shape of the workpiece is also used. The local three-dimensional data can not only perform high-speed matching processing, but also achieve high-precision matching processing when the workpieces overlap each other, such as the bulk sorting performed in recent years. As a technology related to the present application, the following documents are known.
[0004] Japanese Patent Application Laid-Open No. 2004-295223 describes that by performing pattern matching using a transformed model pattern obtained by geometrically transforming a taught model pattern, an object in different relative postures in three dimensions can be recognized in addition to parallel translation, rotational movement, and enlargement and reduction.
[0005] Japanese Patent Publication No. 2010-89238 describes the following technology: when a robot is used to take out a plurality of bulk workpieces one by one, the representative partial shapes of the workpieces and the priority of the holding positions suitable for the partial shapes are stored, thereby determining the holding positions of the bulk workpieces in a short time and quickly taking out the workpieces. In addition, it is also described that by selecting a holding position with a high priority, the workpiece being taken out can be prevented from being hooked with other workpieces.
[0006] Japanese Patent Application Laid-Open No. 2010-184308 describes a technique for detecting a workpiece by using a part of the workpiece as a shape model instead of registering the entire workpiece as a shape model, thereby speeding up the image processing time for detection and determining the position and posture of the workpiece.
[0007] Japanese Patent Gazette No. 2010-211746 states: In order to easily confirm whether the settings of a three-dimensional visual sensor such as a stereo camera are appropriate, the three-dimensional information of the edge of at least a portion of the identification object obtained by the shooting unit and the three-dimensional model representing the entire identification object are perspective transformed into the coordinate system of the shooting unit, and the projection image of the edge of the identification object and the projection image of the three-dimensional model after the perspective transformation are displayed in a manner that can be compared.
[0008] Japanese Patent Gazette No. 2016-179534 states: distance information for a plurality of stacked objects is obtained, the position and posture of the object to be measured is derived based on the distance information and a local model representing the local shape of the object, and whether interference occurs between the object to be measured and a container for accommodating the object to be measured is determined based on the overall model representing the overall shape of the object.
[0009] It is recorded in Japanese Patent Gazette No. 2018-144167: In bulk picking using robot vision, a three-dimensional search is performed using multiple search models, and the position and posture of each workpiece is determined from the input image. In addition to the position and posture of the workpiece surface corresponding to the search model that succeeded in the three-dimensional search, the position and posture of the workpiece surface corresponding to the search model that failed in the three-dimensional search or the search model with low search reliability are also determined, which can be used as candidate positions for grasping.
[0010] The three-dimensional data of the workpiece registered as the master data for workpiece detection is taught to the robot online or offline. In the case of online teaching, an actual robot, an actual visual sensor, an actual workpiece, etc. are prepared as actual machines to generate the three-dimensional data of the workpiece. However, sometimes the three-dimensional data of the workpiece cannot be generated with high accuracy due to the influence of the gloss, lighting, external light, etc. of the workpiece. Therefore, there is a problem that the teaching staff needs to make trial and error, which takes time.
[0011] On the other hand, in the case of offline teaching, the CAD (computer-aided design) data of the workpiece is generally prepared, and the master data for workpiece detection is generated on the software based on the CAD data, thereby reducing the labor and time of the teaching staff. However, in the overall three-dimensional data representing the overall shape of the workpiece, not only is the matching process slowed down, but it is sometimes not applicable to some applications such as bulk picking. In addition, even for local three-dimensional data representing the local shape of the workpiece, the matching process also takes time when the shooting range of the visual sensor is wider than the size of the local three-dimensional data. Summary of the invention
[0012] Therefore, there is a need for a technology for reducing the number of steps required to generate workpiece detection master data and providing workpiece detection master data that enables high-speed matching processing.
[0013] One method of the present disclosure provides a three-dimensional data generating device, which comprises: a virtual space configuration unit, which configures a virtual workpiece and a virtual visual sensor in a virtual space so that a portion of the virtual workpiece converges within a shooting range of the virtual visual sensor; a configuration relationship calculation unit, which calculates the configuration relationship between the configured virtual workpiece and the virtual visual sensor; and a local three-dimensional data generating unit, which generates local three-dimensional data representing the local shape of the workpiece that converges within the shooting range based on the calculated configuration relationship. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 This is a structural diagram of a three-dimensional data generating device in one embodiment.
[0015] Figure 2A This is a perspective view showing an example of arrangement of a virtual workpiece, a virtual vision sensor, and a virtual robot.
[0016] Figure 2B This is a perspective view showing an example of arrangement of a virtual workpiece, a virtual vision sensor, and a virtual robot.
[0017] Figure 3 This is a stereogram showing an example of generating local three-dimensional data.
[0018] Figure 4 This is a stereogram showing an example of generating local three-dimensional data.
[0019] Figure 5 This is a flowchart of a three-dimensional data generating device in one embodiment.
[0020] Figure 6 This is a perspective view showing an example of a preset imaging range.
[0021] Fig. 7A This is a perspective view showing an example of an imaging range that has been changed according to the specifications of the visual sensor.
[0022] Figure 7B This is a perspective view showing an example of an imaging range that has been changed according to the specifications of the visual sensor.
[0023] Fig. 8A This is a perspective view showing an example of the robot before and after moving to the workpiece detection position.
[0024] Figure 8B This is a perspective view showing an example of the robot before and after moving to the workpiece detection position. DETAILED DESCRIPTION
[0025] Hereinafter, the embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. In each figure, the same or similar symbols are given to the same or similar components. In addition, the embodiments described below do not limit the technical scope of the invention described in the scope of the patent protection requested and the meaning of the terms. In this specification, when simply marked as "workpiece", "visual sensor" and "robot", please note that "virtual workpiece" and "actual workpiece", "virtual visual sensor" and "actual visual sensor", and "virtual robot" and "virtual workpiece" are included respectively. In addition, it should be noted in this specification that "three-dimensional model" refers to three-dimensional data that at least includes the surface information of an object, "three-dimensional edge" refers to three-dimensional data that does not include the surface information of an object, but at least includes the edge information of an object, and "three-dimensional point group data" refers to data that does not include the surface information and edge information of an object, but at least includes the point information of an object.
[0026] Figure 1 The structure of the three-dimensional data generating device 1 in the present embodiment is shown. The three-dimensional data generating device 1 is composed of a well-known computer device having a processor such as a CPU (Central Processing Unit) and an FPGA (field-programmable gate array). The three-dimensional data generating device 1 is an offline teaching device different from the robot control device (not shown), but it can also be integrated with the robot control device. In addition, in order to hand over the generated data to the robot control device, the three-dimensional data generating device 1 is configured to be able to communicate with the robot control device via wired or wireless communication, but it can also transmit data to the robot control device via an external memory. Please note Figure 1 The constituent elements “parts” of the three-dimensional data generating device 1 shown in the figure represent functional blocks or functional parts.
[0027] The three-dimensional data generating device 1 includes a virtual space configuration unit 10, a configuration relationship calculation unit 11, and a local three-dimensional data generating unit 12. The virtual space configuration unit 10 reads out the overall three-dimensional data representing the overall shape of the virtual workpiece, virtual visual sensor, virtual robot, etc. from the memory, and configures them in the virtual space. As the overall three-dimensional data, it can also be a three-dimensional model, a three-dimensional edge, or a three-dimensional point group data. The three-dimensional model can be, for example, CAD data, polygon data, etc., the three-dimensional edge can be, for example, wireframe data, etc., and the three-dimensional point group data can be, for example, point group data generated by a TOF (time of flight) camera, a laser scanner, etc.
[0028] Figure 2A , Figure 2B2 shows an example of the configuration of the virtual workpiece 21, the virtual vision sensor 22, and the virtual robot 23. The virtual space configuration unit 10 configures the virtual workpiece 21 and the virtual vision sensor 22 in the virtual space 20 so that a portion of the virtual workpiece 21 is within the imaging range of the virtual vision sensor 22. Figure 2A In the example shown, the virtual vision sensor 22 is disposed near the end effector of the virtual robot 23, such as the hand 24. Figure 2B In the example shown, the virtual visual sensor 22 is fixed at a position different from the virtual robot 23, such as a fixed structure 25. The virtual visual sensor 22 can be a two-dimensional sensor or a three-dimensional sensor. The two-dimensional sensor can be, for example, a CCD (charge-coupled device) camera, a CMOS (complementary metal-oxide-semiconductor) camera, etc., and the three-dimensional sensor can be, for example, a stereo camera, a TOF camera, a laser scanner, etc. The origin O1 of the virtual space 20, the origin O2 of the virtual workpiece 21, the origin O3 of the virtual visual sensor 22, and the origin O4 of the virtual robot 23 are set in the virtual space 20, respectively, so as to be able to perform coordinate transformation of three-dimensional data between various orthogonal coordinate systems centered on the origins O1-O4.
[0029] Refer again Figure 1 The configuration relationship calculation unit 11 calculates the configuration relationship between the configured virtual workpiece 21 and the virtual visual sensor 22. The configuration relationship may be, for example, the position and posture of the virtual workpiece 21 relative to the virtual visual sensor 22, or the position and posture of the virtual visual sensor 22 relative to the virtual workpiece 21.
[0030] The local three-dimensional data generating unit 12 generates local three-dimensional data of the workpiece within the imaging range of the virtual vision sensor 22 based on the calculated arrangement relationship. Figure 3 , Figure 4 FIG. 2 shows an example of generating local three-dimensional data 28. The imaging range 26 may be a three-dimensional model prepared in advance. Figure 3In the example shown, the shooting range 26 is in the shape of a quadrangular pyramid. When the virtual workpiece 21 is, for example, a three-dimensional model, the intersection lines of each surface of the three-dimensional model of the shooting range 26 and each surface of the three-dimensional model of the virtual workpiece 21 are respectively obtained, and a local three-dimensional model 27 of the virtual workpiece 21 is cut out based on the obtained intersection lines, and the intersection points of the sight lines (not shown) extending from each pixel of the virtual visual sensor 22 and each surface of the local three-dimensional model 27 are obtained, and the three-dimensional point group data of the obtained intersection points are generated as the local three-dimensional data 28 of the workpiece. Alternatively, the cut local three-dimensional model 27 itself can also be generated as the local three-dimensional data of the workpiece.
[0031] In addition, as a variation of the method for generating local three-dimensional data, when the virtual workpiece 21 is, for example, a three-dimensional edge, the intersection points of each surface of the three-dimensional model of the shooting range 26 and each side of the three-dimensional edge of the virtual workpiece 21 can be respectively calculated, and the local three-dimensional edge of the virtual workpiece 21 can be cut out based on the calculated intersection points, and the cut local three-dimensional edge itself can be generated as local three-dimensional data.
[0032] As another variation of the method for generating local three-dimensional data, it is also possible to obtain the intersection points of the lines of sight extending from each pixel of the virtual vision sensor 22 (not shown) and each surface of the overall three-dimensional model of the virtual workpiece 21 without cutting out the local three-dimensional model or local three-dimensional edge of the workpiece, and directly generate the three-dimensional point group data of the obtained intersection points as the local three-dimensional data 28 of the workpiece.
[0033] As another variation of the method for generating local three-dimensional data, when the virtual workpiece 21 is, for example, three-dimensional point group data, the three-dimensional point group data of the three-dimensional model that converges within the imaging range 26 may be directly generated as the local three-dimensional data 28 of the workpiece. When the inter-point spacing of the three-dimensional point group data of the virtual workpiece 21 is inconsistent with the spacing between lines of sight extending from each pixel of the virtual vision sensor 22, it is preferable to perform processing to make the inter-point spacing of the virtual workpiece 21 consistent with the spacing between lines of sight of the virtual vision sensor 22.
[0034] Figure 5A flowchart representing the three-dimensional data generating device 1. Please note that the program described in accordance with the flowchart is executed by the processor of the three-dimensional data generating device 1. In step S10, the three-dimensional data representing the overall shape of the virtual workpiece 21, the virtual visual sensor 22, the virtual robot 23, etc. are read out into the memory, and the virtual workpiece 21 and the virtual visual sensor 22 are arranged in the virtual space 20 so that a part of the virtual workpiece 21 converges within the shooting range 26 of the virtual visual sensor 22. In step S11, the configuration relationship between the configured virtual workpiece 21 and the virtual visual sensor 22 is calculated. In step S12, based on the calculated configuration relationship, the local three-dimensional data 28 of the workpiece that converges within the shooting range 26 is generated. The method for generating local three-dimensional data is as described above.
[0035] Refer again Figure 1 The three-dimensional data generating device 1 may further include an imaging range setting unit 13 and an imaging range display unit 14. The imaging range setting unit 13 displays a setting screen of an imaging range 26 of the virtual visual sensor 22 on a monitor, so that the instructor can set the imaging range 26. Figure 6 An example of the set imaging range 26 is shown. The shape of the imaging range 26 varies depending on the type of the virtual visual sensor 22, and therefore can also be changed according to the specifications of the visual sensor. The specifications of the visual sensor include, for example, at least one of the number of pixels of the visual sensor, the focal length (or the field of view), and the recommended distance from the visual sensor to the workpiece. Fig. 7A , Figure 7B FIG. 2 shows an example of the imaging range 26 changed according to the specifications of the visual sensor. Fig. 7A In the example shown, the field of view becomes narrower depending on the focal length of the vision sensor, and the recommended distance to the workpiece becomes longer. Figure 7B In the example shown, the viewing angle is widened according to the focal length of the visual sensor, and the recommended distance to the workpiece is shortened. The imaging range display unit 14 displays the imaging range 26 after setting or changing on the monitor, allowing the instructor to check the imaging range 26 .
[0036] Refer again Figure 1 The three-dimensional data generating device 1 may further include a movement program generating unit 15. The movement program generating unit 15 generates a movement program for moving the robot to a workpiece detection position using a visual sensor based on the calculated arrangement relationship. Fig. 8A , Figure 8B An example of a robot before (indicated by dotted lines) and after (indicated by solid lines) moving to the workpiece detection position. Fig. 8AIn the example shown, the visual sensor 22 is arranged near the end effector of the robot 23, for example, the hand 24, and the robot 23 moves according to the movement program, thereby moving the visual sensor 22 arranged near the hand 24 to the configuration relationship with the workpiece 21. In addition, please note that Figure 8B In the case shown, the visual sensor 22 is fixed to a position different from the robot 23, such as a fixed structure 25, and the robot 23 moves according to the movement program, thereby moving the workpiece 21 held by the hand 24 to the configuration relationship with the visual sensor 22. The movement program can be used to implement both the workpiece detection simulation in the virtual space and the workpiece detection processing of the real machine. In addition, as long as the robot 23 is moved to the configuration relationship between the workpiece 21 and the visual sensor 22 by the movement program, the workpiece can be quickly detected from the limited imaging range 26.
[0037] Refer again Figure 1 , the three-dimensional data generating device 1 may also include a data sending unit 16. The data sending unit 16 sends the generated data, such as the above-mentioned configuration relationship, local three-dimensional data, and at least one of the moving programs, to the robot control device (not shown). The received local three-dimensional data of the workpiece is registered by the robot control device as master data for workpiece detection. The robot control device moves the actual robot to the detection position of the actual workpiece based on the actual visual sensor according to the received moving program, detects the actual workpiece from the data obtained by the actual visual sensor based on the received local three-dimensional data, and controls at least one of the position and posture of the actual robot based on at least one of the detected position and posture of the actual workpiece. In addition, when the data generating device 1 and the robot control device are integrated, the robot control device itself may also generate at least one of the above-mentioned configuration relationship, local three-dimensional data, and moving programs in software, that is, offline.
[0038] According to the above-mentioned embodiment, compared with the case of online teaching, the master data for workpiece detection can be generated substantially automatically, so there is no need for trial and error by the teaching staff, and the man-hours for generating the master data for workpiece detection can be reduced. In addition, by generating local three-dimensional data of the workpiece that converges within the shooting range of the virtual vision sensor, as long as the robot is moved to the configuration relationship between the workpiece and the vision sensor, the workpiece can be quickly detected from the restricted shooting range. Therefore, master data for workpiece detection that can achieve high-speed matching processing can be provided.
[0039] The program executed by the processor may be provided by being recorded in a computer-readable non-transitory recording medium such as a CD-ROM.
[0040] Although various embodiments are described in this specification, it should be understood that the present invention is not limited to the above-described various embodiments, and various modifications can be made within the scope described in the scope of claims.
Claims
1. A three-dimensional data generating device, It is characterized in that have: A virtual space configuration unit, which configures a virtual workpiece and a virtual visual sensor in a virtual space so that a portion of the virtual workpiece is within a shooting range of the virtual visual sensor; a configuration relationship calculation unit that calculates a configuration relationship between the configured virtual workpiece and the virtual visual sensor; and a local three-dimensional data generating unit that generates local three-dimensional data representing a local shape of the workpiece included in the imaging range based on the calculated arrangement relationship; The local three-dimensional data generating unit respectively calculates the intersection lines of each surface of the three-dimensional model of the shooting range and each surface of the three-dimensional model of the virtual workpiece, cuts out the local three-dimensional model of the virtual workpiece based on the calculated intersection lines, calculates the intersection points of the line of sight extending from the pixels of the virtual vision sensor and each surface of the local three-dimensional model, and generates the calculated three-dimensional point group data of the intersection points as the local three-dimensional data of the workpiece.
2. The three-dimensional data generating device according to claim 1, It is characterized in that The three-dimensional data generating device further includes an imaging range setting unit that sets the imaging range.
3. The three-dimensional data generating device according to claim 2, It is characterized in that The imaging range can be changed according to the actual specifications of the visual sensor.
4. The three-dimensional data generating device according to claim 3, It is characterized in that The specification of the actual vision sensor includes at least one of the number of pixels, the focal length, and the recommended distance from the actual vision sensor to the workpiece of the actual vision sensor.
5. The three-dimensional data generating device according to claim 1, It is characterized in that The three-dimensional data generating device further includes an imaging range display unit that displays the imaging range.
6. The three-dimensional data generating device according to claim 1, It is characterized in that The three-dimensional data generating device further includes a movement program generating unit that generates a movement program for moving the robot to a workpiece detection position by the virtual vision sensor based on the arrangement relationship.
7. The three-dimensional data generating device according to claim 6, It is characterized in that The three-dimensional data generating device further includes a data transmitting unit that transmits at least one of the arrangement relationship, the local three-dimensional data, and the movement program to the robot control device.
8. The three-dimensional data generating device according to claim 1, It is characterized in that The virtual vision sensor is arranged near the end effector of the virtual robot, or is fixed at a position different from the virtual robot.
9. The three-dimensional data generating device according to claim 1, It is characterized in that The virtual vision sensor includes a two-dimensional sensor or a three-dimensional sensor.
10. The three-dimensional data generating device according to claim 1, It is characterized in that The virtual workpiece and the shooting range are composed of a three-dimensional model, the virtual visual sensor is composed of a three-dimensional model, a three-dimensional edge or a three-dimensional point group, and the local three-dimensional data is composed of a three-dimensional point group.
11. A robot control system, It is characterized in that A device comprising an actual workpiece, an actual visual sensor, an actual robot, a robot control device, and the three-dimensional data generating device according to claim 6 or 7, The robot control device moves the actual robot to a detection position of the actual workpiece by the actual vision sensor according to the movement program.
12. The robot control system according to claim 11, It is characterized in that The three-dimensional data generating device is integrally formed with the robot control device, and the robot control device generates at least one of the arrangement relationship, the local three-dimensional data, and the movement program offline.
13. A robot control system, It is characterized in that A device comprising an actual workpiece, an actual visual sensor, an actual robot, a robot control device, and the three-dimensional data generating device according to claim 1, The robot control device detects the actual workpiece from data acquired by the actual vision sensor based on the local three-dimensional data, and controls at least one of the position and posture of the actual robot based on at least one of the detected position and posture of the actual workpiece.
