Initial positioning method, device and system for workpiece
Through feature extraction and registration of the workpiece model and scene point cloud, combined with scoring indicators, the initial positioning of the workpiece is automated, solving the problems of complex and error-prone manual intervention in the existing technology, and improving the positioning accuracy and scope of application.
Patent Information
- Application Number
- CN202410631828.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-09-06
AI Technical Summary
Existing workpiece initial positioning technology requires manual selection of corresponding points, which is complex and error-prone.
Through feature extraction based on the workpiece model and scene point cloud, the feature registration of the web and vertical plates is automatically performed, and the optimal solution is selected based on scoring indicators such as overlap rate and occlusion rate to realize the automation of initial positioning.
It improves the accuracy and automation of initial positioning, reduces manual intervention errors, and is suitable for workpieces of various shapes and sizes, especially H-shaped workpieces with machining errors.
Smart Images

Figure CN118608609A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of workpiece positioning, and in particular to a workpiece initial positioning method, device and system. Background Art
[0002] The initial positioning of the workpiece requires the model and scanning point cloud of the target workpiece. The initial positioning algorithm locates the target workpiece from the scanning point cloud.
[0003] In the prior art, after obtaining the scanned point cloud, it is necessary to manually select three or more corresponding points on the model and the point cloud, and the initial positioning algorithm calculates the position transformation relationship based on the corresponding points; it requires a large degree of manual intervention, the operation is highly complex, and manual operation errors may occur (such as: selecting the wrong corresponding point). Summary of the invention
[0004] The present invention provides a method, device and system for initial positioning of a workpiece, so as to solve the problems in the prior art of requiring manual intervention, high operation complexity and easy errors.
[0005] In order to solve the above technical problems, the present invention is achieved through the following technical solutions:
[0006] According to a first aspect of the present invention, a method for initial positioning of a workpiece is provided, wherein the workpiece comprises a web and a vertical plate, wherein the vertical plate is perpendicular to the web, and the initial positioning method comprises:
[0007] Extract the features of the web and the vertical plate based on the workpiece model to obtain the first web feature and the first vertical plate feature;
[0008] Extract the features of the web and the vertical plate based on the scene point cloud to obtain the second web feature and the second vertical plate feature;
[0009] Registering the first web feature and the first vertical plate feature with the second web feature and the second vertical plate feature, respectively, to obtain at least one candidate solution;
[0010] The candidate solutions are scored to obtain a solution with a score that meets the requirements or an optimal solution.
[0011] Optionally, the extracting the features of the web and the vertical plate based on the workpiece model to obtain the first web feature and the first vertical plate feature specifically includes:
[0012] Determine the normal vector direction of the web according to the bottom surface information of the workpiece model, extract the plane whose normal vector direction is consistent with the normal vector direction of the web, has the largest area, and is located at the top, to obtain the first upper surface feature of the web;
[0013] A surface above the upper surface of the web and having a normal vector direction perpendicular to the normal vector direction of the web is extracted to obtain a first side feature of the vertical plate.
[0014] Optionally, the extracting the features of the web and the vertical plate based on the scene point cloud to obtain the second web feature and the second vertical plate feature specifically includes:
[0015] Extract the plane whose normal vector direction is consistent with the Z axis and has the largest area, and obtain the second upper surface feature of the web;
[0016] The surface above the upper surface of the web and whose normal vector direction is perpendicular to the Z axis is extracted to obtain the second side surface feature of the vertical plate.
[0017] Optionally, registering the first web feature and the first vertical plate feature with the second web feature and the second vertical plate feature, respectively, specifically includes:
[0018] Performing web registration alignment of the first upper surface feature and the upper surface of the second web;
[0019] The first side feature is projected onto the reference plane of the first upper surface feature to obtain a third side feature, the second side feature is projected onto the reference plane of the second upper surface feature to obtain a fourth side feature, and the third side feature is aligned with the fourth side feature for vertical plate registration.
[0020] Optionally, the vertical plate alignment specifically includes:
[0021] Rough registration, using methods such as outer contour matching or key point matching to obtain rough registration results, that is, to obtain the approximate position;
[0022] Fine registration, using an iterative closest point algorithm or other method to correct the rough registration result.
[0023] Optionally, the scoring of the candidate solutions specifically includes:
[0024] The candidate solutions are scored using multiple scoring indicators, the scoring indicators including:
[0025] Overlap rate, the overlap rate refers to the degree of overlap between the workpiece model and the scene point cloud in a specific pose;
[0026] Occlusion rate: Under a specific pose, a point in the scene point cloud is connected with its corresponding observation point to obtain an observation line. If the observation line is cut off by the workpiece model, it is considered to violate the occlusion relationship. The occlusion rate refers to the degree to which the workpiece model violates the occlusion relationship.
[0027] Optionally, the overlap rate and the occlusion rate have a preset degree of fault tolerance;
[0028] Furthermore, the first vertical plate includes: a wing plate and a rib plate; the wing plates are located on both sides of the web plate, and the rib plate is located between the wing plates on both sides and is perpendicular to the wing plates;
[0029] The tolerance in the longitudinal direction of the web is greater than the tolerance in the direction perpendicular to the web.
[0030] Optionally, the following situations are considered not to violate the occlusion relationship:
[0031] When the distance between the occluding point and the occluded scene point in the scene point cloud is less than a first preset value, it is considered as not occluding;
[0032] When the shortest distance between the blocking point and the scenic spot in the scene point cloud is less than a second preset value, it is considered as not blocking;
[0033] If the occlusion disappears after translating the observation line by a preset distance, it is considered as no occlusion;
[0034] The blocking point is a point where the observation line is cut off by the workpiece model.
[0035] Optionally, before extracting the web and the vertical plate based on the scene point cloud, the step further includes:
[0036] The scene point cloud is preprocessed.
[0037] Optionally, the preprocessing includes:
[0038] Background filtering based on workbench plane and region of interest;
[0039] Discrete noise removal based on point cloud clustering;
[0040] Normal vector estimation.
[0041] According to a second aspect of the present invention, there is provided a workpiece initial positioning device, the workpiece comprising: a web and a vertical plate, the vertical plate being perpendicular to the web, the initial positioning device comprising:
[0042] A workpiece model plate feature extraction module is used to extract the features of the web and the vertical plate based on the workpiece model to obtain a first web feature and a first vertical plate feature;
[0043] A scene point cloud plate feature extraction module, used to extract the features of the web and the vertical plate based on the scene point cloud, and obtain a second web feature and a second vertical plate feature; a registration module, used to register the first web feature and the first vertical plate feature with the second web feature and the second vertical plate feature, respectively, to obtain at least one candidate solution;
[0044] The scoring module is used to score the candidate solutions to obtain a solution that meets the scoring requirements or an optimal solution.
[0045] According to a third aspect of the present invention, there is provided a workpiece initial positioning system, comprising: a point cloud acquisition module and the initial positioning device as described above;
[0046] The point cloud acquisition module includes: a scanner and a robotic arm;
[0047] The scanner is mounted on the mechanical arm.
[0048] According to a fourth aspect of the present invention, there is provided an electronic device, comprising:
[0049] processor;
[0050] and, a memory for storing processor-executable instructions;
[0051] The processor implements the steps in the above method by running the executable instructions.
[0052] According to a fourth aspect of the present invention, there is provided a storage medium having a computer program stored thereon, wherein the computer program implements the steps in the above-mentioned method when executed by a processor.
[0053] The method, device and system for initial positioning of a workpiece provided by the present invention realize the automation of initial positioning, do not need manual selection of corresponding points, and are not prone to errors; in addition, by extracting and aligning the web and the vertical plate separately, the initial positioning accuracy is high, which is not only suitable for small target workpieces with consistent digital models, but also more suitable for large, simple-shaped, and H-shaped workpieces with large processing errors.
[0054] Furthermore, in an optional solution of the present invention, candidate solutions are scored using multiple scoring indicators such as overlap rate and occlusion rate, so that inaccurate candidate solutions can be eliminated as much as possible, and more accurate candidate solutions can be selected, thereby further improving the initial positioning accuracy.
[0055] Furthermore, in an optional scheme of the present invention, point cloud scanning errors in different directions are treated differently. Considering that the machining errors of the pan-H-shaped workpiece are mainly concentrated on the errors in the longitudinal direction of the rib along the web, the fault tolerance along the longitudinal direction of the web is set greater than the fault tolerance in the direction perpendicular to this direction; the fault tolerance along the longitudinal direction of the web greatly improves the fault tolerance of the score, and the fault tolerance along the direction perpendicular to the web is small, thereby retaining the scoring ability to distinguish highly approximate symmetry.
[0056] Furthermore, in the workpiece initial positioning system provided by the present invention, the scanner is installed on a mechanical arm, and the scanning angle is free, which solves the complex surface occlusion problem that cannot be avoided by fixedly installed visual sensors.
[0057] Furthermore, the scanner is installed on a robotic arm and can move freely, so it can realize welding seam scanning at low viewing distance and workpiece scanning at high viewing distance, that is, the welding seam and workpiece scanning are realized by the same device, which improves the integration of the system and reduces the cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0059] Figure 1 A flowchart of a method for initial positioning of a workpiece according to an embodiment of the present invention;
[0060] Figure 2 A schematic diagram of the assembly positions of the web plate and the vertical plate of one embodiment of the present invention;
[0061] Figure 3 A flowchart of a workpiece initial positioning device according to an embodiment of the present invention;
[0062] Figure 4 is a schematic diagram of an electronic device according to an embodiment of the present invention;
[0063] Description of reference numerals:
[0064] 1-belly;
[0065] 2- Wing plate;
[0066] 11-Workpiece model plate extraction module;
[0067] 12-Scene point cloud plate extraction module;
[0068] 13- Registration module;
[0069] 14- Rating module;
[0070] 21- Processor;
[0071] 22-internal bus;
[0072] 23- Network interface;
[0073] 24-Memory;
[0074] 25-Memory. DETAILED DESCRIPTION
[0075] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0076] In the description of the specification of the present invention, it is necessary to understand that the orientation or position relationship indicated by the terms "upper part", "lower part", "upper end", "lower end", "lower surface", "upper surface", etc. is based on the orientation or position relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0077] In the description of the present specification, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.
[0078] In the description of the present invention, "plurality" means a plurality, such as two, three, four, etc., unless otherwise clearly and specifically defined.
[0079] In the description of the present invention, unless otherwise clearly specified and limited, the term "connection" and other terms should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or mutual communication; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0080] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0081] In one embodiment, a method for initial positioning of a workpiece is provided, wherein the workpiece includes: a web and a vertical plate, wherein the vertical plate is perpendicular to the web, Figure 1 , the initial positioning methods include:
[0082] S11: Based on the workpiece model, extract the features of the web and the vertical plate to obtain the first web feature and the first vertical plate feature.
[0083] In one implementation manner, extracting the features of the web and the vertical plate based on the workpiece model to obtain the first web feature and the first vertical plate feature may include:
[0084] Determine the normal vector direction of the web according to the bottom surface information of the workpiece model, extract the plane whose normal vector direction is consistent with the normal vector direction of the web and whose area is the largest and position is located at the top, and obtain the first upper surface feature of the web;
[0085] The surface above the upper surface of the web and whose normal vector direction is perpendicular to the normal vector direction of the web is extracted to obtain the first side surface feature of the vertical plate. The first side surface feature of the vertical plate obtained here is the feature of the surface of the vertical plate perpendicular to the web.
[0086] It should be noted that the consistency between the normal vector direction and the normal vector direction of the web can be understood as being the same or parallel.
[0087] S12: Based on the scene point cloud, extract the features of the web and the vertical plate to obtain the second web feature and the second vertical plate feature.
[0088] In one implementation, extracting the features of the web and the vertical plate based on the scene point cloud to obtain the second web feature and the second vertical plate feature may include:
[0089] The plane with the largest area and the normal vector direction consistent with the Z axis is extracted to obtain the second upper surface feature of the web; here, the workpiece is placed flat as an example, that is, the Z axis and the normal vector direction of the web are consistent, and consistency can be understood as the same or parallel.
[0090] The surface above the upper surface of the second web and whose normal vector direction is perpendicular to the Z axis is extracted to obtain the second side surface feature of the vertical plate. The second side surface feature of the vertical plate obtained here is the feature of the surface of the vertical plate perpendicular to the web.
[0091] In practice, during the extraction of the second web, there is a certain redundancy when judging whether the normal vector direction is consistent with the Z axis, that is, they are not necessarily strictly identical or parallel to be considered consistent. As long as the angle between the two is less than the preset angle, they are considered consistent. In the processing of workpieces, there are often certain processing errors between the real object and the model (for example, there is a small deviation in the position and angle of the plate). Therefore, there is a certain fault tolerance in the initial positioning process, which is closer to the actual situation.
[0092] Practically, the vertical plate may include wing plates located on both sides of the web plate, and may also include rib plates located between the wing plates on both sides, wherein the rib plates are perpendicular to the wing plates.
[0093] When the web is placed upward, the ribs are located above the web.
[0094] S13: Align the first web feature and the first vertical plate feature with the second web feature and the second vertical plate feature respectively to obtain at least one candidate solution.
[0095] In one embodiment, registering the first web feature and the first vertical plate feature with the second web feature and the second vertical plate feature, respectively, may include:
[0096] Performing web registration alignment on the first upper surface feature of the web and the second upper surface feature of the web;
[0097] The first side feature is projected onto the reference plane of the first upper surface feature to obtain the third side feature, and the second side feature is projected onto the reference plane of the second upper surface feature to obtain the fourth side feature. The three-dimensional is reduced to two-dimensional to obtain a two-dimensional vertical plate point cloud, and the third side feature is aligned with the fourth side feature for vertical plate registration.
[0098] In one embodiment, the vertical plate feature registration and alignment may include two steps: coarse registration and fine registration.
[0099] Rough registration can be performed globally by using methods such as outer contour matching or key point matching;
[0100] Fine registration can use algorithms such as iterative closest point to correct the rough registration results and obtain a more accurate position.
[0101] S14: Score the candidate solutions and select a suitable solution.
[0102] As an implementation, a suitable solution may include, for example, a candidate solution with the best score.
[0103] As another implementation, the appropriate solution may also include multiple ones, for example, as long as the candidate solutions with scores meeting the requirements are appropriate solutions.
[0104] In one implementation manner, scoring the candidate solutions may include:
[0105] The candidate solutions are scored using multiple scoring indicators. The alignment of web features and vertical plate features may result in multiple candidate solutions. Scoring with multiple scoring indicators can eliminate the erroneous structures in the candidate solutions as much as possible, prohibit the erroneous results from being passed, and select more accurate candidate solutions.
[0106] Practically, the scoring indicators may include: overlap rate and occlusion rate.
[0107] The overlap rate can be understood as the degree of overlap between the workpiece model in a specific pose and the scene point cloud. The overlap rate can be calculated as follows: the ratio of the number of points in the scene point cloud that overlap with the workpiece model in that pose to the total number of points in the scene point cloud.
[0108] The coincidence point can be understood as a point in the scene point cloud. If a sufficiently close corresponding point can be found on the workpiece model in this posture, then this point is considered to be a coincidence point.
[0109] The occlusion rate can be understood as the degree to which the workpiece model violates the occlusion relationship at a specific pose. Violation of the occlusion relationship can be understood as the observation line obtained by connecting the points in the scene point cloud with their corresponding observation points at a specific pose. If the observation line is truncated by the workpiece model, it is considered to be a violation of the occlusion relationship.
[0110] In one implementation, the overlap rate and the occlusion rate have a preset degree of fault tolerance. As mentioned above, in the processing of workpieces, there are often certain processing errors between the real object and the model (for example, there is a small deviation in the position and angle of the plate); in addition, there are also certain errors in the scene point cloud scanning process; therefore, the initial positioning process has a certain tolerance for the inconsistency between the digital model and the errors caused by the scene point cloud scanning, which is closer to the actual situation.
[0111] In practice, for the overlap rate, it can be set that only when the distance between a point in the scene point cloud and the corresponding nearest point on the workpiece model in the pose is greater than a set tolerance distance, the point is considered to be non-overlapping.
[0112] In practice, for the occlusion rate, the following situations are considered not to violate the occlusion relationship:
[0113] a. When the distance between the occluded point and the occluded scene point in the scene point cloud is less than a first preset value, it is considered not to be occluded;
[0114] b. When the closest distance between the occlusion point and the midfield scenic spot of the scene point cloud is less than the second preset value, it is considered to be unoccluded;
[0115] c. If the occlusion disappears after the observation line is translated in a certain direction by a preset distance, it is considered as unobstructed;
[0116] The occlusion point is a point where the observation line is cut off by the workpiece model.
[0117] It should be noted that the above three situations may include only one, two, or all three.
[0118] In one embodiment, it can be set that the fault tolerance along the longitudinal direction of the web is greater than the fault tolerance along the direction perpendicular to the web. Figure 2The top view of some parts of the workpiece is only for explaining the direction. It is only a schematic diagram of the assembly of the web 1 and the wing plate 2. It is a top view observed from the upper surface of the web downward. The figure shows the upper surface of the web 1 and the thickness surface of the wing plate 2. The direction of the arrow in the figure is the longitudinal direction of the web mentioned above. In a long strip workpiece, this direction is also the length direction of the web.
[0119] The processing error of H-beam is mainly concentrated in the error of the rib along the longitudinal direction of the web. By setting the error tolerance along the longitudinal direction of the web to be relatively large, the tolerance for processing error and scanning error is improved.
[0120] In addition to the processing errors mentioned above, some workpieces may also have a high degree of approximate symmetry, which is mainly concentrated in the direction perpendicular to the web along the ribs. If the same degree of fault tolerance is set in all directions, then on the basis of ensuring the tolerance of the processing errors mentioned above, the ability to distinguish highly approximate symmetry may be relatively poor; in view of this, the above embodiment proposes to set different tolerances for different directions, and by setting the tolerance of the direction perpendicular to the web to be relatively small, the ability to distinguish highly approximate symmetry can be retained; that is, on the basis of having a certain degree of fault tolerance, it also has a certain ability to distinguish highly approximate symmetric postures.
[0121] Practically, the fault tolerance in the longitudinal direction of the web may be set to be twice the fault tolerance in the direction perpendicular to the web.
[0122] In another embodiment, the fault tolerance in the direction perpendicular to the wing plate can also be set smaller than the fault tolerance in the longitudinal direction of the web; that is, the fault tolerance in the longitudinal direction of the web is greater than the fault tolerance in the direction perpendicular to the wing plate.
[0123] In one embodiment, before extracting the features of the web and the vertical plate based on the scene point cloud, the process further includes: preprocessing the scene point cloud.
[0124] In one embodiment, the pre-processing may include at least one of the following:
[0125] a. Background filtering based on the workbench plane and region of interest (ROI);
[0126] b. Discrete noise removal based on point cloud clustering;
[0127] c. Normal vector estimation.
[0128] In one embodiment, a workpiece initial positioning device is also provided, the workpiece includes: a web and a vertical plate, wherein the vertical plate is perpendicular to the web, please refer to Figure 3 , the initial positioning device includes:
[0129] The workpiece model plate feature extraction module 11 is used to extract the features of the web and the vertical plate based on the workpiece model to obtain the first web feature and the first vertical plate feature;
[0130] A scene point cloud plate feature extraction module 12 is used to extract the features of the web and the vertical plate based on the scene point cloud to obtain a second web feature and a second vertical plate feature;
[0131] A registration module 13, used to register the first web and the first vertical plate with the second web and the second vertical plate respectively to obtain at least one candidate solution;
[0132] The scoring module 14 is used to score the candidate solutions to obtain suitable candidate solutions.
[0133] In one embodiment, the workpiece model plate feature extraction module 11 specifically includes:
[0134] The first upper surface feature extraction module of the web is used to determine the normal vector direction of the web according to the bottom surface information of the workpiece model, extract the plane whose normal vector direction is consistent with the normal vector direction of the web and whose area is the largest and position is located at the top, and obtain the first upper surface feature of the web;
[0135] The first side feature extraction module of the vertical plate is used to extract the surface above the upper surface of the web and whose normal vector direction is perpendicular to the normal vector direction of the web, and obtain the first side feature of the vertical plate
[0136] In one embodiment, the scene point cloud feature extraction module 12 specifically includes:
[0137] The second upper surface feature extraction module of the web is used to extract the plane with the largest area and the normal vector direction consistent with the Z axis to obtain the second upper surface feature of the web;
[0138] The second side feature extraction module of the vertical plate is used to extract the surface above the upper surface of the second web, whose normal vector direction is perpendicular to the Z axis, to obtain the second side feature of the vertical plate.
[0139] In one embodiment, the registration module 13 specifically includes:
[0140] A web registration module, used for performing web registration and alignment between the first upper surface feature of the web and the second upper surface feature of the web;
[0141] The vertical plate registration module is used to project the first side feature onto the reference plane of the first upper surface feature to obtain the third side feature, project the second side feature onto the reference plane of the second upper surface feature to obtain the fourth side feature, and align the third side feature with the fourth side feature for vertical plate registration.
[0142] In one embodiment, the registration module 13 specifically includes:
[0143] The coarse registration module is used to perform global coarse registration by using methods such as outer contour matching or key point matching;
[0144] The fine registration module is used to correct the coarse registration results using algorithms such as iterative closest point to obtain a more accurate position.
[0145] In one embodiment, the initial positioning device further includes:
[0146] The scene point cloud preprocessing module is used to preprocess the scene point cloud.
[0147] In one embodiment, a workpiece initial positioning system is also provided, which includes: a point cloud acquisition module and the initial positioning device as described in the above embodiment; the point cloud acquisition module includes: a scanner and a robotic arm; the scanner is installed on the robotic arm.
[0148] In the prior art, a large laser vision sensor is placed above the workpiece, which can only scan the workpiece and can only scan the workpiece at one angle after being fixed, which has limitations and may cause complex surface occlusion. In the initial positioning system of the embodiment of the present invention, the scanner is installed on the mechanical arm, and the scanning angle is very free, which can avoid the problem of complex surface occlusion.
[0149] Furthermore, in the initial positioning system of the embodiment of the present invention, the scanner is installed on the robotic arm and has an adjustable viewing distance. It can not only realize the scanning of welds, in which case a low viewing distance, i.e., a smaller working distance and field of view, can be adopted; it can also realize the scanning of workpieces, in which case a high viewing distance, i.e., a larger working distance and field of view can be adopted.
[0150] In one embodiment, an electronic device is also provided, please refer to Figure 4 . At the hardware level, the device includes a processor 21, an internal bus 22, a network interface 23, a memory 24 and a storage 25, and may also include hardware required for other services. One or more embodiments of the present invention may be implemented based on software, such as the processor 21 reading the corresponding computer program from the storage 25 into the memory 24 and then running it. Of course, in addition to the software implementation, one or more embodiments of the present invention do not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0151] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.
[0152] In a typical configuration, a computer includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0153] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0154] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0155] The above describes specific embodiments of the present invention. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0156] In the description of this specification, the description with reference to the terms "an implementation", "an example", "a specific implementation process", "an example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0157] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for initial positioning of a workpiece, characterized in that: The workpiece includes a web and a vertical plate, the vertical plate is perpendicular to the web, and the initial positioning method includes: Extract the features of the web and the vertical plate based on the workpiece model to obtain the first web feature and the first vertical plate feature; Extract the features of the web and the vertical plate based on the scene point cloud to obtain the second web feature and the second vertical plate feature; Registering the first web feature and the first vertical plate feature with the second web feature and the second vertical plate feature, respectively, to obtain at least one candidate solution; The candidate solutions are scored to obtain a solution with a score that meets the requirements or an optimal solution.
2. The workpiece initial positioning method according to claim 1, characterized in that: The extracting the features of the web and the vertical plate based on the workpiece model to obtain the first web feature and the first vertical plate feature specifically includes: Determine the normal vector direction of the web according to the bottom surface information of the workpiece model, extract the plane whose normal vector direction is consistent with the normal vector direction of the web, has the largest area, and is located at the top, to obtain the first upper surface feature of the web; A surface above the upper surface of the web and having a normal vector direction perpendicular to the normal vector direction of the web is extracted to obtain a first side feature of the vertical plate.
3. The workpiece initial positioning method according to claim 1, characterized in that: The feature extraction of the web and the vertical plate based on the scene point cloud to obtain the second web feature and the second vertical plate feature specifically includes: Extract the plane whose normal vector direction is consistent with the Z axis and has the largest area, and obtain the second upper surface feature of the web; The surface above the upper surface of the web and whose normal vector direction is perpendicular to the Z axis is extracted to obtain the second side surface feature of the vertical plate.
4. The workpiece initial positioning method according to claim 1, characterized in that: The first web feature and the first vertical plate feature are respectively aligned with the second web feature and the second vertical plate feature, specifically comprising: Performing web registration alignment of the first upper surface feature and the upper surface of the second web; The first side feature is projected onto the reference plane of the first upper surface feature to obtain a third side feature, the second side feature is projected onto the reference plane of the second upper surface feature to obtain a fourth side feature, and the third side feature is aligned with the fourth side feature for vertical plate registration.
5. The workpiece initial positioning method according to claim 5, characterized in that: The vertical plate alignment specifically includes: Rough registration, using contour matching or key point matching to obtain the rough registration result; The fine registration uses an iterative closest point algorithm to correct the rough registration result.
6. The workpiece initial positioning method according to claim 1, characterized in that: The scoring of the candidate solutions specifically includes: The candidate solutions are scored using multiple scoring indicators, the scoring indicators including: Overlap rate, the overlap rate refers to the degree of overlap between the workpiece model and the scene point cloud in a specific pose; Occlusion rate: Under a specific pose, a point in the scene point cloud is connected with its corresponding observation point to obtain an observation line. If the observation line is cut off by the workpiece model, it is considered to violate the occlusion relationship. The occlusion rate refers to the degree to which the workpiece model violates the occlusion relationship.
7. The workpiece initial positioning method according to claim 6, characterized in that: The overlap rate and the occlusion rate have a preset degree of fault tolerance; Furthermore, the vertical plate includes: a wing plate and a rib plate; the wing plates are located on both sides of the web plate; the rib plate is located between the wing plates on both sides and is perpendicular to the wing plates; The tolerance in the longitudinal direction of the web is greater than the tolerance in the direction perpendicular to the web.
8. The workpiece initial positioning method according to claim 6, characterized in that: The following situations are considered not to violate the occlusion relationship: When the distance between the occluding point and the occluded scene point in the scene point cloud is less than a first preset value, it is considered as not occluding; When the shortest distance between the blocking point and the scenic spot in the scene point cloud is less than a second preset value, it is considered as not blocking; If the occlusion disappears after translating the observation line by a preset distance, it is considered as no occlusion; The blocking point is a point where the observation line is cut off by the workpiece model.
9. The workpiece initial positioning method according to any one of claims 1 to 8, characterized in that: Before extracting the features of the web and the vertical plate based on the scene point cloud, the method further includes: The scene point cloud is preprocessed.
10. The workpiece initial positioning method according to claim 9, characterized in that: The pre-processing comprises: Background filtering based on workbench plane and region of interest; Discrete noise removal based on point cloud clustering; Normal vector estimation.
11. A workpiece initial positioning device, characterized in that: The workpiece includes a web and a vertical plate, the vertical plate is perpendicular to the web, and the initial positioning device includes: A workpiece model plate feature extraction module is used to extract the features of the web and the vertical plate based on the workpiece model to obtain a first web feature and a first vertical plate feature; A scene point cloud plate feature extraction module is used to extract the features of the web and the vertical plate based on the scene point cloud to obtain the second web feature and the second vertical plate feature; A registration module, used for registering the first web feature and the first vertical plate feature with the second web feature and the second vertical plate feature respectively to obtain at least one candidate solution; The scoring module is used to score the candidate solutions to obtain a solution that meets the scoring requirements or an optimal solution.
12. A workpiece initial positioning system, characterized in that: include: A point cloud acquisition module and an initial positioning device as claimed in claim 11; The point cloud acquisition module includes: a scanner and a robotic arm; The scanner is mounted on the mechanical arm.
13. An electronic device, characterized in that: include: processor; and, a memory for storing processor-executable instructions; The processor implements the steps in the method of any one of claims 1-10 by running the executable instructions.
14. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Scattered workpiece recognition and positioning method based on point cloud processing
CN108830902A
Assembly method for correcting welding thermal deformation of H-shaped steel based on 3D vision
CN116441775A
Workpiece positioning method and device based on simulation point cloud data and terminal
CN117710460A
Method for multi-view point cloud registration for whole aircraft based on spherical harmonic feature (SHF)
US20230298296A1
