Robot heterotypic pipe grasping and positioning method and system based on three-dimensional visual guidance
By using a 3D vision-guided method, the robot retains and compares the poses of irregularly shaped pipes, establishes obstruction records, and selects appropriate grasping poses and paths. This solves the problem of picking up adjacent pipes during the robot's handling of irregularly shaped pipes, thus improving the reliability of material loading and the efficiency of inspection.
Patent Information
- Application Number
- CN202611659256.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-26
- Publication Date
- 2026-11-27
AI Technical Summary
In the process of robotic material handling of irregularly shaped pipes, existing technologies cannot avoid the target pipe from simultaneously picking up adjacent pipes, resulting in reduced detection efficiency and increased manual intervention.
Guided by 3D vision, the robot retains all pipe pose options that match the visible surface of the target pipe, establishes a pipe segment obstruction record, compares the obstruction differences under different pose options, selects the pipes to be exposed for review or the obstruction to be removed, controls the robot to remove and rescan, reconstructs the grasping pose and path, and ensures that the grasping is completed without interference.
It improves the reliability of feeding irregularly shaped pipe fittings, reduces double-piece picking and erroneous picking, and ensures normal feeding at the vision inspection station.
Smart Images

Figure CN123169124A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of robot grasping and positioning technology, and in particular to a method and system for robot grasping and positioning of irregularly shaped pipes based on three-dimensional vision guidance. Background Technology
[0002] In pipe fitting processing and assembly production lines, irregularly shaped pipe fittings such as tees and bends are typically loaded into a material frame. An industrial robot, equipped with grippers, picks each fitting out of the frame one by one and delivers them to a vision inspection station for testing. Due to the irregular shapes of the fittings, they are often arranged at an angle, staggered, or overlapping within the material frame. The robot needs to select the gripping position based on the distribution of the fittings within the frame to achieve automated loading. This method reduces manual handling and improves the automation level of the inspection process, but it requires careful consideration of the positional relationship between the target fitting and adjacent fittings during the picking process.
[0003] In actual production, when loading irregularly shaped pipe fittings one by one from the material box, a problem arises where the robot, instead of grasping the target fitting, simultaneously picks up adjacent fittings. For example, a tee is placed at an angle in the material box, with the main pipe higher than the adjacent bend, and the branch pipe extending below the bend. The gripper approaches the main pipe without collision, but after gripping and lifting it, the branch pipe lifts the bend, causing the tee and bend to leave the material box together. The operator sees the robot picking up multiple fittings at once, instead of picking up only one as intended. The robot then sends the picked-up fittings to the vision inspection station. The inspection station cannot receive and inspect them as single pieces, potentially triggering a shutdown, manual sorting, or rearranging of the material box. This interrupts the automatic loading process, increases manual intervention, reduces inspection efficiency, and may affect subsequent processing or assembly progress. Therefore, how to reduce the problem of picking up adjacent fittings during the robotic loading of irregularly shaped pipe fittings is a problem that urgently needs to be solved in this field. Summary of the Invention
[0004] To address the shortcomings of existing technologies, the present invention aims to provide a method and system for robotic grasping and locating irregularly shaped pipes based on 3D vision guidance. This method retains all pipe pose candidates that match the visible surface of the target pipe. Based on a common valid grasping pose, it checks the complete pipe corresponding to each pipe pose candidate along the same overall escape path segment by segment, establishing a pipe segment obstruction record. When the overall escape path is not executable, it compares the pipe segment obstruction records to determine the pipe segment to be checked. If the obstructing pipes are inconsistent or have unconfirmed markings, it selects the pipe segment whose positional difference is revealed first. Only when there are consistent obstructions are the pipe segments to be checked retrieved. When an obstruction is confirmed, the robot selects the pipe to be removed first. After selecting the pipe, the robot removes the pipe and rescans. The robot verifies or regenerates pipe pose candidates based on the change in the target pipe's pose. It then reconstructs the common effective grasping pose, the overall escape path, and the pipe segment obstruction record. The common effective grasping pose and the overall escape path are determined only when there is no interference and no unconfirmed markers in all pipe segments under each pipe pose candidate. Otherwise, the pipe is reselected based on the pipe segment obstruction record. This achieves the effect of reliably completing grasping and positioning under the conditions of uncertain pose, occlusion, and interference of irregularly shaped pipes.
[0005] To achieve the above objectives, the present invention adopts the following technical solution: In a first aspect, the present invention provides a method for robotic grasping and positioning of irregularly shaped pipe components based on three-dimensional vision guidance, comprising: Retain all pipe fitting pose candidate options that match the visible surface of the target pipe fitting. Based on the common effective grasp pose, check the complete pipe fitting corresponding to each pipe fitting pose candidate option along the same overall detachment path segment by segment and establish a pipe segment blocking record. When the entire detour path is not executable, compare the pipe segment blocking records to determine the pipe segment to be reviewed. If the blocking pipes are inconsistent or there are unconfirmed marks, select the pipes that reveal the differences in the location of the pipe segment to be reviewed first. If there are only consistent confirmed blocks, select the pipes that remove the confirmed blocks first. When the selected pipe fitting is removed, the robot is controlled to remove the pipe fitting and then rescan. Based on the change of the target pipe fitting's pose, the robot is checked or re-formed the pipe fitting pose candidate, and the common effective grasping pose, overall detachment path and pipe segment obstruction record are reconstructed. Only when there is no interference and no unconfirmed markers for all pipe segments under each pipe fitting position candidate option, is the common effective grab position and the overall detachment path determined; otherwise, the pipe segment blocking record is used to reselect the pipe fitting to grab first.
[0006] Furthermore, the complete pipe fittings corresponding to the position and orientation candidate options for each pipe section are checked segment by segment, including: Based on the pipe segment connection relationship in the pre-stored 3D geometric data of pipe fittings, the pipe segment occupied by the complete pipe fitting physical material corresponding to each pipe fitting pose candidate is formed, and the pipe cavity is not regarded as physical material. Determine the common effective gripping pose, and generate an overall release path based on the common effective gripping pose as the gripping starting point, so that all pipe fitting pose candidates correspond to the complete pipe fitting leaving the inside of the material frame; Simultaneously move all pipe segments along the overall separation path to occupy the area, maintain the connection between pipe segments, form a pipe segment sweeping area, and check the spatial relationship between the pipe segment sweeping area and the boundaries of adjacent pipe fittings and material frames.
[0007] Furthermore, determining the common effective grasping pose includes: Candidate gripping poses are generated based on the currently visible surface of the target pipe and the robot gripper configuration. For the same actual gripper position, check all pipe fitting position candidates one by one, requiring that the gripping surface can be covered by the corresponding fingertip and the gripper closing amount is within the allowable stroke. The three-dimensional contour of the gripper is used to perform continuous spatial inspection along the approach path to eliminate candidate gripping poses that collide with the material frame or adjacent pipes. The candidate gripping poses that meet the gripping and approach conditions for all pipe poses are determined as the common effective gripping poses.
[0008] Furthermore, establishing a pipe segment obstruction record includes: For the same overall detachment path and the same pipe segment, record the interference and occupancy deterministic check results of each pipe fitting position candidate; The unobserved area behind the measurement surface, the area covered by invalid depth pixels, and the space where pipe ownership cannot be determined are registered as unconfirmed. The initial contact separation rule is applied to the pipe segments that have already been contacted. For pipe sections with interference, record the identification of adjacent pipe fittings and the location of the first interference. Compare the set of blocking pipe fitting identifications corresponding to all pipe fitting position and orientation candidates to distinguish between pipe fittings that are consistent, pipe fittings that are inconsistent, and pipe fittings with unconfirmed markings.
[0009] Furthermore, the initial contact separation rules include: The contact normal is determined by the direction from the surface of the adjacent pipe fitting to the surface of the target pipe fitting, and the sign of the increase or decrease in contact distance is determined according to the angle between the contact normal and the direction of movement. When all contact positions move along the separation direction and the contact distance increases with displacement, separation is allowed to begin from the contact state, and the overall separation path is checked for new interference. When the surface of the target pipe enters the adjacent pipe entity along the direction of movement, it is determined to be interference; When there are multiple possible normals at the contact location, all valid normals must meet the separation condition. If the contacting parties or the direction of the normals cannot be determined, it is registered as unconfirmed.
[0010] Furthermore, the pipe fittings selected first to reveal the locational differences in the pipe sections to be reviewed include: Compare the geometry of the pipe section to be verified under each pipe fitting position and orientation option, and determine the area to be verified as the area of position difference as the area occupied only by some pipe fitting position and orientation options and the area of the surface to be verified that is connected to the sweep area of the pipe section with unconfirmed mark. The observed surface between the camera and the positional difference area is examined along the observation ray. Adjacent pipes that, after removal, no longer partially obscured by the known foreground surface, and actual blocking adjacent pipes are identified as candidate pipes to be removed first. Check the complete detachment conditions of the candidate pipe fittings, and prioritize the exposed objects that meet the detachment conditions. If no exposed objects meet the detachment conditions, select objects that meet the detachment conditions from the adjacent pipe fittings that are actually blocking the pipe.
[0011] Further, checking the complete disengagement conditions of the candidate first-take fitting includes: Retain all candidate pipe fitting poses that meet the current observation conditions, and form a candidate pipe fitting grasping pose that meets the clamping and approach conditions for all candidate pipe fitting poses. Based on the grasping pose of the candidate first-take pipe, generate the overall detachment path of the candidate first-take pipe. Check the interference relationship between the complete structure of the candidate first-take pipe and the material frame boundary and other pipes along the overall detachment path of the candidate first-take pipe. The target pipe is retained as an environment object. Only candidate pipe parts that do not interfere with the overall detachment path of all candidate pipe parts and have no unconfirmed markings are retained. If there are no candidate pipe parts that meet the conditions, a temporary target pipe part grabbing state is generated.
[0012] Furthermore, the options for reviewing or re-forming the pipe fitting position include: Based on the results of the pre-scan and re-scan, the removal verification status of the pre-scanned pipe and the pose change status of the target pipe are formed by independent scanning comparison; When the removal verification status of the first pipe fitting is "unconfirmed removal", or the pose change status of the target pipe fitting is "cannot confirm whether the pose has changed", a "temporarily suspended target pipe fitting grabbing status" is generated. When the target fitting's pose change status is unchanged, the original fitting pose candidates that can be clearly rejected are excluded using the actual newly added visible information. When the target fitting's pose change status is that the pose has changed, the fitting's pose candidate is re-formed based on the rescan results. If the target pipe fitting cannot be re-identified, a "suspend target pipe fitting capture" status is generated.
[0013] Furthermore, the reconstruction of the common effective grasping pose, overall detachment path, and pipe segment obstruction records includes: After each round of initial capture is completed, an independently numbered 3D scan snapshot is created. The complete pipe fitting material is then re-expanded according to the pipe fitting pose candidate to form the pipe segment occupied area. The common effective capture pose is reconfirmed, and the overall detachment path is generated. Based on the 3D scan snapshot, all adjacent pipes participating in the path inspection are re-identified, and the pipe segment blockage record is recalculated segment by segment. When entering the next cycle, the 3D scan snapshot, pipe pose candidate, pipe segment occupied area, common effective capture pose, overall detachment path and pipe segment obstruction record will be switched to the current cycle simultaneously, and the old cycle objects will be saved according to the original cycle number.
[0014] Secondly, the present invention provides a robot-based irregular pipe gripping and positioning system based on three-dimensional vision guidance, used to implement the above-mentioned robot-based irregular pipe gripping and positioning method based on three-dimensional vision guidance, including: The complete pipe segment space inspection module is used to retain all pipe fitting pose candidate options that match the visible surface of the target pipe fitting. Based on the common effective grasp pose, it checks the complete pipe fitting corresponding to each pipe fitting pose candidate option along the same overall detachment path, and establishes a pipe segment obstruction record. The first-selection object module is used to compare pipe segment blocking records and determine the pipe segment to be reviewed when the overall off-path is not executable. If the blocking pipes are inconsistent or there are unconfirmed marks, the first-selection pipes that reveal the differences in the location of the pipe segment to be reviewed are selected. If there are only consistent confirmed blocks, the first-selection pipes that remove the confirmed blocks are selected. The new scanning verification module is used to control the robot to remove the selected pipe piece and rescan it when the pipe piece is selected. It can verify or regenerate the pipe piece pose candidate based on the change of the target pipe piece pose, and reconstruct the common effective grasping pose, the overall detachment path and the pipe segment obstruction record. The final grasping condition determination module is used to determine the common valid grasping pose and the overall detachment path only when there is no interference and no unconfirmed mark in all pipe segments under each pipe fitting pose candidate option. Otherwise, the pipe fitting to be grasped is reselected based on the pipe segment obstruction record.
[0015] Compared to existing technologies, the advantages of this invention are as follows: Addressing the problem of double-piece handling when tees and bends overlap, relying solely on the visible position of the main pipe for gripping, this invention retains the positional options for pipe fittings not rejected by observation information and expands the area occupied by the complete physical material according to the pipe segment connection relationship, allowing branch pipes to also participate in the detachment inspection. By synchronously moving all pipe segments along the same actual gripper path, establishing pipe segment sweep areas and obstruction records, it can detect the risk that the main pipe can be gripped while the branch pipe lifts the adjacent bend when lifted, avoiding issuing a gripping action based solely on checking if the main pipe does not collide. This invention compares the obstruction differences under different positional options, distinguishing between consistent obstruction, inconsistent obstruction, and unconfirmed markings, and selects the pipe fitting to be picked first accordingly. The first-picked item must completely detach from the inspection, thereby revealing the pipe segment to be checked or removing confirmed obstructions through executable actions. Each time a sample is retrieved, an independent scan snapshot is created. The verification method is selected based on the target pipe's position or orientation changes. This process re-forms the pose candidates, grasping pose, overall detachment path, and complete obstruction relationships, ensuring that the remaining pipe is re-inspected when it is placed or rotated after the removal of adjacent components. Therefore, this invention improves the reliability of screening overlapping irregular-shaped pipes, reduces double-piece retrieval and erroneous grasping, and ensures normal loading to the vision inspection station. It is applicable to the fields of robotic automatic loading and vision-guided grasping technologies. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a flowchart of the robot-guided method for grasping and locating irregularly shaped pipes based on three-dimensional vision in this invention; Figure 2 This is a schematic diagram of the deployment of the material feeding and screening workstation in an embodiment of the present invention; Figure 3 This is a schematic diagram of the candidate spatial relationship of the pipe pose under occlusion in an embodiment of the present invention; Figure 4 This is a schematic diagram of the lifting, sweeping, and blocking of a complete pipe segment in an embodiment of the present invention; Figure 5 This is a schematic diagram of the initial contact separation and entry direction in an embodiment of the present invention, wherein... Figure 5 (a) is a schematic diagram of the initial contact along the separation direction. Figure 5 (b) is a schematic diagram of the initial contact movement along the entry direction; Figure 6 This is a schematic diagram illustrating the confirmation of the exposed branch pipe position in an embodiment of the present invention; Figure 7 This is a schematic diagram illustrating the change in pipe position and path reconstruction after initial sampling in an embodiment of the present invention; Figure 8 This is a functional block diagram of the robot-guided irregular pipe grasping and positioning system based on three-dimensional vision in this invention. Detailed Implementation
[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0019] Example 1: Please see Figure 1 As shown, this embodiment provides a method for robotic grasping and locating of irregularly shaped tubular components based on 3D vision guidance, including: This embodiment is used for a material sorting workstation for stainless steel tees and bends. When pipe fittings are stacked within the material frame, and the main pipe is visible and can be gripped by the grippers, the branch pipe may still be located below an adjacent bend. The fact that the grippers approach the main pipe without collision does not necessarily mean that the complete pipe fitting can be detached along the lifting direction. Surface occlusion may also allow different spatial orientations to interpret the observed local surface; directly selecting a single orientation with a smaller matching error may overlook a branch pipe obstruction in another valid orientation. After the removal of adjacent pipe fittings, the remaining pipe fittings may fall or rotate, and the gripping position and obstruction relationship determined before removal need to be re-checked.
[0020] The pipe fitting pose candidate option refers to the combination of pipe fitting type, spatial position, and spatial attitude that can interpret the currently visible surface of the target pipe fitting within a specified matching error. The pipe segment occupied area refers to the space occupied by the solid material of a single pipe segment within the complete pipe fitting when a certain pipe fitting pose candidate option is met; the cavity is not considered solid material. The overall release path refers to the robot gripper's movement path from the clamping point to remove the complete pipe fitting from the material frame. The pipe segment to be verified refers to the target pipe fitting segment that is interfered with along the overall release path, or whose adjacent occupied space cannot be confirmed. The pipe segment to be removed first refers to adjacent pipe fittings that are removed before the target pipe fitting to expose the pipe segment to be verified or to remove confirmed obstructions.
[0021] This embodiment retains candidate pipe positions that have not been rejected by observation information. For each candidate, the detachment conditions of the complete pipe segment are checked, and the pipe segment to be removed first is selected based on the obstruction difference. After each removal, an independent scan snapshot is created, and the pose verification method is selected based on whether the target pipe segment has undergone position or attitude changes. The complete obstruction relationship is then re-checked. The target pipe segment identifier remains unchanged throughout the entire process; the removed pipe segment does not replace the target pipe segment.
[0022] S1: Based on the initial 3D scan results, form an initial set of pipe fitting pose candidates, expand the initial set of pipe segment occupied areas, and determine the initial common valid grasping pose set that is compatible with all valid pose candidates.
[0023] Further, step S1 includes: S11: Match the visible surface of the target fitting with the pre-stored 3D geometric data of the fitting, and retain the initial fitting pose options that meet the matching conditions.
[0024] For details, see Figure 2 The material handling and sorting workstation includes an industrial robot 11, a robot gripper 12, a 3D vision system 13, a control device 14, and a material frame 20. The 3D vision system 13 is fixedly mounted above the material frame 20, with its scanning direction facing inwards. The industrial robot 11 can pick up materials from the material frame 20 and then deliver the pipe fittings to the 2D vision inspection station 23. The control device 14 receives the depth map, camera intrinsic parameters, and scan completion marker output by the 3D vision system 13 via Ethernet, and reads the gripper pose and motion status provided by the robot controller. The initial 3D scan results are uniformly represented in meters or millimeters; this embodiment uniformly uses millimeters.
[0025] The pre-stored 3D geometric data of the pipe fittings is imported from the product design drawings or 3D geometric files that have undergone dimensional verification, and includes at least the fitting type, outer surface, inner surface, pipe end edge, pipe segment connection position, and product coordinate system. Actual products can use tees with an outer diameter of 29 mm and bends with an outer diameter of 32.09 mm; wall thickness, length, and bending radius are read from the corresponding product geometric files, not estimated based on the outer diameter. The robot gripper configuration records the gripper's 3D contour, opening stroke, fingertip contact surface, allowable gripping area, and gripper coordinate system. The robot motion and collision constraints consist of the robot controller's allowable joint range, workstation equipment geometric data, and calibrated coordinate transformation relationships. The material frame boundary geometric data is obtained from the material frame design files and installation positioning results, including the bottom, side walls, and upper edge 21 of the material frame.
[0026] During the workstation calibration phase, a rigid body transformation from the camera coordinate system to the robot base coordinate system is determined using a calibration component with a known spatial position. Scan points are first converted to 3D coordinates using camera intrinsic parameters, and then written into the robot base coordinate system through the rigid body transformation. The vertical direction of the robot base coordinate system is used as the subsequent lifting direction. Coordinate transformation is part of the process of using existing scan results and does not separately change the pose candidate retention rules. The target pipe identification is established based on this loading task, recording the visible surface index and product type range of the target in the initial scan; target identity continues to be tracked based on the corresponding surface and geometric features, and cannot be transferred to another pipe simply because the first pipe has already been picked up.
[0027] In one implementation, the control device 14 first uses point-pair feature matching to form an initial rigid body pose. Point pairs are formed between pre-stored sampling points and normals on the pipe surface. The distance between points, the angle between the two normals and the line connecting the points, and the angle between the two normals are recorded. These are then matched with point pairs on the target visible surface. Each valid match generates an initial spatial transformation, and point-to-surface iterative nearest-point registration is performed with different initial spatial transformations. During registration, the normal distance between corresponding points is calculated according to the pre-stored surface normals, and the rigid body translation and rotation are iteratively adjusted to reduce the visible surface correspondence error. All registration results that meet the matching conditions are retained; the optimal result returned from a single registration is not used as a replacement for all possible poses.
[0028] For example, for ease of explanation, assume the upper bound of the visible surface normal error after scanning and calibration is 0.4 mm, the upper bound of the surface deviation between the geometric file and the actual product is 0.2 mm, and the matching distance threshold is set to 0.6 mm. The upper bound of the error can be determined by the maximum absolute deviation obtained from repeated scanning of the fixed calibration part and the allowable deviation for dimensional inspection; 0.6 mm is the sum of the upper bounds of the error used for explanation. The matching check calculates the distance from the target effective surface to the candidate geometric surface point by point, requiring that all effective surfaces correspond within the stated matching distance threshold, and that the candidate geometry does not enter the space confirmed as empty by the current depth measurement. Reflective pixels marked as invalid by the sensor are not included in the effective surface distance statistics, nor are they used to negate any pose candidate options.
[0029] In another implementation, the control device 14 obtains the main pipe axis and center position based on the fitting result of the main pipe cylindrical surface, generates initial rigid body transformations within a preset position and attitude range, and then performs the same visible surface matching check. The preset position and attitude range is determined based on the target pipe geometry, the space that can be placed inside the material frame 20, the robot's reachable space, and the target visible surface position confirmed in this scan, and covers the translation and rotation range of the target pipe that cannot be excluded under the current observation conditions. The search angle interval is determined according to the fact that the displacement of the pipe's farthest surface point from the rotation axis does not exceed the matching distance threshold, and the search position interval does not exceed the matching distance threshold. Local refinement is performed on the transformations that pass the check, retaining the results that still meet all observation conditions. The remaining position and attitude error within the discrete search unit is used as the subsequent expansion amount of the occupied area; areas not covered by the search should not be assumed to have no candidates, and when the specified search range cannot be covered, the target pipe grasping state is temporarily suspended.
[0030] Different algorithms ultimately output the initial set of pipe fitting pose candidates. Record items include cycle number, target pipe fitting identifier, candidate number, pipe fitting type, spatial location, spatial orientation, and geometry file version. Duplicate candidates are only allowed to be merged if the complete entity geometry and subsequent grasping relationships are equivalent. Candidates with the same main pipe position but different branch pipe positions cannot be merged. A paused target pipe fitting grasping state indicates that the current round of grasping of the target pipe fitting is suspended, unverified grasping actions are not output, and the reason for the pause is retained for later processing. When the number of pipe fitting pose candidates is 0, it indicates that a valid target positioning cannot be formed at present. The control device 14 outputs the paused target pipe fitting grasping state, stops further material handling, and does not perform subsequent executable judgments on the empty set.
[0031] For example, for clarity, assume the target fitting 30 is a tee, with the main pipe 31 exposed and the branch pipe 32 obscured by the second adjacent fitting 50. It is evident that the main pipe 31 can be interpreted by both the first weather option 35 and the second weather option 36. The branch pipe 32 of the first weather option 35 extends below the first adjacent fitting 40, while the branch pipe 32 of the second weather option 36 is located on the other side. See [link to relevant documentation] Figure 3 The main pipes 31 of the two candidate pipes overlap, while the branch pipes 32 occupy different positions. Even if the average visible surface errors of the two candidate pipes are 0.3 mm and 0.4 mm respectively, as long as both meet the matching conditions, the two candidate pipes are retained in the initial pipe pose candidate set.
[0032] S12: Based on the pipe segment connection relationship, expand each initial pipe fitting position candidate into the initial pipe segment occupied area of the complete pipe fitting entity material.
[0033] Specifically, the control device 14 reads the complete solid boundary from the pre-stored three-dimensional geometric data of the pipe fitting, and transforms the solid boundary to the robot base coordinate system through rigid body transformation in the initial pipe fitting pose candidate options. The main pipe 31 and branch pipe 32 of the tee are respectively assigned pipe segment numbers, and the solid material at the connection point can be divided using a boundary sharing method to ensure that the combined range of all pipe segment solids is equal to the complete tee solid. Bends are divided into straight pipe segments and curved pipe segments; bends without straight pipe segments only retain the curved pipe segments, without adding non-existent straight pipe segments to achieve a complete form.
[0034] In one implementation, each pipe segment is represented by a closed triangular mesh, recording vertex coordinates, triangular face connections, and the segment number to which it belongs. The pipe opening location uses a ring-shaped end face connecting the inner and outer surfaces to close the solid material boundary, rather than using a circular face to enclose the cavity. The back side of a branch pipe, which is not visible during scanning, is still fully unfolded from the pre-stored 3D geometric data of the pipe fitting, but it is recorded as candidate geometry and cannot be considered as the actual surface that has been measured and confirmed. Subsequent spatial checks use the complete pipe segment mesh for each pose candidate, preventing the arbitrary splicing of main and branch pipes from different candidates into a non-existent single pipe fitting.
[0035] In another implementation, each pipe segment is represented using a voxel set. The closed solid mesh is intersected with the regular spatial mesh; any voxel intersecting with the solid material is recorded as an occupied voxel; voxels completely located within the pipe cavity are not recorded as occupied voxels. For example, a voxel side length of 0.5 mm is used, requiring a value less than the matching distance threshold and sufficient to represent the pipe wall and nozzle to be inspected. Voxelization errors are accounted for in the spatial margin through complete voxel coverage processing; surface points falling only at the voxel center are not used to replace solid material. Both representations ultimately form the initial pipe segment occupied region set, with the set index consisting of a period number, candidate number, and pipe segment number.
[0036] The initial set of pipe segment occupied areas includes the spatial error range. Scanning measurement error, geometric error, pose search unit residual error, coordinate calibration error, and robot path error are read from equipment calibration records, dimensional tolerances, search intervals, and robot configurations, respectively, and the entity boundaries of each pipe segment are expanded according to the corresponding error tolerance ranges. When using voxel representation, the geometric discrete errors already included in full voxel coverage are not repeatedly accumulated; when using triangular mesh representation, mesh approximation errors are included separately. Spatial errors only limit the possible geometrically occupied range of candidates and do not delete still valid candidates based on probability.
[0037] S13: Based on the target visible surface and the robot gripper configuration, form an initial common effective gripping pose set that simultaneously satisfies the gripping and approach conditions of all initial pipe fitting candidate poses.
[0038] Specifically, the control device 14 generates a clamping center and jaw direction on the visible main pipe 31 of the target pipe fitting 30. For parallel jaws, the clamping center is located in the permissible clamping area, with the two fingertips positioned on either side of the pipe segment along the jaw closing direction. The jaw opening matches the corresponding pipe segment's outer diameter and approximate allowance. The clamping contact area must be located on the permissible clamping surface and cannot cross the pipe opening or fall on unconfirmed structures. The permissible distance between the clamping position and the pipe opening edge is determined by the fingertip contact length and positioning error. For example, when the contact length is 12 mm and the upper limit of the positioning error is 2 mm, the clamping center should be at least 8 mm from the pipe opening edge to prevent the contact area from crossing the pipe opening.
[0039] The control device 14 checks the initial set of candidate pipe fitting positions one by one for the same actual gripper position, requiring that the allowable gripping surface of all candidates can be covered by the corresponding fingertip, and that the gripper closure amount is within the allowable stroke. The proximity check uses a continuous spatial check of the gripper's three-dimensional contour along the proximity path to exclude gripping positions that collide with the material frame 20 or adjacent pipe fittings. For candidates with the same main pipe position but different branch pipe directions, a gripper position that can grip the main pipe 31 together can be obtained; for gripper positions that can only grip when one candidate position is valid and will not grip under another candidate position, they cannot be added to the initial set of common valid gripping positions.
[0040] Each item in the initial common effective grasping pose set records the actual position and pose of the gripper, the gripping pipe segment number, the approach path, and the closed target. The fixed transformation of the gripper relative to the pipe may differ under different pipe pose candidates, but the gripper pose actually executed by the robot is the same. The fixed transformation is used for subsequent calculation of the spatial position of the pipe following the gripper's movement, and does not splice the more suitable gripper poses of different candidates into the same execution. The allowable range of gripping force and contact friction adopts the values verified by the product gripping in the gripper configuration. This embodiment does not replace the cross-candidate check by adding sensors.
[0041] When the initial common valid gripping pose set is not empty, proceed to step S2; when the initial common valid gripping pose set is empty, the control device 14 generates the deferred target pipe gripping state. In the aforementioned tee example, assuming both pose candidates allow gripping the main pipe 31, the selected common gripper pose is located in the middle of the main pipe 31, and both candidates pass the proximity check. At this time, only partial gripping is confirmed, and the first pose candidate 35 and the second pose candidate 36 still simultaneously enter the complete disengagement check.
[0042] S2: Based on the initial common effective grasping pose set, form an initial overall detachment path set, establish sweeping areas and obstruction records for each pipe segment, and compare the obstruction differences of different pose candidates.
[0043] The main pipe 31 and the branch pipe 32 have different spatial extension directions. When the main pipe 31 moves upward, it does not collide with adjacent parts, but the branch pipe 32 may enter the physical range of the adjacent part from below. Therefore, complete disengagement inspection requires fixing the actual gripper path executed by the robot, while retaining the relationship between the complete pipe and the gripper in each of the various posture options. Different candidate options cannot each select different paths and then jointly prove that there is no non-existent executable path, nor can the local spatial inspection of the main pipe 31 replace the motion inspection of the branch pipe 32.
[0044] Further, step S2 includes: S21: Generate an initial set of overall detachment paths starting from the initial common effective gripping pose.
[0045] Specifically, the control device 14 establishes a path record for each item in the initial common effective gripping pose set. The gripping starting point adopts the actual gripper position and pose that has passed the proximity check. During the lifting phase, the gripper pose remains unchanged, and the device translates vertically along the robot's base coordinate system. The endpoint height is calculated based on the lowest entity position of all the initial pipe pose candidates, taking the lifting distance that ensures the entire pipe of all candidates has a portion below the gripper that extends beyond the upper edge 21 of the material frame. An additional release margin is reserved at the endpoint, for example, a release margin of 10 mm, which is not less than the sum of the cumulative spatial error upper limit and the material frame installation height error.
[0046] Each record in the initial set of overall detachment paths includes a path number, corresponding gripping pose number, path start point, path end point, direction of motion, and robot joint path. The control device 14 solves the robot inverse kinematics for the gripper path, eliminating paths that exceed joint range, or involve collisions with the robot body or gripper. When multiple inverse kinematics branches exist, each branch is checked separately. Branches that pass the check are sorted in ascending order of total joint change, and the branch at the top of the sort is selected, recording its correspondence with the same gripper path. Selecting a robot joint branch does not change the inspection requirements for the target pipe under all pose candidates.
[0047] A single candidate gripping pose can correspond to multiple valid path records, but each path record independently checks all valid pipe fitting pose candidates. In this embodiment, vertical translation while maintaining the gripper's posture is used as the overall detachment path, and the preceding gripper approach path and the overall detachment path after gripping are saved separately. A direct picking arrangement for the target pipe fitting is formed as long as at least one path passes the check; not all paths are required to pass. Any single path can only be marked as executable if all valid pose candidates are met. If there is no overall detachment path that satisfies the robot's motion constraints, the control device 14 generates the aforementioned suspended target pipe fitting gripping state.
[0048] S22: Calculate the initial pipe segment sweep area set based on the initial pipe segment occupied area set and the initial overall departure path set.
[0049] Specifically, the control device 14 calculates item by item according to the candidate item number and path number, first determining the fixed spatial relationship between the pipe fitting and the gripper at the clamping starting point, and then synchronously moving all pipe segments in the complete pipe fitting along the overall disengagement path. See also Figure 4The main pipe sweep area 33 represents the space traversed by the main pipe 31 throughout the lifting phase, and the branch pipe sweep area 34 represents the space traversed by the branch pipe 32 throughout the lifting phase. Both types of areas are formed along the same overall separation path 60. The connection relationships given by the pre-stored three-dimensional geometric data of the pipe fittings are maintained between each pipe segment, and the branch pipe sweep area 34 is not allowed to be reduced by independently moving the branch pipe 32.
[0050] For triangular mesh representation, control device 14 performs continuous collision checks on the pipe segment mesh, determining the path position where the mesh first contacts the environmental entity along the motion parameters. For voxel representation, each occupying voxel is extended into a continuous prism along the vertical translation interval, merging to form the pipe segment sweep region, comparing not only the start and end voxels. If discrete path sampling is used, the maximum surface displacement caused by the path sampling interval must be included in the sweep coverage expansion. For example, when the sampling interval is 0.5 mm, at least the entire translation range between two adjacent sampling positions must be covered, and collisions cannot be skipped on the grounds that there is no point cloud at the intermediate unsampled position.
[0051] The indexes in the initial pipe segment sweep area set include the cycle number, gripping pose number, path number, pose candidate number, and pipe segment number. The same pipe segment can have different sweep areas under different pose candidates, and all areas are used for subsequent spatial checks. The spatial expansion margin is determined based on scanning, registration, calibration, robot path, and geometric approximation errors. For example, when the maximum impact values for each item are 0.4 mm, 0.6 mm, 0.3 mm, 0.3 mm, and 0.4 mm, the cumulative upper bound is 2 mm, and a 3 mm collision check margin can be used. Errors already included in different representations are not counted again; these values are only used to illustrate the executable parameter determination method.
[0052] The aforementioned 3 mm represents the total allowance for relative space inspection, not an extension of 3 mm for each of the two inspected objects. Control device 14 allocates the error to the target pipe section, adjacent pipe fittings, and coordinate transformation stage, respectively; the portion already included in the expansion through the occupied area is not added. If a method of expanding each object separately is used, the sum of the two expansion amounts should still equal the corresponding total allowance. Thus, with an 11 mm solid gap, when using a 3 mm total allowance, the initial position where further movement is prohibited still corresponds to an 8 mm lifting distance.
[0053] S23: Check the relationship between the initial pipe section sweep area and the boundaries of adjacent pipe fittings and material frames to form the initial pipe section interference and occupation determination check results.
[0054] Specifically, the control device 14 establishes an environment occupancy record based on the initial 3D scan results. The effective depth pixels along the camera's observation ray from the camera to the measurement surface, after deducting measurement errors, are registered as observed idle. The measurement surface and error range are registered as occupied. Unobserved areas behind the measurement surface, areas covered by invalid depth pixels, and spaces where pipe ownership cannot be determined are registered as unconfirmed. The idle determination is based on the actual observation ray and effective depth, not on whether a scan point exists within the space. The geometric data of the material frame boundary is added to the environment check as a known entity boundary, and scan gaps caused by reflections from the outer wall of the material frame are not treated as the absence of sidewalls.
[0055] Identified neighboring pipes are expanded into the entity space according to their corresponding geometric data and still valid neighboring pose candidates. For areas occupied by all neighboring pose candidates, the existence of a neighboring entity can be confirmed; areas occupied by only some neighboring pose candidates are registered as potentially occupied, and an unconfirmed mark is retained when the sweep path enters the potentially occupied area. The valid surface of unidentified pipes is used as the actual occupied boundary, and the undefined entity range behind unidentified pipes continues to be registered as unconfirmed. Geometric candidates are merely the basis for performing checks and cannot automatically register other hidden spaces without observation constraints as free.
[0056] When checking the attribution of scan points on the target pipe fitting 30, only surfaces already confirmed to belong to the target pipe fitting 30 are used for target geometry verification; the target's own surfaces are not repeatedly checked as stationary adjacent components. Surfaces whose attribution cannot be determined between the target pipe fitting 30 and adjacent pipe fittings remain as unconfirmed environmental objects and cannot be removed by expanding the deletion range. The fact that the point cloud of the main pipe 31 can be confirmed to belong does not mean that all scan points around the obstructed branch pipe 32 belong to the target pipe fitting 30; this distinction avoids obscuring actual obstructing pipe fittings.
[0057] Initial contact is handled using independent rules. See also Figure 5 (a) The contact normal 71 at contact position 70 points from the surface of the adjacent pipe fitting to the surface of the target pipe fitting; as the surface of the target pipe fitting moves along the separation direction 72, the contact distance increases with displacement, allowing separation from the contact state to begin. See also Figure 5 (b) When moving along the entry direction 73, the surface of the target pipe enters the adjacent pipe entity, which is determined to be interference. The control device 14 determines the distance increase or decrease sign based on the angle between the normal of the contact surface and the direction of movement. All contact positions must move along the separation direction, and then continue to check whether new interference occurs in the complete path.
[0058] When multiple possible normals exist at the contact location, all valid normals must satisfy the separation condition; if the contacting parties or normal directions cannot be determined, it is registered as unconfirmed. Virtual overlap caused by the initial collision check margin does not equate to physical penetration. Actual contact, unconfirmed contact, and true penetration should be distinguished based on the original physical boundary and measurement errors. Paths where actual physical penetration has occurred or where gripper movement would deepen the contact cannot be executed. Tangential sliding cannot be directly considered as contact separation in this embodiment; only paths that can be confirmed not to enter the physical entity and form a separation gap pass the initial contact check.
[0059] S24: Based on the results of the initial pipe segment interference and occupation determinism check, establish an initial pipe segment obstruction record and determine whether each overall escape path is executable.
[0060] Specifically, the control device 14 establishes a complete checklist for each of the overall detachment paths, recording the inspection status of all pipe segments under each of the pipe fitting position candidate options. The inspection status includes no interference and confirmed occupancy, interference present, and unconfirmed occupancy. For records with interference, the target pipe segment number, adjacent pipe fitting identifier, position candidate option number, path number, and initial interference position are written; for records with unconfirmed occupancy, the affected pipe segment, unconfirmed spatial range, and associated obstructing surface are written. When the identity of adjacent pipe fittings cannot be confirmed, the obstructing area index is recorded, without filling in with fictitious pipe fitting identifiers.
[0061] The control device 14 only writes the judgment status corresponding to the path number as executable when the number of position candidate options is greater than 0, all pipe segments requiring inspection have been inspected, all pipe segments are free from interference, and there are no unconfirmed marks. If any pipe segment has interference, unconfirmed occupancy, or incomplete inspection, the judgment status is written as non-executable. Records of completed, interference-free inspections must also be retained; it is not permissible to assume successful inspection simply by saving abnormal records and then assuming the abnormal record is empty. Zero candidate options, zero paths, and empty records that have not yet been inspected do not meet the executable conditions.
[0062] Continuing with the example of a tee, assuming there is an 11 mm physical gap between the branch pipe 32 and the first adjacent pipe 40 in the first position candidate 35, and after using a 3 mm inspection allowance, the first interference position 61 is formed at a lift of 8 mm. The branch pipe 32 in the second position candidate 36 does not interfere with the first adjacent pipe 40, but part of the sweep space is still obstructed by the second adjacent pipe 50 and cannot be confirmed. Even if the main pipe 31 passes the inspection under both candidate options, the overall disengagement path 60 must still be determined as unexecutable; a grabbing action cannot be directly issued based on the fact that the main pipe 31 can be lifted normally.
[0063] S25: Compare the initial pipe segment obstruction records under different initial pipe fitting position options to form an initial pipe segment obstruction difference classification.
[0064] Specifically, under the same path number and the same pipe segment number, the control device 14 extracts the blocking pipe component identifier set of all valid positional candidate options. If all candidate options have confirmed obstructions and the blocking pipe component identifier sets are the same, it is registered as having consistent blocking pipe components; if the blocking pipe component identifier sets are different, including cases where one candidate option has a confirmed obstruction while another candidate option does not, it is registered as having inconsistent blocking pipe components. If any candidate option contains an unconfirmed record, it is registered as having an unconfirmed mark, and the already confirmed blocking pipe components are saved to avoid losing the objects needed for subsequent confirmed obstruction removal.
[0065] The three categories are expressed using record fields, and mixed scores are not calculated. Pipe segments with unconfirmed markers are prioritized for position difference exposure judgment; pipe segments without unconfirmed markers but with inconsistent blocking fittings are also included in position difference exposure judgment; only pipe segments with consistent blocking fittings are included in confirmed blockage removal judgment. Multiple pipe segments can belong to different categories, and the priority selection for the same path is based on the pipe segment that still needs to be processed. If there is only one valid pose candidate, confirmed blockages are registered as consistent, unconfirmed spaces remain unconfirmed, and a single pose does not constitute a reason to bypass the occupancy check.
[0066] Separate pipe segment inspection and separate position candidate inspection have different constraints. Inspecting only the main pipe 31 will miss the risk of supporting the branch pipe 32; inspecting only one complete position will miss the position of the branch pipe in another established position. The initial pipe segment blocking record simultaneously maintains the pipe segment and position candidate index, which can limit the situation of partial clamping but overall non-detachment to the specific branch pipe and the specific blocking object, so that subsequent first-choice selection does not need to guess the blocking reason based on the overall height order.
[0067] S3: Based on the initial pipe section obstruction record and the initial pipe section obstruction difference classification, determine the pipe section to be reviewed, check the complete detachment conditions of the candidate first-take pipe fitting, and form a direct material taking arrangement for the target pipe fitting or a material taking arrangement for the first-take pipe fitting.
[0068] Further, step S3 includes: S31: Determine the direct material taking branch or the branch to be processed for the pipe section to be reviewed based on the initial overall departure path determination status.
[0069] Specifically, the control device 14 reads the determination status of each path number in the initial overall detachment path set. When at least one path is executable, the target pipe identifier, gripping pose, and overall detachment path are read from the same verified record to form a direct picking arrangement for the target pipe, ending the first-pickup object selection. When multiple executable records exist, they can be sorted from shortest to longest lifting distance; if the lifting distances are the same, they can be sorted by gripping pose number, and the first record is selected. The sorting only applies to records that have passed the complete check and does not grant execution eligibility to unchecked paths.
[0070] When there is no executable path but there is an inexecutable path that has already been checked, the control device 14 adds the target pipe segment that causes interference or has an unconfirmed mark to the initial set of pipe segments to be reviewed. The initial set of pipe segments to be reviewed is associated with the path number and the pipe segment number, and retains the obstruction classification and obstruction record corresponding to each path. When there are multiple candidate paths, this embodiment processes the initial set of pipe segments to be reviewed sequentially according to the path number to form an executable first-take arrangement for each path, and then selects the unique arrangement for this round according to the exposure priority rule; it does not mix obstruction objects from different paths to prove that a certain path is executable.
[0071] The direct material handling arrangement for the target pipe fitting records the target pipe fitting identifier, the gripping posture, the overall detachment path, the cycle number, and the verification record number. The verification record number also indexes the current round's posture candidate set, the complete pipe segment checklist, and the path determination status. After the direct material handling arrangement is formed, the control device 14 can send the direct material handling arrangement to the robot controller, which will grip the target pipe fitting 30 according to the verified gripper approach path, and then execute the overall detachment path; the direct branch does not enter step S4, which requires the pipe fitting to be picked up first.
[0072] S32: Determine the set of candidate first-choice fittings based on the blocking differences of the pipe sections to be reviewed.
[0073] Specifically, control device 14 selects the position difference disclosure mode when there are inconsistent obstructing pipes or unconfirmed markings, and selects the confirmed obstruction removal mode when there are only consistent confirmed obstructions. The first-choice pipe selection mode is independent of the overall departure path determination state: the former indicates the processing purpose of selecting adjacent pipes, and the latter indicates whether the target path is executable. The two states are not represented by the same numerical field. When multiple pipe segments have both confirmed obstructions and position ambiguities, the first-choice object that can disclose position differences is checked first, while the confirmed actual obstruction object is retained as a backtracking candidate.
[0074] In the position difference revealing mode, the control device 14 performs a spatial comparison of the geometry of the pipe segment to be verified among the candidate options in different poses. Areas occupied only by some candidates and that would alter subsequent obstruction judgments are identified as position difference regions 52; areas of the main pipe 31 jointly occupied by different candidates are not considered difference regions to be revealed. For cases where occupancy is not confirmed, the surface range adjacent to the swept area of a pipe segment with an unconfirmed mark, where the boundary of free space or solidity needs to be determined, is added to the position difference region 52. The position difference region 52 is used to determine the observation target and is not considered as the actual measured solid structure.
[0075] See Figure 6 The control device 14 projects the boundary of the position difference region 52 onto the depth map using the calibrated camera position. It then examines the observed surfaces from the camera to the position difference region 52 along the corresponding observation ray to identify the occluding surface 51 and its adjacent pipes. If an adjacent pipe is located in front of the ray, and removing the adjacent pipe would prevent at least part of the position difference region 52 from being occluded by a known foreground surface, the adjacent pipe is added to the candidate first-choice pipe set. If a ray is still occluded by another known adjacent pipe, that ray is not included in the expected exposure range for this round; if the background is not yet confirmed, only the expected exposure is recorded, and there is no guarantee that the target surface will be observed after removal.
[0076] The method for calculating the expected exposure can use a 0.5 mm object-square sampling interval. The 52 surface sampling points in the area of positional difference are projected as depth pixels, and after deduplication, the number of pixels expected to no longer be obstructed by the known foreground is counted. The sampling interval follows the resolution check of the pipe segment space, without setting additional unfounded scoring coefficients. If two candidate first-choice objects can both reveal the positional difference, the object with the larger expected number of revealed pixels is selected first; if the numbers are the same, the object with the shorter verified lifting distance is selected, and then sorted by pipe component identification. Before sorting, the grabbing and detachment checks of the candidate first-choice pipe components must be completed; objects with a large exposure area but unable to be removed are not selected.
[0077] In the confirmed obstruction removal mode, the control device 14 directly reads the actual obstructing pipe component identifier in the pipe segment obstruction record and adds the corresponding adjacent pipe component to the candidate first-take pipe component set. If the material frame boundary interference cannot be eliminated by taking adjacent components, the material frame boundary is not considered as a candidate first-take pipe component; when there is no executable target path and all failure reasons originate from the material frame boundary, the delayed target pipe component grabbing state is generated. When the unconfirmed space cannot be associated with an identifiable adjacent component, a first-take object that can remove the obstruction is not fabricated, and the unconfirmed state is retained.
[0078] S33: Sequentially generate the candidate positions of the first-take pipe fittings, the area occupied by the complete pipe segment, the grab position, the overall detachment path and the obstruction check results, and filter the set of candidate first-take pipe fittings that meet the detachment conditions.
[0079] Specifically, the control device 14 establishes an independent inspection record for each candidate pre-removed pipe fitting, using data from the same current scanning cycle. First, it matches the visible surface of the candidate pre-removed pipe fitting with the corresponding pre-stored 3D geometric data, retaining all candidate pre-removed pipe fitting poses that meet the current observation conditions. Then, it forms the area occupied by the candidate pre-removed pipe fitting segments according to geometric connection relationships. All candidates should retain complete physical material; the structural inspection scope should not be reduced simply because the candidate pre-removed pipe fitting only undertakes an auxiliary removal task.
[0080] The control device 14 generates a gripping pose for the candidate pipe fitting based on the currently visible surface of the candidate pipe fitting and the robot gripper configuration. It then checks each pose to ensure it meets the gripping and approach conditions for all candidate pipe fitting poses. If a valid gripping pose exists, it generates an overall detachment path for the candidate pipe fitting and moves the area occupied by all candidate pipe fitting segments along the same actual gripper path, forming a swept area for the candidate pipe fitting segments. If the candidate pipe fitting poses are empty, the gripping pose is empty, or the robot motion constraints do not allow for complete detachment, the candidate pipe fitting is directly marked as not meeting the detachment conditions.
[0081] The candidate first-take pipe fitting removal check uses the material frame boundary geometry data and the environmental occupancy records of all other pipe fittings, while the target pipe fitting 30 remains in the environment. All valid pose candidates of the target pipe fitting 30 are checked: occupancy is recorded for identifiable target entities, and the range of target entities with ambiguous poses is checked according to possible occupancy. The complete structure of the candidate first-take pipe fitting cannot ignore the corresponding interference simply because the target pipe fitting 30 will be removed subsequently, as long as it can potentially enter any still valid entity position of the target pipe fitting 30.
[0082] The approach and disengagement checks of candidate pipe components use different inspection objects. During the approach phase, the mobile robot gripper 12 moves while the pipe component in the environment remains stationary. After gripping, the mobile robot gripper 12 grips the complete candidate pipe component, while the remaining pipe components are still considered as environmental objects. The same initial contact separation rule is used; all contact surfaces must be confirmed to be separated. Actual collisions and unconfirmed spaces will prevent the path from executing. Using the gripper's ability to enter the field as a substitute for the complete candidate pipe component's ability to exit does not meet the screening criteria of this embodiment.
[0083] After the inspection is completed, the control device 14 adds at least one set of candidate first-fetch pipes that have a common valid grasping pose and an overall detachment path, and whose overall detachment path does not interfere with any of its own pose candidates and has no unconfirmed markings, to the candidate first-fetch pipe set that meets the detachment conditions. Each item simultaneously records the pipe identifier, grasping pose number, overall detachment path number, and verification record number. If a candidate first-fetch pipe has one failed path but another path passes, the record corresponding to the passed path can be retained; if only one pose candidate passes while other pose candidates fail, the path record cannot be retained.
[0084] The candidate first-take-first-served check does not recursively schedule another unverified first-take-first task. If the current candidate first-take-first-served task requires the removal of other tasks before it can exit, then the current candidate first-take-first-served task is not among the objects that meet the exit conditions in this round. Control device 14 continues to check other objects in the current candidate set; when all candidate objects do not meet the exit conditions, the deferred target task grabbing status is output. This process preserves the target task's identity and the spatial basis of this round, preventing multi-level first-take-first arrangements that have not yet been executed from becoming invalid due to a change in status after a physical removal.
[0085] S34: Select the first-take pipe fitting from the set of candidate first-take pipe fittings that meet the detachment conditions, and form a first-take pipe fitting material taking arrangement.
[0086] Specifically, in the position difference exposure mode, the control device 14 prioritizes selecting verified objects that can expose the position difference of the pipe segment to be reviewed, and determines a unique first-selection pipe fitting according to the aforementioned expected exposure range, lifting distance, and pipe fitting identification order. If no exposing object is available, the device selects objects from the adjacent pipe fittings that have already entered the candidate first-selection pipe fitting set that meets the release conditions. In the confirmed blockage release mode, the device selects from the confirmed blockage objects according to the verified lifting distance and pipe fitting identification order, and cannot directly specify the pipe fitting with the highest height across the complete release conditions.
[0087] The selected first-retrieved pipe fitting, the gripping pose of the first-retrieved pipe fitting, and the overall removal path of the first-retrieved pipe fitting must be read from the same verification record. The control device 14 writes the aforementioned three items, along with the pipe segment to be verified in this round, the target pipe fitting identifier, and the current scanning cycle, into the first-retrieved pipe fitting material retrieval arrangement. The gripping pose and the overall removal path are formed as parallel outputs from the already verified combinations; the more suitable gripping pose and the shorter path are not selected separately. Only one first-retrieved pipe fitting material retrieval arrangement is submitted at a time, and the next arrangement is determined only after the physical action and rescanning are completed.
[0088] Continuing with the tee example, suppose the obstructing surface 51 of the second adjacent pipe fitting 50 blocks the positional difference area 52 of the branch pipe 32, and the first adjacent pipe fitting 40 is a confirmed obstruction under the first posture option 35. Both adjacent pipe fittings pass the self-complete disengagement check. The control device 14 prioritizes the second adjacent pipe fitting 50, even if the second adjacent pipe fitting 50 is not a direct collision object under the first posture option 35; the priority is to expose the actual direction of the branch pipe 32, rather than picking materials according to the height order within the material frame. The first adjacent pipe fitting 40 is reserved for retraction and subsequent confirmed obstruction removal.
[0089] The selection process, including prior selection and self-detachment checks, jointly limits the objects to be executed in this round. Selecting adjacent parts based solely on the expected exposure range may result in selecting objects still blocked by other pipe fittings; selecting adjacent parts based solely on the ability to detach them may remove objects that do not change the target judgment conditions. By using both the exposure or removal of obstructions and the condition of complete detachment as screening criteria, the prior selection action has both an executable path and corresponds to the specific material retrieval conditions that the target pipe fitting 30 has not yet met.
[0090] S4: Execute the removal of the first pipe fitting, create a new 3D scan snapshot, verify the actual position of the target pipe fitting, reconstruct the complete pipe segment obstruction relationship, output the final capture conditions or return to step S3.
[0091] Further, step S4 includes: S41: Execute the removal action according to the priority pipe fitting material removal schedule, record the removal execution status of the priority pipe fitting, and form a three-dimensional scanning snapshot after the priority pipe fitting is removed.
[0092] Specifically, the control device 14 sends the pipe identification, gripping posture, approach path, and overall detachment path in the pre-selection pipe picking arrangement via the robot communication interface. The robot controller first executes the verified approach path, controls the robot gripper 12 to close, and then executes the verified overall detachment path to send the selected pre-selection pipe to the 2D vision inspection station 23; qualified pipes are transferred to the tray station 22, and unqualified pipes are transferred to the unqualified material bin 24. The inspection and transfer use the original actions of the workstation, do not change the target pipe identification 30, and do not serve as a data source for confirming the branch pipe position.
[0093] The robot controller reports the execution status of the current action based on task completion response, motion endpoint, and gripper closure result. When the approach, closing, and disengagement actions are completed according to the task and there are no motion alarms, the removal status of the first pipe fitting is recorded as successful removal; if gripping fails, motion is interrupted, or the disengagement task is not completed, it is recorded as removal failure. The execution status only indicates the execution feedback of the control task and cannot replace the confirmation of actual pipe fitting removal by subsequent scanning. When removal fails, the control device 14 stops the current continuous material picking, generates the temporarily suspended target pipe fitting gripping status, and does not continue to reconstruct spatial judgment based on the expected result of the failed action.
[0094] When the removal of the first-removed pipe component is successful, the control device 14 reads the actual position of the robot gripper 12, confirms that the robot gripper 12 and the gripped pipe component have exited the observation area of the material frame, and then triggers the original 3D vision system 13 to scan. The observation area consists of the observation ray from the camera to the effective detection range of the material frame 20. The overlap between the outline of the gripper and the gripped pipe component and the ray range is used to determine whether the component has exited, not only based on the robot's posture at a certain joint. After receiving a new scan completion flag, the control device 14 saves a 3D scan snapshot after the removal of the first-removed pipe component.
[0095] Each scan uses an independent cycle number. The initial scan number is 0, the scan number after the first successful removal is 1, and the number increases sequentially with each subsequent successful removal and scan completion. The 3D scan snapshot after the removal of the first-removed pipe includes a depth map, valid pixel markers, point cloud, camera calibration version, and cycle number, and does not overwrite the initial 3D scan result. Visible surfaces, candidate items, paths, and obstruction records within the same cycle are associated through the cycle number. A new scan after a robot action cannot be combined with obstruction records before the action to form a valid verification.
[0096] S42: Form the following states respectively: removal and verification of the first pipe fitting, exposure of the pipe section to be verified, and change of the position of the target pipe fitting.
[0097] Specifically, the control device 14 checks the complete physical area of the selected pipe fitting based on the pre-scan and the new scan. If the observable portion of the area originally occupied by the selected pipe fitting is confirmed to be free by the new scan, and there is no visible surface in the new scan that can still be interpreted as the selected pipe fitting, the removal verification status of the pipe fitting is recorded as confirmed removal. If the corresponding area still has the same pipe fitting surface, or only a depth gap is present and cannot prove that the space is free, it is recorded as unconfirmed removal. The removal verification status of the pipe fitting is directly derived from the comparison between the new scan and the original physical position, and is not inferred from the robot task completion response.
[0098] The control device 14 projects the expected surfaces of the pipe segment to be verified under each valid pose candidate onto the new depth map, and searches for newly added valid surfaces that can be attributed to the target pipe 30. When the new surface can establish a geometric correspondence with the pipe segment to be verified, the exposed state of the pipe segment to be verified is recorded as exposed, and the index of the new surface point is saved; when only the background, another pipe, or invalid depth is observed, it is recorded as not exposed. The exposed state is not presumed by the removal of the previously selected pipe, nor by the unchanged pose of the target pipe. If the expected exposure purpose is not achieved, the actual new scan information can still participate in subsequent verification, but the position of the pipe segment to be verified cannot be fabricated.
[0099] The pose change of the target pipe fitting is checked simultaneously for translation and rotation. The control device 14 selects the surface area that is visible both before and after removal and can be confirmed to belong to the target pipe fitting 30. It compares local surface features and geometric boundaries to form candidate rigid body displacements from before removal to after removal. Newly exposed branch pipes 32 must not be used as points already measured before removal to create a corresponding point, nor should surface points of adjacent pipe fittings 40 be included in the displacement registration of the target pipe fitting 30. When there are multiple matching displacements before and after the removal of the target pipe fitting 30, all rigid body displacements that meet the comparison conditions are included in the pose change judgment.
[0100] For example, the common surface distance threshold is set to 0.6 mm, following the aforementioned upper bound of scanning and geometric matching errors. The translational change threshold is set to 0.8 mm, determined by the allowable upper bound of the coordinate difference between two scans of the same fixed calibration component; the rotational change threshold is set to 1 degree, determined based on the radius of the common surface feature distribution and the allowable positional error. Assuming the effective feature distance from the comparison center of the common surface is 40 mm, 1 degree of rotation corresponds to approximately 0.7 mm of surface displacement, which can be checked under the displacement thresholds described above. The actual configuration uses the calibration error, and the stated values are not interpreted as the actual measured accuracy of the equipment.
[0101] To prevent axisymmetric main body rotation from reverting to zero displacement during surface registration, control device 14 checks whether the common surface can constrain the complete rigid body motion. The common surface must at least confirm the corresponding non-collinear geometric features, and it also checks whether there exists another rigid body transformation that satisfies a distance threshold but causes rotation or translation to exceed a change threshold. For the main body 31 with only a featureless cylindrical surface, rotation about the axis may still be valid, and control device 14 cannot record no change in pose simply because the point-to-surface residual is small. When complete displacement constraints are lacking, it cannot be confirmed whether the pose has changed, and the unmoved branch is not selected to continue execution.
[0102] When the translation and rotation of all valid rigid body displacement candidates do not exceed the aforementioned change threshold, the target pipe's pose change state is recorded as unchanged, and the remaining motion within the threshold is included in the subsequent occupied area error range. When at least one motion component of all valid rigid body displacement candidates exceeds the corresponding change threshold, it is recorded as a change in pose. When different valid rigid body displacement candidates respectively support unchanged and changed, exceed the comparison error limit, or cannot establish a reliable correspondence on the common surface, it is recorded as unable to confirm whether the pose has changed. If the target pipe 30 cannot be re-identified, the material handling process is also stopped.
[0103] The removal and verification status of the first-selected pipe fitting, the exposure status of the pipe segment to be verified, and the pose change status of the target pipe fitting are generated by independent scan comparisons, without using the previous status as the basis for generating the next status. During branch execution, the removal and verification status of the first-selected pipe fitting is checked first. If removal is not confirmed, the target pipe fitting capture status is directly output, and the pose update branch is not selected. After removal is confirmed, the pose change status of the target pipe fitting is checked. If it cannot be confirmed whether the pose has changed, it is also paused. Only when the pose change status has been determined is the exposure status of the pipe segment to be verified used for candidate exclusion within the unmoved branch.
[0104] S43: Based on the target pipe fitting's pose change status, review or re-form the pose candidate, and reconstruct the pose capture, overall escape path, and pipe segment obstruction record during the review cycle.
[0105] Further, step S43 includes: S431: Form a verification pose candidate when the pose remains unchanged, or a newly formed pose candidate when the pose changes.
[0106] Specifically, when the target pipe's pose change state is unchanged, the control device 14 checks each valid pipe pose candidate before the current selection action. The allowable motion error is determined based on the aforementioned translation change threshold, rotation change threshold, and the actual distance of the current pipe segment from the displacement comparison center. It is used to cover the maximum offset caused by the remaining translation and rotation within the threshold when the target pipe is determined to have no pose change, affecting the pipe segment surface position. When the pipe segment to be reviewed has been revealed, the actual surface in the new scan is compared with the pipe segment surface of the corresponding candidate, and the matching distance threshold and allowable motion error are used for checking. If the predicted entity position of the candidate does not match the new valid surface, or if the candidate entity enters the newly scanned confirmed empty space, the corresponding candidate is excluded. If the new surface can still be interpreted by multiple candidate options, the multiple candidate options are retained and not selected prematurely due to the small error of a certain candidate option.
[0107] When the section to be reviewed is not revealed, the control device 14 only uses the newly added visible information in the new scan to exclude the original candidate options that can be clearly rejected. If no new rejection information is added, all the original valid candidate options can be retained, and the unconfirmed state of the section to be reviewed can continue to exist. The branch with unchanged pose does not write the geometric points in the expected exposure area as measurement points, and the candidate option review results are saved independently as the review pose candidate options under the condition of unchanged pose.
[0108] When the target pipe's pose has changed, the control device 14 re-executes the pose matching specified in step S11 based on the 3D scan snapshot after the previously removed pipe, forming new pose candidates under the changed pose conditions. Old candidates are only used to save historical judgment criteria and are not directly used as the current position pose. Re-matching can read the same version of the product's 3D geometric data and the same target pipe identifier, but must use the target's visible surface in the new scan. If the new match cannot form a valid candidate, the "temporarily suspended target pipe grabbing" state is generated.
[0109] The control device 14 determines the current verification cycle pose candidate set from the corresponding branch output based on the target pipe's pose change state. Branches with unchanged poses and branches with changed poses are not simultaneously used as current inputs, nor are the results of the two branches combined for further processing. Reconstruction continues when the current verification cycle pose candidate set is not empty; when it is empty, it indicates that the target pipe 30 cannot be repositioned, and an executable path cannot be generated through the item-by-item conditions of an empty set.
[0110] S432: Based on the current set of candidate poses for the review cycle, form a set of regions occupied by the review cycle segment and a set of candidate capture poses for the review cycle.
[0111] Specifically, the control device 14 first re-unfolds the solid material according to the current pose and the connection relationship with the complete pipe segment, forming the set of pipe segment occupied areas in the review cycle; then, it forms the set of candidate gripping poses for the review cycle based on the visible surface of the target in the new scan and the configuration of the robot gripper. Both results record the number of this review cycle, and the gripping center that has not been checked cannot be copied from the old cycle. Even if the pose change state of the target pipe is unchanged, the position of adjacent pipes and the approach space of the gripper may have changed, and the gripping pose still needs to be reconfirmed.
[0112] The candidate grasping pose set for the review cycle continues to use the condition that all current review cycle pose candidate sets are simultaneously met. When the set is empty, the control device 14 generates the suspended target pipe grasping state. The implementation using triangular mesh and voxel representation still outputs the occupied area of the same pipe segment, and the error range is calculated based on the new scan and new matching results. The current review cycle pose candidate set, the review cycle pipe segment occupied area set, and the review cycle candidate grasping pose set have the same cycle number.
[0113] Movement within the threshold range in branches where the pose remains unchanged is also a source of occupancy area error. Control device 14 determines the maximum permissible surface offset based on the translation change threshold and the distance from each pipe segment surface point to the rotation center, including the offset range not eliminated by the new surface positioning in this round of spatial inspection. The rotation center distance uses the actual distance of the complete pipe segment geometry, and cannot be replaced by the radius of the commonly visible main pipe alone. A displacement comparison indicating an unchanged state does not equate to a strictly zero displacement.
[0114] S433: Reconstruction and review cycle: overall set of detachment paths, set of pipe section sweep areas, and complete obstruction inspection results.
[0115] Specifically, the control device 14 starts with the candidate gripping pose set of the review cycle and generates a set of overall detachment paths for the review cycle based on the set of pipe segment occupied areas and the current material frame boundary. Then, it moves all complete pipe segments of the current candidates along each identical actual gripper path, forming a set of pipe segment sweep areas for the review cycle. The current gripping center, endpoint height, and fixed spatial relationship between the pipe and the gripper all use the results of this round of calculations; the execution qualification of an old path cannot be reused simply because it was previously non-interfering.
[0116] Control device 14 re-identifies all adjacent pipes participating in the path check based on the new scan, establishes a new cycle of observed idle, confirmed occupied, and unconfirmed environmental records, and then re-executes the pipe segment-by-segment intervention and occupation determinism checks. Other pipes in contact with the selected first-removed pipe may fall into place during removal, and entities originally located on the side of branch pipe 32 may enter the new sweep space. Environmental updates must process all adjacent pipes related to the current sweep area, not just the one that has already been removed. The initial contact separation rule, the target self-point attribution rule, and the rule of retaining unconfirmed status for missing scan points continue to apply. After the re-check, a review cycle intervention and occupation determinism check result is generated.
[0117] S434: Establish a review cycle pipe segment obstruction record, reclassify obstruction differences, and determine the overall off-path status of the review cycle.
[0118] Specifically, the control device 14 generates a review cycle pipe segment obstruction record based on the review cycle interference and occupation determinism check results. Each record is associated with the current pose candidate, the current pipe segment, and the current path. Pipe segments with no interference results are recorded as having completed checks; pipe segments with actual interference are recorded with the current obstruction object and the initial interference position; and pipe segments whose occupation cannot be confirmed are recorded with an unconfirmed mark. The removal of an obstructing pipe component from the original record does not directly prove that the current pipe segment is free of interference; the review cycle pipe segment obstruction record is generated through a complete recalculation.
[0119] The control device 14 re-compares the blocking objects of different current pose candidates based on the new record, forming a classification of blocking differences in the pipeline segment during the review cycle; then, according to the non-empty, complete check and all candidate conditions specified in step S24, it determines the overall departure path determination state for the review cycle. A path can be executed if it has no interference or unconfirmed markers for any current pose candidate; otherwise, the path cannot be executed. All candidate options and all pipeline segments are only conditions for the establishment of a single path; they cannot be combined to form a single execution basis by passing through the first candidate option and another path passing through the second candidate option.
[0120] S44: Output the final target capture conditions from the currently verified record, or return to step S3 with the complete new cycle results.
[0121] Specifically, when there is an executable record in the set of overall detachment paths for the review cycle, the control device 14 directly selects the final target pipe gripping pose and the final target pipe overall detachment path from the same verified record, and associates the target pipe identifier with the review cycle number. These two items are parallel results from the same verification, and the other is not inferred without considering one. The control device 14 stops selecting the first pipe and sends the final target gripping conditions to the robot controller via the robot communication interface. The robot controller grips the target pipe 30 according to the corresponding approach path, then executes the final target pipe overall detachment path, sending the target pipe 30 to the 2D vision inspection station 23.
[0122] When no executable path exists and interference or unconfirmed markers remain, control device 14 determines the next set of pipe segments to be reviewed from the pipe segment obstruction record of the review cycle, and returns to step S3 to select the next pipe segment to be retrieved. The returned input includes the new scan snapshot, current pose candidates, current pipe segment occupied area, current candidate grab pose, current overall escape path, current obstruction record, current obstruction difference classification, current path determination status, and the next set of pipe segments to be reviewed. All of the aforementioned objects are synchronously switched to the current cycle; simply replacing the scan point cloud while continuing to reference the old candidate set or old obstruction record is not permissible.
[0123] The initial set of candidate pipe positions and the initial 3D scan results only represent cycle 0. Upon entering the next round, the current review cycle's candidate position set and the new scan snapshot assume the input roles for the current position and current scan, respectively, while old cycle objects are still saved with their original cycle numbers. After completing a new first-pick action, another independent scan snapshot is created. The benchmark for comparing position changes uses the current scan before this action, rather than always using the cycle 0 scan. The original candidate first-pick set, the candidate first-pick set meeting the exit conditions, the selected first-pick pipe, and the first-pick material arrangement all lose their eligibility to continue execution and are re-formed in the next round.
[0124] Continuing with the tee example, assuming the second adjacent fitting 50 is removed, cycle 1 scan confirms the exposure of branch pipe 32. A traceable non-axisymmetric geometric feature exists on the common visible surface, and all effective displacement comparisons are within the non-movement threshold. The actual position of branch pipe 32 only matches the first attitude option 35; the second attitude option 36 is negated by the new surface. After reconstructing the complete obstruction record, branch pipe 32 is still obstructed by the first adjacent fitting 40. The control device 14 does not directly grasp the target fitting 30 but returns to step S3, selecting the first adjacent fitting 40 in the confirmed obstruction removal mode.
[0125] Assuming the first adjacent pipe fitting 40 detaches itself from the inspection during the current cycle, the second scan (cycle 2) confirms that the target pipe fitting 30 has been translated by 4 mm and rotated by 3 degrees. (See also...) Figure 7 After removing the first adjacent pipe component 40, the position of the target pipe component 30 differs from the position in cycle 1. The control device 14 rematches the complete pose, forming a third pose candidate 37, and then reconstructs the grasping pose and the overall separation path. If all candidates supported by the new scan have no interference or unconfirmed markers along the new path, the final target grasping conditions for cycle 2 are output. The 4 mm and 3 degrees only illustrate the execution of the moving branch and do not represent test results indicating that actual movement has occurred.
[0126] If any round fails to confirm successful first-pick, fails to re-identify the target pipe 30, fails to confirm whether the target pipe 30 has changed position or orientation, fails to establish a common valid grasping posture, or fails to find a valid next first-pick object, the control device 14 stops continuous material handling and sends a pause status and reason field through the existing robot communication interface. The robot controller does not accept unverified grasping actions in this round. A pause status does not mean the path has been completed, nor is it allowed to reuse the previous first-pick arrangement after a pause. A successful verification cycle confirms that at least one first-pick pipe has been removed, thus reducing the number of first-pick objects in the fixed material frame. The cycle terminates when the target path is executable or there are no valid objects.
[0127] When the control device 14 implements the method, it can be jointly executed by pose matching processing, complete pipe segment space inspection processing, prior object selection processing, and new scan verification processing. Pose matching processing provides all currently valid candidates, complete pipe segment space inspection processing establishes path and obstruction records, prior object selection processing generates a single verified arrangement, and new scan verification processing saves an independent time snapshot and provides complete current input to the preceding processing. The industrial robot 11 and the 3D vision system 13 continue to use the existing workstation configuration; the method does not rely on additional sensors, nor does it require adding a gripper structure to solve the detachment judgment under occlusion.
[0128] Different pose candidate options are retained to allow undetermined branch pipe positions to continue participating in the inspection. The normal first-pick action provides new actual observations, and the complete block recalculation checks the material frame space after removal. The aforementioned processes respectively limit the criteria for candidate establishment, the source of observation changes, and the path execution conditions, and one process cannot replace the others. The target pipe 30 only enters the loading action when it has the same executable path under all valid complete structures in the current scanning cycle. New positions and new blocks generated after removing adjacent parts will not be covered by the old path qualifications.
[0129] Example 2: This embodiment, based on Embodiment 1, provides a robotic irregular-shaped pipe grasping and positioning system based on three-dimensional vision guidance, such as... Figure 8 As shown, it includes: The complete pipe segment space inspection module is used to retain all pipe fitting pose candidate options that match the visible surface of the target pipe fitting. Based on the common effective grasp pose, it checks the complete pipe fitting corresponding to each of the pipe fitting pose candidate options along the same overall detachment path, and establishes a pipe segment obstruction record. The first-selection object selection module is used to compare the pipe segment blocking records and determine the pipe segment to be reviewed when the overall detour path is not executable. If the blocking pipes are inconsistent or there are unconfirmed marks, the first-selection pipes that reveal the positional differences of the pipe segment to be reviewed are selected. If there are only consistent confirmed blocks, the first-selection pipes that remove the confirmed blocks are selected. The new scanning verification module is used to control the robot to remove the selected pipe component and rescan it when the selected pipe component is selected. The module verifies or regenerates the pipe component pose candidate based on the pose change of the target pipe component, and reconstructs the common effective grasping pose, the overall detachment path and the pipe segment obstruction record. The final grasping condition determination module is used to determine the common valid grasping pose and the overall escape path only when there is no interference and no unconfirmed mark in all pipe segments under each of the pipe fitting pose candidate options; otherwise, the pipe fitting to be grasped is reselected according to the pipe segment blocking record.
Claims
1. A method for grasping and locating irregularly shaped pipe components by a robot based on 3D vision guidance, characterized in that, include: Retain all pipe fitting pose candidate options that match the visible surface of the target pipe fitting. Based on the common effective grasping pose, check the complete pipe fitting corresponding to each of the pipe fitting pose candidate options along the same overall detachment path segment by segment to establish a pipe segment blocking record. When the overall detour path is not executable, compare the pipe segment blocking records to determine the pipe segment to be reviewed. If the blocking pipes are inconsistent or there are unconfirmed marks, select the pipes that reveal the positional differences of the pipe segment to be reviewed first. If there are only consistent confirmed blocks, select the pipes that remove the confirmed blocks first. When the selected pipe fitting is removed, the robot is controlled to remove the pipe fitting and then rescan. The robot verifies or re-forms the pipe fitting pose candidate based on the pose change of the target pipe fitting, and reconstructs the common effective grasping pose, the overall detachment path and the pipe segment obstruction record. The common valid grasping pose and the overall detachment path are determined only when there is no interference and no unconfirmed mark under each of the pipe fitting pose candidate options; otherwise, the first pipe fitting is reselected based on the pipe segment obstruction record.
2. The method for grasping and locating irregularly shaped pipe components by a robot based on three-dimensional vision guidance according to claim 1, characterized in that, The step-by-step inspection of the position and orientation options of each pipe fitting corresponding to the complete pipe fitting includes: Based on the pipe segment connection relationship in the pre-stored three-dimensional geometric data of the pipe fittings, the pipe segment occupies the area of the complete pipe fitting physical material corresponding to each of the pipe fitting pose options, and the pipe cavity is not regarded as physical material. Determine the common effective gripping pose, and generate the overall detachment path with the common effective gripping pose as the gripping starting point, so that all the pipe pose candidates correspond to the complete pipe leaving the inside of the material frame; The entire area occupied by the pipe segments is moved synchronously along the overall detachment path, maintaining the connection relationship of the pipe segments to form a pipe segment sweeping area. The spatial relationship between the pipe segment sweeping area and the boundaries of adjacent pipe fittings and material frames is checked.
3. The method for grasping and locating irregularly shaped pipe components by a robot based on three-dimensional vision guidance according to claim 2, characterized in that, Determining the common effective grasping pose includes: Candidate gripping poses are generated based on the currently visible surface of the target pipe and the robot gripper configuration. For the same actual gripper position, check all the pipe fitting position candidates one by one, requiring that the gripping surface can be covered by the corresponding fingertip and the gripper closing amount is within the allowable stroke. The three-dimensional contour of the gripper is used to perform continuous spatial inspection along the approach path to exclude candidate gripping poses that collide with the material frame or adjacent pipes. The candidate gripping poses that satisfy the gripping and approach conditions for all pipe poses are determined as the common effective gripping poses.
4. The method for grasping and locating irregularly shaped pipe components by a robot based on three-dimensional vision guidance according to claim 1, characterized in that, The establishment of the pipe segment obstruction record includes: For the same overall detachment path and the same pipe segment, record the interference and occupancy determinism check results of each pipe fitting position candidate; The unobserved area behind the measurement surface, the area covered by invalid depth pixels, and the space where pipe ownership cannot be determined are registered as unconfirmed. The initial contact separation rule is applied to the pipe segments that have already been contacted. For pipe sections with interference, record the identifiers of adjacent pipe fittings and the location of the first interference. Compare all the pipe fitting position candidates with the corresponding set of blocking pipe fitting identifiers to distinguish between pipe fittings that are consistent, pipe fittings that are inconsistent, and pipe fittings that are not confirmed.
5. The method for grasping and locating irregularly shaped pipe components by a robot based on three-dimensional vision guidance according to claim 4, characterized in that, The initial contact separation rules include: The contact normal is determined by the direction from the surface of the adjacent pipe fitting to the surface of the target pipe fitting, and the sign of the increase or decrease in contact distance is determined according to the angle between the contact normal and the direction of movement. When all contact positions move along the separation direction and the contact distance increases with displacement, separation from the contact state is allowed, and the overall separation path is checked for new interference. When the surface of the target pipe enters the adjacent pipe entity along the direction of movement, it is determined to be interference; When there are multiple possible normals at the contact location, all valid normals must meet the separation condition. If the contacting parties or the direction of the normals cannot be determined, it is registered as unconfirmed.
6. The method for grasping and locating irregularly shaped pipe components by a robot based on three-dimensional vision guidance according to claim 1, characterized in that, The selection of the first-taken pipe fittings that reveal the location differences of the pipe segment to be reviewed includes: Compare the geometry of the pipe segment to be verified under each of the pipe fitting position and orientation options, and determine the area to be verified as the area occupied only by some of the pipe fitting position and orientation options and the area of the surface to be verified that is connected to the area of the pipe segment with unconfirmed markings. The observed surface between the camera and the positional difference area is examined along the observation ray. The adjacent pipes that, after removal, would no longer be partially obscured by the known foreground surface, and the actual blocking adjacent pipes are identified as candidate pipes to be removed first. Check the complete detachment conditions of the candidate pipe fittings, and prioritize the exposed objects that meet the detachment conditions. If there are no exposed objects that meet the detachment conditions, select objects that meet the detachment conditions from the adjacent pipe fittings that are actually blocking the pipe.
7. The method for grasping and locating irregularly shaped pipe components by a robot based on three-dimensional vision guidance according to claim 6, characterized in that, The check for complete disengagement of the candidate first-removal fitting includes: All candidate pipe fitting poses that meet the current observation conditions are retained to form a candidate pipe fitting grasping pose that meets the clamping and approach conditions for all of the candidate pipe fitting poses. Based on the grasping pose of the candidate first-take pipe, an overall detachment path for the candidate first-take pipe is generated. The interference relationship between the complete structure of the candidate first-take pipe and the material frame boundary and other pipes is checked along the overall detachment path. The target pipe is retained as an environment object. Only the candidate first-take pipes whose overall detachment path does not interfere with the pose of all candidate first-take pipes and which have no unconfirmed markings are retained. If there are no candidate first-take pipes that meet the conditions, a temporary target pipe grabbing state is generated.
8. The method for grasping and locating irregularly shaped pipe components by a robot based on three-dimensional vision guidance according to claim 1, characterized in that, The options for reviewing or re-forming the pipe fitting's pose include: Based on the results of the pre-scan and re-scan, the removal verification status of the pre-scanned pipe and the pose change status of the target pipe are formed by independent scanning comparison; When the removal verification status of the first pipe fitting is "unconfirmed removal", or the pose change status of the target pipe fitting is "cannot confirm whether the pose has changed", a "temporarily suspended target pipe fitting grabbing status" is generated. When the target pipe fitting's pose change state is that the pose has not changed, the original pipe fitting pose candidates that can be clearly denied are excluded using the actual newly added visible information. When the pose change state of the target pipe fitting is that the pose has changed, the pipe fitting pose candidate is re-formed based on the rescan result. If the target pipe cannot be re-identified, a "suspend target pipe grabbing" state is generated.
9. The method for grasping and locating irregularly shaped pipe components by a robot based on three-dimensional vision guidance according to claim 1, characterized in that, The reconstruction of the common effective grasping pose, the overall escape path, and the pipe segment obstruction record includes: After each round of initial capture is completed, a 3D scanning snapshot with an independent cycle number is created. The complete pipe fitting material is re-expanded according to the pipe fitting pose candidate to form the pipe segment occupied area. The common effective grasping pose is reconfirmed and the overall detachment path is generated. Based on the three-dimensional scan snapshot, all adjacent pipes participating in the path inspection are re-identified, and the pipe segment blockage record is recalculated segment by segment. When entering the next round, the 3D scan snapshot, the pipe pose candidate, the pipe segment occupied area, the common effective grasp pose, the overall escape path and the pipe segment obstruction record are synchronously switched to the current cycle, and the old cycle objects are saved according to the original cycle number.
10. A robot-based irregular pipe gripping and positioning system based on three-dimensional vision guidance, used to implement the robot-based irregular pipe gripping and positioning method based on three-dimensional vision guidance as described in any one of claims 1 to 9, characterized in that, include: The complete pipe segment space inspection module is used to retain all pipe fitting pose candidate options that match the visible surface of the target pipe fitting. Based on the common effective grasp pose, it checks the complete pipe fitting corresponding to each of the pipe fitting pose candidate options along the same overall detachment path, and establishes a pipe segment obstruction record. The first-selection object selection module is used to compare the pipe segment blocking records and determine the pipe segment to be reviewed when the overall detour path is not executable. If the blocking pipes are inconsistent or there are unconfirmed marks, the first-selection pipes that reveal the positional differences of the pipe segment to be reviewed are selected. If there are only consistent confirmed blocks, the first-selection pipes that remove the confirmed blocks are selected. The new scanning verification module is used to control the robot to remove the selected pipe component and rescan it when the selected pipe component is selected. The module verifies or regenerates the pipe component pose candidate based on the pose change of the target pipe component, and reconstructs the common effective grasping pose, the overall detachment path and the pipe segment obstruction record. The final grasping condition determination module is used to determine the common valid grasping pose and the overall escape path only when there is no interference and no unconfirmed mark in all pipe segments under each of the pipe fitting pose candidate options; otherwise, the pipe fitting to be grasped is reselected according to the pipe segment blocking record.
