A method for detecting violations of spatial intelligent long-term sub-target sequence constraints
By calculating the occupancy grid evolution trajectory and dependency detection of the execution sequence of sub-targets, the low accuracy of sequence violation detection caused by 3D spatial occlusion in the existing technology is solved. Efficient local rearrangement and constraint library update are achieved, improving the accuracy of detection and the efficiency of task planning.
Patent Information
- Application Number
- CN202611546387.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-08
- Publication Date
- 2026-11-10
AI Technical Summary
Existing methods fail to accurately detect the implicit geometric dependencies between sub-targets caused by occlusion in 3D space, resulting in low accuracy in detecting violations of order constraints and a lack of directional adjustment mechanisms for local segments.
By parsing the execution sequence of sub-objectives, calculating the evolution trajectory of occupied grids, enumerating candidate dependency pairs, determining dependency tendencies and performing violation detection, constructing a local dependency directed graph, performing local rearrangement processing, and generating constraint library records.
It improves the accuracy and efficiency of sequence violation detection, reduces reliance on experience-based judgment, has a wide range of applications, good portability and verifiability, and significantly enhances the transparency and traceability of long-term task planning.
Smart Images

Figure CN123071998A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer vision technology, and in particular to a spatial intelligent long-term sub-target order constraint violation detection method. Background Technology
[0002] Current research has made progress in task decomposition planning, automatic generation of sub-objective sequences, and multi-step task logic verification. Existing methods typically decompose long-term complex tasks into multiple sub-objectives, and use planning algorithms to generate the execution order sequence of the sub-objectives for the execution system to complete sequentially. However, as these methods are applied to real-world long-term task scenarios where there are real spatial occupancy, occlusion, and reachability constraints between sub-objective operation points, existing methods fail to consider the evolution of the 3D scene spatial occupancy state as the sub-objectives are completed, and whether the sub-objective operation points are physically occluded in this occupancy state. They do not characterize the sequence dependency as a necessary result that can be directly calculated through geometric collision detection, and lack quantitative differentiation methods based on spatial geometry to address the differences in dependency tendencies between different sub-objective pairs. Furthermore, they lack methods specifically targeting… The system lacks a mechanism for directional rearrangement of local sub-objective segments that violate order constraints while maintaining the remaining segments with reasonable order. It also lacks a mechanism for determining whether a particular order violation will propagate along the sequence and affect the executability of other sub-objectives. This mechanism relies on symbolic transmission of static dependency graphs or human experience, lacking a pre-execution logical verification mechanism that independently recalculates reachability based on scene occupancy status, separate from the rearrangement process itself. Furthermore, it lacks a unified processing priority for hard dependency violations involving irreversible operations and tolerable soft preferences. After completing a batch of task sub-objective planning, it lacks a mechanism to systematically precipitate implicit order dependency constraints into a reusable constraint library. Finally, it lacks a source analysis mechanism based on the combination of operation point spatial type and occlusion geometry type for recurring similar order violation patterns.
[0003] Chinese Patent Publication No. CN114820932A discloses a panoramic 3D scene understanding method based on graph neural networks and relationship optimization, including: Step S1: Constructing a dataset; Step S2: Simultaneously inputting panoramic images into a trained 2D object detection network and a panoramic layout estimation network to perform 2D object detection, estimate the room layout, and extract features of objects, walls, and the relationships between objects and walls; Step S3: Embedding the extracted features of objects, walls, and the relationships between objects and walls into a relation graph convolutional network to estimate object pose, object 3D implicit vectors, and the relationship between objects and the layout; Step S4: Using the estimated object pose as the initial value, performing relationship optimization based on collision detection, 2D projection, and relation constraints; Step S5: Decoding 3D geometry from implicit vectors using trained local implicit functions to achieve object reconstruction.
[0004] However, existing technologies fail to accurately detect sequence violations by leveraging the implicit geometric dependencies between sub-targets caused by occlusion in 3D space and only make directional adjustments to local segments, resulting in low accuracy in constraint violation detection. Summary of the Invention
[0005] To address this issue, the present invention provides a spatial intelligent long-term sub-target sequence constraint violation detection method, which solves the problem that existing methods fail to accurately detect sequence violations by leveraging the implicit geometric dependencies between sub-targets caused by occlusion in three-dimensional space and only make directional adjustments to local segments, thus resulting in low accuracy in constraint violation detection.
[0006] To achieve the above objectives, the present invention provides a spatial intelligent long-term sub-target order constraint violation detection method, comprising: Analyze the execution sequence of sub-targets and read the operation points, candidate entry direction set, estimated duration and sub-task line identifier of each sub-target. Obtain the change operator of each sub-target on scene occupation. Recursively calculate the occupation grid evolution trajectory based on the execution sequence of the sub-targets. For the sub-target execution sequence, candidate dependency pairs are enumerated, and the candidate dependency pairs are matched with the existing constraint library. Candidate dependency pairs that match known types are marked as high-priority candidate pairs. Determine the directional reachability of each high-priority candidate pair, and determine whether the dependency tendency of the candidate dependency pair is hard dependency or soft preference based on the number of still reachable candidate directions, and determine the corresponding weight and tolerance. Based on the evolution trajectory of the occupied grid, the order dependency is confirmed by comparing whether the accessibility of the operation point aggregation has been flipped and violation detection is performed. The risk contribution of each violation point and the overall sequence violation risk are calculated. The fragments to be rearranged are determined based on the comparison between the risk contribution of the violation points and the corresponding tolerance, and whether to perform local rearrangement is determined based on the dependency tendency of the fragments to be rearranged. For the sub-objectives within the segment to be rearranged, a local dependency directed graph is constructed and a topological sort is performed. After time budget compatibility verification, the updated sub-objective sequence is obtained. The updated sub-target sequence is independently re-executed to verify the occupied grid evolution and reachability calculation. If the verification passes, it is sent out for execution; if the verification fails, it is returned to local rearrangement. Based on the violation detection, updating of sub-target sequences, and verification process, archived records are generated, candidate dependency pairs are deposited into the constraint library and their reliability is updated, and the archived records are used to guide the next constraint violation detection.
[0007] Furthermore, the process of enumerating candidate dependency pairs includes: To satisfy Sub-target pair, if sub-target Change operators The affected voxel region and operation point coordinates Centered on sub-goals If the neighborhood space of the maximum entry travel length plus the tool's equivalent radius among the candidate directions has an overlap or proximity relationship, then the sub-target pair is included in the candidate dependency pair. The change operator is a composite occupy update operator. The union or difference set is automatically selected based on the type of occupation change, and the result is calculated recursively. ; in, The subtarget that is positioned first in the subtarget pair. For the sub-target located later, and They are respectively and The position of the sub-target in the execution sequence. For the first Occupied grid at any given moment Execute the sequence of operations for the sub-targets. The Middle Sub-targets at each location, To be according to The type of the composite occupy update operator is automatically selected as either union or difference; The change operators include adding the union of voxels corresponding to the installation and placement of sub-targets, i.e., adding a new block to occupy volume in space, and removing the difference of voxels corresponding to the drilling, cutting, and removal of sub-targets, i.e., opening a reachable channel in space.
[0008] Furthermore, the process of determining the directional reachability of each candidate dependency pair includes: For candidate dependency pairs In sub-target Occupy the grid before execution Next, calculate the sub-targets one by one. Directional reachability of the operation point in each candidate direction ; in, For sub-targets Occupied grid state before execution For the end effector along the direction Approaching the operating point The resulting swept body, For collision detection results, For sub-targets The set of candidate entry directions.
[0009] Furthermore, the process of determining dependency tendencies includes: Statistical sub-objectives Complete the sub-goals Number of still reachable candidate directions ; If the number of candidate directions The dependency tendency is determined to be a hard dependency, and a weight is assigned. Tolerance ; If the number of candidate directions The dependency tendency is determined to be a soft preference, and a weight is assigned accordingly. and Tolerance , Positively correlated with the current time budget surplus; in, Weights are assigned based on importance. Tolerance for relying on violations, The preset soft weight empirical value, The tolerance for soft dependencies refers to the dependency tendency, which includes both hard dependencies and soft preferences.
[0010] Furthermore, the process of conducting violation detection includes: Define sweep body Collision Detection To occupy the grid Voxels and If there is overlap, the value is 1; otherwise, the value is 0. Calculate aggregate reachability ; like and ,determination Established like For the newly added sub-target and and Determine the reverse blocking relationship Established when Established and middle Then the order is determined to violate the indicator function. Otherwise, it is 0; in, As candidate entry directions, To enter the travel length, The equivalent radius of the end effector. For along The displacement from the operating point in the direction of the operation. To be perpendicular to The lateral offset vector, for The grid state after execution For sub-target operation points affected by reverse blocking, Sub-targets affected by reverse blocking.
[0011] Furthermore, adjust the sub-targets for each violation point. Sub-targets The assumption following the relative order occupies the raster evolution trajectory and recalculates the position of the sub-target. The accessibility of each sub-goal is then assessed, and sub-goals whose accessibility is reversed are included in the propagation effect set. ; Risk contribution ; The risk of sequence synthesis order violation is The violation processing priority and the most concentrated violation segment are determined by sorting the risk contributions from largest to smallest. in, For the set of influences to be transmitted, This is to mitigate the risk of sequence order violation.
[0012] Furthermore, the process of determining whether to perform local rearrangement includes: Risk contribution With tolerance Each segment is compared individually. Sequence segments with a risk contribution less than or equal to the tolerance level are directly adopted. Sub-target pairs with a risk contribution greater than the tolerance level are identified as violation points triggering diversion processing. Segments to be rearranged are defined as... ; When a traffic split is triggered, a local reordering is performed on the violation points of hard dependencies; For violations of soft preferences, compare the current time budget surplus. The expected increase in time compared to soft rearrangement ; like Then it is determined that a local rearrangement process will be performed; like If a violation of the tolerance for soft preferences is identified, local rearrangement will not be performed.
[0013] Furthermore, the process of obtaining the updated sub-target sequence includes: A local dependency directed graph is constructed only for sub-targets within the rearranged fragment, with edges representing confirmed geometric dependencies; Perform a topological sort on the local dependency directed graph to obtain the update order within the segment to be rearranged that satisfies all known dependency constraints, while the relative order of sub-objectives outside the segment to be rearranged remains unchanged; Calculate the overall end-to-end time of the rearranged sequence based on the critical path length of each subtask line. Time budget surplus ,in, This is the updated sub-target sequence after local rearrangement. For the overall sequence time budget, This provides a buffer for the time budget; like The transmission effect set is extended outward by one layer of joint processing, that is, sub-targets that are directly adjacent to any sub-target in the current segment to be rearranged but are not included in the current segment to be rearranged are included in the rearrangement scope, and topological sorting and time budget compatibility checks are re-executed in a larger scope.
[0014] Furthermore, the process of independent execution of pre-execution logic verification includes: The occupied grid evolution and reachability calculations are re-executed from scratch for the updated sub-target sequence to obtain the set of violation points V' for verification; If the set of violation points V' used for verification is empty, then the verification is deemed successful and the execution is initiated. If the set of violation points V' used for verification is not empty, then the verification fails and the process is returned to local rearrangement.
[0015] Furthermore, the process of generating archived records includes: The violation detection, sub-target sequence update, and verification process are archived to form a record containing operation point coordinates, candidate entry directions, occupied grid evolution segments, and judgment criteria. Candidate dependency pairs are stored in the constraint library, recording information including operation point type pairs, occlusion geometry type, occupancy change operator type, and reliability. ; Where c represents a constraint. To constrain the reliability of c, This refers to the number of times a historical independent verification and check has been performed. To confirm the number of times a complete blockage occurred.
[0016] Compared with existing technologies, the beneficial effects of this invention are as follows: By introducing a unified criterion based on the evolution of the occupancy grid in a 3D scene and the spatial reachability calculation of operation points, this invention transforms the implicit sequential dependencies that are traditionally inferred from experience or historical statistics into quantitative indicators that can be directly calculated and verified by geometric collision detection and changes in occupancy state. The dependency tendency classification distinguishes between hard dependencies and soft preferences based on the geometric fact that there is a reachable alternative entry direction for the operation point before the execution of the relevant sub-objective, thereby avoiding the bias of treating different dependency types the same. Since the entire evaluation, detection and scheduling mechanism is based on reproducible geometric calculations, it reduces the reliance on empirical judgments and historical statistics, has good portability and verifiability, and can be combined with various task decomposition planning and sub-objective sequence generation algorithms. Only the operation point coordinates and candidate entry directions of each sub-objective need to be added to access this method, making it widely applicable.
[0017] Furthermore, this invention performs sequence constraint violation detection based on the evolution trajectory of the occupied grid. It confirms the true geometrical necessity of dependency by comparing whether the reachability of the operation point aggregation is flipped before and after execution, rather than relying on the symbolic transmission of the static relation graph. The scope of the propagation effect is accurately determined by recalculating the reachability flip of downstream sub-targets after the evolution of the occupied grid under the assumed sequence, thereby avoiding the omission of subsequent sub-targets that are truly affected by the violation. Cross-sub-task line cross dependencies are naturally covered because they share the same global scene occupied grid and unified reachability criteria, making up for the blind spot of only focusing on the internal dependencies of a single sub-task line. Before execution, the independent pre-execution logic verification recalculates the reachability one by one from the scene occupied state. This verification process can discover and correct omissions before actual execution, further improving the reliability of the detection results.
[0018] Furthermore, upon detecting a sequence violation, this invention only triggers directional rearrangement for local sub-target segments that are confirmed to truly violate geometrically necessary dependencies based on the grid occupancy evolution, rather than completely replanning the entire sequence. This ensures that rearrangement resources are precisely allocated to necessary positions, preserving other segments with reasonable order and avoiding unnecessary resource waste and planning disturbances. For violations with different dependency tendencies, this invention implements differentiated processing strategies: hard dependency violations receive stricter processing priority to ensure that geometrically necessary dependencies are satisfied first; soft preferences are flexibly judged based on time budget slack, suggesting rearrangement to eliminate efficiency loss when the budget is ample, and tolerating the soft violation when the budget is tight. This balances the strictness and flexibility of processing, significantly improving the efficiency and targeting of long-term task planning adjustments.
[0019] Furthermore, this invention enables cross-task reuse of constraints through a cross-task sequential dependency constraint library, which can accelerate the efficiency of planning and detection for similar tasks. The reliability is dynamically adjusted based on whether it actually constitutes an occupation or blockage in historical independent verification, avoiding the introduction of unreliable constraints and long-term occupation of hard processing resources by individual accidental samples or outdated scenario assumptions in the early stage of accumulation. The entire detection, rearrangement and verification process forms a traceable record, and the dependency tendency of each violation point can be intuitively marked on the three-dimensional scene view, which significantly improves the transparency and traceability of the planning process. Attached Figure Description
[0020] Figure 1 This is a flowchart of a spatial intelligent long-term sub-target sequence constraint violation detection method according to an embodiment of the present invention; Figure 2 This is a flowchart illustrating the local rearrangement process in an embodiment of the present invention; Figure 3 This is a flowchart illustrating the process of obtaining the updated sub-target sequence in an embodiment of the present invention; Figure 4 This is a flowchart illustrating the reliability update process in an embodiment of the present invention. Detailed Implementation
[0021] To make the objectives and advantages of the present invention clearer, the present invention will be further described below with reference to embodiments; it should be understood that the specific embodiments described herein are merely for explaining the present invention and are not intended to limit the present invention.
[0022] Preferred embodiments of the present invention will now be described with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are merely illustrative of the technical principles of the present invention and are not intended to limit the scope of protection of the present invention.
[0023] Please see Figure 1 The diagram shows a flowchart of a spatial intelligent long-term sub-target sequence constraint violation detection method according to an embodiment of the present invention. The method of the present invention includes: Step S1: parse the execution sequence of sub-targets and read the operation points, candidate entry direction set, estimated duration and sub-task line identifier of each sub-target. Obtain the change operator of each sub-target on scene occupation and recursively calculate the occupation grid evolution trajectory according to the execution sequence of sub-targets. Step S2: For several sub-target pairs in the sub-target execution sequence, enumerate candidate dependency pairs, match the candidate dependency pairs with the existing constraint library, and mark the candidate dependency pairs that match the known types as high-priority candidate pairs. Step S3: Determine the directional reachability of each high-priority candidate pair, determine whether the dependency tendency of the candidate dependency pair is hard dependency or soft preference based on the number of still reachable candidate directions, and determine the corresponding weight and tolerance. Step S4: Based on the evolution trajectory of the occupied grid, the order dependency is confirmed by comparing whether the accessibility of the operation point aggregation has been flipped and violation detection is performed. The risk contribution of each violation point and the overall sequence violation risk are calculated. Step S5: Determine the fragments to be rearranged based on the comparison results of the risk contribution of the violation point and the corresponding tolerance, and determine whether to perform local rearrangement based on the dependency tendency of the fragments to be rearranged. Step S6: Construct a local dependency directed graph for the sub-targets within the segment to be rearranged and perform topological sorting. After time budget compatibility check, the updated sub-target sequence is obtained. Step S7: Independently re-execute the occupied grid evolution and reachability calculation for the updated sub-target sequence to verify. If the verification passes, the execution is sent out; if the verification fails, the local rearrangement is returned. Step S8: Based on the violation detection, updated sub-target sequence and verification process, archive records are generated, candidate dependency pairs are deposited into the constraint library and the reliability is updated, and the archive records are used to guide the next constraint violation detection.
[0024] It should be noted that this embodiment uses a robot performing a long-term assembly and processing task in a three-dimensional workspace as an example. The scene includes objects such as bases, supports, and covers. The initial three-dimensional occupancy grid is obtained by voxelizing the three-dimensional meshes or pose sets of known objects in the scene. The voxel resolution is determined based on a trade-off between task accuracy and computational resources, for example, set to 0.02m. The end effector is a cylindrical tool, and its equivalent radius is determined based on the radius of the circumscribed cylinder of the tool, for example, 0.03m. The planning algorithm generates a sequence of sub-objective execution orders. Each sub-objective includes its associated subtask line identifier and estimated execution time; each sub-objective also includes operation point coordinates. and the set of candidate entry directions for end effectors Each candidate direction is a unit direction vector, belonging to the unit sphere. A subset of.
[0025] Specifically, step S2 includes: Step S21, for those that satisfy Sub-target pair, if sub-target Change operators The affected voxel region and operation point coordinates Centered on sub-goals If the neighborhood space of the maximum entry travel length plus the tool's equivalent radius among the candidate directions has an overlap or proximity relationship, then the sub-target pair is included in the candidate dependency pair. The change operator is a composite occupy update operator. The union or difference set is automatically selected based on the type of occupation change, and the result is calculated recursively. ; in, For sub-targets, the one that appears first in the center position. For the sub-target located later, and They are respectively and Position in the sub-target execution sequence For the first Occupied grid at any given moment Execute sequential sequence for sub-objectives The Middle Sub-targets at each location, To be according to The type of the composite occupy update operator is automatically selected as either union or difference; The change operators include adding the union of voxels corresponding to the installation and placement of sub-targets, which means adding a new block to occupy volume in space, and removing the difference of voxels corresponding to the drilling, cutting, and removal of sub-targets, which means opening a reachable path in space.
[0026] It should be noted that occupying a grid This is a voxel occupancy indicator function, where each voxel is marked as occupied or vacant; during recursive calculation, the values of each sub-target are unconditionally superimposed one by one according to their sequence positions. The calculation is not interrupted because a certain sub-target is actually inaccessible in the simulation, so that subsequent steps can uniformly discover and locate violations by comparing the differences in reachability values under different orders. In engineering implementation, the occupied grid can be maintained as a three-dimensional Boolean array. The union operation sets the corresponding voxel to 1, and the difference operation sets the corresponding voxel to 0. The intermediate state can only store the list of voxels that have changed to reduce memory usage.
[0027] It should be noted that in the engineering implementation, iterable... Calculate the distance from the center of each voxel to the voxel. Check if the distance is less than the radius; for large-scale voxels, octrees or bounding box hierarchical structures can be used to accelerate queries.
[0028] In step S22, candidate dependency pairs that match known types are marked as high-priority candidate pairs for priority verification in subsequent steps; candidate dependency pairs that do not match known types are also retained in the candidate dependency pair enumeration set for subsequent geometric calculations, and are not excluded because they do not match known types, so as to ensure that new dependency types not yet recorded in the constraint library can still be discovered through geometric calculations.
[0029] Specifically, step S3 includes: Step S31, for candidate dependency pairs In sub-target Occupy the grid before execution Next, calculate the sub-targets one by one. Directional reachability of the operation point in each candidate direction ; in, For sub-targets Occupied grid state before execution For the end effector along the direction Approaching the operating point The resulting swept body, For collision detection results, For sub-targets The set of candidate entry directions.
[0030] Step S32, Statistical analysis of sub-targets Complete the sub-goals Number of still reachable candidate directions ; If the number of candidate directions ,Right now Before completion All candidate entry directions are occupied and blocked, constituting a complete occlusion that cannot be bypassed. Therefore, the dependency tendency is determined to be a hard dependency, and weights are assigned accordingly. Tolerance ; If the number of candidate directions The dependency tendency is determined to be a soft preference, and a weight is assigned accordingly. and Tolerance , Positively correlated with the current time budget surplus; in, Weights are assigned based on importance. Tolerance for violations of the dependency The preset soft weight empirical value, This refers to soft dependency tolerance, while dependency tendency includes hard dependency and soft preference.
[0031] This invention introduces a unified criterion based on the evolution of the occupancy grid in a 3D scene and the spatial reachability calculation of operation points. This transforms the implicit order dependency, which traditionally relies on experience or historical statistics for inference, into a quantitative indicator that can be directly calculated and verified by geometric collision detection and changes in occupancy state. The dependency tendency classification distinguishes between hard dependencies and soft preferences based on the geometric fact that there is a reachable alternative entry direction for the operation point before the execution of the relevant sub-objective. This avoids the bias of treating different dependency types the same. Since the entire evaluation, detection, and scheduling mechanism is based on reproducible geometric calculations, it reduces the reliance on experience and historical statistics, has good portability and verifiability, and can be combined with various task decomposition planning and sub-objective sequence generation algorithms. Only the operation point coordinates and candidate entry directions of each sub-objective need to be added to integrate with this method, making it widely applicable.
[0032] Specifically, step S4 includes: Step S41, Define the swept body Collision Detection To occupy the grid Voxels and If there is overlap, the value is 1; otherwise, the value is 0. Calculate aggregate reachability ; like and ,determination Established like For the newly added sub-target and and Determine the reverse blocking relationship Established when Established and middle Then the order is determined to violate the indicator function. Otherwise, it is 0; in, As candidate entry directions, To enter the travel length, The equivalent radius of the end effector. For along The displacement from the operating point in the direction of the operation. To be perpendicular to The lateral offset vector, for The grid state after execution For sub-target operation points affected by reverse blocking, Sub-targets affected by reverse blocking.
[0033] It should be noted that swept body refers to... arrive With axis and radius The cylindrical spatial region is a conservative cylindrical approximation of the space occupied by the actual shape of the end effector along the approach path. If the actual tool shape is more complex, its circumscribed cylinder radius can be used as... For applications requiring higher precision, the cylindrical approximation can be replaced by a swept volume of the actual 3D mesh.
[0034] This invention detects sequence constraint violations based on the evolution trajectory of the occupied grid. It confirms the true geometrical necessity of dependencies by comparing whether the reachability of the operation point aggregation is flipped before and after execution, rather than relying on the symbolic transmission of the static relationship graph. The scope of the propagation effect is accurately determined by recalculating the reachability flip of downstream sub-targets after the evolution of the occupied grid under the assumed sequence, thereby avoiding the omission of subsequent sub-targets that are truly affected by the violation. Cross-sub-task line dependencies are naturally covered because they share the same global scene occupied grid and unified reachability criteria, making up for the blind spot of only focusing on the dependencies within a single sub-task line. Before execution, the independent pre-execution logic verification recalculates the reachability one by one from the scene occupied state. This verification process can discover and correct omissions before actual execution, further improving the reliability of the detection results.
[0035] Step S42: Construct adjustment sub-objectives for each violation point. Sub-targets The assumption following the relative order occupies the raster evolution trajectory: and Swap the positions in the sequence, keeping the rest of the order unchanged, recalculate the grid occupancy evolution recursively, and calculate the occupancy of each sub-target one by one. Subsequent sub-targets Accessibility of operation points Compared with the values in the original order, any value that is blocked or can be flipped Included in the transmission effect set ; Risk contribution ,in, To determine the number of sub-objectives affected by the transmission, this formula is an engineering heuristic scoring rule used to prioritize the handling of violations: 1. Ensure that even if the set of transmitted effects is empty, the violation itself is still included in the basic risk; The risk of sequence synthesis order violation is The priority of violation handling and the most concentrated violation segments are determined by sorting them from largest to smallest risk contribution. in, For the set of influences to be transmitted, This is to mitigate the risk of sequence order violation.
[0036] For soft preference-dependent pairs, if the order in the sequence is reversed... The system records sub-target pairs as violations of soft preferences, marks them separately, excludes them from the above-mentioned risk contribution accumulation, and instead proceeds to the subsequent auxiliary judgment process.
[0037] Please see Figure 2 As shown, it is a flowchart of the local rearrangement process performed in an embodiment of the present invention.
[0038] Specifically, step S5 includes: Step S51, risk contribution With tolerance One-by-one comparison: sub-objective pairs with a risk contribution less than or equal to the tolerance level are identified as non-violation points, and the sequence fragments are directly adopted; sub-objective pairs with a risk contribution greater than the tolerance level are identified as violation points, triggering diversion processing, and the fragments to be rearranged are defined as... ; Step S52: When the traffic splitting process is triggered, local reordering is performed on the violation points of hard dependencies. For violations of soft preferences, compare the current time budget surplus. The expected increase in time compared to soft rearrangement ; like Then it is determined that a local rearrangement process will be performed; like If a violation of the tolerance for soft preferences is identified, local rearrangement will not be performed.
[0039] It should be noted that the violation pattern is identified by the operation point type pair and the occlusion geometry type. If the cumulative number of occurrences of the current violation pattern in the historical constraint library of similar tasks reaches a preset threshold (e.g., 5), the system will additionally mark the pattern as a suspected systematic defect of the planning algorithm in the trigger judgment result.
[0040] Please see Figure 3 As shown, it is a flowchart of obtaining the updated sub-target sequence in an embodiment of the present invention.
[0041] Specifically, step S6 includes: Step S61: Construct a directed graph of local dependencies only for sub-targets within the rearranged fragment, where edges represent confirmed geometric dependencies. ; Step S62: Perform topological sorting on the locally dependent directed graph to obtain the update order that satisfies all known dependency constraints within the segment to be rearranged. The relative order of sub-objectives outside the segment to be rearranged remains unchanged. The topological sorting can be performed using the Kahn algorithm or the DFS topological sorting. Step S62: Calculate the end-to-end time of the rearranged overall sequence based on the critical path length of each sub-task line. Time budget surplus ,in, This is the updated sub-target sequence after local rearrangement. For the overall sequence time budget, This provides a buffer for the time budget; Step S64, if The transmission effect set is extended outward by one layer of joint processing, that is, sub-targets that are directly adjacent to any sub-target in the current segment to be rearranged but are not included in the current segment to be rearranged are included in the rearrangement scope, and topological sorting and time budget compatibility checks are re-executed in a larger scope.
[0042] Please see Figure 4 As shown, this is a logic diagram for determining whether a verification passes based on a set of violation points in an embodiment of the present invention. Specifically, in step S7, the process of independently performing the pre-logic verification includes: The occupied grid evolution and reachability calculations are re-executed from scratch for the updated sub-target sequence to obtain a set of violations V' for verification. This calculation is completely independent of the internal records of the rearrangement process itself and does not reuse the list of violations that the rearrangement step claims to have processed. If the set of violation points V' used for verification is empty, then the verification is deemed successful and execution is initiated. If the set of violation points V' used for verification is not empty, the verification is deemed unsuccessful, the process is reverted to local rearrangement, and the omissions are fed back to improve the coverage integrity of the violation detection.
[0043] Upon detecting a sequence violation, this invention triggers targeted rearrangement only for local sub-target segments that genuinely violate geometrically necessary dependencies, as confirmed by the grid occupancy evolution, rather than completely replanning the entire sequence. This ensures that rearrangement resources are precisely allocated to necessary positions, preserving other logically ordered segments and avoiding unnecessary resource waste and planning disturbances. For violations with different dependency tendencies, this invention implements differentiated processing strategies: hard dependency violations receive stricter processing priority to ensure that geometrically necessary dependencies are satisfied first; soft preferences are flexibly judged based on time budget slack, suggesting rearrangement to eliminate efficiency losses when the budget is ample, and tolerating the soft violation when the budget is tight. This balances the strictness and flexibility of processing, significantly improving the efficiency and targeting of long-term task planning adjustments.
[0044] Please see Figure 4 As shown, it is a flowchart of updating reliability according to an embodiment of the present invention.
[0045] Specifically, in step S8, the process of generating archived records includes: Step S81: Archive the violation detection, update sub-target sequence and verification process to form a record containing operation point coordinates, candidate entry direction, occupied grid evolution segment and judgment criteria; Step S82: Accumulate candidate dependency pairs into the constraint library, recording information including operation point type pairs, occlusion geometry type, occupancy change operator type, and determine reliability. ; Where c represents a constraint. To constrain the reliability of c, This refers to the number of times a historical independent verification and check has been performed. To confirm the number of times a complete blockage occurred.
[0046] If the violation pattern is marked as a suspected systemic defect in the planning algorithm, the types of operation points involved and the occlusion geometry types are compiled into review suggestions for the planning algorithm's generation logic and fed back to the planning algorithm's maintenance and improvement process. The operation point locations and dependency strengths of each violation point are marked on the 3D scene view of the sub-object sequence, allowing planners to visually verify the occlusion areas where hard dependency violations occur.
[0047] This invention enables cross-task reuse of constraints through a cross-task sequential dependency constraint library, which can accelerate the efficiency of planning and detection for similar tasks. The reliability is dynamically adjusted based on whether it actually constitutes an occupation or blockage in historical independent verification, avoiding the introduction of unreliable constraints and long-term occupation of hard processing resources by individual accidental samples or outdated scenario assumptions in the early stage of accumulation. The entire detection, rearrangement and verification process forms a traceable record, and the dependency tendency of each violation point can be intuitively marked on the 3D scene view, which significantly improves the transparency and traceability of the planning process.
[0048] The technical solution of the present invention has been described above with reference to the preferred embodiments shown in the accompanying drawings. However, it will be readily understood by those skilled in the art that the scope of protection of the present invention is obviously not limited to these specific embodiments. Without departing from the principles of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will all fall within the scope of protection of the present invention.
Claims
1. A spatial intelligent long-term sub-target sequence constraint violation detection method, characterized in that, include: Analyze the execution sequence of sub-targets and read the operation points, candidate entry direction set, estimated duration and sub-task line identifier of each sub-target. Obtain the change operator of each sub-target on scene occupation. Recursively calculate the occupation grid evolution trajectory based on the execution sequence of the sub-targets. For the sub-target execution sequence, candidate dependency pairs are enumerated, and the candidate dependency pairs are matched with the existing constraint library. Candidate dependency pairs that match known types are marked as high-priority candidate pairs. Determine the directional reachability of each high-priority candidate pair, and determine whether the dependency tendency of the candidate dependency pair is hard dependency or soft preference based on the number of still reachable candidate directions, and determine the corresponding weight and tolerance. Based on the evolution trajectory of the occupied grid, the order dependency is confirmed by comparing whether the accessibility of the operation point aggregation has been flipped and violation detection is performed. The risk contribution of each violation point and the overall sequence violation risk are calculated. The fragments to be rearranged are determined based on the comparison between the risk contribution of the violation points and the corresponding tolerance, and whether to perform local rearrangement is determined based on the dependency tendency of the fragments to be rearranged. For the sub-objectives within the segment to be rearranged, a local dependency directed graph is constructed and a topological sort is performed. After time budget compatibility verification, the updated sub-objective sequence is obtained. The updated sub-target sequence is independently re-executed to verify the occupied grid evolution and reachability calculation. If the verification passes, it is sent out for execution; if the verification fails, it is returned to local rearrangement. Based on the violation detection, updating of sub-target sequences, and verification process, archived records are generated, candidate dependency pairs are deposited into the constraint library and their reliability is updated, and the archived records are used to guide the next constraint violation detection.
2. The spatial intelligent long-term sub-target sequence constraint violation detection method according to claim 1, characterized in that, The process of enumerating candidate dependency pairs includes: To satisfy Sub-target pair, if sub-target Change operators The affected voxel region and operation point coordinates Centered on sub-goals If the neighborhood space of the maximum entry travel length plus the tool's equivalent radius among the candidate directions has an overlap or proximity relationship, then the sub-target pair is included in the candidate dependency pair. The change operator is a composite occupy update operator. The union or difference set is automatically selected based on the type of occupation change, and the result is calculated recursively. ; in, The subtarget that is positioned first in the subtarget pair. For the sub-target located later, and They are respectively and The position of the sub-target in the execution sequence. For the first Occupied grid at any given moment Execute the sequence of operations for the sub-targets. The Middle Sub-targets at each location, To be according to The type of the composite occupy update operator is automatically selected as either union or difference; The change operators include adding the union of voxels corresponding to the installation and placement of sub-targets, i.e., adding a new block to occupy volume in space, and removing the difference of voxels corresponding to the drilling, cutting, and removal of sub-targets, i.e., opening a reachable channel in space.
3. The spatial intelligent long-term sub-target sequence constraint violation detection method according to claim 2, characterized in that, The process of determining the directional reachability of each candidate dependency pair includes: For candidate dependency pairs In sub-target Occupy the grid before execution Next, calculate the sub-targets one by one. Directional reachability of the operation point in each candidate direction ; in, For sub-targets Occupied grid state before execution For the end effector along the direction Approaching the operating point The resulting swept body, For collision detection results, For sub-targets The set of candidate entry directions.
4. The spatial intelligent long-term sub-target sequence constraint violation detection method according to claim 3, characterized in that, The process of determining dependency tendencies includes: Statistical sub-objectives Complete the sub-goals Number of still reachable candidate directions ; If the number of candidate directions The dependency tendency is determined to be a hard dependency, and a weight is assigned. Tolerance ; If the number of candidate directions The dependency tendency is determined to be a soft preference, and a weight is assigned accordingly. and Tolerance , Positively correlated with the current time budget surplus; in, Weights are assigned based on importance. Tolerance for relying on violations, The preset soft weight empirical value, The tolerance for soft dependencies refers to the dependency tendency, which includes both hard dependencies and soft preferences.
5. The spatial intelligent long-term sub-target sequence constraint violation detection method according to claim 4, characterized in that, The process of conducting violation detection includes: Define sweep body ; Collision Detection To occupy the grid Voxels and If there is overlap, the value is 1; otherwise, the value is 0. Calculate aggregate reachability ; like and ,determination Established; like For the newly added sub-target and and Determine the reverse blocking relationship Established; when Established and middle Then the order is determined to violate the indicator function. Otherwise, it is 0; in, As candidate entry directions, To enter the travel length, The equivalent radius of the end effector. For along The displacement from the operating point in the direction. To be perpendicular to The lateral offset vector, for The grid state after execution For sub-target operation points affected by reverse blocking, Sub-targets affected by reverse blocking.
6. The spatial intelligent long-term sub-target sequence constraint violation detection method according to claim 5, characterized in that, Adjust sub-objectives for each violation point Sub-targets The assumption following the relative order occupies the raster evolution trajectory and recalculates the position of the sub-target. The accessibility of each sub-goal is then assessed, and sub-goals whose accessibility is reversed are included in the propagation effect set. ; Risk contribution ; The risk of sequence synthesis order violation is The violation processing priority and the most concentrated violation segment are determined by sorting the risk contributions from largest to smallest. in, For the set of influences to be transmitted, This is to mitigate the risk of sequence order violation during synthesis.
7. The spatial intelligent long-term sub-target sequence constraint violation detection method according to claim 6, characterized in that, The process of determining whether to perform a local rearrangement includes: Risk contribution With tolerance Each segment is compared individually. Sequence segments with a risk contribution less than or equal to the tolerance level are directly adopted. Sub-target pairs with a risk contribution greater than the tolerance level are identified as violation points triggering diversion processing. Segments to be rearranged are defined as... ; When a traffic split is triggered, a local reordering is performed on the violation points of hard dependencies; For violations of soft preferences, compare the current time budget surplus. The expected increase in time compared to soft rearrangement ; like Then it is determined that a local rearrangement process will be performed; like If a violation of the tolerance for soft preferences is identified, local rearrangement will not be performed.
8. The spatial intelligent long-term sub-target sequence constraint violation detection method according to claim 7, characterized in that, The process of obtaining the updated sub-target sequence includes: A local dependency directed graph is constructed only for sub-targets within the rearranged fragment, with edges representing confirmed geometric dependencies; Perform a topological sort on the local dependency directed graph to obtain the update order within the segment to be rearranged that satisfies all known dependency constraints, while the relative order of sub-objectives outside the segment to be rearranged remains unchanged; Calculate the overall end-to-end time of the rearranged sequence based on the critical path length of each subtask line. Time budget surplus ,in, This is the updated sub-target sequence after local rearrangement. For the overall sequence time budget, This provides a buffer for the time budget; like The transmission effect set is extended outward by one layer of joint processing, that is, sub-targets that are directly adjacent to any sub-target in the current segment to be rearranged but are not included in the current segment to be rearranged are included in the rearrangement scope, and topological sorting and time budget compatibility checks are re-executed in a larger scope.
9. The spatial intelligent long-term sub-target sequence constraint violation detection method according to claim 8, characterized in that, The process of logical verification before independent execution includes: The occupied grid evolution and reachability calculations are re-executed from scratch for the updated sub-target sequence to obtain the set of violation points V' for verification; If the set of violation points V' used for verification is empty, then the verification is deemed successful and the execution is initiated. If the set of violation points V' used for verification is not empty, then the verification fails and the process is returned to local rearrangement.
10. The spatial intelligent long-term sub-target sequence constraint violation detection method according to claim 9, characterized in that, The process of generating archived records includes: The violation detection, sub-target sequence update, and verification process are archived to form a record containing operation point coordinates, candidate entry directions, occupied grid evolution segments, and judgment criteria. Candidate dependency pairs are stored in the constraint library, recording information including operation point type pairs, occlusion geometry type, occupancy change operator type, and reliability. ; Where c represents a constraint. To constrain the reliability of c, This refers to the number of times a historical independent verification and check has been performed. To confirm the number of times a complete blockage has occurred.
Citation Information
Patent Citations
Panoramic three-dimensional scene understanding method based on graph neural network and relation optimization
CN114820932A
