Robot vision perception and grasping pose estimation method based on center line topology reconstruction and depth constraint for complex beam

By using centerline topology reconstruction and depth constraints, the problem of automated wire harness picking in all-black wire harness scenarios was solved. This achieved global optimal splitting and reliable identification of stacking relationships, ensuring the accuracy and consistency of picking.

CN123160897APending Publication Date: 2026-11-24NORTHWESTERN POLYTECHNICAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611512599.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-28
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies struggle to accurately identify graspable targets in completely or nearly black industrial wire harness environments, cannot reliably determine stacking relationships, and are prone to cascading errors, making it difficult to effectively automate wire harness grasping and connection.

Method used

A method based on centerline topology reconstruction and depth constraints is adopted. A binary centerline map is generated through stereo correction image processing, skeletonization is performed and intersection regions are clustered. Color-independent endpoint pairing costs are constructed. The overlapping relationship between the upper and lower parts is analyzed by combining depth constraints and topology map, and finally a 3D grasping pose is generated.

Benefits of technology

It achieves globally optimal wire harness splitting in a completely dark scene, improves the accuracy of instance segmentation, significantly enhances the robustness of stacking discrimination, avoids misjudgment of noise loops and real interlocking loops, and ensures the reliability and consistency of crawling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160897A_ABST
    Figure CN123160897A_ABST
Patent Text Reader

Abstract

This invention relates to the field of robot vision technology, and particularly to a method for visual perception and grasping pose estimation of complex wire harnesses based on centerline topology reconstruction and depth constraints. The method includes: acquiring binocular images to generate a centerline map; detecting endpoints and intersections after skeletonization; constructing a color-independent endpoint pairing cost; constructing a maximum weighted matching of endpoint pairings across the entire image as a general graph and solving the problem; reconnecting and aggregating the pairs into wire harness instances; using the wire harness instances to define a stereo matching region and fitting a depth; for intersections, extrapolating the depth of the unoccluded approximating segment and fusing multiple cues to determine the vertical overlap direction; constructing a directed spatial topology graph with confidence, eliminating noise loops and retaining true interlocking loops; scoring candidate wire harnesses for grasping and generating a 3D grasping pose. This invention achieves reliable perception and safe grasping of complex wire harnesses through color-independent global optimal splitting, approximating segment depth extrapolation, and noise / interlocking loop differentiation mechanisms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of robot vision technology, and in particular to a method for visual perception and grasping pose estimation of complex wire harness robots based on centerline topology reconstruction and depth constraints. Background Technology

[0002] With the rapid development of the automotive industry towards intelligence and flexibility, robotic arms are widely used in automated processes such as wire harness grasping and splicing in equipment manufacturing production lines. Wire harnesses, as typical flexible linear objects, undergo random shape changes during grasping and stacking, making fixed template matching and positioning impossible. How to enable robots to accurately identify graspable targets from messy stacks of wire harnesses and generate safe grasping postures has become a key technical challenge restricting the automation upgrade of wire harness assembly.

[0003] Existing visual perception methods for wire harnesses typically follow a technical approach of semantic segmentation, skeletonization, key point detection, and endpoint pairing and reconnection. Academic solutions such as FASTDLO, mBEST, and CVF-DLO all utilize this approach at different levels. However, these solutions have the following shortcomings when dealing with completely black, densely stacked industrial wire harnesses: Firstly, industrial wire harnesses often use all-black or near-black outer sheaths. The HSV color space or appearance similarity cost that existing methods rely on degenerates into invalid signals in all-black scenarios, and endpoint pairing loses its basis for discrimination, resulting in a sharp decline in the reliability of instance segmentation.

[0004] Secondly, existing methods perform endpoint pairing independently at each intersection point, and the pairings at each intersection point are not coupled. In the case of dense intersections, if a pairing error occurs at a certain intersection point, the error propagates along the wire harness, resulting in error cascading, and there is no guarantee of global optimality.

[0005] Third, monocular 2D projection loses depth and cannot determine the stacking relationship of intersecting wire bundles. If the depth is measured directly at the intersection point, it faces three difficulties: the wire bundles are thin, dark, and have weak texture; the depth difference is on the order of millimeters; and the intersection point can only measure the upper layer. The naive depth method cannot reliably determine the top and bottom.

[0006] Fourth, the point-by-point independent determination of the upper and lower relationships may generate directed loops. Existing methods do not distinguish between noise loops caused by deep noise and real interlocking loops caused by wire harness twisting. Forcibly removing loops will incorrectly delete real interlocking relationships, and retaining loops will not obtain effective levels, and the determination of the top level will lose its basis.

[0007] In summary, existing technologies struggle to reliably identify the topmost graspable target in densely packed, all-black industrial wire harness scenarios. There is an urgent need for a wire harness visual perception and grasping pose estimation method that does not rely on color information, possesses global consistency, can determine the stacking relationship between upper and lower layers, and can perceive interlocking. Summary of the Invention

[0008] The purpose of this invention is to address the shortcomings of existing technologies by providing a method for visual perception and grasping pose estimation of complex wire harness robots based on centerline topology reconstruction and depth constraints, comprising the following steps: S1: Obtain the stereo-corrected left eye image, right eye image, and binocular camera calibration parameters; input the left eye image into the centerline topology reconstruction network to generate a binary centerline map. S2: Based on the binary centerline map, perform skeletonization processing, detect the endpoints and intersections on the skeleton, cluster the intersections into intersection regions, and break the skeleton into line segments within the intersection regions; S3: Construct color-independent endpoint pairing costs, construct endpoint pairings across the entire graph as a general graph maximum weight matching problem and solve it, aggregate line segment reconnection into multiple independent line bundle instances based on the matching results, and output the geometric prior information of each intersection point, including the intersection point coordinates, the intersection point influence radius, and the identity of the intersecting line bundle; S4: Using the pixel mask of the line bundle instance and the binary centerline map to define the depth acquisition area, obtain the sparse depth of each line bundle and fit a smooth depth profile along the centerline. S5: For each intersection point, depth profile extrapolation is performed based on the unobstructed approaching segment of the intersecting bundle outside the intersection point, and the occlusion continuity, measured depth of the intersection area and geometric appearance information are integrated to adaptively and weightedly determine the vertical overlap direction between the intersecting bundles, and output the vertical overlap direction and its confidence level. S6: Construct a directed space topology graph with confidence based on the up and down stacking directions of each intersection point, resolve the loops of low-confidence contradictory edges, and retain the real interlocking loops formed by high-confidence edges to obtain the hierarchical information, top-level label and interlocking label of each bundle. S7: Based on the spatial topology map and the geometric properties of the wire harness instance, the candidate wire harness is scored for grasping, the target wire harness is selected, and a three-dimensional grasping pose is generated.

[0009] Preferably, in step S1, the centerline topology reconstruction network includes a high-resolution backbone network, a multi-scale feature alignment and fusion module, and a centerline prediction head: The high-resolution backbone network performs feature interaction and multi-scale fusion between branches of different resolutions to maintain high-resolution spatial features. The multi-scale feature alignment and fusion module performs attention enhancement and strip pooling enhancement on each level of features, interpolates each level of features to the highest resolution and then splices them along the channel direction, and compresses them into high-resolution fused features through a multi-voidity void space pyramid pooling module or a lightweight convolution fusion module. The centerline prediction head performs at least two levels of upsampling and channel reduction processing on the high-resolution fused features, and outputs a centerline heatmap through single-channel convolution, which is then normalized to generate the binary centerline map.

[0010] Preferably, the centerline topology reconstruction network is trained using topology-aware loss, which includes soft-skeleton topology connectivity loss. And category balance loss The training objective is represented as: , in, and The soft skeleton topology connectivity loss is calculated based on the predictable soft skeletonization results of the predicted centerline and the labeled centerline, and is used to constrain the topology accuracy and topology sensitivity of the centerline. The training also employs a semi-supervised learning framework: a teacher model and a student model are constructed, the teacher model parameters are updated using the exponential moving average of the student model parameters, and the original input and perturbation input are applied to the unlabeled images respectively, so that the output of the teacher model and the output of the student model satisfy the consistency constraint.

[0011] Preferably, in step S2, clustering the intersection points into intersection point regions includes: A density-based spatial clustering method with noise is used to perform pixel-level clustering on candidate pixels at intersection points to obtain the initial region of intersection points and their center coordinates. Calculate the branch tangential angle and path continuity along the path connecting the intersections. Perform path-level merging on the initial regions of multiple intersections belonging to the same acute-angle branch structure to obtain the final intersection region. The radius of influence of the intersection point is adaptively determined based on the local wire diameter of the wire bundle within the intersection point area, and a skeleton area of ​​a preset shape is removed within the intersection point area, so that the skeleton on both sides of the intersection point is broken into independent line segments.

[0012] Preferably, in step S3, a color-independent endpoint pairing cost is constructed, and the endpoint pairing across the entire graph is constructed as a general graph maximum weight matching problem and solved, including: Establish candidate pairing relationships for endpoints within the same intersection point; The pairing cost is constructed based on the endpoint tangential direction, the connection direction between endpoints, the double-end curvature alignment, and the end wire diameter. The pairing cost includes directional continuity cost, double-end curvature alignment cost, and wire diameter consistency cost, and its form is as follows: , in, , and For positive weights, As a cost to directional continuity, and Endpoints , Tangential unit vector at the location; This is the cost of double-curvature alignment. For the endpoint Point to endpoint , unit vector; This comes at the cost of consistent wire diameter. and Endpoints , The local line diameter at that location, the pairing cost is completely independent of color information; Candidate edge weights are obtained by subtracting the pairing cost from the pairing benefit benchmark, and only candidate pairings with edge weights greater than zero are added to the matching graph; Using the endpoints of the entire graph as vertices and candidate pairings as edges, the maximum weight matching algorithm for non-bipartite general graphs is used to obtain the global matching result that satisfies that each endpoint participates in at most one matching edge, and the line segments are reconnected and aggregated based on the global matching result.

[0013] Preferably, in step S4, the depth acquisition region is defined using the pixel mask of the line bundle instance and the binary centerline map, the sparse depth of each line bundle is acquired, and a smooth depth profile is fitted along the centerline, including: The pixel set or instance mask of each wire bundle instance is used to limit the stereo matching search area in the left and right eye images, and background pixels and non-wire bundle areas are eliminated. Depth is directly acquired by a 3D structured light binocular camera in the wire bundle region, and the smoothness of the depth of adjacent centerline points is constrained by the direction of the wire bundle centerline. The depth at the edge point of the wire harness contour is used first, and the obtained discrete depth is propagated or interpolated to the center line of the wire harness. Discrete depth values ​​are extracted along the arc length of the centerline of each wire bundle, depth outliers are removed, and a smooth depth profile is obtained by fitting. ,in The coordinates of the arc length along the centerline of the wire harness; Structured light patterns are projected onto the surface of the wire harness using a 3D structured light binocular camera to enhance the depth availability of areas with weak texture.

[0014] Preferably, in step S5, the adaptive weighted determination of the vertical overlap direction between intersecting wire bundles includes: The adaptive local analysis window is determined based on the coordinates of the intersection point and the radius of influence of the intersection point. Within the local analysis window, the intersecting wire bundles are divided into an unobstructed approach segment located outside the cross core area and an overlapping area located within the cross core area; The extrapolation depth and extrapolation depth difference between the intersecting line bundles are obtained by extrapolating the depth profile of the unobstructed approach section to the center arc length of the intersection point. The continuity of the center line, pixel integrity, and local linewidth variation of the intersecting line bundles within the overlapping area are extracted to obtain the occlusion continuity criterion. The measured depth of the overlapping area is compared with the extrapolated depth of each intersecting line bundle, and the edge sharpness and line width retention at the intersection are extracted as geometric appearance criteria. Directional votes and reliability scores are generated for depth extrapolation, occlusion continuity, measured depth attribution, and geometric appearance, respectively. A comprehensive judgment score is calculated based on the adaptive weights of the directional votes. The comprehensive judgment score is the weighted sum of the products of each cue's directional vote, its reliability, and its weight. The confidence score of the overlay direction is the ratio of the absolute value of the comprehensive judgment score to the weighted sum of the cues' reliability. When the extrapolated depth difference is less than the binocular depth resolution, the weight of the depth extrapolation criterion is reduced and the weight of the occlusion continuity criterion is increased.

[0015] Preferably, in step S6, a directed space topological graph with confidence is constructed, and loop resolution is performed on low-confidence contradictory edges, including: The instances of the intersecting wire bundles are used as graph nodes, the overlapping relationships at the intersection points are used as directed edges, and the confidence level of the overlapping relationships is used as edge weights. Detect directed cycles in the directed space topology graph and obtain the minimum edge weight in each directed cycle; When the minimum edge weight is lower than the preset confidence threshold, the corresponding low confidence edge is identified as a noise conflict edge and deleted to resolve the noise loop formed by depth noise or occlusion misjudgment. When all edge weights in the directed ring are not lower than the confidence threshold, the directed ring is determined to be a real interlocked ring, the directed ring is retained, and the wire harness involved in the directed ring is marked as an interlocked wire harness. The directed space topology graph after noise loop elimination is topologically sorted to obtain the hierarchy of each wire bundle; the wire bundles that are not overlapped by other wire bundles and are not marked as interlocked are identified as top-level candidate wire bundles.

[0016] Preferably, in step S7, the candidate wire harnesses are captured and scored based on the spatial topology map and the geometric attributes of the wire harness instances, including: For each candidate wire harness, calculate length integrity, structural continuity, depth confidence, occlusion level, mechanical accessibility, and top-level probability; The target wire harness is determined according to a weighted scoring function, which is: , in, , , , , and These represent length integrity, continuity, depth confidence, occlusion level, reachability, and top-level probability, respectively. , , , , , To correspond to the weighting coefficient, the occlusion level index is negative to reduce the score of highly occluded wiring harnesses; Reduce the capture priority of interlocked or highly obscured wire harnesses, and prioritize the selection of target wire harnesses from candidate wire harnesses that are not obscured, not interlocked, and are at a higher level.

[0017] Preferably, in step S7, selecting the target wire harness and generating a three-dimensional grasping pose includes: Search for continuous candidate intervals along the center line of the target bundle, and remove points within the radius of influence of the intersection point, occluded points, and points with a depth confidence score lower than the preset threshold. Within the remaining continuous candidate interval, multiple candidate grab points are sampled at preset intervals, and the local tangent direction is estimated based on the centerline fitting results in the neighborhood of the grab point. The two-dimensional coordinates of the capture point in the left eye image coordinate system and the corresponding depth value are combined with the binocular camera calibration parameters to convert them into three-dimensional position coordinates. The grasping pose is generated based on the three-dimensional position coordinates, local tangent direction, end effector constraints of the robotic arm, and gripper posture constraints, and a grasping command containing the three-dimensional position and posture direction is output. When the candidate grabbing interval of the target wire harness does not exist or its reachability is insufficient, the candidate wire harness is reselected according to the spatial topology map.

[0018] Compared with the prior art, the beneficial effects of the present invention are: (1) By constructing a color-independent endpoint pairing cost, the present invention uniformly constructs the endpoint pairing of the entire graph as a general graph maximum weight matching problem and solves it globally optimally, realizing the global optimal splitting of the line bundle that is completely independent of color. This overcomes the defects of color clue failure in the all-black scene and the error cascading caused by local greed at each intersection point, and significantly improves the instance segmentation accuracy of densely intersecting line bundles.

[0019] (2) The present invention defines the depth acquisition area by using the pixel mask of the wire bundle instance and fits a smooth depth profile along the center line, thereby realizing reliable depth recovery of the weak texture wire bundle area and providing high-quality depth data support for the upper and lower stacking discrimination.

[0020] (3) For each intersection point, the present invention extrapolates the depth profile of the unobstructed approximation segment and integrates the continuity of occlusion, the measured depth and the geometric appearance to adaptively weight the direction of the upper and lower stacking. This bypasses the triple difficulties of fine black weak texture, millimeter-level depth difference and only being able to measure the upper layer at the intersection point. It amplifies the unmeasurable single-point depth difference into a distinguishable depth trend line difference, which significantly improves the robustness of the upper and lower discrimination.

[0021] (4) This invention constructs a directed space topology graph with confidence by stacking the upper and lower directions of each intersection point, performs loop elimination on low confidence contradictory edges and retains high confidence real interlocking loops, realizes the distinction between noise loops and real interlocking loops, avoids mis-grabbing interlocking bundles or causing the level to fail, and ensures the consistency and reliability of global stacking inference.

[0022] (5) The present invention scores the candidate wire harness by using the spatial topology map and the geometric properties of the wire harness instance, selects the topmost uninterlocked target wire harness and generates a three-dimensional grasping pose, realizing a complete automated closed loop from binocular image input to grasping pose output. When it fails, the candidate wire harness can be reselected according to the topology map, which has high reliability, strong robustness and industrial deployment flexibility. Attached Figure Description

[0023] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention.

[0024] Figure 1 This is a flowchart of the visual perception and grasping pose estimation method for complex wire harness robots based on centerline topology reconstruction and depth constraints according to the present invention. Figure 2 This is a detailed flowchart of the analysis of the color-independent wire harness structure and the reasoning of the vertical relationship of the depth constraint in this invention; Figure 3 This is a diagram illustrating the overall architecture of the teacher-student semi-supervised learning network of this invention. Figure 4 This is a schematic diagram of the layered labeling results for the cross-region of the flexible wire harness in this invention; Figure 5 This is a comparison chart of the segmentation effects of various algorithms for wire harnesses in this invention. Figure 6 This is a flowchart of the method for solving the hierarchical problem of wire harness intersection points according to the present invention; Figure 7 This is a schematic diagram of the centerline topology reconstruction network of the present invention. Detailed Implementation

[0025] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. Obviously, the described embodiments are only some, not all, of the embodiments described in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without creative effort are within the scope of protection of this application.

[0026] Those skilled in the art will understand that, unless otherwise stated, the singular forms “a” and “an” used herein, and “the”, may also include the plural forms. It should be further understood that the term “comprising” as used in this specification means the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0027] It is understood that the execution subject of this invention can be a robot vision perception and grasping system, including a 3D structured light binocular camera (such as a Fao 3D mechanical galvanometer camera, outputting depth / point cloud and texture images), a host computer (an industrial PC; a laptop computer can be used during the development phase), and a robotic arm and its controller; the 3D camera is fixedly mounted at the end of the robotic arm or above the workstation, acquiring stereo-corrected left and right eye images and depth; the host computer is used to perform centerline topology reconstruction, harness structure analysis, depth constraint vertical relationship reasoning, and grasping pose generation, and to control the 3D camera and the robotic arm. The following embodiments use the above system as the execution subject for description, but the invention is not limited thereto.

[0028] First Embodiment Please see Figure 1 and Figure 2 As shown, this embodiment provides a method for visual perception and grasping pose estimation of complex wire harness robots based on centerline topology reconstruction and depth constraints. By constructing a complete technical route of centerline topology reconstruction, color-independent global instance recovery, depth-constrained vertical relationship reasoning, and topology-aware grasping decision, a unified expression of two-dimensional geometric structure and three-dimensional spatial relationship is formed, providing a reliable basis for robot grasping. The method includes the following steps: S1: Obtain the stereo-corrected left and right eye images and binocular camera calibration parameters. Input the left eye image into the centerline topology reconstruction network to generate a binary centerline map.

[0029] In this embodiment, a 3D structured light binocular camera (such as a Fao 3D mechanical galvanometer camera) is fixedly mounted at the end of the robotic arm or above the workstation. The optical axes of the left and right cameras are parallel after stereo calibration. The depth is calculated collaboratively by the structured light projector and the binocular camera inside the camera. The left eye image uses a texture image without a structured light pattern as a shared image coordinate reference for centerline topology reconstruction and harness structure analysis. The acquired depth is used for the vertical relationship reasoning and grasping pose generation in stage three. The binocular camera calibration parameters include camera intrinsic and extrinsic parameters, as well as stereo calibration parameters, used to subsequently convert the two-dimensional image coordinates into three-dimensional spatial coordinates by combining the depth.

[0030] Please see Figure 7 As shown, in step S1, the centerline topology reconstruction network includes a high-resolution backbone network, a multi-scale feature alignment and fusion module, and a centerline prediction head: The high-resolution backbone network performs feature exchange and multi-scale fusion between branches of different resolutions to preserve high-resolution spatial features. Specifically, the high-resolution backbone network uses HRNet-W18 as the feature extraction front-end, initialized with ImageNet pre-trained weights, and performs feature exchange and fusion between branches of different resolutions, preserving high-resolution spatial features throughout the process. This is suitable for elongated, low-contrast linear structures. Specifically, HRNet-W18 outputs multi-scale feature maps. The number of feature channels varies at each level, for example, they contain 18, 36, 72, and 144 channels respectively; The multi-scale feature alignment and fusion module performs attention enhancement and strip pooling enhancement on features at each level, interpolates features at each level to the highest resolution, and then splices them along the channel direction. It is then compressed into high-resolution fused features through a multi-void rate spatial pyramid pooling module or a lightweight convolution fusion module. Specifically, it is compressed into high-resolution features with 256 channels through a multi-void rate ASPP module (which includes 1×1 convolution, two sets of 3×3 dilated convolutions with different dilation rates and global pooling branches, and GroupNorm normalization). The centerline prediction head performs at least two levels of progressive upsampling and progressive channel reduction processing on the high-resolution fusion features, and outputs a centerline heatmap through single-channel convolution. After normalization, a binary centerline map is generated. Specifically, the centerline prediction head performs two levels of transposed convolution upsampling on the 256-channel high-resolution fusion features (progressively restoring the original image resolution from H / 4→H / 2→H). Each level is equipped with 3×3 convolution + BN + ReLU, and the number of channels is progressively reduced (256→128→64→32). Finally, a single-channel centerline heatmap is output with 1×1 convolution and normalized to [0,1] by sigmoid. Finally, a binary centerline map is generated by thresholding.

[0031] Preferably, the centerline topology reconstruction network is trained using topology-aware loss, which includes soft-skeleton topology connectivity loss. And category balance loss The training objective is represented as: , in, and These are weighting coefficients; example weights can be taken as follows: , , For topological connectivity loss based on soft skeletonization, To address the extreme class imbalance between the foreground (thin lines) and background in Focal loss, Defined as: ,in, These are the topological accuracy and sensitivity obtained after performing soft skeletonization (alternating iteration of differentiable morphological erosion / dilation) on the prediction and the true value, respectively, and are used to constrain the centerline. Training also employs a semi-supervised learning framework (see [link]). Figure 3 (As shown): Construct teacher and student models, and update teacher model parameters using the exponential moving average of student model parameters. ,in, For student model parameters, For teacher model parameters, To update the weight parameters, apply both the original input and the perturbation input to the unlabeled image, ensuring that the teacher model output and the student model output satisfy the consistency constraint. ,in, For student model prediction, For teacher model prediction, Original image, To add noise (occlusion) to the image so that the student model can recover the complete centerline structure of the occluded region when the local image is occluded.

[0032] In one implementation, the input image resolution is 1920×1080, and after network processing, a binary centerline map of the same size is output. In another implementation, to improve inference speed, the input image can be downsampled to 960×540 for processing, and then upsampled back to the original size after output.

[0033] like Figure 4 As shown, there are upper and lower wire bundles at the intersection of wire bundles. The area where the pixels of the two wire bundles overlap near the center of the intersection is the intersection core area, where the camera can only see the surface of the uppermost wire bundle. The wire bundle segment located outside the intersection core area and not obscured is the approximation segment, and its depth can be reliably measured by binoculars.

[0034] Please see Figure 5 As shown, Figure 5The image shows a comparison of the segmentation effects of various algorithms on wire harness instances. It is used to compare the skeleton recognition and topological connection effects of four existing classic algorithms and the globally optimal algorithm proposed in this invention in the scenario of wire harness intersection and occlusion. Figure 5 From left to right: Image (original input image), FastDLO, RT-DLO, mBEST, CVF-DLO, Ours (GlobalOptimal, the algorithm proposed in this invention), and GT (ground truth label). Each colored curve represents the centerline skeleton of a single identified wire bundle. For identical wire bundles, color is only used to distinguish individuals in the ground truth and prediction results. Topological connectivity (the vertical relationship of wire bundles at intersections, endpoint-endpoint pairing) is the core of the comparison. Figure 5 The test case, from top to bottom, comprises three cases: E1, M2, and H3, with increasing difficulty: E1 is a simple scenario with few wire bundles and intersections; M2 is a medium-difficulty scenario with an increased number of wire bundles and multiple overlapping and stacking points; H3 is a highly complex scenario with highly interwoven wire bundles and significant overlap and occlusion. Figure 5 It is evident that FastDLO, RT-DLO, mBEST, and CVF-DLO frequently encounter problems such as harness connection errors, misconnected traces, topology confusion, and skeleton breakage in operating conditions with significant M2 and H3 cross-blocking. In contrast, the present invention Ours (GlobalOptimal) demonstrates a high degree of consistency between the harness skeleton orientation and cross-point topology connection relationships with the true value GT across all three difficulty levels (E1, M2, and H3), verifying the effectiveness and robustness of the present invention in handling obscured cross harnesses.

[0035] S2: Based on the binary centerline map, skeletonization is performed, the endpoints and intersections on the skeleton are detected, the intersections are clustered into intersection regions, and the skeleton is broken into line segments within the intersection regions.

[0036] In this embodiment, the binary centerline map is thinned (e.g., using the Zhang-Suen thinning algorithm) to obtain a single-pixel wide skeleton. Endpoints and intersections are detected based on the number of foreground pixels in the local neighborhood of the skeleton: skeleton pixels with 1 foreground pixel in their local neighborhood are identified as endpoints, and skeleton pixels with ≥3 foreground pixels in their local neighborhood are identified as candidate intersection pixels.

[0037] Preferably, in step S2, clustering the intersection points into intersection point regions includes: A density-based spatial clustering method with noise (DBSCAN) is used to perform pixel-level clustering on candidate pixels at intersection points, obtaining the initial region of intersection points and their center coordinates. Specifically, DBSCAN is used, with the neighborhood radius parameter... Take approximately 2 pixels and cluster the neighboring candidate pixels of the intersection point into an initial intersection point region to obtain its center coordinates; Calculate the branch tangential angle and path continuity along the path connecting the intersection points. Perform path-level merging on the initial regions of multiple intersection points belonging to the same acute angle branch structure to obtain the final intersection point region. Specifically, for 2Y-shaped acute angle branch structures on the skeleton, determine whether to merge them into the same intersection point based on whether the tangential angle between the two line segments entering the intersection point satisfies the continuity criterion, so as to avoid the acute angle intersection being mistakenly split into multiple intersection points. The radius of influence at the intersection point is adaptively determined based on the local wire diameter of the wire harness within the intersection area. A pre-defined skeleton area is then removed from the intersection area, breaking the skeleton on both sides of the intersection point into independent line segments. Specifically, the radius of influence at the intersection point is adaptively determined based on the local wire diameter of the wire harness within the intersection area. Within the intersection area, a circular region is excavated to break the skeleton into several unconnected line segments. A three-way relationship is established between the line segment, its endpoint, and the intersection point. The local diameter of each line segment is estimated. The radius of influence of the intersection point is considered. The radius of influence of the intersection point can be 1.5 to 2 times the average wire diameter of the wire harness within the intersection area. This will be used in the subsequent step S5 to determine the size of the local analysis window.

[0038] S3: Construct color-independent endpoint pairing costs, construct endpoint pairings across the entire graph as a general graph maximum weight matching problem and solve it, aggregate line segment reconnections into multiple independent line bundle instances based on the matching results, and output the geometric prior information of each intersection point.

[0039] Preferably, in step S3, a color-independent endpoint pairing cost is constructed, and the endpoint pairing across the entire graph is constructed as a general graph maximum weight matching problem and solved, including: Establish candidate pairing relationships for endpoints within the same intersection point; The pairing cost is constructed based on the endpoint tangential direction, the connection direction between endpoints, the double-end curvature alignment, and the end wire diameter. The pairing cost includes directional continuity cost, double-end curvature alignment cost, and wire diameter consistency cost, and its form is as follows: , in, , and As positive weights, take respectively , , , As a cost to directional continuity, and Endpoints , Tangential unit vector at the location; This is the cost of double-curvature alignment. For the endpoint Point to endpoint , unit vector; This comes at the cost of consistent wire diameter. and Endpoints , The local line diameter at the point of intersection, the pairing cost is completely independent of color information, and the endpoint tangential direction , The direction vector is calculated by backsliding a preset number of pixels (e.g., 10 pixels) along the line segment path from the nearest endpoint to avoid the bending segment deviating from the segment centerline; Candidate edge weights are obtained by subtracting the pairing cost from the pairing benefit benchmark. Only candidate pairings with edge weights greater than zero are added to the matching graph. Specifically, after establishing candidate pairings for all endpoints within the same intersection point, the pairing cost is calculated based on the pairing benefit benchmark. Subtract the pairing cost to obtain the candidate edge weights Only edge weights greater than zero (i.e. Candidate pairings are added to the matching graph. The value of R affects the matching density; in this embodiment... Set it to 1.2 so that endpoint pairs with a connection cost lower than 1.2 can be matched; Using the endpoints of the entire graph as vertices and candidate pairings as edges, the Edmonds blossom algorithm (maximum weight matching algorithm for non-bipartite general graphs) is used to obtain the global matching result that satisfies the condition that each endpoint participates in at most one matching edge. Based on the global matching result, the line segments are reconnected and aggregated. Specifically, the global matching result... , making Maximize, according to the globally optimal matching result Reconnect and aggregate line segments, grouping all segments belonging to the same line bundle into a single instance, filtering out short fragments (e.g., fragments less than 20 pixels in length), and outputting a set of independent line bundle instances along with the coordinates of each intersection point. Radius of influence And the identities of the intersecting harnesses. The coordinates of the intersection point. and radius of influence As geometric prior information, it will be used for depth reconstruction and localization in subsequent step S4 and intersection analysis in step S5.

[0040] Experimental results show that, in the challenging scenario of building a self-constructed industrial wire harness set, the global optimal matching in this step significantly improves the accuracy of the number of instances compared to the color-dependent local greedy baseline, and significantly reduces the number of misconnections and miscounted roots under dense crossovers.

[0041] S4: Use the pixel mask of the line bundle instance and the binary centerline map to define the depth acquisition area, obtain the sparse depth of each line bundle, and fit a smooth depth profile along the centerline.

[0042] In this embodiment, the working distance of the binocular system baseline ,focal length Binocular depth resolution This depth resolution will be used in the subsequent step S5 to determine whether the extrapolated depth difference is reliable.

[0043] In one embodiment, a 3D structured light binocular camera (such as a Fao 3D mechanical galvanometer camera) is used to obtain the depth of the wire harness region. The camera's field of view is 52°×50° (H×V), with a working range of 350–1100 mm and a near field of view of 329 mm × 287 mm @ 350 mm. In this embodiment, the working distance D ≈ 450 mm (near field) is taken, corresponding to a field of view of approximately 423 mm × 369 mm and a pixel size of approximately 0.33 mm / px. The camera's depth accuracy is better than 0.05% (based on the working distance), i.e., the depth resolution is... ,exist Place This depth resolution will be used in the subsequent step S5 to determine whether the extrapolated depth difference is reliable.

[0044] Preferably, in step S4, the depth acquisition region is defined using the pixel mask and binary centerline map of the line bundle instance, the sparse depth of each line bundle is acquired, and a smooth depth profile is fitted along the centerline, including: The search area for depth acquisition is limited by the pixel set or instance mask of each wire bundle instance, and background pixels and non-wire bundle areas are eliminated. Depth is directly acquired by a 3D structured light binocular camera in the wire bundle region, and the smoothness of the depth of adjacent centerline points is constrained by the direction of the wire bundle centerline. Prioritize the depth at the edge points of the harness profile (edges are more reliable than weakly textured surfaces), and propagate or interpolate the obtained discrete depth to the center line of the harness. Discrete depth values ​​are extracted along the arc length of the centerline of each wire bundle, depth outliers are removed, and a smooth depth profile is obtained by fitting. ,in The coordinates of the arc length along the centerline of the wire harness; The structured light pattern is projected onto the surface of the wire harness using the 3D structured light binocular camera to enhance the depth availability of weakly textured areas.

[0045] Among them, the coordinates of the intersection point output in step S3 This is used to determine the center arc length of the intersection point of each wire harness, so that each intersection point can be located and its approximation segment depth can be extracted in the subsequent step S5.

[0046] S5: For each intersection point, depth profile extrapolation is performed based on the unobstructed approximation segment of the intersecting bundle outside the intersection point. The occlusion continuity, measured depth of the intersection area, and geometric appearance information are integrated to adaptively and weightedly determine the vertical overlap direction between the intersecting bundles, and output the vertical overlap direction and its confidence level.

[0047] In this embodiment, to address the triple challenges of fine black and weak textures, millimeter-level depth differences, and the fact that intersections can only measure the upper layer, the method does not rely on directly comparing depths at intersections. Instead, it integrates four complementary clues to determine which of the line bundles A and B is on top at the intersection.

[0048] Preferably, in step S5, the adaptive weighted determination of the vertical overlap direction between intersecting wire bundles includes: With intersection Centered on the intersection, the radius of influence is determined by the intersection. To determine the adaptive local analysis window, the window size can be set to... The approach segment is located outside the cross core area and is not obstructed; its depth can be reliably measured by step S4. Within the local analysis window, the intersecting bundles are divided into an unshaded approach segment located outside the cross core area and an overlapping area located within the cross core area; Based on the extrapolation of the depth profiles of the intersecting bundles to the center arc length of the intersection point in the unobstructed approximation section, the extrapolated depth and the difference between the extrapolated depths are obtained. Depth profiles are then fitted to bundles A and B on their unobstructed approximation sections. , And extrapolate to the center arc length of the intersection point extrapolation depth , The one with less depth (closer to the camera) is on top, i.e. < The time is determined by A pressing B. This clue uses a whole-segment approximation to amplify the millimeter-level single-point depth difference into a separable difference between two depth trend lines. The extrapolated depth difference is denoted as... ; The continuity of the center line, pixel integrity, and local linewidth variation of the intersecting line bundles within the overlapping area are extracted to obtain the occlusion continuity criterion.

[0049] The measured depth of the overlapping area is compared with the extrapolated depth of each intersecting line bundle, and the edge sharpness and line width retention at the intersection are extracted as geometric appearance criteria.

[0050] The four clues are as follows: Clue 1: Approaching the depth extrapolation: Provides a directional vote based on the extrapolation depth. Reliability The reliability is determined based on the depth fitting residual of the approximation segment; the smaller the fitting residual, the higher the reliability. Clue ② Occlusion Continuity: In the intersection core area, the upper layer bundle centerline visually passes continuously through the intersection point, while the lower layer bundle is occluded, showing breaks or narrowing of line width. The one that "passes continuously" is on top. This clue is completely independent of depth accuracy and is obtained from the binary centerline map obtained in step S1 and the continuity and breakage patterns of the bundle instances at the intersection point obtained in step S3, using directional voting. With reliability ; Clue ③ Measured Depth Attribution: The measured depth of the cross core area should be close to the extrapolated value of the upper layer harness but less than the extrapolated value of the lower layer. Independently verify Clue ① and give a direction vote. and reliability ; Clue 4: Geometric Appearance: The upper layer wiring harness has sharper edges and normal viewing width at intersections, while the lower layer has blurred edges and narrower viewing width, indicating a potential direction. and reliability .

[0051] Directional votes and reliability scores are generated for depth extrapolation, occlusion continuity, measured depth attribution, and geometric appearance, respectively. A comprehensive judgment score is calculated based on the adaptive weights of each directional vote. The comprehensive judgment score is the weighted sum of the products of each cue's directional vote, its reliability, and its weight. The confidence level for the top and bottom overlay directions is the ratio of the absolute value of the comprehensive judgment score to the weighted sum of the cues' reliability. When the extrapolated depth difference is less than the binocular depth resolution, the weight of the depth extrapolation criterion is reduced while the weight of the occlusion continuity criterion is increased. Specifically, directional votes are generated for depth extrapolation, occlusion continuity, measured depth attribution, and geometric appearance, respectively. and reliability Based on the adaptive weights of voting in each direction Calculate the overall judgment score , =1,2,3,4. Where... , , , Direction determination: Judge A to pressure B. The confidence level is 1. .

[0052] When the extrapolated depth difference Δz is less than the stereo depth resolution When Δz < 0.23 mm, the clue ① is unreliable. The weight of the depth extrapolation clue is automatically reduced and the weight of the occlusion continuity clue is increased to achieve a complementary criterion against depth noise.

[0053] This step reuses the intersection coordinates output in step S3. and radius of influence As a geometric prior, it is used to locate the approximation segment and the intersection core area, reflecting the integration of two-dimensional topological information into three-dimensional spatial reasoning.

[0054] S6: Construct a directed space topology graph with confidence based on the top and bottom overlapping directions of each intersection point, resolve the loops of low-confidence contradictory edges, and retain the real interlocking loops formed by high-confidence edges to obtain the hierarchical information, top-level label and interlocking label of each bundle.

[0055] Preferably, in step S6, a directed space topological graph with confidence is constructed, and loop resolution is performed on low-confidence contradictory edges, including: In this embodiment, loops may be generated independently at each intersection point, but there are two types of loops: noise loops (caused by deep noise or misjudgment due to occlusion) and real interlocking loops (caused by the twisting of wire harnesses, where A presses B at one intersection point and B presses A at another intersection point, which physically exists). The two types of loops need to be treated differently.

[0056] Please see Figure 6 As shown, wire harness instances are used as graph nodes, the overlapping relationships at intersections are used as directed edges, and the confidence level of the overlapping relationships is used as the edge weights. Specifically, the confidence level of the overlapping directions is... As edge weights, construct a weighted directed graph. ; Detect directed cycles in a directed space topological graph and obtain the minimum edge weight in each directed cycle. ; When the minimum edge weight is lower than the preset confidence threshold, the corresponding low confidence edge is identified as a noise conflict edge and deleted to resolve the noise loop formed by depth noise or occlusion misjudgment. When all edge weights in a directed ring are not lower than the confidence threshold, the directed ring is identified as a true interlocked ring. The directed ring is retained, and the bundles involved in the directed ring are marked as interlocked bundles. Specifically, a confidence threshold is set. .when If the condition is deemed a noisy cycle, the edge with the lowest confidence level in the cycle is removed to resolve the cycle (high-confidence decisions are trusted, and low-confidence contradictory decisions are discarded). When the confidence levels of all edges in the cycle are equal... If the loop is identified as a true interlocked loop, the loop is retained and the wiring harness on the loop is marked as "interlocked" - mutually locked and not suitable for direct grabbing; Noise loop elimination is achieved in low-confidence edge sets. Find the minimum weighted feedback arc set within the range: , The directed space topology graph after noise loop removal is topologically sorted to obtain the hierarchy of each wire bundle. Wire bundles that are not overlapped by other wire bundles and are not marked as interlocked are identified as top-level candidate wire bundles. Specifically, the directed graph after noise loop removal is topologically sorted to obtain the hierarchy of each wire bundle. Harnesses with an in-degree of 0 and not marked as interlocked are the top-level candidates that can be freely captured; harnesses marked as interlocked are locked together and thus have a lower priority in the capture decision.

[0057] S7: Based on the spatial topology map and the geometric properties of the wire harness instance, the candidate wire harness is scored for grasping, the target wire harness is selected, and a 3D grasping pose is generated.

[0058] Preferably, in step S7, the candidate wire harnesses are captured and scored based on the spatial topology map and the geometric attributes of the wire harness instances, including: For each candidate wire harness, calculate length integrity, structural continuity, depth confidence, occlusion level, mechanical accessibility, and top-level probability; The target harness is determined according to a weighted scoring function, which is: , in, , , , , and These represent length integrity (the proportion of visible wire harness length), continuity (smoothness of the centerline), depth confidence (the inverse of the depth fitting residual), occlusion degree (the proportion occluded by other wire harnesses), accessibility (whether the gripping point is within the workspace of the robotic arm), and top-level probability index (the highest in-degree is 0). , , , , , To correspond to the weighting coefficients, a negative sign is used before the occlusion level index to reduce the score of highly occluded wiring harnesses. , , , , , ; Reduce the capture priority of interlocked or highly obscured wire harnesses, and prioritize the selection of target wire harnesses from candidate wire harnesses that are not obscured, not interlocked, and are at a higher level.

[0059] Preferably, in step S7, selecting the target wire harness and generating a three-dimensional grasping pose includes: Search for continuous candidate intervals along the center line of the target bundle, and remove points within the radius of influence of the intersection point, occluded points, and points with a depth confidence score lower than the preset threshold. Within the remaining continuous candidate interval, multiple candidate grab points are sampled at preset intervals, and the local tangent direction is estimated based on the centerline fitting results in the neighborhood of the grab point. The two-dimensional coordinates of the capture point in the image coordinate system and the corresponding depth value are combined with the binocular camera calibration parameters (camera intrinsic parameters, extrinsic parameters, stereo correction parameters) to convert them into three-dimensional position coordinates (x, y, z); The grasping pose is generated based on the three-dimensional position coordinates, local tangent direction, end effector constraints of the robotic arm, and gripper attitude constraints, and the grasping command containing the three-dimensional position and attitude direction is output. When the candidate capture range for the target harness does not exist, its reachability is insufficient, or its capture confidence is below a preset threshold, the candidate harness is reselected based on the spatial topology map, or an overall shift strategy is triggered. For example, if the selected top-level harness is marked as interlocked or the capture point is occluded, the next higher-level harness that is not interlocked is automatically downgraded as the target; if all candidate harnesses cannot be safely captured, the overall shift strategy is implemented. Furthermore, the above working distance... Depth accuracy Confidence threshold Clue weight The values ​​for scoring and weighting are exemplary and can be adjusted according to the actual 3D camera calibration results and working conditions, and do not constitute a limitation on the present invention.

[0060] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should also be considered within the scope of protection of the present invention.

Claims

1. A method for visual perception and grasping pose estimation of complex wire harness robots based on centerline topology reconstruction and depth constraints, characterized in that, Includes the following steps: S1: Obtain the stereo-corrected left eye image, right eye image, and binocular camera calibration parameters; input the left eye image into the centerline topology reconstruction network to generate a binary centerline map. S2: Based on the binary centerline map, perform skeletonization processing, detect the endpoints and intersections on the skeleton, cluster the intersections into intersection regions, and break the skeleton into line segments within the intersection regions; S3: Construct color-independent endpoint pairing costs, construct endpoint pairings across the entire graph as a general graph maximum weight matching problem and solve it, aggregate line segment reconnection into multiple independent line bundle instances based on the matching results, and output the geometric prior information of each intersection point, including the intersection point coordinates, the intersection point influence radius, and the identity of the intersecting line bundle; S4: Using the pixel mask of the line bundle instance and the binary centerline map to define the depth acquisition area, obtain the sparse depth of each line bundle and fit a smooth depth profile along the centerline. S5: For each intersection point, depth profile extrapolation is performed based on the unobstructed approaching segment of the intersecting bundle outside the intersection point, and the occlusion continuity, measured depth of the intersection area and geometric appearance information are integrated to adaptively and weightedly determine the vertical overlap direction between the intersecting bundles, and output the vertical overlap direction and its confidence level. S6: Construct a directed space topology graph with confidence based on the up and down stacking directions of each intersection point, resolve the loops of low-confidence contradictory edges, and retain the real interlocking loops formed by high-confidence edges to obtain the hierarchical information, top-level label and interlocking label of each bundle. S7: Based on the spatial topology map and the geometric properties of the wire harness instance, the candidate wire harness is scored for grasping, the target wire harness is selected, and a three-dimensional grasping pose is generated.

2. The method for visual perception and grasping pose estimation of complex wire harness robots based on centerline topology reconstruction and depth constraints according to claim 1, characterized in that, In step S1, the centerline topology reconstruction network includes a high-resolution backbone network, a multi-scale feature alignment and fusion module, and a centerline prediction head: The high-resolution backbone network performs feature interaction and multi-scale fusion between branches of different resolutions to maintain high-resolution spatial features. The multi-scale feature alignment and fusion module performs attention enhancement and strip pooling enhancement on each level of features, interpolates each level of features to the highest resolution and then splices them along the channel direction, and compresses them into high-resolution fused features through a multi-voidity void space pyramid pooling module or a lightweight convolution fusion module. The centerline prediction head performs at least two levels of upsampling and channel reduction processing on the high-resolution fused features, and outputs a centerline heatmap through single-channel convolution, which is then normalized to generate the binary centerline map.

3. The method for visual perception and grasping pose estimation of complex wire harness robots based on centerline topology reconstruction and depth constraints according to claim 1, characterized in that, The centerline topology reconstruction network is trained using topology-aware loss, which includes soft-skeleton topology connectivity loss. And category balance loss The training objective is represented as: , in, and The soft skeleton topology connectivity loss is calculated based on the predictable soft skeletonization results of the predicted centerline and the labeled centerline, and is used to constrain the topology accuracy and topology sensitivity of the centerline. The training also employs a semi-supervised learning framework: a teacher model and a student model are constructed, the teacher model parameters are updated using the exponential moving average of the student model parameters, and the original input and perturbation input are applied to the unlabeled images respectively, so that the output of the teacher model and the output of the student model satisfy the consistency constraint.

4. The method for visual perception and grasping pose estimation of complex wire harness robots based on centerline topology reconstruction and depth constraints according to claim 1, characterized in that, In step S2, the intersection points are clustered into intersection point regions, including: A density-based spatial clustering method with noise is used to perform pixel-level clustering on candidate pixels at intersection points to obtain the initial region of intersection points and their center coordinates. Calculate the branch tangential angle and path continuity along the path connecting the intersections. Perform path-level merging on the initial regions of multiple intersections belonging to the same acute-angle branch structure to obtain the final intersection region. The radius of influence of the intersection point is adaptively determined based on the local wire diameter of the wire bundle within the intersection point area, and a skeleton area of ​​a preset shape is removed within the intersection point area, so that the skeleton on both sides of the intersection point is broken into independent line segments.

5. The method for visual perception and grasping pose estimation of complex wire harness robots based on centerline topology reconstruction and depth constraints according to claim 4, characterized in that, In step S3, a color-independent endpoint pairing cost is constructed, and the endpoint pairing across the entire graph is constructed as a general graph maximum weight matching problem and solved, including: Establish candidate pairing relationships for endpoints within the same intersection point; The pairing cost is constructed based on the endpoint tangential direction, the connection direction between endpoints, the double-end curvature alignment, and the end wire diameter. The pairing cost includes directional continuity cost, double-end curvature alignment cost, and wire diameter consistency cost, and its form is as follows: , in, , and For positive weights, As a cost to directional continuity, and Endpoints , Tangential unit vector at the location; This is the cost of double-curvature alignment. For the endpoint Point to endpoint , unit vector; This comes at the cost of consistent wire diameter. and Endpoints , The local line diameter at that location, the pairing cost is completely independent of color information; Candidate edge weights are obtained by subtracting the pairing cost from the pairing benefit benchmark, and only candidate pairings with edge weights greater than zero are added to the matching graph; Using the endpoints of the entire graph as vertices and candidate pairings as edges, the maximum weight matching algorithm for non-bipartite general graphs is used to obtain the global matching result that satisfies that each endpoint participates in at most one matching edge, and the line segments are reconnected and aggregated based on the global matching result.

6. The method for visual perception and grasping pose estimation of complex wire harness robots based on centerline topology reconstruction and depth constraints according to claim 1, characterized in that, In step S4, the depth acquisition region is defined using the pixel mask of the line bundle instance and the binary centerline map, the sparse depth of each line bundle is acquired, and a smooth depth profile is fitted along the centerline, including: The pixel set or instance mask of each wire bundle instance is used to limit the stereo matching search area in the left and right eye images, and background pixels and non-wire bundle areas are eliminated. Depth is directly acquired by a 3D structured light binocular camera in the wire bundle region, and the smoothness of the depth of adjacent centerline points is constrained by the direction of the wire bundle centerline. The depth at the edge point of the wire harness contour is used first, and the obtained discrete depth is propagated or interpolated to the center line of the wire harness. Discrete depth values ​​are extracted along the arc length of the centerline of each wire bundle, depth outliers are removed, and a smooth depth profile is obtained by fitting. ,in The coordinates of the arc length along the centerline of the wire harness; Structured light patterns are projected onto the surface of the wire harness using a 3D structured light binocular camera to enhance the depth availability of areas with weak texture.

7. The method for visual perception and grasping pose estimation of complex wire harness robots based on centerline topology reconstruction and depth constraints according to claim 6, characterized in that, In step S5, the adaptive weighted determination of the vertical overlap direction between intersecting wire bundles includes: The adaptive local analysis window is determined based on the coordinates of the intersection point and the radius of influence of the intersection point. Within the local analysis window, the intersecting wire bundles are divided into an unobstructed approach segment located outside the cross core area and an overlapping area located within the cross core area; The extrapolation depth and extrapolation depth difference between the intersecting line bundles are obtained by extrapolating the depth profile of the unobstructed approach section to the center arc length of the intersection point. The continuity of the center line, pixel integrity, and local linewidth variation of the intersecting line bundles within the overlapping area are extracted to obtain the occlusion continuity criterion. The measured depth of the overlapping area is compared with the extrapolated depth of each intersecting line bundle, and the edge sharpness and line width retention at the intersection are extracted as geometric appearance criteria. Directional votes and reliability scores are generated for depth extrapolation, occlusion continuity, measured depth attribution, and geometric appearance, respectively. A comprehensive judgment score is calculated based on the adaptive weights of the directional votes. The comprehensive judgment score is the weighted sum of the products of each cue's directional vote, its reliability, and its weight. The confidence score of the overlay direction is the ratio of the absolute value of the comprehensive judgment score to the weighted sum of the cues' reliability. When the extrapolated depth difference is less than the binocular depth resolution, the weight of the depth extrapolation criterion is reduced and the weight of the occlusion continuity criterion is increased.

8. The method for visual perception and grasping pose estimation of complex wire harness robots based on centerline topology reconstruction and depth constraints according to claim 7, characterized in that, In step S6, a directed space topological graph with confidence is constructed, and loop resolution is performed on low-confidence contradictory edges, including: The instances of the intersecting wire bundles are used as graph nodes, the overlapping relationships at the intersection points are used as directed edges, and the confidence level of the overlapping relationships is used as edge weights. Detect directed cycles in the directed space topology graph and obtain the minimum edge weight in each directed cycle; When the minimum edge weight is lower than the preset confidence threshold, the corresponding low confidence edge is identified as a noise conflict edge and deleted to resolve the noise loop formed by depth noise or occlusion misjudgment. When all edge weights in the directed ring are not lower than the confidence threshold, the directed ring is determined to be a real interlocked ring, the directed ring is retained, and the wire harness involved in the directed ring is marked as an interlocked wire harness. The directed space topology graph after noise loop elimination is topologically sorted to obtain the hierarchy of each wire bundle; the wire bundles that are not overlapped by other wire bundles and are not marked as interlocked are identified as top-level candidate wire bundles.

9. The method for visual perception and grasping pose estimation of complex wire harness robots based on centerline topology reconstruction and depth constraints according to claim 8, characterized in that, In step S7, candidate wire harnesses are captured and scored based on the spatial topology map and the geometric attributes of the wire harness instances, including: For each candidate wire harness, calculate length integrity, structural continuity, depth confidence, occlusion level, mechanical accessibility, and top-level probability; The target wire harness is determined according to a weighted scoring function, which is: , in, , , , , and These represent length integrity, continuity, depth confidence, occlusion level, reachability, and top-level probability, respectively. , , , , , To correspond to the weighting coefficient, the occlusion level index is negative to reduce the score of highly occluded wiring harnesses; Reduce the capture priority of interlocked or highly obscured wire harnesses, and prioritize the selection of target wire harnesses from candidate wire harnesses that are not obscured, not interlocked, and are at a higher level.

10. The method for visual perception and grasping pose estimation of complex wire harness robots based on centerline topology reconstruction and depth constraints according to claim 1, characterized in that, In step S7, the target harness is selected and a 3D grasping pose is generated, including: Search for continuous candidate intervals along the center line of the target bundle, and remove points within the radius of influence of the intersection point, occluded points, and points with a depth confidence score lower than the preset threshold. Within the remaining continuous candidate interval, multiple candidate grab points are sampled at preset intervals, and the local tangent direction is estimated based on the centerline fitting results in the neighborhood of the grab point. The two-dimensional coordinates of the capture point in the left eye image coordinate system and the corresponding depth value are combined with the binocular camera calibration parameters to convert them into three-dimensional position coordinates. The grasping pose is generated based on the three-dimensional position coordinates, local tangent direction, end effector constraints of the robotic arm, and gripper posture constraints, and a grasping command containing the three-dimensional position and posture direction is output. When the candidate grabbing interval of the target wire harness does not exist or its reachability is insufficient, the candidate wire harness is reselected according to the spatial topology map.