Robot grasping trajectory optimization method and system based on target detection

By filtering the entropy value of the normal vector direction and optimizing the approach direction by channel width constraints, the target pose spectrum and torque feasible set are constructed, and the potential field gradient map is generated. This solves the problems of missing channel constraint perception and torque instability in robot grasping trajectory planning, and achieves the stability and accuracy requirements of grasping tasks.

CN123149952APending Publication Date: 2026-11-24WUXI INSTITUTE OF TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611213001.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-11
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

When industrial robots perform grasping tasks in gripper-dense environments, the end effector must traverse the space-constrained gaps between grippers to reach the target. Existing target detection algorithms cannot effectively determine the geometric passability of the approach path, causing the planning system to generate an approach path that cannot be executed normally.

Method used

Approach direction is determined by filtering the entropy value of the normal vector direction and superimposing it with the channel width constraint. Target pose spectrum is constructed, candidate grabbing set and corridor margin value are obtained, torque feasible set and potential field gradient map are generated, and trajectory sequence is optimized to output grabbing execution command.

Benefits of technology

It effectively solves the problem of missing channel constraint perception in the process of converting visual detection results into approach trajectories, avoids inefficient one-by-one verification, identifies potential torque instability risks, and ensures motion stability and contact accuracy through potential field gradient reweighting and piecewise smooth configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123149952A_ABST
    Figure CN123149952A_ABST
Patent Text Reader

Abstract

This invention discloses a robot grasping trajectory optimization method and system based on target detection. It utilizes a target detection network to analyze the six-degree-of-freedom pose of each target to generate a target pose spectrum. Geometrically feasible approach candidate directions are jointly selected using the target surface normal vector direction entropy value and the approach channel width. Joint trajectories are generated for the candidate directions, and joint torque difference sequences are extracted to identify local sudden drop events. Dynamically stable feasible trajectories are jointly selected using the frequency of sudden drop events and the average torque load over the entire trajectory. Conflict nodes with opposing gradient directions in the potential field of feasible trajectories are identified, and the cosine value of the inner product of the unit vectors of the two potential fields drives the dynamic reduction of repulsion weights to resolve gradient deflection. Unequal weighted smoothing parameters are configured to distinguish between the approach segment and the contact segment, and directly executable grasping motion commands are output after segmented smoothing. This improves the planning quality and execution reliability of the robot's grasping trajectory in channel-constrained scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of industrial robot control technology, and in particular to a method and system for optimizing robot grasping trajectory based on target detection. Background Technology

[0002] When industrial robots perform grasping tasks in gripper-dense environments, the end effector must traverse the space-constrained gaps between grippers to reach the target. Target detection algorithms can output the target's position, category, and 3D pose, but the detection results only describe the target's own geometric attributes and do not cover the geometric passability of the end effector's approach path. The planning system has difficulty judging the actual effectiveness of approach in each direction based on this, and is prone to generating approach paths that cannot be executed normally due to obstructed passageways. Summary of the Invention

[0003] Purpose of the invention: In order to overcome the shortcomings of the existing technology, the present invention provides a robot grasping trajectory optimization method and system based on target detection. The approach direction is determined by filtering the entropy value of the normal vector direction and superimposing the channel width constraint in sequence, which solves the problem of missing channel constraint perception in the process of converting visual detection results into approach trajectory.

[0004] Technical Solution: To achieve the above objectives, the robot grasping trajectory optimization method based on target detection of the present invention includes the following steps: S1: Acquire scene images, obtain a target detection table, and generate a target pose spectrum; S2: Obtain a normal vector feature spectrum and a candidate grasping set based on the target pose spectrum, and determine the corridor margin value; S3: Obtain a joint trajectory library and a torque cost table based on the corridor margin value, and generate torque drop annotations; S4: Obtain a torque feasible set and a potential field gradient map based on the torque drop annotations, and determine the gradient conflict domain; S5: Obtain a trajectory sequence based on the gradient conflict domain, establish a segmented smooth configuration, and output grasping execution instructions; wherein, the specific steps of S2 are as follows: S2.1: Statistically analyze the distribution of normal vectors of each target in the target pose spectrum to obtain a normal vector feature spectrum; S2.2: Filter grasping directions with high clustering entropy within size constraints from the normal vector feature spectrum to obtain a candidate grasping set; S2.3: Identify strong constraint directions with small corridor margins based on the candidate grasping set, and determine the corridor margin value.

[0005] Further, in S2.2, the specific steps for obtaining the candidate crawling set are as follows: S2.21: Perform clustering of the normal vectors of each candidate region for the normal vector feature spectrum to obtain a clustering group set; S2.22: Calculate the entropy value of the normal vector of each group and the inter-class distance based on the clustering group set to generate a normal vector clustering entropy table; S2.23: Filter candidate directions with high entropy values ​​based on the normal vector clustering entropy table to establish a high-entropy candidate set; S2.24: Identify directions that satisfy the end effector size constraint based on the high-entropy candidate set to obtain the candidate crawling set.

[0006] Further, in S2.3, the specific steps for determining the corridor margin value are as follows: S2.31: Measure the obstacle spacing in the approach direction of each candidate point for the candidate capture set to obtain the corridor width distribution; S2.32: Identify the approach directions with smaller spacing and satisfying the safety gap from the corridor width distribution, and extract the set of strongly constrained directions; S2.33: Analyze the corridor constraint stiffness and path degrees of freedom in each direction based on the set of strongly constrained directions to generate a constraint feature distribution; S2.34: Identify the approach direction with the lowest and most feasible path degrees of freedom according to the constraint feature distribution, and determine the corridor margin value.

[0007] Further, in S3, the specific steps are as follows: S3.1: Construct the inverse kinematic trajectory of each candidate point based on the corridor margin value to obtain a joint trajectory library; S3.2: Measure the torque distribution of each trajectory node using the joint trajectory library to obtain a torque cost table; S3.3: Statistically analyze the sudden drop nodes and amplitudes of each trajectory based on the torque cost table to generate torque drop annotations; In S3.3, the specific steps for generating torque drop annotations are as follows: S3.31: Analyze the torque difference time series between each trajectory node based on the torque cost table to obtain a torque difference sequence; S3.32: Identify nodes with negative threshold changes in difference values ​​from the torque difference sequence and establish a negative sudden change node set; S3.33: Statistically analyze the number and amplitude of sudden drop nodes for each trajectory based on the negative sudden change node set to form a sudden drop feature distribution; S3.34: Identify the subsequent instability features of each sudden drop node based on the sudden drop feature distribution to generate torque drop annotations.

[0008] Further, in S3.34, the specific steps for generating torque drop annotations are as follows: S3.341: Track the subsequent torque fluctuations of each drop node based on the drop feature distribution to form a drop subsequent distribution; S3.342: Statistically analyze the correlation index between each drop amplitude and the duration of torque instability based on the drop subsequent distribution to generate an instability correlation table; S3.343: Filter drop nodes whose correlation index exceeds the validity threshold based on the instability correlation table to establish a valid correlation set; S3.344: Integrate the positions and correlation strengths of each valid drop node according to the valid correlation set to generate torque drop annotations.

[0009] Further, in S5, the specific steps are as follows: S5.1: Perform potential field gradient reweighting optimization from the gradient conflict domain to obtain a trajectory sequence; S5.2: Analyze the unequal weight smoothing features of the approach segment and contact segment based on the trajectory sequence, and establish a segmented smoothing configuration; S5.3: Perform segmented path smoothing of the end effector according to the segmented smoothing configuration, and output a grabbing execution command; In S5.1, the specific steps to obtain the trajectory sequence are as follows: S5.11: Calculate the cosine value of the gradient angle between each conflict node for the gradient conflict domain, and establish a conflict intensity map; S5.12: Analyze the inverse relationship between the degree of collinearity of the gradients of each node and the gradient weight from the conflict intensity map to obtain a weight allocation set; S5.13: Perform conflict-driven dynamic weight equilibrium iterative optimization based on the weight allocation set to generate an iterative optimization set; S5.14: Track the trajectory node sequence when the weights converge according to the iterative optimization set to obtain the trajectory sequence.

[0010] Further, in S5.13, the specific steps for generating the iterative optimization set are as follows: S5.131: Extract the conflict driving factor from the weight allocation ratio of each node in the weight allocation set and construct an initial weight matrix; S5.132: Gradually update the weights of the initial weight matrix with the conflict driving factor as the driving force to generate an iterative weight sequence; S5.133: Identify the iteration rounds where the gradient contribution tends to be balanced based on the iterative weight sequence and establish an equilibrium convergence set; S5.134: Analyze the path node sequence of the optimal trajectory solution of each convergence round according to the equilibrium convergence set to obtain the iterative optimization set.

[0011] Further, in S1, the specific steps are as follows: S1.1: Acquire scene images and obtain a target detection table by target detection network; S1.2: Analyze the six-degree-of-freedom pose of each target based on the target detection table to generate a target pose spectrum.

[0012] Further, in S4, the specific steps are as follows: S4.1: Based on the torque drop annotation, candidate points with few drop nodes and meeting the torque standard are selected to obtain a torque feasible set; S4.2: Using the torque feasible set, the nodes with sudden increase in potential field gradient of each path are tracked and the switching is triggered to obtain a potential field gradient map; S4.3: The path node with the strongest gradient conflict is located using the potential field gradient map to determine the gradient conflict domain; In S4.2, the specific steps to obtain the potential field gradient map are as follows: S4.21: The potential field distribution of each candidate path is sampled point by point for the torque feasible set to form a potential field sampling sequence; S4.22: The gradient magnitude and sudden increase magnitude of each sampling point are determined according to the potential field sampling sequence to generate a gradient magnitude distribution; S4.23: Based on the gradient magnitude... S4.24: Based on the gradient abrupt increase intensity exceeding a threshold, identify path nodes and establish a set of abruptly increased nodes; S4.3: Construct gradient switching labels for the abrupt increase positions of each candidate path based on the set of abruptly increased nodes to obtain a potential field gradient map; In S4.3, the specific steps for determining the gradient conflict domain are as follows: S4.31: Analyze the synthetic gradient direction and tangential direction of each node for the potential field gradient map to obtain a bidirectional gradient set; S4.32: Measure the angle between the two directions of each node and its rate of change based on the bidirectional gradient set to generate an angle change distribution; S4.33: Based on the angle change distribution, identify path nodes with abrupt angle changes and conflict intensity exceeding a threshold to form a conflict node set; S4.34: Delineate the neighborhood of each path conflict node based on the conflict node set to determine the gradient conflict domain.

[0013] Furthermore, the robot grasping trajectory optimization system based on target detection includes a perception and recognition module, a candidate generation module, a trajectory evaluation module, a potential field optimization module, and a trajectory output module. The perception and recognition module acquires scene images, identifies them through a target detection network to obtain a target detection table, and parses the six-degree-of-freedom pose of each target based on the target detection table to generate a target pose spectrum. The candidate generation module statistically analyzes the distribution of normal vectors of each target based on the target pose spectrum to obtain a normal vector feature spectrum, filters grasping directions with high clustering entropy within size constraints from the normal vector feature spectrum to obtain a candidate grasping set, and identifies strong constraint directions with small corridor margins based on the candidate grasping set to determine the corridor margin value. The trajectory evaluation module constructs the inverse kinematic trajectory of each candidate point based on the corridor margin value to obtain a joint trajectory library, and utilizes... The joint trajectory library measures the torque distribution of each trajectory node to obtain a torque cost table. Based on the torque cost table, it statistically analyzes the sudden drop nodes and amplitudes of each trajectory to generate torque drop annotations. The potential field optimization module is used to filter candidate points with few sudden drop nodes and meeting torque standards based on the torque drop annotations to obtain a feasible torque set. It uses the feasible torque set to track nodes with sudden increases in potential field gradients along each path and triggers switching to obtain a potential field gradient map. It uses the potential field gradient map to locate the path node with the strongest gradient conflict to determine the gradient conflict domain. The trajectory output module is used to perform potential field gradient reweighting optimization from the gradient conflict domain to obtain a trajectory sequence. Based on the trajectory sequence, it analyzes the unequal weighted smoothing features of the approach and contact segments to establish a segmented smoothing configuration. Based on the segmented smoothing configuration, it executes the end effector's segmented path smoothing output capture execution command.

[0014] Beneficial Effects: The robot grasping trajectory optimization method and system based on target detection of the present invention have the following beneficial effects:

[0015] 1) This invention determines the approach direction by superimposing the normal vector direction entropy value screening and the channel width constraint sequentially, which is different from the traditional approach of verifying the passability of visible normal vectors one by one. The candidate set with high entropy value is dispersed in direction and has not yet been narrowed by scene geometry. The density of implicit feasible directions in it is higher than that of the low entropy candidate set. First, the high-density feasible candidate interval is locked with entropy value, and then physical constraints are applied with channel width. This makes the approach direction set satisfy both directional stability and channel margin, avoiding the inefficiency of verifying one by one without being able to perceive the overall dispersion of the candidate set.

[0016] 2) Local sudden drops in torque are a typical precursor to execution instability when approaching restricted channels and frequent joint posture switching, rather than normal fluctuations. Existing methods use the peak torque exceeding the limit as the sole risk criterion, misjudging sudden drops within the rated range as harmless, resulting in potential risk paths not being identified during the planning stage. This invention extracts the joint torque difference sequence, identifies sudden drop events where the difference amplitude exceeds the statistical threshold, and uses the event frequency and the average load throughout the process to jointly determine feasibility, transforming instability identification from over-limit detection to sudden drop mode detection.

[0017] 3) Traditional artificial potential fields control the repulsion weight based on the distance from the end effector to the obstacle, which cannot perceive the degree of directional conflict between the gradients of the attraction and repulsion potentials. This invention replaces the weight adjustment basis with the cosine value of the inner product of the unit vectors of the two potential field gradients. The lower the cosine value, the stronger the conflict and the greater the decrease in the repulsion weight, making the weight correction directly related to the actual gradient conflict. Furthermore, unequal weight smoothing parameters are configured for the approach segment and the contact segment with the distance from the end effector to the target as the boundary. The contact segment has a higher weight than the approach segment, which resolves gradient deflection while ensuring the pose accuracy of the contact segment. Attached Figure Description

[0018] Figure 1 This is a flowchart illustrating the robot grasping trajectory optimization method based on target detection according to the present invention.

[0019] Figure 2 This is a schematic diagram of torque differential sudden drop sequence identification according to the present invention;

[0020] Figure 3 This is a structural block diagram of the robot grasping trajectory optimization system based on target detection according to the present invention.

[0021] Among them: 1-Comprehensive torque cost curve; 2-Torque drop section; 3-Subsequent observation window after the drop; 4-Fluctuation mean reference line; 5-Instability duration interval; 6-Smoothed difference curve; 7-Original difference curve; 8-Drop threshold line; 9-Negative sudden change node set; 10-Representative node of the drop event. Detailed Implementation

[0022] The invention will now be further described with reference to the accompanying drawings.

[0023] As attached Figures 1 to 3 The robot grasping trajectory optimization method based on target detection includes the following steps: S1: Acquire scene images, obtain a target detection table, and generate a target pose spectrum; S2: Obtain the normal vector feature spectrum and candidate grasping set based on the target pose spectrum, and determine the corridor margin value; S3: Obtain the joint trajectory library and torque cost table based on the corridor margin value, and generate torque drop annotations; S4: Obtain the torque feasible set and potential field gradient map based on the torque drop annotations, and determine the gradient conflict domain; S5: Obtain the trajectory sequence based on the gradient conflict domain, establish a segmented smooth configuration, and output the grasping execution command.

[0024] When industrial robots perform grasping tasks in gripper-dense environments, the end effector must traverse the space-constrained gaps between grippers to reach the target. Target detection algorithms can output the target's position, category, and 3D pose, but the detection results only describe the target's own geometric attributes and do not cover the geometric passability of the end effector's approach path. The planning system has difficulty judging the actual effectiveness of approach in each direction based on this, and is prone to generating approach paths that cannot be executed normally due to obstructed passageways.

[0025] To address the aforementioned issues, S2 includes the following specific steps: S2.1: Statistically analyze the distribution of normal vectors for each target based on the target pose spectrum to obtain a normal vector feature spectrum; S2.2: Filter grasping directions with high clustering entropy within size constraints from the normal vector feature spectrum to obtain a candidate grasping set; S2.3: Identify strong constraint directions with low corridor margins based on the candidate grasping set and determine the corridor margin value. Therefore, by constructing a geometric constraint evaluation system for target approach directions, the problem of missing channel constraint perception during the transformation of visual detection results into approach trajectories can be solved.

[0026] Existing joint trajectory planning schemes lack a mechanism to identify the precursor to dynamic instability, such as a sudden drop in torque, making it difficult to eliminate potential risk paths in advance in narrow segments where the hand and gripper postures frequently change.

[0027] To address the aforementioned issues, step S3 involves the following steps: S3.1: Constructing inverse kinematic trajectories for each candidate point based on the corridor margin value to obtain a joint trajectory library; S3.2: Determining the torque distribution of each trajectory node using the joint trajectory library to obtain a torque cost table; S3.3: Statistically analyzing the sudden drop nodes and magnitudes of each trajectory based on the torque cost table to generate torque drop annotations. Therefore, by establishing a dynamic feasibility screening mechanism for candidate trajectories, the problem of insufficient joint torque stability assessment can be solved.

[0028] The gradients of the attraction and repulsion potentials in the artificial potential field method tend to be directionally opposed near the narrowest point of the channel, and the synthesized gradient deviates from the path tangent, causing the trajectory to deflect. When the end effector switches to the contact section, the existing method also lacks a differentiated smoothing output mechanism for the difference in accuracy between the two stages.

[0029] To address the aforementioned issues, S5 includes the following specific steps: S5.1: Perform potential field gradient reweighting optimization from the gradient conflict domain to obtain a trajectory sequence; S5.2: Analyze the unequal weighting smoothing features of the approach and contact segments based on the trajectory sequence to establish a segmented smoothing configuration; S5.3: Perform segmented path smoothing on the end effector according to the segmented smoothing configuration and output a grasping execution command. Therefore, by constructing a potential field gradient adaptive reweighting and segmented smoothing framework, the potential field gradient direction conflict problem can be resolved.

[0030] Based on the above improvements, the present invention finally generates grasping execution instructions that meet the requirements of motion stability and contact accuracy. The steps are detailed below.

[0031] S1.1: Acquire scene images and obtain a target detection table through target detection network.

[0032] Specifically, an industrial camera and a depth sensor mounted on the robot's wrist synchronously acquire scene images of the workspace. The scene image is composed of two layers of data: a pixel-aligned color image and a depth image. The color image records the texture, color, and contour edges of the target surface, while the depth image records the distance of each pixel from the object surface along the camera's optical axis. After joint calibration of the camera's intrinsic and extrinsic parameters, the two images are aligned pixel by pixel, so that each pixel in the color image is uniquely associated with a three-dimensional spatial coordinate. The acquired scene image is first corrected by lens distortion to eliminate barrel and pincushion distortions, and then the pixels are filtered point by point according to the effective depth range. Isolated pixels that fall outside the effective grasping space above the worktable or have missing depth readings are judged as invalid and discarded. Reading gaps in the depth image caused by the stacking of material frame parts, mutual obstruction, or close contact with the frame wall are filled with the median of the neighboring depth or kept as invalid marks according to the area size. The preprocessed scene image is fed into the object detection network to identify the target table. The object detection network performs instance segmentation and category determination for each target in the scene image, and simultaneously outputs four results for each target: category label, 2D bounding box, pixel-level foreground mask, and detection confidence. The network also extracts the 3D point cloud fragment belonging to the target from the aligned depth map with the foreground mask as the range. The target table compiles the category, bounding box, mask point cloud fragment, and detection confidence of each target row by row. The number of rows in the table is equal to the number of targets successfully segmented in the current scene image. Rows with detection confidence below the decision threshold are deleted from the target table as suspected false detections.

[0033] S1.2: Based on the target detection table, analyze the six-degree-of-freedom pose of each target and generate the target pose spectrum.

[0034] Specifically, principal component analysis is performed on the mask point cloud fragments of each row in the target detection table. First, the points are centered using the centroid of the point cloud as the origin, and a three-dimensional covariance matrix is ​​constructed. Then, eigenvalue decomposition is performed on the covariance matrix, and the three eigenvectors are arranged in descending order of their corresponding eigenvalues ​​to form the three principal axes of the target body coordinate system and corrected to a right-handed system. The three principal axis directions form a rotation matrix, and the centroid coordinates form a translation vector. The two are combined to form the six-degree-of-freedom pose of the target relative to the camera coordinate system. For each target after the pose is determined, a local tangent plane is fitted to the k nearest neighbors of each point on its mask point cloud, and the normal of the tangent plane is taken as the surface normal vector of that point. After unifying the sign of the normal vector according to the centroid orientation, it is calibrated by hand and eye and transferred to the world coordinate system to obtain the set of surface normal vectors of the target. The target pose spectrum stores three items for each target: rotation matrix, translation vector, and surface normal vector set. The number of targets contained is equal to the number of effective rows in the target detection table. The target pose spectrum provides spatial orientation and normal data for each target for subsequent normal vector distribution statistics and grasping direction solution. When a target mask point cloud fragment has too few points due to the target being too far from the camera or strong surface reflection, the covariance matrix is ​​rank deficient and principal component analysis cannot stably determine the principal axis orientation. The rotation matrix of the target's six-degree-of-freedom pose degenerates into an identity matrix, and only the translation vector remains valid. The target pose spectrum uses the identity rotation matrix to identify the orientation of such targets, which is unsolvable. When its surface normal vector is included in the target pose spectrum, it is uniformly recorded as [0,0,1] vertically upward along the world coordinate system, so that the target is included in the vertical contact direction in subsequent statistics without interfering with the orientation clustering of other targets.

[0035] S2.1: Statistically analyze the distribution of normal vectors of each target for the target pose spectrum to obtain the normal vector feature spectrum.

[0036] Specifically, the set of surface normal vectors of all targets in the target pose spectrum is collected. Each normal vector is normalized to a unit length and then projected onto the same unit sphere. The landing point on the sphere is marked by the azimuth angle φ∈[0°,360°) and the elevation angle β∈[-90°,90°]. The sphere is divided into 36 grids at 10° intervals along the φ axis and 18 grids at 10° intervals along the β axis, resulting in 648 directional grids. The orientation of the normal vector falling into each grid is represented by the direction of the grid center. Each normal vector is located in its directional grid by integer division based on its (φ,β) and the count is accumulated. When the landing point is exactly on the grid boundary, it is assigned to the grid with the smaller number to avoid double counting. The count of each grid is then divided by the total number of normal vectors involved in the statistics to obtain the normalized density. The normal vector feature spectrum stores normalized densities in each direction. Directional cells with a density higher than 0.05 are designated as dominant cells, and their center vectors are used as initial anchor points for subsequent clustering. Directional cells with a density lower than 0.05 are retained to maintain complete spherical coverage. The clustering location and number of dominant cells on the sphere directly determine the range of classes to be divided in subsequent clustering. For flat workpieces with their top surface facing upwards, the normal vectors are concentrated in a few directional cells with an elevation angle close to 90°. For side-standing parts, the normal vectors are horizontal and fall into the equatorial zone with an elevation angle close to 0°. In mixed material scenarios, the normal vectors of different parts are scattered in multiple locations on the sphere. The distribution pattern of dominant cells in the normal vector feature spectrum thus corresponds one-to-one with the diversity of the target posture on site. The [0,0,1] normal vectors derived from the identity matrix pose will be piled up in a large number of 90° elevation angle orientation grids, causing their density to rise abnormally. Therefore, once the normalized density of this grid exceeds 0.3, the part exceeding 0.3 is distributed back to each dominant grid according to the current density ratio of the other dominant grids, and then all orientation grids of the normal vector feature spectrum are renormalized to avoid artificially increasing the anchor point weight of the orientation grid for a small number of unsolvable targets.

[0037] S2.2: Filter the crawling directions with high clustering entropy within the size constraint from the normal vector feature spectrum to obtain a candidate crawling set. In one embodiment, the specific steps for obtaining the candidate crawling set in S2.2 are as follows.

[0038] S2.21: Perform clustering of the normal vectors of each candidate region for the normal vector feature spectrum to obtain a clustering set.

[0039] Specifically, the inverse cosine of the angle between two unit vectors, i.e., the geodesic distance, is used to measure the directional difference. Among the dominant cells of the normal vector feature spectrum, adjacent dominant cells with a geodesic distance less than 20° are merged into the same candidate cluster region. Each candidate region represents a beam of target contact directions with similar orientations in the scene. Within each candidate region, its normal vectors are grouped using spherical k-means, with the number of groups K being the square root of the number of dominant cells in the region, rounded up. The initial cluster centers are the K dominant cells with the highest density within the region. In each iteration, each normal vector within the region is first assigned to the cell with the highest geodesic distance. For the nearest cluster center, the weighted spherical mean of each class member is calculated using the normalized density of the corresponding direction grid in the normal vector feature spectrum as weight. The grid center vectors are then summed according to density and L2 normalized to become the updated cluster centers. When a member in a group drops to 0, the cluster center is reset using the normal vector farthest from the cluster center within the group. This process continues until the geodesic displacement of all cluster centers in two adjacent rounds is less than 0.1°, at which point convergence is considered achieved. If the number of dominant grids in a candidate region is too small, and K is less than 2 after taking the square root, the region is no longer subdivided and is merged into a single group. The cluster center is the direction of the normal vector spherical mean normalized from all normal vectors within the region. The cluster group set stores three pieces of data for each group: the converged cluster center direction vector, the normal vector number belonging to the group, and the number of group members. The sum of the number of all group members equals the total number of normal vectors participating in the clustering of the normal vector feature spectrum. The number of groups contained in the cluster group set is the number of effective grabbing direction candidates extracted from the current scene. When similar workpieces are neatly stacked, the normal vectors are highly concentrated and form only a few groups. When multiple parts are mixed and loaded, the normal vectors are scattered in many places on the sphere and form more groups.

[0040] S2.22: Based on the clustering group set, calculate the entropy value of the normal vector of each group and the distance between groups to generate a normal clustering entropy table.

[0041] Specifically, for each cluster in the cluster set, its covered spherical area is further divided into directional subgrids at 5° intervals. Each subgrid defines a 5°×5° spherical directional region. The ratio of the number of members in each subgrid to the total number of members in the cluster is used as the probability p_i. Substituting this into the Shannon entropy H=-Σp_i·log2(p_i), the normal vector entropy value of the cluster is calculated. A higher entropy value indicates that the normal vector within the cluster is distributed in more subgrids, and the angular domain available for stable contact is wider. Then, for any two clusters in the cluster set, the geodesic distance of their cluster center vectors is taken. The minimum geodesic distance of each cluster to all other clusters is taken as the nearest neighbor interval of that cluster. A larger nearest neighbor interval indicates that the direction represented by that cluster is relatively isolated on the sphere and is clearly distinguishable from other grasping directions. The normal cluster entropy table lists the entropy value and the nearest neighbor interval for each cluster. The former characterizes the directional coverage width, and the latter characterizes the directional independence. The number of clusters listed in the normal cluster entropy table is equal to the total number of clusters in the cluster set. For rotating bodies like cylinders and rollers, the surface normal vectors are almost uniformly distributed along the equator, with each cell having a similar probability and thus a high entropy value. For parts like flat plates and gaskets, the normal vectors are concentrated in a few cells on the top surface, resulting in a low entropy value. A high entropy value means the end effector can stably clamp within a wider contact angle range and is more tolerant of material attitude deviations. The normal clustering entropy table quantifies this tolerance into a directly comparable value between groups. When all the normal vectors of a group fall into the same cell, its probability p1 is 1, and its entropy value calculated by the formula is zero. The normal clustering entropy table replaces zero entropy with a minimum positive value of 0.01 for such unidirectionally extremely clustered groups, preventing high-density unidirectional groups from being directly eliminated in subsequent threshold screening due to zero entropy and losing their candidate status.

[0042] S2.23: Based on the normal clustering entropy table, select candidate directions with high entropy values ​​to establish a high-entropy candidate set.

[0043] Specifically, the mean μ and standard deviation σ of the entropy values ​​of all groups in the normal clustering entropy table are calculated. Groups with entropy values ​​significantly higher than the average level are selected using μ + 0.5σ as the screening threshold. The threshold is set to 0.5 times the standard deviation, rather than an integer multiple, to balance directional diversity with controllable candidate size. Under the assumption of normal distribution, this threshold typically filters out 20% to 40% of the total number of groups, eliminating low-entropy groups with a single direction without excessively tightening the candidate size. Selected groups are then paired to check the nearest neighbor interval; any two selected groups with an interval less than 1... For directions with an angle of 5°, the class center vectors of each candidate direction are weighted and averaged according to the number of members in each group, and then merged into a single candidate direction. The entropy value of the merged direction is the weighted average of the number of members in both groups to prevent groups with similar directions from repeatedly occupying candidate positions. The high-entropy candidate set includes the class center vectors of each candidate direction after merging or retaining them, along with their entropy values. The candidate directions are arranged from highest to lowest entropy value, with the top candidate directions having the widest contact angle range, which can tolerate larger material attitude deviations. Their class center vectors will be used as the approach axes of the end effector and sequentially enter subsequent dimensional verification. When parts are continuously fed onto the conveyor belt in random attitudes, gripping directions with a wide permissible contact angle range can absorb the piece-by-piece drift of the material attitude. The high-entropy candidate set prioritizes retaining these approaching directions that are insensitive to attitude changes, thereby improving the attitude adaptability of batch gripping from the source. If there are fewer than two groups in the normal clustering entropy table with an entropy value exceeding μ+0.5σ, the threshold is relaxed from μ+0.5σ to μ and the selection is repeated. If there are still fewer than two, the top two groups with the highest entropy values ​​are selected to form a high-entropy candidate set, ensuring that there are at least two candidate directions in the size verification process.

[0044] S2.24: Identify directions that satisfy the end effector size constraints based on the high-entropy candidate set, and obtain a candidate grasping set.

[0045] Specifically, the class center vectors of each candidate direction in the high-entropy candidate set are taken as the proximity axis direction. A cross-sectional coordinate system orthogonal to this proximity axis is established, and its two axes are aligned with the finger opening and closing direction and the palm feeding direction of the end effector, respectively. The rated finger unfolding width W and palm depth D are projected onto the two axes of the cross-section to obtain the cross-sectional envelope. An orthogonal cross-section of the target point cloud is cut every 10 mm along each candidate direction. For the target contour of each cross-section, the convex hull is first calculated, and then the minimum bounding rectangle is calculated using the rotating caliper algorithm. The cross-section with the smallest bounding rectangle area among all cross-sections is taken as the tightest cross-section. When the difference between the two axes of the bounding rectangle of the tightest cross-section and the corresponding axis of the cross-sectional envelope is not less than 5 mm, the size of the candidate direction is determined to be acceptable. The candidate grasping set includes all directions that have passed the verification. Each direction is accompanied by a class center vector, entropy value, and the gap margin of the tightest cross-section. The candidate grasping set is still arranged in descending order of entropy value for each direction. The gap margin is used to identify the tightest passability of each direction. When cutting into the gap between the part and the fixture wall from the side, the width of the gap that the finger needs to pass through gradually changes with the approach depth. The tightest section often appears at the widest part of the workpiece or the tightest part of the fixture constraint. Using this section as the verification benchmark can ensure that the end effector does not interfere with the fixture or adjacent parts throughout the entire approach stroke. Therefore, the candidate gripping set retains only the approach directions that are geometrically collision-free throughout the entire process. If all candidate directions in the high-entropy candidate set do not reach a 5mm margin, the safety margin is reduced to 2mm, and the high-entropy candidate set is re-verified. If no direction passes through, the candidate gripping set retains only the candidate direction with the largest gap margin as a fallback output.

[0046] S2.3: Identify strong constraint directions with small corridor margins based on the candidate capture set, and determine the corridor margin value. In one embodiment, the specific steps for determining the corridor margin value in S2.3 are as follows.

[0047] S2.31: Measure the obstacle spacing in the approach direction of each candidate point for the candidate capture set to obtain the corridor width distribution.

[0048] Specifically, an approach channel is drawn by extending 300mm backward along the approach axis of each candidate direction in the candidate grasping set, with the target centroid as the approach endpoint. Within this channel, 15 path sampling points are placed every 20mm, with the first sampling point 300mm from the approach endpoint and the last 20mm from it, covering the entire approach journey point by point. For each sampling point, all obstacle points within an 80mm radius neighborhood of the scene point cloud are queried using that sampling point as the sphere center. Obstacle points are taken from all points in the scene point cloud that do not belong to the target itself. The perpendicular distance from the nearest obstacle point to the approach axis is subtracted from the maximum cross-sectional radius of the end effector obtained from W and D, which is taken as the obstacle spacing for that sampling point. A negative spacing indicates that the end effector has penetrated the obstacle at that point. The corridor width distribution is arranged according to the candidate direction, with each of the 15 sampling points forming an obstacle spacing sequence. The minimum value of the sequence is the narrowest corridor spacing in that direction. The corridor width distribution uses the narrowest spacing to measure the passage capacity of each candidate direction. The 15-point spacing sequence for each direction also retains the path coordinates of each sampling point for direct use in subsequent constraint feature parsing. When approaching from above the material frame, the initial section of the approach channel is relatively open, but as it gets closer to the target, it is clamped by the frame wall or adjacent stacked parts. The obstacle spacing monotonically narrows along the approach direction. In the candidate grab set, the closer to the obstacle pile in the approach direction, the smaller the narrowest corridor spacing. The narrowest corridor spacing often falls in the last few sampling points near the end point. If there are fewer than 3 obstacle points in the 80mm neighborhood of each sampling point in a certain direction in the candidate grab set, the query radius is expanded to 150mm and the measurement is repeated. If there are still fewer than 3 obstacle points after the expansion, the sampling points are directly assigned a value of 200mm. Based on this, the narrowest spacing in that direction is recorded as 200mm and regarded as a wide corridor direction with sparse obstacles.

[0049] S2.32: Identify the approach directions with small spacing that meet the safety clearance from the corridor width distribution, and extract the set of strongly constrained directions.

[0050] Specifically, for the narrowest corridor spacing in each candidate direction of the corridor width distribution, 5mm is taken as the lower limit for safe passage, and 15mm as the upper limit for corridor leeway. The 5mm lower limit is determined by the sum of the maximum cross-sectional dimension tolerance of the end effector and the motion control error. When the spacing is lower than this value, even with normal control accuracy, the end effector may still come into contact with and collide with obstacles. The 15mm upper limit is taken from batch debugging experience. When the spacing is higher than this value, the end effector has sufficient lateral adjustment margin and no longer poses a strong constraint on path accuracy. The narrowest corridor spacing in the corridor width distribution falls at 5mm. Candidate directional corridors in the range of mm to 15mm are narrow, but the end effector can still pass through. Directions with a minimum spacing of less than 0 have already penetrated, while directions with a corridor of more than 15mm have ample space. These two types of directions are not included in the strong constraint range. The strong constraint direction set registers the minimum corridor spacing and its safety margin (obtained by subtracting 5mm from the minimum spacing) for each direction, and arranges them in ascending order of minimum spacing. Directions with a small minimum spacing have limited lateral tolerance space for the end effector and have stringent requirements for the pose accuracy of the entire approach stroke. They are the core objects of subsequent corridor constraint feature analysis. Cutting into the gap between the workpiece and the fixture wall from the side is a typical strong constraint situation. The gap width is often only a few millimeters wider than the end effector. The gripper must be precisely aligned to cut in without collision. In this type of direction, the minimum corridor spacing is small and the safety margin is extremely limited in the strong constraint direction set, making it most dependent on control accuracy. If the number of directions in the corridor width distribution that fall within the range of 5mm to 15mm is 0, the upper limit is widened from 15mm to 20mm, and the corridor width distribution is re-filtered. If no direction is satisfied after widening, the strong constraint direction set retains only the direction with the smallest narrowest corridor spacing and greater than 0, and sends it to the subsequent analysis.

[0051] S2.33: Based on the strongly constrained direction set, analyze the corridor constraint stiffness and path degrees of freedom in each direction to generate the constraint feature distribution.

[0052] Specifically, the difference in obstacle spacing between adjacent sampling points corresponding to the corridor width distribution in each direction of the strongly constrained direction set is divided by a step size of 20mm to obtain the segment spacing change rate. The maximum absolute value of the segment spacing change rate in this direction is taken as its corridor constraint stiffness. A high stiffness indicates that the obstacle spacing along the path near the passage changes drastically, and the end effector can cause the spacing to drop from safe to dangerous with a small displacement in this segment. An orthogonal xy coordinate is established on the cross section of the sampling point where the narrowest spacing of the corridor is in this direction. The maximum lateral displacement of the end effector along the two axes is tested to ensure that the obstacle spacing is not less than 2mm. If the maximum displacement of a single axis exceeds 3mm, the axis direction is recorded as a path degree of freedom. If both axes exceed 3mm, the path degree of freedom is 2. If neither exceeds 3mm, the path degree of freedom is 0. The constraint feature distribution gives the corridor constraint stiffness and path degree of freedom for each direction. The two together completely characterize the anti-disturbance capability of the most dangerous section of the path near this direction. In the constraint feature distribution, the direction with 0 path degree of freedom has almost no lateral maneuvering space at the narrowest part of the corridor. When parts are densely stacked and the gripper must cut through the gaps between adjacent parts, the gaps often narrow abruptly and then widen abruptly along the approach direction. The corridor constraint stiffness increases sharply in the narrowing section, and the path degree of freedom drops to 0 at the narrowest point. In strongly constrained directions, the most dangerous section on the approach path is determined by both stiffness and degree of freedom. If there are more than three consecutive sampling points with negative obstacle spacing in a certain direction of the strongly constrained direction approach channel, the corridor constraint stiffness is changed to the spacing jump variable at the boundary of the penetration section divided by the sampling step size, and the path degree of freedom is directly assigned as -1. The constraint characteristic distribution is indicated by a path degree of freedom of -1, indicating that the entire approach in that direction is impassable and should be preferentially eliminated in subsequent sorting.

[0053] S2.34: Identify the approach direction with the lowest path freedom and feasible approach direction based on the constraint feature distribution, and determine the corridor margin value.

[0054] Specifically, firstly, the entire penetration direction with a path degree of freedom of -1 is eliminated from the direction distribution of constraint features. The remaining directions are then sorted from low to high based on the path degree of freedom as the primary sorting key. If the path degrees of freedom are the same, the corridor constraint stiffness is used as the secondary sorting key to sort them from low to high. A low path degree of freedom means that the lateral margin for avoiding collisions in that direction is the least and should be retained as the controlled approach object. The secondary sorting based on stiffness ensures that the direction with the most stable path spacing is selected first among the directions with the same degree of freedom. The narrowest corridor spacing of the first sorted direction is taken as the net margin (after deducting the cross-sectional radius of the end effector). A positive net margin means that there is still usable physical space in the approach channel, while a net margin of 0 means that the end effector is exactly tangent to the corridor wall. The corridor margin value is based on this net margin and is accompanied by two auxiliary quantities: the approach direction vector of the first sorted direction and the corridor constraint stiffness. If the net margin in the corridor margin value is small, the lateral safety boundary left for the end effector in the approach channel is narrow, which requires strict motion control accuracy. Dense stacking is a typical working condition with the smallest corridor margin. The net margin between the end effector and the surface of adjacent parts is sometimes only 1 to 2 mm. In this case, the corridor margin directly determines whether the robot can complete collision-free grasping within the normal control error. When the net margin is insufficient, it is necessary to reduce the speed to approach or choose another approach strategy to compensate for the control error. After removing the path degrees of freedom -1 from the constraint feature distribution, if all the path degrees of freedom in the remaining directions are the same, then the net margin corresponding to the direction with the narrowest corridor spacing is taken as the core value of the corridor margin. This situation indicates that the passage difficulty of each feasible approach direction on site is highly similar and the selection space is limited.

[0055] S3.1: Construct the inverse kinematic trajectory of each candidate point based on the corridor margin value to obtain the joint trajectory library.

[0056] Specifically, taking the approach direction vector contained in the corridor margin value as the approach axis of the end effector and the net margin d_net as the upper limit of the lateral offset, iterative inverse kinematics solutions are performed step by step for each candidate grasping point starting from the current robot configuration; the joint increment Δq at each step is updated according to the product of the Jacobian pseudo-inverse and the end effector pose deviation, and the lateral component of the increment is constrained to be ‖J_⊥(q)·Δq‖2≤λ·d_net, where J_⊥ is the lateral submatrix of the Jacobian matrix and the coefficient λ is 0.6, so that the end effector The lateral offset in a single step does not exceed 60% of the net margin, thus directly converting the gallery geometry margin into solving the lateral constraints. After each step, the actual pose of the end effector is calculated back using forward kinematics. When the pose error exceeds 1mm, the damped least squares method with a damping coefficient of 0.01 is used to resolve the problem to suppress oscillations near singularities. At the same time, joint-by-joint checks are performed to see if the joint limits are exceeded. Joints that exceed the limits are first fixed at the limit value and then the increments are redistributed with the remaining degrees of freedom. After convergence, the process proceeds to the next step until the end effector reaches the candidate grasping point. The joint trajectory library stores a sequence of joint angle nodes and the corresponding end effector pose sequence for each candidate point. Each sequence usually contains 15 to 30 nodes. The smaller the net margin of the gallery margin for a candidate point, the tighter the lateral constraints and the narrower the feasible deviation band of the node sequence in the joint space. The joint angle vectors of each node in the sequence are the direct inputs to the subsequent dynamic equations. The access channel for parts within the fixture is constrained by the side walls. The net margin of the corridor determines the maximum lateral deviation of the gripper from the theoretical access axis. When the corridor margin value and the corridor constraint stiffness exceed 1.5 mm / mm, the inverse kinematic step length is reduced from 0.01m to 0.005m, and the number of trajectory nodes of the candidate point in the joint trajectory library is doubled accordingly. This avoids the loss of control of lateral constraints after a large step length crosses a section with a sudden change in spacing. The physical constraints of the corridor are written into the trajectory generated after solving the lateral constraints, which naturally adapts to the corridor geometry.

[0057] S3.2: Measure the torque distribution of each trajectory node using the joint trajectory library to obtain the torque cost table.

[0058] Specifically, the node time interval Δt is obtained by dividing the actual inverse kinematic step length of the trajectory by the rated approach speed of the end effector, 0.05 m / s. The angular velocity vector v is obtained by centrally differentiating the joint angles of adjacent nodes in the joint trajectory library, and the angular acceleration vector a is obtained by further differentiating. Forward differential is used for the first node, and backward differential is used for the last node to avoid out-of-bounds values. The joint angle vector q of each node (v and a are its angular velocity and angular acceleration vectors, respectively) is substituted into the robot dynamics equation τ = M(q)a + C(q,v)v + G(q), where M(q) is... The joint space inertia matrix, C(q,v) is the Coriolis and centrifugal force matrix, and G(q) is the gravity term vector. The output torque vector of the six joints is obtained by solving node by node. The above M(q), C(q,v), and G(q) are recursively constructed according to the mass, center of mass position and inertia tensor of each link through DH parameters, and then calculated by updating the configuration node by node to make the torque fit the actual mass distribution. The L2 norm Λ_k=‖τ_k‖2 of the torque vector of each node is taken as the comprehensive torque cost of that node. A high comprehensive torque cost indicates that the total load of the joint at that node is heavy. The torque cost table lists the joint torque vectors and the overall torque cost for each node of each trajectory. When a trajectory has fewer than three nodes and central difference cannot be applied, all nodes are approximated using forward difference, resulting in a slight decrease in calculation accuracy but not affecting the relative comparison of subsequent sudden torque drops. The overall torque cost curve, unfolded along the node number, depicts the evolution of dynamic loads during the robot's approach process. The locations of the peak and valley nodes in the torque cost table reveal the sections of the trajectory where load changes most drastically. When the robotic arm extends to grasp the edge of the material box, the cantilever effect is significant. The farther the end effector is from the base, the greater the joint gravitational torque and moment of inertia. The overall torque cost of the later nodes of such candidate trajectory points is often much higher than that of the earlier sections, making these sections high-risk for subsequent sudden torque drops.

[0059] S3.3: For the torque cost table, statistically analyze the sudden drop nodes and magnitudes of each trajectory, and generate torque drop annotations. In one embodiment, the specific steps for generating torque drop annotations in S3.3 are as follows.

[0060] S3.31: Analyze the torque difference time sequence between each trajectory node for the torque cost table to obtain the torque difference sequence.

[0061] Specifically, such as Figure 2As shown, the difference between the comprehensive torque cost curve 1 of adjacent nodes in the trajectory of each candidate point in the torque cost table constitutes the torque difference value between that node, directly reflecting the rate and direction of change of the comprehensive torque cost curve 1 between that node. The length of the difference sequence is equal to the number of trajectory nodes minus one. A negative difference value indicates a decrease in the comprehensive torque cost between that node. A continuous large negative value segment means that the comprehensive torque cost of that trajectory segment continues to drop sharply within the torque drop segment 2. To suppress the pseudo-difference peak introduced by the calculation error of adjacent nodes, a three-node moving average smoothing is applied to the original difference curve 7 to obtain a smoothed difference curve 6. The mean of the difference between the current node and the previous and next nodes is used to replace the current difference value. Smoothing makes the abnormal difference of a single point evenly distributed to adjacent nodes so as not to be misjudged as a sharp drop. The dimension of the comprehensive torque cost in the torque cost table is torque. The dimension remains unchanged after differencing. Therefore, the torque difference value does not need to be normalized to be compared across trajectories, making the sharp drop amplitude of each trajectory have a consistent and comparable caliber. The torque difference sequence lists the original difference value and the smoothed difference value side-by-side at each node interval. The original value preserves local details, while the smoothed value suppresses noise. The two are compared in parallel. The alternating positive and negative segments in the torque difference sequence represent torque oscillation segments, and the continuous large negative value segments represent continuous sudden drop segments. The negative node with the largest absolute value of the difference amplitude is the position where the overall torque cost changes most drastically, which is the key to identifying sudden drops. As the robot gradually retracts its arm from the extended cantilever configuration towards the target, the shoulder and elbow joint loads first increase and then decrease with the configuration. The torque difference sequence forms a dense area of ​​negative differences near the configuration inflection point, and the difference amplitude increases with the degree of influence of the configuration segment on the joint load. When the total number of nodes of a certain trajectory is less than three and cannot be smoothed, the original difference value is directly used for sudden change identification. The identification resolution is based on the original difference value without affecting the relative judgment of the sudden drop amplitude.

[0062] S3.32: Identify nodes whose difference values ​​change abruptly beyond the threshold in the torque difference sequence and establish a set of nodes with abrupt negative changes.

[0063] Specifically, the sudden drop threshold 8 is jointly determined by subtracting 1.5 times the standard deviation from the mean of the smoothed difference curves 6 of all trajectories in the torque difference sequence. It typically covers only about 7% of the nodes at the lowest end of the difference sequence to ensure that only truly severe torque drop events are selected. The starting node of the interval between nodes in the torque difference sequence below the sudden drop threshold 8 is identified as a negative sudden change node and merged into the negative sudden change node set 9. Adjacent consecutive sudden change nodes are merged into the same sudden change event, with the node with the most negative difference value serving as the representative node 10 of the sudden drop event. This merging summarizes physically continuous sudden drop processes into a single event rather than multiple isolated nodes. The threshold is set to the mean minus 1.5 times the standard deviation, rather than a fixed constant, allowing the threshold to adaptively scale with the dispersion of torque differences in each batch of trajectories. The threshold is tightened for batches with generally smooth torque fluctuations and widened for batches with severe fluctuations, thus maintaining consistent sensitivity in sudden drop identification under different load conditions. The negative sudden change node set represents the node number and sudden change amplitude for each event record. The event with the largest sudden change amplitude is at the beginning of the sequence. When all smoothed difference values ​​of a candidate point are higher than the judgment threshold and no node meets the sudden drop judgment, the candidate point is counted as zero events. The sudden change amplitude and the number of events together describe the torque sudden drop intensity distribution of each trajectory. The combination of the two characteristics reflects the dynamic stability characteristics of the trajectory. At the moment when the far-end extended posture suddenly folds into a compact configuration, the joint inertial load is rapidly redistributed. The output torque of some joints may decrease sharply within a few nodes. This short-term load redistribution is the physical root of the torque sudden drop. Such sudden drop events are particularly common on the trajectory of parts approaching the edge of the frame. In the negative sudden change node set, this is manifested as a high-amplitude sudden change that occurs densely in the later part.

[0064] S3.33: Based on the negative sudden change node set, the number and magnitude of sudden drop nodes in each trajectory are statistically analyzed to form a sudden drop feature distribution.

[0065] Specifically, the sudden change events in the negative sudden change node set are grouped according to the candidate point identifier, and the total number of sudden change events in each group is counted as the number of sudden drop nodes for that trajectory. The sudden change events of each trajectory in the negative sudden change node set are arranged in descending order of sudden change magnitude, and the average of the top three sudden change magnitudes is taken as the representative sudden drop magnitude of that trajectory. The reason for taking the top three instead of a single maximum value is to suppress the increase of the representative magnitude by occasional extreme sudden drops and to make the representative magnitude more reflective of the overall severity of the sudden drop. If a trajectory has more than eight sudden change events, the median of the magnitudes of all events is used as the representative sudden drop magnitude to avoid excessively increasing the representative value due to a few extreme sudden drops. The descent feature distribution quantifies the torque risk of each candidate point's approach trajectory using two indicators: the number of descent nodes and the representative descent amplitude. The number of descent nodes measures frequency, while the representative descent amplitude measures intensity. Together, these two indicators define the dynamic stability level of each candidate point. The number of descent nodes and the representative descent amplitude are not redundant; the former reflects the density of descents on the trajectory, while the latter reflects the severity of a single descent. This decoupling allows for the distinction between trajectories with frequent, minor descents and those with isolated, severe descents. The descent feature distribution aggregates the number of descent nodes and the representative descent amplitude of all candidate points into a single structure and differentiates them by candidate point. High-frequency, high-amplitude candidate points represent the approach mode with the highest risk to stress torque control. Candidate points where descents are concentrated in the latter part of the trajectory typically correspond to scenarios where the robot extends to grasp a distant target. The large end-effector causes joint torque to continuously increase before approaching the endpoint and then suddenly drop during the transition configuration. The torque drops are frequent and significant. The descent feature distribution thus clearly distinguishes these high-risk approach modes from low-risk near-end approaches, identifying key targets for subsequent descent behavior analysis.

[0066] S3.34: Based on the distribution of sudden drop features, identify the subsequent instability features of each sudden drop node and generate torque drop labels. For example, the specific steps for generating torque drop labels in S3.34 are as follows.

[0067] S3.341: Track the subsequent torque fluctuations of each sudden drop node for the sudden drop characteristic distribution to form the subsequent distribution of the sudden drop.

[0068] Specifically, starting from the representative nodes 10 of each sudden drop event specified by the sudden drop characteristic distribution, the sequence of comprehensive torque cost curves 1 for eight consecutive nodes within the subsequent observation window 3 of the sudden drop is extracted from the torque cost trajectory of the corresponding candidate points. The eight nodes correspond to a trajectory duration of approximately 1.6 seconds, which is sufficient to cover the entire torque recovery or oscillation process after most sudden drops. For the sequence of comprehensive torque cost curves 1 within the subsequent observation window 3 of the sudden drop, three statistical measures are calculated: peak-to-valley difference (the difference between the maximum and minimum values), fluctuation mean reference line 4, and fluctuation variance. The peak-to-valley difference reflects the extreme fluctuation amplitude of the torque after the sudden drop, the fluctuation mean reference line 4 reflects the level of torque re-stabilization after the sudden drop, and the fluctuation variance reflects the intensity of the overall torque oscillation after the sudden drop. These three measures characterize the torque behavior after a sudden drop from different perspectives. The observation window is fixed at eight nodes because the sudden drops marked by the sudden drop characteristic distribution mostly occur in the middle and later parts of the trajectory, and the number of subsequent available nodes is limited. The eight nodes cover the typical recovery process but do not include the next sudden drop event. The post-descent distribution stores the combined torque cost sequence of the next eight nodes for each descent event, along with the peak-to-valley difference, mean fluctuation, and variance. When a representative node of a descent is less than eight nodes from the end of the trajectory, the observation window takes the actual remaining nodes, and its peak-to-valley difference and variance are based on the truncated window statistics. The descent event with the highest variance in the post-descent distribution represents the node with the most difficult dynamic recovery after the descent, and its mean fluctuation and variance jointly define the criteria for determining the duration and intensity of subsequent instability. When robot joints approach singular configurations, the determinant of the inertial matrix approaches 0, and even small changes in joint angles can trigger sudden torque changes. When a descent node falls near a singular configuration, the post-descent fluctuations are often severe and long-lasting, forming the typical characteristics of large peak-to-valley differences and high variance in the post-descent distribution.

[0069] S3.342: Based on the subsequent distribution of the sudden drop, statistically analyze the correlation index between the magnitude of each sudden drop and the duration of torque instability, and generate an instability correlation table.

[0070] Specifically, the magnitude of the sudden drop is directly given by the difference value of the representative nodes of each event in the subsequent distribution of the sudden drop. The duration of torque instability is given by multiplying Δt by the number of consecutive nodes in the eight nodes in the subsequent distribution of the sudden drop whose comprehensive torque cost deviates from the average fluctuation reference line 4 by more than one standard deviation within the instability duration interval 5. A deviation exceeding one standard deviation indicates that the torque has significantly deviated from the new steady state after the sudden drop. The product of the two variables is the correlation index of the event. Events with both a large magnitude of sudden drop and a large duration of instability have a high correlation index, which poses a significant comprehensive threat to the execution of the entire trajectory. The Pearson correlation coefficient is calculated for the magnitude of sudden drop and the duration of torque instability for all sudden drop events. When the coefficient is close to one, it indicates that the deeper the sudden drop, the longer the instability lasts after the sudden drop. The instability correlation table describes the comprehensive instability characteristics of each descent event using three values: descent magnitude, torque instability duration, and correlation index. It also includes a global Pearson correlation coefficient as a diagnostic indicator for batch dynamic coupling for manual verification. The distribution of correlation indices for each event reveals the overall severity of the descent in the entire batch of trajectories. The event at the top of the correlation index represents the descent node with the worst torque stability in the entire batch of trajectories. If the comprehensive torque cost after a descent remains within the mean plus or minus one standard deviation throughout the entire process, its instability duration is zero, and the correlation index is zero, thus it is no longer included in subsequent threshold screening. When the servo motor torque is saturated, the recovery time after a descent is positively correlated with the descent magnitude. The deeper the descent, the longer it takes for the servo output torque to re-track the target. The correlation index is a quantitative mapping of this physical mechanism. Based on this, the instability correlation table highlights the descent events with the strongest dynamic coupling for effective screening.

[0071] S3.343: Based on the unstable association table, filter the nodes whose association indicators drop sharply beyond the validity threshold and establish a valid association set.

[0072] Specifically, the mean and standard deviation of all sudden drop events in the instability correlation table are used as the correlation index. The mean plus one standard deviation is used as the validity threshold, which, under the assumption of normal distribution, covers approximately 16% of events with the highest correlation index. Sudden drop events with correlation indices exceeding the validity threshold are judged as valid unstable sudden drops in the instability correlation table; those below the threshold are not included in the construction of the valid set. Sudden drop events that pass the threshold are arranged by trajectory node number. When the node interval between adjacent valid events is less than three, the two events are merged into the same unstable segment, with the event with the largest correlation index as the representative event. A node interval of less than three means that the two sudden drop events are only about 0.6 seconds apart and physically belong to the same continuous unstable process. The validity threshold is the mean plus one standard deviation, ensuring that only sudden drop nodes with correlation indices significantly higher than the batch average are selected. The threshold adaptively shifts with the distribution of the batch correlation indices. The effective set of association records the candidate point affiliation, representative node location, drop magnitude, and association index for each valid event. The event with the highest association index is ranked first, representing the drop node with the highest risk of moment instability among all candidate points. The number of events in the effective set of association directly reflects the density of effective instability drops in the trajectory of each candidate point. Candidate points with dense effective events have poor approach trajectory dynamic stability. If the association index of all events in the batch is below the threshold, the threshold is lowered to the average value and the event is re-screened. If no event passes the screening, the effective set of association retains at least the event with the highest association index. When the robot approaches the target at high speed, the superposition of acceleration inertial loads of each joint may cause multiple consecutive drop segments. These segments are physically continuous. Merging these segments summarizes the same physical instability into a single risk segment, preventing the same process from being counted repeatedly and exaggerating the risk level.

[0073] S3.344: Based on the effective set of associations, integrate the positions and association strengths of each effective descent node to generate torque descent labels.

[0074] Specifically, for each valid sudden drop event in the associated valid set, candidate point affiliation, representative node sequence number, and correlation index are extracted. All valid sudden drop events under the same candidate point are then grouped and summarized. The ratio of the sudden drop magnitude of each event in the associated valid set to the sum of the sudden drop magnitudes of all valid events at that candidate point is used as the weight of each event. Events with larger magnitudes contribute more to the candidate point's risk score. The sudden drop risk score of the candidate point is then calculated using correlation index weighting. Events with high magnitudes and long periods of instability dominate the score. This weighting method ensures that a few extreme sudden drops are not diluted by the average of a large number of minor sudden drops. Using a weighting method based on the percentage of sudden drop magnitudes, rather than a simple average, is because different sudden drop events pose unequal threats to trajectory execution. The long periods of instability accompanying deep sudden drops have a much greater impact on servo tracking than shallow sudden drops. Magnitude weighting makes the score more sensitive to high-threat events and more closely reflects actual control risks. Torque drop annotation summarizes two types of information for each candidate point: a list of valid drop events and a comprehensive drop risk score. When a candidate point has only one valid drop event and cannot be weighted, its risk score is directly equivalent to the correlation index of that event. In torque drop annotation, the candidate point with the highest risk score ranks first, and the risk scores from high to low correspond to the gradient of torque stability from poor to good among the candidate points. The distribution of risk scores reveals the hierarchy of torque stability among the entire batch of candidate points. When the end effector grasps the distant workpiece in an extreme extended posture, multiple joints simultaneously bear high torque. Drop events occur densely in the later part of the trajectory, and the comprehensive risk score is significantly higher. In contrast, near-end candidate points have few drop events and lower risk scores, making them grasping candidates with better torque stability.

[0075] S4.1: Based on the torque drop label, candidate points with few drop nodes and meeting the torque standard are selected to obtain the torque feasible set.

[0076] Specifically, the threshold for a low number of descent nodes is set at no more than three valid descent events. The criterion for meeting the torque standard is that the average torque of each joint throughout the corresponding trajectory does not exceed 85% of the rated torque of the motor of that joint. These two thresholds together define a dynamically reliable approach. Candidates whose descent risk score exceeds the average risk score of all candidate points in the torque descent annotation are directly excluded. For candidate points whose risk score does not exceed the average, their number of valid descent events and the average torque of each joint are verified one by one to see if they simultaneously meet the dual thresholds. Candidate points that meet both criteria constitute the torque feasible set. Each feasible candidate point in the torque feasible set carries two sets of data: the joint corner node sequence and the path end effector pose sequence. The number of feasible candidate points reflects the total number of approach solutions that meet the requirements in both torque stability and joint load dimensions. The more candidate points there are, the richer the dynamically feasible grasping solutions for the current scenario. The path the robot takes to approach the parts inside the gripper is constrained by the upper limit of the joint torque. Paths exceeding the rated torque will cause the motor to overheat or shut down for protection. Paths with too many sudden drop events face the risk of instability during execution. Double screening eliminates both types of infeasible candidates. For boundary candidate points in the torque drop annotation where the risk score exceeds the average but the number of effective sudden drop events is exactly three, the final judgment is whether the average value of each joint torque meets the rated torque threshold. If it meets the threshold, it is included in the torque feasible set; otherwise, it is excluded. The resulting torque feasible set is the set of approach solutions that meet the standards for both torque stability and joint load in the current scenario.

[0077] S4.2: Using the aforementioned feasible set of moments, track nodes with sudden increases in potential field gradients along each path and trigger switching to obtain a potential field gradient map. In one embodiment, the specific steps for obtaining the potential field gradient map in S4.2 are as follows.

[0078] S4.21: For the feasible set of torques, sample the potential field distribution of each candidate path point by point to form a potential field sampling sequence.

[0079] Specifically, the potential field is composed of the superposition of attractive and repulsive potentials. The attractive potential, calculated as half the square of the Euclidean distance from the end effector position to the target grasping point multiplied by a positive coefficient, pulls the end effector toward the target. The repulsive potential, calculated as the square of the inverse of the distance from the end effector to the nearest obstacle point multiplied by a positive coefficient η_rep, pushes the end effector away from the obstacle. The two positive coefficients are chosen to unify the dimensions of the two potentials to Joules. The two potentials are added together to form the composite potential. The spatial coordinates of each node in the end effector pose sequence of each candidate point path in the torque feasible set are substituted into the above double-potential superposition formula to calculate the attractive potential, repulsive potential, and composite potential value node by node. The attractive potential is proportional to the square of the distance to the target, and the traction increases with distance as the end effector moves away from the target. The repulsive potential increases with the square of the inverse of the distance to the obstacle, and the repulsion increases sharply as the end effector approaches the obstacle. The different distance laws of the two potentials result in strong guidance at the far end of the end effector and strong repulsion near the obstacle. After sampling node by node along each candidate path in the feasible moment set, the potential field sampling sequence describes the potential field state of each path node using three potential values: attractive potential, repulsive potential, and composite potential. The composite potential curve along the path direction reflects the overall evolution of the potential field environment in which the end effector is located during the approach process. The local extreme nodes of the composite potential in the potential field sampling sequence are the locations where the end effector faces a sharp change in the potential field direction. The sections where the composite potential peaks and valleys alternate represent the intervals where the potential field changes most drastically on that path segment. In areas with dense obstacles, the repulsive potential increases rapidly as it approaches the narrowest point of the passage, causing the composite potential to peak at that point. The peak value increases as the narrowest gap of the corridor decreases. When a node is less than 10 mm from the nearest obstacle, causing the repulsive potential to approach infinity, the repulsive potential of that node is replaced by an upper limit of 1000 joules, and the corresponding composite potential in the potential field sampling sequence is presented with the upper limit value to avoid outliers contaminating the sampling sequence.

[0080] S4.22: Measure the gradient magnitude and sudden increase magnitude of each sampling point based on the potential field sampling sequence, and generate the gradient magnitude distribution.

[0081] Specifically, the potential field gradient magnitude quantifies the rate of change of the synthetic potential along the path direction. The attraction potential, repulsion potential, and synthetic potential values ​​of adjacent nodes in the potential field sampling sequence are differentiated and then divided by the path node spacing Δs to obtain the attraction potential gradient, repulsion potential gradient, and synthetic gradient magnitude of each node. Here, Δs is the Euclidean distance between adjacent nodes of the end effector. The first and last nodes are calculated by forward difference. The actual displacement of the end effector recorded at each node in the potential field sampling sequence is the step size. When the node density is uneven, normalization according to the actual displacement can eliminate the interference of sampling spacing difference on the gradient magnitude. The gradient magnitude of the entire path is obtained by subtracting the gradient magnitude of each node. A positive gradient magnitude indicates that the gradient magnitude increases between nodes. A large positive value means that the driving force of the potential field is rapidly enhanced in this section. The gradient magnitude distribution quantifies the potential field gradient intensity and its changes at each node using the attractive potential gradient, repulsive potential gradient, composite gradient magnitude, and sudden increase. The gradient magnitude curve along the path reflects the intensity evolution of the potential field driving force during the approach process. Sections in the gradient magnitude distribution where the gradient magnitude increases abruptly often correspond to the moment when the end effector approaches the obstacle boundary or enters a strong repulsive field. The gradient magnitude of each node simultaneously quantifies the intensity of the net thrust of the potential field on the end effector at that node; a higher magnitude indicates a larger net thrust. When the composite potential difference between adjacent nodes is zero and the gradient magnitude is zero, the sudden increase magnitude at that node is approximated by the mean of adjacent effective nodes to avoid lowering the overall statistical mean. When the gripper passes through a narrow gap beside the gripper's sidewall, the repulsive potential increases sharply as the end effector approaches the wall. The composite potential gradient magnitude increases abruptly in this section, forming a local peak. The peak amplitude increases with the depth of entry into the narrow gap. Based on this, the gradient magnitude distribution marks the location of the abrupt change in the potential field driving force along the path for subsequent extraction of sudden increase nodes.

[0082] S4.23: Identify path nodes whose gradient amplification exceeds the threshold based on the gradient magnitude distribution, and establish a set of amplified nodes.

[0083] Specifically, the threshold for determining a sudden increase event is determined by adding 1.5 times the standard deviation to the mean of the sudden increase magnitude of all nodes along the gradient magnitude distribution, covering approximately 7% of the nodes with the highest sudden increase magnitude, to ensure that only nodes with rapidly increasing gradients are selected. Path nodes in the gradient magnitude distribution whose sudden increase magnitude exceeds this threshold are identified as gradient sudden increase nodes. Adjacent consecutive sudden increase nodes are merged into the same sudden increase event, with the node with the largest sudden increase magnitude serving as the event representative point. This merging process summarizes physically continuous gradient sudden increase processes into a single event. The sudden increase magnitude characterizes the second-order change of the gradient magnitude along the path, i.e., the rate of increase of the potential driving force, and is independent of the absolute level of the gradient magnitude itself. Therefore, the same threshold can simultaneously capture abrupt changes on both low-potential and high-potential bases, avoiding the omission of drastic sudden increases in lower segments of the base. The burst node set records the candidate point affiliation, representative node number, and burst magnitude for each burst event. The event with the highest burst magnitude is listed first. The number of burst events reflects the frequency of gradient intensity abrupt changes on each candidate path. Paths with dense events indicate frequent bursts in the potential field along the path. Events with large absolute values ​​of burst magnitude in the burst node set represent drastic changes in the driving force of the potential field at that node. When the burst magnitude of all nodes on a candidate path is below the judgment threshold, the candidate path is presented with zero burst event count, indicating a smooth transition of the potential field gradient throughout the entire path. When the robot approaches the target part in the gripper, the gripper is initially pulled by a strong attractive potential in the open section. After entering the narrow section, the repulsive potential suddenly increases. The ebb and flow of the attractive and repulsive potentials cause the magnitude of the combined potential gradient to burst at the entrance of the corridor. Such burst events are concentrated in the transition section where the corridor changes from wide to narrow. The burst node set uses this to locate these transition boundaries along the path for switching annotation.

[0084] S4.24: Construct gradient switching labels for the sudden increase positions of each candidate path based on the suddenly increased node set, and obtain the potential field gradient map.

[0085] Specifically, the gradient switching labeling is based on determining the change in the dominant potential field type at the sudden increase node. The average attractive and repulsive potential values ​​of the three nodes before and after the sudden increase node (or actual nodes if insufficient) are compared. A stronger attractive potential before the sudden increase and a stronger repulsive potential after the sudden increase is labeled as an attraction-repulsion switch, and vice versa. These two types of switching correspond to the end effector moving from the attraction-dominated region to the repulsion-dominated region and the opposite physical boundary, respectively. The switching anchor point is located on the path based on the candidate point affiliation and representative node number of each event in the sudden increase node set. A switching type determination is performed on the representative node of each sudden increase event. The switching type determination uses the average potential value of the three nodes before and after the representative node in the sudden increase node set, rather than a single-point value. The three-node average can filter out single-node potential field fluctuations, making the dominant potential field affiliation determination more robust. The potential field gradient map uses gradient switching anchor points as basic units. Anchor points are characterized by three factors: candidate point affiliation, node number, amplification magnitude, and switching position. The spatial distribution of switching anchor points reveals the changing positions of the potential field dominance during the approach process. Dense sections of switching anchor points in the potential field gradient map represent the most unstable path intervals in terms of potential field structure; sections where attraction-repulsion switching and repulsion-attraction switching alternate are the locations of the most intense potential field oscillations. When the amplification event of a candidate point is zero, the potential field gradient map represents that candidate point as a path without anchor points, indicating a smooth potential field transition throughout the path. When approaching a target in an environment with dense obstacles, the gripper often undergoes multiple attraction-repulsion switching as it cuts from an open area into a narrow passage. Each switching corresponds to the physical boundary where the end effector moves from the attraction-dominated region to the repulsion-dominated region. The anchor point sequence of the potential field gradient map marks these boundaries along the path, providing prior information on switching positions for subsequent gradient direction conflict analysis.

[0086] S4.3: Use the potential field gradient map to locate the path node with the strongest gradient conflict and determine the gradient conflict domain. In one embodiment, the specific steps for determining the gradient conflict domain in S4.3 are as follows.

[0087] S4.31: Analyze the synthetic gradient direction and tangential direction of each node for the potential field gradient diagram to obtain a bidirectional gradient set.

[0088] Specifically, two direction vectors are extracted from the potential field state of each path node. The synthesized gradient unit vector is obtained by dividing the difference in the synthesized potential value of the preceding and following nodes by the path step size, along the direction of fastest descent of the potential field, and then normalizing it. The tangential unit vector is obtained by normalizing the difference in the end-effector position of the preceding and following nodes along the path forward direction. The nodes near the gradient switching anchor points marked on the potential field gradient map show the most significant deviation between the two directions and are the key nodes for analyzing the relationship between the two directions. The same calculation is performed on the remaining nodes along the entire path to fully cover the path. The synthesized gradient direction at the switching anchor points marked on the potential field gradient map often deviates significantly within a few nodes. Therefore, the nodes near the anchor points are high-incidence locations of drastic changes in the angle between the two directions. Focusing on analyzing these nodes can accurately capture the strongest interference of the potential field on the path. The bidirectional gradient set synthesizes the gradient unit vector, tangential unit vector, and gradient magnitude at each path node, presented in order of node number. Nodes in the bidirectional gradient set with a large angle between the synthesized gradient direction and the tangential direction indicate a stronger lateral interference of the potential field on the path direction, and a greater lateral force deviating from the predetermined trajectory at that node. The recorded gradient magnitude quantifies the total driving force intensity of the potential field at each node on the end effector. When the robot approaches the target, the path tangential theoretically points towards the target and aligns with the direction of the attractive potential gradient. However, the presence of the gripper's repulsive potential causes the synthesized gradient to deviate from the tangential direction, resulting in a large angle between the two directions, indicating strong interference from the repulsive potential on the path. When the end effector position sequence at a candidate point contains three consecutive repeating coordinates, causing tangential calculation degradation, the bidirectional gradient set approximates that segment with the mean tangential vector to prevent the zero vector from causing subsequent angle calculation failures.

[0089] S4.32: Based on the bidirectional gradient set, determine the angle between the two directions of each node and its rate of change, and generate the angle change distribution.

[0090] Specifically, the inner product operation transforms the alignment degree between two directions into a scalar. The inner product of the synthesized gradient unit vector g_k and the tangential unit vector t_k recorded at each node in the bidirectional gradient set, in the form of the inverse cosine θ_k = arccos(g_k·t_k), gives the angle between the two directions. The range of θ_k is 0 to 180°, where 0° indicates perfect alignment, 90° indicates orthogonality, and 180° indicates complete reversal. θ_k is calculated node by node along the entire path. The difference in θ values ​​between adjacent nodes is the rate of change of the angle, dθ_k. The larger the absolute value of the rate of change of the angle, the more drastic the change in the misalignment between the two directions between that node. The gradient magnitude recorded in the bidirectional gradient set is also retained here, because the actual harm of the conflict depends on the lateral component, i.e., the product of the gradient magnitude and the sine of the angle. The angle alone cannot distinguish between large deflection in a strong field and large deflection in a weak field; it must be characterized by both the magnitude and the angle. The angle variation distribution is defined by θ_k, dθ_k and the magnitude of the gradient they bear, which constitute the angle state of each node. The θ_k curve along the path direction reflects the evolution of the alignment between the potential field gradient and the path direction. In the angle variation distribution, the path segment where θ_k is stable near 90° represents the characteristic interval where the potential field gradient is always approximately orthogonal to the path and is prone to gradient conflicts. The nodes with sudden changes in dθ_k and the extreme value nodes of θ_k are jointly used to locate the path position where the misalignment between the two directions is most intense. When the combined gradient magnitude of a node is 0 and θ_k cannot be calculated, the node is assigned a value of 90° for θ_k and 0 for dθ_k so that the missing value does not affect the overall statistics. At the narrowest point of the corridor, the repulsive potential gradient direction of the claw is almost perpendicular to the approach axis, so the synthesized gradient tends to be orthogonal to the tangent, and θ_k is close to 90°. After the claw passes through the narrowest point, the repulsive potential weakens rapidly, and θ_k drops sharply. dθ_k forms a negative peak at this transition point. The distribution of the angle change highlights the section along the path where the potential field has the strongest interference with the path direction, providing a basis for determining conflict nodes.

[0091] S4.33: Based on the angle change distribution, identify path nodes with sudden angle changes and conflict intensity exceeding the threshold, and form a conflict node set.

[0092] Specifically, the lateral deflection force is the physical essence of the conflict intensity. The product of the gradient magnitude and sinθ_k at each path node is the lateral component of the potential field exerted by that node on the path direction; the larger the product, the stronger the lateral deflection. The θ_k values ​​of each node are extracted from the angle variation distribution and substituted into sinθ_k. Combined with the gradient magnitude of the corresponding node, the conflict intensity of each node is calculated. Nodes whose conflict intensity exceeds the average conflict intensity of all path nodes plus one standard deviation are identified as nodes with conflict intensity exceeding the threshold. Simultaneously, the absolute value of the angle change rate dθ_k of each node in the angle variation distribution is checked. Nodes with an absolute value exceeding 15 degrees are identified as nodes with abrupt angle changes. The conflict node set consists of path nodes that simultaneously satisfy both the conflict intensity exceeding the threshold and abrupt angle changes criteria. The conflict node set records the candidate point affiliation, node number, and conflict intensity for each conflict node. Nodes with high conflict intensity represent strong lateral deflection forces in the potential field and poor path stability. The distribution of conflict nodes on the path reveals the segment with the strongest potential field interference among the candidate paths. The dual criteria can eliminate two types of pseudo-conflicts: those with high intensity and stable angles are mostly continuous strong fields rather than sudden disturbances, while those with abrupt angle changes and low intensity have limited lateral force components. Only when both criteria are met can a true conflict node be considered to need resolution. During the robot's approach, when the end effector enters the strong repulsive field of the gripper wall, the lateral repulsive force can reach more than 80% of the total gradient amplitude. θ_k approaches 90° and the gradient amplitude increases sharply. The conflict intensity reaches its peak at this position and is accompanied by a sudden change in dθ_k. This is a typical high-conflict node in the conflict node set. When the conflict intensity of all nodes along a candidate path is below the threshold, the conflict node set for that path is represented by the number of zero conflict nodes, indicating that the potential field driving direction is well aligned with the path direction.

[0093] S4.34: Delineate the neighborhood of each path conflict node based on the set of conflict nodes, and determine the gradient conflict domain.

[0094] Specifically, the impact of a conflict node is not limited to a single point. It extends two nodes forward and backward along the path to form a neighborhood, with a total neighborhood width of five nodes. The path segment within the neighborhood is the influence range of the conflict node. The extension of two nodes forward and backward is due to the potential field deflection effect, which is not limited to the conflict node itself. The end effector is already subjected to lateral force before arrival and still has inertial offset after departure. The five-node neighborhood can completely cover the range of action of a single conflict. The neighborhoods of all conflict nodes along each path in the conflict node set are arranged according to the node number. Adjacent neighborhoods with overlapping node numbers are merged into the same gradient conflict segment. The conflict intensity of each conflict node in the conflict node set determines the representative conflict intensity of the merged segment, and the maximum value of the conflict intensity of the conflict nodes within the segment is taken. The gradient conflict domain consists of several gradient conflict segments. Each segment is defined by the starting and ending node numbers and the representative conflict intensity. The segment with the highest representative conflict intensity represents the path interval with the strongest lateral deflection force of the potential field. The gradient conflict domain places the segment with the highest representative conflict intensity at the front of each path conflict segment. The total number of conflict segments and the number of covered nodes of each candidate path jointly reflect the overall degree of influence of the potential field conflict on the path. Candidate paths with multiple conflict segments are simultaneously disturbed by strong lateral deflection forces at multiple locations, making path planning the most difficult. When the total number of conflict nodes of a candidate path is 0, the gradient conflict domain represents that path as a 0-conflict segment, and the original trajectory can be directly used. Approaching the target along the narrow passage inside the fixture through multiple corners, each corner may form an independent gradient conflict segment. Multiple scattered conflict segments represent paths disturbed by strong repulsive potentials at multiple locations, while when only passing through the narrowest part of a single corridor, there is usually only one concentrated high-conflict segment.

[0095] S5.1: Perform potential field gradient reweighting optimization from the gradient conflict domain to obtain a trajectory sequence. In one embodiment, the specific steps for obtaining the trajectory sequence in S5.1 are as follows.

[0096] S5.11: Calculate the cosine value of the gradient angle between each conflict node for the gradient conflict domain, and establish a conflict intensity map.

[0097] Specifically, the cosine value of the conflict angle is calculated at each conflict node delineated in the gradient conflict domain by the inner product of the unit vectors of the attractive potential gradient g_att_k and the repulsive potential gradient g_rep_k. The formula is cos_α_k = g_att_k·g_rep_k, and the result falls in the interval between -1 and +1. When cos_α_k approaches -1, it indicates that the gradient directions of the two potential fields are close to opposite and the potential fields are strongly opposed. When it approaches +1, it indicates that the gradients of the two potential fields are aligned and the conflict is weak. For each conflict node in each conflict segment of the gradient conflict domain, cos_α_k is calculated one by one. The mean value of cos_α_k in the same conflict segment is used as the representative cosine value of the conflict angle in that segment. Segments with low cosine values ​​are the priority targets for weight adjustment. The cosine value differs from the aforementioned angle θ_k. θ_k measures the misalignment between the synthesized gradient and the path tangent, relating to lateral deflection, while cos_α_k measures the antagonism between the attractive and repulsive gradients, relating to the necessity of weight redistribution. Both serve conflict identification and conflict resolution, respectively. The conflict intensity map uses conflict node numbers as basic units, with each conflict node corresponding to both a cos_α_k value and a representative cosine value for its respective conflict segment. The distribution of cosine values ​​reveals the spatial distribution pattern of potential field antagonism intensity on each candidate path. Paths with cosine values ​​concentrated around -1 in the conflict intensity map indicate strong potential field antagonism at multiple locations. The conflict segment with the smallest representative cosine value represents the location with the most intense potential field antagonism and the highest priority for weight adjustment. When the magnitude of the attractive or repulsive gradient of a node is 0 and the cosine cannot be calculated, the representative cosine value of its respective conflict segment is assigned. At the narrowest point of the corridor, the attractive potential gradient of the gripper points towards the target, while the repulsive potential gradient points away from the clamp wall. These two directions are often almost opposite in the narrow corridor, and cos_α_k is close to -1 here. This is a typical location with the lowest cosine value in the conflict intensity diagram, and the weight adjustment also starts from here and unfolds segment by segment.

[0098] S5.12: Analyze the inverse relationship between the degree of collinearity of the gradients of each node and the gradient weight from the conflict intensity map to obtain the weight allocation set.

[0099] Specifically, the closer the cosine value recorded in the conflict intensity map is to +1, the more aligned the gradient directions of the two potential fields are, the more the potential field forces guide the direction, and the repulsion weight can maintain equilibrium. The closer the cosine value is to -1, the more opposite the directions of the two potential fields are, the stronger the interference of the repulsion potential on the path direction, and the repulsion weight needs to be reduced accordingly to resolve the confrontation. Substituting the cosine value of each conflict node into the conflict factor formula δ=(1-cos_α_k) / 2, δ takes the maximum value of 1 when the cosine value is -1 and the minimum value of 0 when the cosine value is +1. For nodes with high δ, a larger reduction in repulsion weight needs to be applied. This formula linearly maps the cosine value to 0 to 1, making the weight adjustment range proportional to the potential field confrontation intensity. The stronger the confrontation, the greater the reduction. The linear mapping avoids sudden adjustment jumps near the extreme value of cosine. Based on δ, the initial components of the repulsion weight and attraction weight of each node are allocated. The initial component of the repulsion weight decreases linearly from 0.5 to close to 0 as δ increases, while the initial component of the attraction weight increases linearly from 0.5 to close to 1. The sum of the two is normalized to one. The weight allocation set assigns a conflict factor δ, initial components of repulsive and attractive weights to each conflict node, quantifying the relative strength difference between the repulsive and attractive potentials into an iteratively adjustable initial state. Nodes with the highest δ in the weight allocation set are concentrated in the conflict segments with the lowest cosine values ​​in the conflict intensity map, where the weight iteration intervention is strongest. When the end effector approaches the clamp wall in the corridor, the magnitude of the repulsive potential gradient is much greater than that of the attractive potential. The weight allocation set weakens the lateral deflection component by reducing the repulsive weight, causing the synthesized gradient to point back towards the path forward direction. When the cosine value of a conflict node is greater than 0.5 and the gradients of the two potential fields are basically aligned, the δ of that node is set to 0, and the repulsive and attractive weights remain equally distributed without adjustment.

[0100] S5.13: Perform conflict-driven dynamic weight balancing iterative optimization based on the weight allocation set to generate an iterative optimization set. For example, in S5.13, the specific steps for generating the iterative optimization set are as follows.

[0101] S5.131: Extract the conflict driving factors from the weight allocation ratio of each node for the weight allocation set, and construct the initial weight matrix.

[0102] Specifically, the conflict driving factor δ is directly taken from the conflict factor values ​​calculated above for each conflict node in the weight allocation set. A larger δ means that the node has a higher pre-allocated share of attractive weight and a stronger need for conflict adjustment. The conflict driving factor vector is constructed using the δ values ​​of all conflict nodes. This vector, together with the number of candidate path nodes, determines the dimension of the initial weight matrix. The initial weight matrix has candidate paths as rows and conflict node indices as columns. The matrix elements are pairs of initial values ​​for the repulsion and attraction weights of the corresponding nodes. The columns corresponding to non-conflict nodes are filled with 0.5. The matrix structure uniformly expresses the conflict node weights of all candidate paths and provides a matrix operation basis for parallel iterative updates. After organizing the node-by-node weights of the weight allocation set into a matrix, the weight updates that originally required sequential processing for each path and node can be applied in parallel column by column using the matrix. The iteration of multiple candidate paths can be promoted synchronously, significantly shortening the optimization time. In the initial weight matrix, columns with larger δ values ​​have lower initial repulsion weights, indicating a more intense expected adversarial situation at the conflict node. The order of the components of the δ vector determines the relative strength of each column element, thus determining the initial weight adjustment range for each conflict node during iteration. When all nodes on a candidate path have a δ value of 0, the corresponding row and column are filled with 0.5, and the initial state is the same as the unoptimized state. Multiple candidate paths approach the same target in the same fixture scenario, and the conflict node positions near the fixture sidewalls differ for each path. The initial weight matrix simultaneously expresses the conflict node weight distribution of multiple paths in matrix form, avoiding sequential processing path by path and laying the data foundation for parallel weight iteration updates.

[0103] S5.132: The initial weight matrix is ​​updated step by step with the conflict driving factor as the driving force to generate an iterative weight sequence.

[0104] Specifically, the repulsive weight of each column in the initial weight matrix \( w_{\text{rep}}(n+1) = w_{\text{rep}}(n) \cdot (1 - \rho \cdot \delta) \) decreases round by round, where \( n \) is the iteration round number, and \( \rho \) is set to 0.05 as the step size coefficient; correspondingly, the attractive weight \( w_{\text{attr}}(n+1) = w_{\text{attr}}(n) \cdot (1 + \rho \cdot \delta) \) increases round by round. Nodes with a larger \( \delta \) experience a greater weight change amplitude, and the node with the strongest conflict has the fastest decrease in repulsive weight. Starting from the elements of each column in the initial weight matrix, the above update formula is applied in parallel to all conflicting nodes in each iteration round: the repulsive weight remains monotonically decreasing throughout the entire iteration process, the attractive weight remains monotonically increasing, and the difference between the two gradually narrows with the iteration round. The step size coefficient \( \rho \) is set to 0.05, which is a trade-off between convergence speed and stability: if \( \rho \) is too large, the repulsive weight will drop too sharply in a single round, easily causing oscillation near the equilibrium point; if \( \rho \) is too small, the convergence will be slow and the iteration rounds will be lengthy. The multiplicative update ensures that the weights are always positive, and the change amplitude scales with the weight itself, preventing the weights from becoming negative. The iterative weight sequence is arranged according to the iteration rounds, and the updated repulsive weight vector and attractive weight vector of all conflicting nodes are stored in each round. The total number of rounds reflects the number of iteration steps required for the weights to converge from the initial state. The node with the most drastic decrease in repulsive weight in the iterative weight sequence is the conflicting node with the highest \( \delta \), and its convergence rounds are usually more than those of nodes with lower \( \delta \). When the repulsive weight of a conflicting node drops below 0.1 during iteration, a lower limit of 0.1 is set, and subsequent updates in later rounds are performed with 0.1 to prevent the repulsive weight from dropping to zero, which would cause the obstacle collision constraint to fail. The \( \delta \) values of conflicting nodes in the corridor next to the fixture wall are generally high, and the repulsive weights are continuously suppressed over multiple iteration rounds. The cumulative effect gradually converges the end effector path toward the target direction, ultimately breaking through the local minimum of the potential field in the corridor. Based on this, the iterative weight sequence records the resolution process of the local potential field trap round by round.

[0105] S5.133: Identify iteration rounds where gradient contribution tends to be balanced based on the iterative weight sequence, and establish a balanced convergence set.

[0106] Specifically, the round weights of the iterative weight sequence and the potential field gradient magnitudes of each conflict node are substituted into the equation to calculate the difference between the weighted repulsive gradient magnitude (repulsive weight multiplied by repulsive gradient magnitude) and the weighted attractive gradient magnitude (attractive weight multiplied by attractive gradient magnitude). When the absolute value of this difference for each conflict node is less than 5% of the combined gradient magnitude of that node, the round is determined to be an equilibrium convergence round. A difference approaching 0 means that the combined influence of the two potential fields on the path in this round is roughly equivalent, and the net lateral force on the end effector is significantly reduced. The criterion requires all conflict nodes to satisfy the condition simultaneously rather than taking the average value. This is to avoid individual nodes still being severely unbalanced but being masked by the average value of the other balanced nodes. Node-by-node verification ensures that the convergence round achieves potential field equilibrium at each conflict position. The above equilibrium criterion is verified round by round for the iterative weight sequence. Rounds that satisfy the criterion are recorded as equilibrium convergence rounds. The initial satisfaction of the criterion indicates that the gradient contribution has tended to be balanced. The equilibrium convergence set is distinguished by iteration round numbers. Each convergence round carries the path node coordinate sequence corresponding to that round and the convergence round number. The convergence round that first satisfies the equilibrium criterion corresponds to the path with the fastest weight convergence speed. The total number of convergence rounds in the equilibrium convergence set reflects the iteration cost required to resolve potential field adversarial issues. The gradient contribution difference tends to be small as the rounds progress. When the equilibrium criterion is not satisfied in any round, the path node coordinate sequence of the last round is used as the sole member. In scenarios with dense fixtures and intense potential field adversarial issues, achieving equilibrium convergence requires more iteration rounds. In scenarios with sparse obstacles, there are fewer conflict nodes and the δ value is relatively small, requiring only a few iteration rounds to satisfy the equilibrium criterion. The number of rounds in the equilibrium convergence set fluctuates significantly with the obstacle density of the scene, providing candidate rounds for subsequent curvature-based selection.

[0107] S5.134: Based on the equilibrium convergence set, analyze the path node sequence of the optimal trajectory solution in each convergence round to obtain the iterative optimization set.

[0108] Specifically, each convergence round in the equilibrium convergence set carries a sequence of path node coordinates. The total curvature of the path node sequence in each round, i.e., the sum of the angles between the direction vectors of each node, is used as the evaluation index for the optimal trajectory. A lower total curvature indicates a smoother trajectory in that convergence round. The total curvature of each convergence round in the equilibrium convergence set is sorted, and the path node coordinate sequence corresponding to the round with the lowest total curvature is taken as the optimal trajectory solution for that candidate path. If the total curvature of multiple convergence rounds differs by no more than 0.5°, the round with the smallest number is selected to obtain the optimal trajectory with the least iteration cost. Total curvature is chosen instead of path length as the evaluation index because the difference in path length between rounds after equilibrium convergence is minimal, while curvature directly affects the smoothness of the end effector's motion and the impact of joint acceleration and deceleration. A low curvature trajectory corresponds to smaller joint abruptness and a smoother execution process. The iterative optimization set uses candidate point identifiers as basic units, along with the optimal convergence round number and optimal path node coordinate sequence for each candidate point. Candidate paths with lower total curvature exhibit smoother trajectories, indicating that the approach scheme after weight convergence performs better in terms of motion stability. The optimal trajectory solution set of the iterative optimization set covers the optimal motion trajectories achievable by all candidate paths under the current conflict resolution strategy, and a large number of candidate paths indicates a wealth of feasible and high-quality approach schemes for the current scenario. Convergence to the potential field equilibrium point after multiple iterations signifies that the trajectory is most stable under physical constraints. The lowest curvature convergence round ensures that the output trajectory is optimal in both dynamic stability and motion stability. If a candidate path has only one convergence round, the iterative optimization set uses the path node coordinate sequence of that round as the optimal trajectory solution.

[0109] S5.14: Obtain the trajectory sequence by tracking the sequence of trajectory nodes when the weights converge based on the iterative optimization set.

[0110] Specifically, for each candidate path in the iterative optimization set, the previously selected optimal convergence round is directly taken, and its satisfaction with the weight stability criterion is verified. This criterion is defined as the change amplitude of the weight vector in three consecutive iterations being less than 0.01. The last iteration that satisfies this criterion is recorded as the convergence round, and the path node coordinate sequence of this round is taken as the optimized trajectory of the candidate path. The earlier the path converges, the more the potential field resistance in its conflict section has been resolved within a smaller number of iterations. Candidate paths with fewer conflict sections or lower δ values ​​usually converge before other paths. The weight convergence criterion is that the change amplitude in three consecutive rounds is less than 0.01. Meeting the criterion for three consecutive rounds can eliminate false convergence where the weights continue to drift after a single round of accidental stabilization, ensuring that the weights in the selected rounds have indeed entered a stable state rather than a transitional state. The trajectory sequence distinguishes the optimized trajectories of each candidate path using candidate point identifiers. The curvature distribution of the node coordinate sequence reflects the smoothness of the optimized end effector trajectory. The curvature of the trajectory sequence at conflict nodes should be lower than that of the original trajectory, and the curvature near the conflict section should be lower, indicating that the potential field resistance has been effectively resolved. When a candidate path fails to trigger the convergence criterion within the maximum of fifty iterations, the round with the smallest change in weight vector in the last three rounds is taken as the quasi-convergence round, and its node coordinate sequence is taken as the optimized trajectory. After multiple rounds of weight adjustment, the synthesized gradient direction of the end effector gradually aligns with the tangential direction of the path. Finally, the lateral offset of the trajectory nodes in the conflict section decreases with iteration convergence, and the path curvature in the conflict section decreases accordingly. Based on this, the trajectory sequence delivers the smoothed trajectory after the potential field resistance has been resolved to segmented smoothing processing.

[0111] S5.2: Based on the trajectory sequence, analyze the unequal weight smoothing features of the approach segment and the contact segment, and establish a segmented smoothing configuration.

[0112] Specifically, the node in the trajectory sequence where the Euclidean distance from the end effector to the target grasping point is less than 50mm for the first time is the dividing point. The node segment with a distance greater than 50mm is the approach segment, and the node segment with a distance less than 50mm is the contact segment. For the approach segment node sequence, the trajectory curvature distribution is calculated, and the angle between the direction vectors of adjacent nodes is taken as the curvature of each node. The approach segment has lower requirements for smoothness and allows for larger curvature to adapt to corridor detours. For the contact segment node sequence, the curvature distribution is also calculated, requiring the end effector to approach the target with a smooth, low-curvature trajectory. Node segments with curvature exceeding five degrees trigger high-weight smoothing. The reason for choosing 50mm as the dividing point between the approach and contact segments is that after the end effector crosses this distance, it has left the dense obstacle area and entered the final approach stage that requires precise alignment. Before this, obstacle avoidance is the main focus, and after this, positioning accuracy is the main focus. The transition between the two stages of target control occurs precisely at this distance. The segmented smoothing configuration records the smoothing weight coefficients, smoothing step sizes, and maximum allowable curvature for the approach and contact segments respectively. The smoothing weight for the contact segment is significantly higher than that for the approach segment to ensure precise and controllable motion of the end effector during the contact phase. The greater the difference in smoothing parameters between the two segments in the segmented smoothing configuration, the more significant the difference in motion quality requirements between the approach and contact segments. When all nodes along a candidate path are more than 50mm from the target and the contact segment is empty, the path is treated with the parameters for the entire approach segment, and no smoothing weight is configured for the contact segment. In industrial gripping, the end effector can bypass obstacles and its trajectory can be curved in the approach segment, while in the contact segment, it must be precisely aligned with the gripping point with a stable direction. The difference in trajectory smoothness requirements between the two stages is the physical basis for the segmented smoothing configuration to distinguish the parameters of the two segments, and it also sets the basis for the application of unequal weights in subsequent segmented smoothing.

[0113] S5.3: Perform segmented path smoothing of the end effector according to the segmented smoothing configuration, and output the grab execution command.

[0114] Specifically, the contact segment requires higher positional accuracy from the end effector than the approach segment. The segmented smoothing configuration uses low-weight smoothing (three-node sliding weighted average, weight ratio 1:2:1) for the approach segment node sequence and high-weight smoothing (five-node sliding weighted average, weight ratio 1:2:4:2:1) for the contact segment node sequence. High-weight smoothing significantly compresses the trajectory curvature of the contact segment nodes. The smoothed approach and contact segment node sequences are then concatenated according to the boundary node numbers recorded in the segmented smoothing configuration to form a complete path. Cubic spline interpolation is used at the boundary nodes to ensure continuity of both the two paths at the boundary point and in the tangential direction. The grasping execution command is based on the smoothed path node spatial coordinate sequence, the arrival posture vector of each node, and the movement velocity of each node. The arrival posture vector of each node is determined by smoothing the direction vector of the corresponding trajectory node. More uniform node spacing indicates more stable end effector movement velocity. The grasping execution command is a sequence of end effector motion commands directly executable by the robot controller. The controller reads the position and posture data node by node to drive the joints to complete the grasping action. The pose accuracy of the end effector at the moment of contact with the target directly determines whether the gripper can successfully engage. The high-weight smoothing of the contact segment compresses the path curvature to the allowable range and ensures that the end effector aligns with the gripping point in a stable posture. When the curvature of a node still exceeds three degrees after the contact segment of a candidate path is smoothed, the two nodes before and after that node are included in the secondary smoothing window for local enhanced smoothing. The gripping execution command replaces the corresponding node of the path with the result of the secondary smoothing to ensure that the curvature of the entire contact segment meets the final gripping accuracy requirements.

[0115] The present invention also provides a robot grasping trajectory optimization system based on target detection, including a perception and recognition module, a candidate generation module, a trajectory evaluation module, a potential field optimization module, and a trajectory output module.

[0116] The perception and recognition module is used to acquire scene images, identify them through a target detection network to obtain a target detection table, and parse the six-degree-of-freedom pose of each target based on the target detection table to generate a target pose spectrum.

[0117] The candidate generation module is used to statistically analyze the distribution of each target normal vector in the target pose spectrum to obtain the normal vector feature spectrum, select the grasping direction with high cluster entropy within the size constraint from the normal vector feature spectrum to obtain the candidate grasping set, and identify the strong constraint direction with small corridor margin based on the candidate grasping set to determine the corridor margin value.

[0118] The trajectory evaluation module is used to construct the inverse kinematic trajectory of each candidate point based on the corridor margin value to obtain a joint trajectory library, use the joint trajectory library to determine the torque distribution of each trajectory node to obtain a torque cost table, and generate torque drop labels based on the torque cost table by statistically analyzing the sudden drop nodes and amplitudes of each trajectory.

[0119] The potential field optimization module is used to filter candidate points with few sudden drop nodes and meet the torque standard based on the torque drop label to obtain a torque feasible set. The torque feasible set is used to track nodes with sudden increase in potential field gradient on each path and trigger switching to obtain a potential field gradient map. The potential field gradient map is used to locate the path node with the strongest gradient conflict and determine the gradient conflict domain.

[0120] The trajectory output module is used to obtain a trajectory sequence by performing potential field gradient reweighting optimization from the gradient conflict domain, to establish a segmented smoothing configuration based on the unequal weight smoothing features of the approach segment and the contact segment according to the trajectory sequence, and to execute the end effector segmented path smoothing output grabbing execution command according to the segmented smoothing configuration.

[0121] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A robot grasping trajectory optimization method based on target detection, characterized in that: Includes the following steps: S1: Acquire scene images, obtain the target detection table, and generate the target pose spectrum; S2: Based on the target pose spectrum, obtain the normal vector feature spectrum and candidate capture set, and determine the corridor margin value; S3: Based on the corridor margin value, obtain the joint trajectory library and torque cost table, and generate torque drop annotations; S4: Obtain the feasible set of torques and the gradient map of the potential field based on the torque drop annotation, and determine the gradient conflict region; S5: Obtain trajectory sequences based on gradient conflict domains, establish segmented smoothing configurations, and output capture execution instructions; The specific steps of S2 are as follows: S2.1: Statistically analyze the distribution of normal vectors of each target for the target pose spectrum to obtain the normal vector feature spectrum; S2.2: Filter the grasping directions with high clustering entropy within the size constraint from the normal vector feature spectrum to obtain a candidate grasping set; S2.3: Identify the strong constraint directions with small corridor margin based on the candidate grasping set to determine the corridor margin value.

2. The robot grasping trajectory optimization method based on target detection according to claim 1, characterized in that: In S2.2, the specific steps for obtaining the candidate crawl set are as follows: S2.21: Perform clustering of the normal vectors of each candidate region for the normal vector feature spectrum to obtain a clustering set; S2.22: Based on the clustering group set, calculate the entropy value of the normal vector of each group and the distance between groups, and generate a normal clustering entropy table; S2.23: Based on the normal clustering entropy table, select candidate directions with high entropy values ​​to establish a high-entropy candidate set; S2.24: Identify directions that satisfy the end effector size constraints based on the high-entropy candidate set, and obtain a candidate grasping set.

3. The robot grasping trajectory optimization method based on target detection according to claim 1, characterized in that: In S2.3, the specific steps for determining the corridor margin value are as follows: S2.31: Measure the obstacle spacing in the approach direction of each candidate point for the candidate grab set to obtain the corridor width distribution; S2.32: Identify the approach directions with small spacing that meet the safety clearance from the corridor width distribution, and extract the set of strongly constrained directions; S2.33: Based on the strongly constrained direction set, analyze the corridor constraint stiffness and path degrees of freedom in each direction to generate the constraint feature distribution; S2.34: Identify the approach direction with the lowest path freedom and feasible approach direction based on the constraint feature distribution, and determine the corridor margin value.

4. The robot grasping trajectory optimization method based on target detection according to claim 1, characterized in that: In S3, the specific steps are as follows: S3.1: Construct the inverse kinematic trajectory of each candidate point based on the corridor margin value to obtain the joint trajectory library; S3.2: Measure the torque distribution of each trajectory node using the joint trajectory library to obtain the torque cost table; S3.3: Statistically analyze the sudden drop nodes and amplitudes of each trajectory based on the torque cost table to generate torque drop annotations; In S3.3, the specific steps for generating torque drop annotations are as follows: S3.31: Analyze the torque difference time series between each trajectory node for the torque cost table to obtain the torque difference sequence; S3.32: Identify nodes whose difference values ​​change abruptly beyond the threshold in the torque difference sequence, and establish a set of nodes with abrupt negative changes; S3.33: Based on the negative sudden change node set, the number and magnitude of sudden drop nodes in each trajectory are statistically analyzed to form a sudden drop feature distribution; S3.34: Based on the distribution of sudden drop features, identify the subsequent instability features of each sudden drop node and generate torque drop labels.

5. The robot grasping trajectory optimization method based on target detection according to claim 4, characterized in that: In S3.34, the specific steps for generating torque drop annotations are as follows: S3.341: Track the subsequent torque fluctuations of each sudden drop node for the aforementioned sudden drop characteristic distribution to form the subsequent distribution of the sudden drop; S3.342: Based on the subsequent distribution of the sudden drop, statistically analyze the correlation index between each sudden drop amplitude and the duration of torque instability, and generate an instability correlation table; S3.343: Based on the unstable association table, filter the nodes with sudden drops in association indicators that exceed the validity threshold, and establish a valid association set; S3.344: Based on the effective set of associations, integrate the positions and association strengths of each effective descent node to generate torque descent labels.

6. The robot grasping trajectory optimization method based on target detection according to claim 1, characterized in that: In S5, the specific steps are as follows: S5.1: Perform potential field gradient reweighting optimization from the gradient conflict domain to obtain the trajectory sequence; S5.2: Analyze the unequal weight smoothing features of the approach segment and the contact segment based on the trajectory sequence to establish a segmented smoothing configuration; S5.3: Perform segmented path smoothing of the end effector according to the segmented smoothing configuration and output the grasping execution command. In S5.1, the specific steps to obtain the trajectory sequence are as follows: S5.11: Calculate the cosine value of the gradient angle between each conflict node for the gradient conflict domain, and establish a conflict intensity map; S5.12: Analyze the inverse relationship between the degree of collinearity of the gradients of each node and the gradient weight from the conflict intensity map to obtain the weight allocation set; S5.13: Perform conflict-driven dynamic weight balancing iterative optimization based on the weight allocation set to generate an iterative optimization set; S5.14: Obtain the trajectory sequence by tracking the sequence of trajectory nodes when the weights converge based on the iterative optimization set.

7. The robot grasping trajectory optimization method based on target detection according to claim 6, characterized in that: In S5.13, the specific steps for generating the iterative optimization set are as follows: S5.131: Extract the conflict driving factors from the weight allocation ratio of each node for the weight allocation set, and construct an initial weight matrix; S5.132: The initial weight matrix is ​​updated step by step using the conflict driving factor as the driving force to generate an iterative weight sequence; S5.133: Based on the iterative weight sequence, identify the iteration rounds in which the gradient contribution tends to be balanced, and establish an equilibrium convergence set; S5.134: Based on the equilibrium convergence set, analyze the path node sequence of the optimal trajectory solution in each convergence round to obtain the iterative optimization set.

8. The robot grasping trajectory optimization method based on target detection according to claim 1, characterized in that: In S1, the specific steps are as follows: S1.1: Acquire scene images and obtain a target detection table by target detection network; S1.2: Analyze the six-degree-of-freedom pose of each target based on the target detection table to generate a target pose spectrum.

9. The robot grasping trajectory optimization method based on target detection according to claim 1, characterized in that: In S4, the specific steps are as follows: S4.1: Based on the torque drop label, select candidate points with few drop nodes and torque that meet the standard to obtain a torque feasible set; S4.2: Using the torque feasible set, track nodes with sudden increase in potential field gradient on each path and trigger switching to obtain a potential field gradient map. S4.3: Use the potential field gradient map to locate the path node with the strongest gradient conflict and determine the gradient conflict domain; In S4.2, the specific steps to obtain the potential field gradient map are as follows: S4.21: For the feasible set of torques, sample the potential field distribution of each candidate path point by point to form a potential field sampling sequence; S4.22: Measure the gradient magnitude and sudden increase magnitude of each sampling point based on the potential field sampling sequence, and generate the gradient magnitude distribution; S4.23: Identify path nodes whose gradient amplification exceeds the threshold based on the gradient magnitude distribution, and establish a set of amplified nodes; S4.24: Construct gradient switching labels for the sudden increase positions of each candidate path based on the suddenly increased node set, and obtain the potential field gradient map; In S4.3, the specific steps for determining the gradient conflict region are as follows: S4.31: Analyze the composite gradient direction and tangential direction of each node for the potential field gradient diagram to obtain a bidirectional gradient set; S4.32: Based on the bidirectional gradient set, determine the included angle and its rate of change of each node in the two directions, and generate the distribution of included angle changes; S4.33: Based on the angle change distribution, identify path nodes with sudden angle changes and conflict intensity exceeding the threshold, and form a conflict node set; S4.34: Delineate the neighborhood of each path conflict node based on the set of conflict nodes, and determine the gradient conflict domain.

10. The robot grasping trajectory optimization system based on target detection according to claim 1, characterized in that: It includes a perception and recognition module, a candidate generation module, a trajectory evaluation module, a potential field optimization module, and a trajectory output module; The perception and recognition module is used to acquire scene images, identify them through a target detection network to obtain a target detection table, and parse the six-degree-of-freedom pose of each target based on the target detection table to generate a target pose spectrum. The candidate generation module is used to statistically analyze the distribution of normal vectors of each target in the target pose spectrum to obtain a normal vector feature spectrum, filter the grasping directions with high clustering entropy within the size constraint from the normal vector feature spectrum to obtain a candidate grasping set, and identify strong constraint directions with small corridor margin based on the candidate grasping set to determine the corridor margin value. The trajectory evaluation module is used to construct the inverse kinematic trajectory of each candidate point based on the corridor margin value to obtain a joint trajectory library, use the joint trajectory library to determine the torque distribution of each trajectory node to obtain a torque cost table, and generate torque drop labels based on the torque cost table by statistically analyzing the sudden drop nodes and amplitudes of each trajectory. The potential field optimization module is used to filter candidate points with few sudden drop nodes and meet the torque standard based on the torque drop label to obtain a torque feasible set. The torque feasible set is used to track nodes with sudden increase in potential field gradient on each path and trigger switching to obtain a potential field gradient map. The potential field gradient map is used to locate the path node with the strongest gradient conflict and determine the gradient conflict domain. The trajectory output module is used to obtain a trajectory sequence by performing potential field gradient reweighting optimization from the gradient conflict domain, to establish a segmented smoothing configuration based on the unequal weight smoothing features of the approach segment and the contact segment according to the trajectory sequence, and to execute the end effector segmented path smoothing output grabbing execution command according to the segmented smoothing configuration.