Robot vision base map automatic acquisition splicing method and system based on causal gating
By employing causal gating mechanisms and multi-dimensional registration verification, the problems of inaccurate calculation of adjacent target poses and chaotic base map states in robot visual localization are solved, achieving highly reliable and robust automatic acquisition and stitching of visual base maps.
Patent Information
- Application Number
- CN202611313534.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-27
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, robot vision localization lacks calibration basis, resulting in inaccurate calculation of the pose of adjacent targets, lack of causal relationship between motion requests and the position state, and lack of verification of asynchronous processing results, leading to overlap ratio deviation, misalignment, holes and erroneous base map pollution. The lack of multi-dimensional verification and atomic publishing mechanisms causes chaotic base map state.
By establishing a causal gating mechanism, the poses of adjacent targets are accurately calculated to ensure the integrity of the causal chain of image acquisition. A multi-dimensional registration verification and atomic publishing mechanism are adopted to ensure the reliability and integrity of the base map update, including joint verification of state sequence number, timestamp, request identifier and pose error. Updates are only performed when the five dimensions are consistent.
It achieves highly reliable automatic acquisition and stitching of robot visual base maps, eliminates contamination from old images, ensures the integrity and robustness of base map updates, and improves the system's availability and traceability in complex environments.
Smart Images

Figure CN123181548A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of industrial robot visual positioning technology, and in particular to a method and system for automatic acquisition and stitching of robot visual base maps based on causal gating. Background Technology
[0002] Visual localization of industrial robots often requires establishing a large-area base map outside the field of view of a local camera. A common approach is to control the robot to move in adjacent directions, preserving the overlapping areas of adjacent images before stitching them together.
[0003] In existing technologies, the generation of adjacent target poses lacks calibration basis. Interface orientation operations are often directly equated with reliable acquisition commands, failing to accurately calculate adjacent target poses based on actual calibration field of view and overlap requirements. This leads to discrepancies between the actual overlap ratio and the expected one. Furthermore, there is a lack of verifiable causal relationships between motion requests, robot positioning status, and new images after positioning. A complete causal chain is not established from the issuance of motion commands to robot positioning confirmation and then to the acquisition of new images after positioning. The control state may be an old state, and the camera image queue may still contain images from before or during motion. If these old images enter the registration process without effective filtering, it will result in duplicate regions, misalignments, holes, or calibration relationship contamination. In addition, existing technologies lack a generational isolation mechanism for asynchronous processing results. In practical industrial vision systems, image acquisition, registration calculation, and base map updates often employ asynchronous parallel processing to improve efficiency. However, existing technologies do not perform effective generational verification of asynchronously returned registration results, leading to delayed asynchronous results after operation cancellation or the start of a new operation still updating the base map, causing base map state chaos. Meanwhile, existing technologies lack multi-dimensional verification and atomic publishing mechanisms for registration quality. Typically, the base map is updated directly after registration is completed without joint verification of the confidence level of the registration results, correction boundary, validity of overlapping areas, and boundary continuity. Atomic publishing is also not used to ensure the integrity of the base map update, making it difficult to avoid partial updates or erroneous base map contamination, and there is a lack of traceable failure diagnosis records. Summary of the Invention
[0004] This invention aims to solve the above-mentioned problems in the prior art and provides a method and system for automatic acquisition and stitching of robot visual base maps based on causal gating. This invention achieves highly reliable automatic acquisition and stitching of robot visual base maps by establishing a precise mapping from the calibrated field of view to the pose of adjacent targets, causal gating from motion request to the new image after the target is in place, and a complete technology chain from registration verification to atomic condition release.
[0005] To achieve the above objectives, the present invention provides the following technical solution: a method for automatic acquisition and stitching of robot visual base maps based on causal gating, characterized by comprising the following steps: Obtain the calibrated field of view size, pixel-to-robot coordinate transformation relationship, and target overlap ratio obtained from camera calibration, and generate the poses of adjacent targets based on the current robot pose; Establish operation generations and request identifiers for this data acquisition, and send the poses of the adjacent targets to the robot; Read the fresh control status corresponding to the request identifier and in ascending order, and record the baseline of the arrival frame after confirming that the robot is in place; Only new frames that have crossed the baseline of the arrival frame are received, and they are registered with the overlapping area in the original base map determined by the direction of motion. The candidate registration results are verified, and the verification includes at least the verification of matching confidence, correction boundary and overlap boundary. Conditional release is performed only when the control state, target pose, image frame, registration result, and operation generation are all consistent, atomically updating the visual base map and the relationship between the image and the robot pose; otherwise, release is rejected and the original base map is retained.
[0006] Preferably, the step of generating adjacent target poses based on the current robot pose includes: Read the effective physical length of the calibrated field of view in the direction of movement and the target overlap ratio, and calculate the physical step distance; The physical step distance is transformed to the robot's base coordinate system using a coordinate transformation matrix. Combined with the current robot pose, the poses of adjacent targets are generated, and the pose components other than the movement direction component in the current pose are retained.
[0007] Preferably, reading the fresh control state corresponding to the request identifier and in an incrementing sequence includes: Continuously read the control status returned by the robot controller and perform four verifications: the control status sequence number is greater than the baseline of the status sequence recorded when the motion command was sent; the control status timestamp is within the preset timeout window; the request identifier carried in the control status is consistent with the request identifier when the motion command was sent; and the pose error between the actual pose and the target pose in the control status meets the position tolerance. The robot is confirmed to be in position only when all four checks are met simultaneously.
[0008] Preferably, the step of only receiving new frames after arrival whose frame sequence number crosses the baseline of the arrival frame includes: The latest frame number of the industrial camera is read and recorded as the baseline of the arrival frame at the moment of confirmation of arrival; Discard all images whose frame sequence number is less than or equal to the baseline of the arriving frame, including images cached during motion, images queued before motion but not processed, and old frame images arriving due to communication delays; Only images with frame numbers strictly greater than the baseline of the current frame are accepted as new frames after the current frame is in place.
[0009] Preferably, the registration verification further includes effective region verification, which includes calculating the effective pixel area and aspect ratio of the overlapping region after transformation, requiring that the effective pixel area is not less than a preset area threshold and the aspect ratio is within a preset range.
[0010] Preferably, the atomic update of the visual base map employs a copy-on-write mechanism, including: Create a complete copy of the current base map; Perform basemap expansion and pose relation updates on the copy; The copy is switched to the current basemap by atomic pointer swapping, and the original basemap enters the delayed release queue.
[0011] This invention also provides an automatic acquisition and stitching system for robot visual base maps based on causal gating, comprising: The field of view calibration module is used to store and manage the calibration field of view size, pixel and robot coordinate transformation relationship obtained from camera calibration; The adjacent pose generation module is used to calculate and generate the poses of adjacent targets based on the calibrated field of view size, target overlap ratio, movement direction and current robot pose; The robot state freshness module is used to establish operation generations and request identifiers, send motion commands, and continuously read the control status to perform joint verification of sequence, time, request identifiers and pose errors to confirm the robot's position status. The in-place frame barrier module is used to record the latest frame number of the camera as the in-place frame baseline when the in-place is confirmed, and to filter out old images with frame numbers less than or equal to the baseline. The overlapping region registration module is used to extract the overlapping region from the current base map according to the motion direction when a new frame is received after bit, and to calculate the candidate registration transformation with the theoretical displacement as the initial value. The registration verification module is used to perform multi-dimensional verification of candidate registration transformations, including matching confidence, correction boundary, overlap boundary, and effective region. The operation generation module is used to manage the monotonically increasing operation generation and the allocation of request identifiers, and to perform generation consistency verification on the registration results returned asynchronously. The conditional release module is used to perform atomic releases when the control state, target pose, image frame, registration result, and operation generation are all consistent, updating the visual base map and pose relationship, or to perform locked releases and save diagnostic records when the conditions are not met.
[0012] Preferably, the adjacent pose generation module is further configured to: adopt an adaptive boundary expansion strategy, and increase a preset safety boundary margin on the basis of the theoretical overlap ratio, so as to compensate for the robot's positioning error and the field of view deviation caused by lens distortion.
[0013] Preferably, the overlapping region registration module is further configured to employ a hybrid strategy combining feature-based registration algorithm and mutual information-based registration algorithm, first using the feature-based registration algorithm for coarse registration, and then using the mutual information-based registration algorithm for fine registration in the neighborhood of the coarse registration result.
[0014] The present invention also provides a computer-readable storage medium having program instructions stored thereon, which, when executed by a processor, cause the processor to implement a method for automatically acquiring and stitching robot visual base maps based on causal gating.
[0015] Compared with existing technologies, the causal gating-based automatic acquisition and stitching method for robot visual base maps in this invention has the following significant advancements: This invention establishes transaction isolation through operation generation and request identifier, establishes an image freshness threshold through the baseline of the arrival frame, and confirms the arrival status through joint verification of state sequence number, timestamp, request identifier, and pose error, forming a complete and verifiable causal chain from motion request to the new image after arrival. This causal chain ensures that only the image after arrival, which strictly corresponds to the current motion request, can enter the registration process, fundamentally eliminating the contamination of the base image by images during motion and old images before motion.
[0016] This invention calculates the poses of adjacent targets precisely based on the actual field-of-view size and pixel-to-physical ratio determined during camera calibration, combined with the target overlap ratio, rather than simply equating interface orientation operations with reliable acquisition commands. This approach is adaptive to different camera models, lenses with different focal lengths, and different mounting postures, ensuring that the actual overlap area matches the expected height, providing reliable initial constraints and overlap guarantees for subsequent registration calculations.
[0017] This invention assigns a unique operation generation to each data acquisition transaction, and all asynchronous processing tasks carry their respective generation context. When a user cancels a data acquisition or starts a new operation, the system advances the operation generation, causing the results returned by old registration tasks still running in the background to be automatically discarded due to generation inconsistency, preventing access to completed interaction objects or contamination of the current base map. This mechanism effectively solves the state consistency problem in asynchronous parallel processing scenarios.
[0018] This invention performs joint verification of candidate registration results from four dimensions: matching confidence, correction boundary, overlap boundary, and effective region. Only candidates that pass all verifications are released for execution. Condition release requires consistency across five dimensions: control state, target pose, image frame, registration result, and operation generation. An atomic update method is used to ensure the integrity of the basemap update. This mechanism avoids partial updates and erroneous basemap contamination, while also providing detailed diagnostic records for each failure, ensuring complete traceability.
[0019] This invention implements latching release for various abnormal situations such as interruption, timeout, cancellation, old frames, late results, and verification failure, preserving the original base map and ensuring that the base map is always in a known correct state. After the equipment fault is recovered, the system can re-initiate acquisition with a new operation sequence, avoiding the old state or old image from crossing the fault boundary, which significantly improves the robustness and availability of the system in complex industrial environments. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a schematic diagram of the automatic acquisition and stitching system for robot visual base maps of the present invention; Figure 2 This is a schematic diagram illustrating the generation of adjacent target poses based on the calibrated field of view according to the present invention; Figure 3 This is a schematic diagram of the timing of the dual-barrier state and the new image in this invention; Figure 4 This is a schematic diagram of the overlapping region registration and condition release process of the present invention; Figure 5 This is a schematic diagram of asynchronous result generation verification and failure locking in this invention; Figure 6 This is a schematic diagram of the causal gating state machine transition of the present invention; Figure 7 This is a schematic diagram of the geometric relationship of overlapping adjacent fields of view in this invention; Figure 8 This is a schematic diagram of the multi-dimensional registration verification index system of the present invention. Detailed Implementation
[0022] To enable those skilled in the art to better understand the technical solutions of this invention, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this invention.
[0023] This invention provides a method and system for automatic acquisition and stitching of robot visual base maps based on causal gating. Its core lies in establishing a precise mapping from the calibrated field of view to the pose of adjacent targets, causal gating from motion requests to new images after positioning, and a complete technology chain from registration verification to atomic condition release, so as to achieve highly reliable automatic acquisition and stitching of robot visual base maps.
[0024] Reference Figure 1 The robot visual base map automatic acquisition and stitching system of the present invention includes a field of view calibration module, an adjacent pose generation module, a robot state freshness module, a position frame barrier module, an overlapping area registration module, a registration verification module, an operation generation module, and a condition release module.
[0025] The industrial camera and frame sequence module is responsible for image acquisition and frame number management, while the robot control and pose status module is responsible for motion control and status feedback. The motion-image causal gating controller, as the core coordination unit, receives frame numbers, timestamps, and image data from the industrial camera, and simultaneously receives status, pose, and request identifier information from the robot controller. After processing by causal gating logic, the new frame after it is in place is sent to the overlapping area registration and verification module. The verified result is finally atomically updated by the base map condition publishing and persistence module.
[0026] Reference Figure 2 The workflow of the adjacent pose generation module begins with reading the calibration field of view size and pixel ratio. The system determines the physical size of the calibration field of view and the ratio between pixels and physical units through joint camera intrinsic parameter calibration and hand-eye calibration. After setting the target overlap ratio, the system calculates the physical offset step distance of adjacent fields of view, which is determined by the product of the effective field of view length and the non-overlap ratio. Subsequently, the step distance in the image coordinate system is transformed to the robot base coordinate system using a coordinate transformation matrix. Combined with the current robot pose, pose composition calculations are performed to generate the poses of adjacent targets. This calculation retains all pose components in the current pose except for the movement direction component. (Refer to...) Figure 7 The geometric relationships between adjacent fields of view clearly demonstrate the overlapping area between the current base map field of view and the new frame field of view after the robot has reached its target position, as well as the theoretical displacement relationship of the robot from its current pose to the target pose. The physical width of the calibrated field of view, the overlap width corresponding to the overlap ratio, and the step size determined by the non-overlapping parts together constitute the geometric basis of adjacent navigation. The system also adopts an adaptive boundary expansion strategy, adding a safety boundary margin based on the theoretical overlap ratio to compensate for the field of view deviation caused by robot positioning errors and lens distortion.
[0027] Reference Figure 3The robot state freshness module and the positioning frame barrier module work together to form a dual-barrier timing mechanism for positioning status and new images. When initiating a data acquisition transaction, the system first establishes an operation generation and a request identifier. The operation generation is a monotonically increasing integer identifier used to identify a complete adjacent movement, capture, registration, and publication transaction. The request identifier is bound to a specific motion control request. The system records the current control state sequence number as the baseline for state freshness judgment, then sends the target pose to the robot and waits for feedback. During robot movement, the system continuously reads the real-time control status returned by the robot controller at a fixed frequency. Each control status includes a sequence number, timestamp, request identifier, actual pose, and status flag. The system performs a four-fold freshness check on each received control status: the control status sequence number must be greater than the state sequence baseline; the difference between the control status timestamp and the system's current time must be within a preset timeout window; the request identifier carried by the control status must be completely consistent with the request identifier sent when the motion command was sent; and the position error and angle error between the actual pose and the target pose in the control status must respectively meet the preset positioning tolerance and positioning angle tolerance. The system confirms that the robot has stably positioned itself only when all four checks are simultaneously satisfied. Upon confirmation of positioning, the system immediately reads the latest frame number from the industrial camera and records it as the positioning frame baseline, which serves as a hard threshold for image freshness. The system clears all image frames in the image receiving buffer whose frame numbers are less than or equal to the positioning frame baseline, and sends a frame baseline notification to the image acquisition module, requesting that subsequent reports only include image frames whose frame numbers are greater than the positioning frame baseline. Old frame images already in the asynchronous registration queue are also directly marked as discarded and removed. After a certain delay, the system receives a new frame after positioning with a frame number strictly greater than the positioning frame baseline. This new frame meets the freshness condition and is accepted as a valid new frame. The complete timing sequence described above, from establishing the operation generation to sending the target pose, from confirming the freshness status to recording the positioning frame baseline, and then to receiving the new frame after positioning, constitutes a verifiable causal chain between the motion request and the new image after positioning.
[0028] Reference Figure 6The entire process described above can be described using a causal gating state machine. The system starts in an idle waiting state. When a user triggers an expansion request or an automatic mesh batch trigger, it enters the generation initialization state to establish the operation generation and request identifier. It then enters the motion command sent state, sending the target pose to the robot controller. When the four-fold state check passes, the system transitions to the position confirmation state, recording the position frame baseline. After baseline recording, it enters the waiting for new frames state, continuously monitoring the camera image stream. When a new frame arrives and the overlapping area is extracted, the system enters the registration verification state. If the verification is successful and the five-dimensional consistency check passes, the system performs an atomic release and enters the released state, after which it can continue to expand or move to the next mesh point. If any condition is not met, the system enters the latch rejection state, retaining the original base map unchanged. If user cancellation, timeout, emergency stop, or equipment failure occurs at any stage, the system returns to the idle waiting state, ensuring the base map is always in a known correct state.
[0029] Reference Figure 4 The overlapping region registration module extracts the corresponding overlapping region from the current base image according to the direction of movement after receiving the new frame. If the movement direction is to the right, the overlapping region is extracted from the right edge of the base image; if it is to the left, it is extracted from the left edge; the same applies to upward and downward movements. The extracted overlapping region and the corresponding region in the new frame after positioning together constitute the input image pair for registration calculation. The system uses the robot's theoretical displacement as the initial value for registration and adopts a hybrid strategy combining feature-based registration algorithms and mutual information-based registration algorithms. First, coarse registration is performed using feature extraction and matching algorithms, and then fine registration search is performed in the neighborhood of the coarse registration result using normalized mutual information to obtain the candidate registration transformation matrix.
[0030] Reference Figure 8 The registration verification module performs multi-dimensional joint verification on candidate registration transformations. Matching confidence verification calculates the number of feature matching points, the proportion of matching intra-points, and the matching quality score during registration, requiring that each of these indicators is not less than its respective preset threshold. Correction boundary verification calculates the translation and rotation deviations between the candidate transformation and the theoretical initial value, requiring that the deviations do not exceed a preset correction tolerance. Overlap boundary verification applies the candidate transformation to the new frame after it is in place, uniformly samples multiple points on multiple boundaries of the overlapping region, calculates the consistency of the gray-level gradient direction at the corresponding positions, and obtains a boundary continuity index, requiring that this index is not less than a preset boundary continuity threshold. Effective region verification calculates the effective pixel area of the overlapping region after the transformation, requiring that this area is not less than a preset area threshold, and that the aspect ratio of the effective region conforms to a preset range. Only when all four verification conditions are met is the candidate registration transformation marked as valid.
[0031] After successful verification, the conditional release module performs conditional release validation, checking five dimensions: control state validity, target pose consistency, image frame freshness, registration result verification pass mark, and operation generation consistency. The system only performs atomic release when all five conditions are met. Atomic release uses a copy-on-write mechanism. First, a complete copy of the current basemap is created. Basemap expansion and pose relationship updates are performed on the copy. After the update, the copy is switched to the current basemap via atomic pointer swapping. The original basemap enters a delayed release queue and is safely released after confirming no other read operations reference it. The entire update process is transparent to upper-layer applications, ensuring that read operations always access a consistent basemap state during the update process. If any of the five conditions is not met, the system performs a latching release, rejecting the basemap update and preserving the original basemap unchanged. Simultaneously, a diagnostic record is saved, including the failure type, failure time, relevant operation generation, request identifier, baseline of the target frame, and specific indicators that failed verification, providing traceable data support for subsequent troubleshooting.
[0032] Reference Figure 5 The operation generation module performs generation verification and failure locking on the asynchronously returned registration results. When an asynchronous acquisition or registration result is returned, the system first checks whether the operation generation of the result is the current generation. If the generation is inconsistent, regardless of whether the result is a late result from a canceled operation or a residual result from before a new operation begins, it is directly discarded, and the image copy and transform matrix copy it holds are released. If the generation is consistent, the system further checks whether the request identifier and the target pose are consistent. If the request identifier or the target pose is inconsistent, the result is also discarded. Only when the generation, request identifier, and target pose are all consistent does the asynchronous result enter the conditional release verification process. In addition, the system adds baseline version verification, requiring that the base map version number corresponding to the candidate result is consistent with the current base map version number to prevent base map state chaos caused by updates based on expired baselines.
[0033] In practical applications, the operator selects the expansion direction at the edge of the existing base map through a human-machine interface. The system reads the calibration parameters and the target overlap ratio set by the user, calculates the physical step distance, and generates the poses of adjacent targets. The system establishes a new operation generation and request identifier, records the state sequence baseline, and sends motion commands to the robot. During the robot's movement, the system continuously performs a four-fold freshness check, records the baseline of the arrival frame after confirming the arrival, and filters all old images. After the arrival of the new frame, the system extracts the overlapping area according to the motion direction, executes a hybrid registration strategy to obtain candidate transforms, and then performs four-dimensional joint verification and five-dimensional conditional release verification, finally updating the base map through atomic release. For expansion in the left, up, and down directions, the system adopts the same causal gating process, only changing the displacement direction sign and the position of the extracted overlapping area.
[0034] In automatic grid acquisition mode, the system establishes a global operation generation for the entire task. Each grid point is assigned an independent request identifier. All grid points share the same global operation generation but each has its own independent causal chain. The system uses serpentine path planning to reduce idle travel. Only after the current grid point completes the condition publication will the acquisition of the next grid point be initiated with the updated base map as the baseline. When the operator clicks to cancel acquisition, the system immediately advances the global operation generation, stops subsequent motion requests, sends a deceleration and stop command, retains the completed base map, and discards incomplete tasks. Results returned by old registration tasks already executed in the background are automatically identified and discarded due to generation inconsistency. If a fault occurs such as camera interruption, robot state timeout, or emergency stop, the current grid point does not publish any candidate content, retains the base map unchanged, saves the diagnostic record, and enters a waiting recovery state. After the fault is resolved, the system establishes a new operation generation for the remaining grid points and continues acquisition from the breakpoint with the currently verified base map as the baseline, avoiding the old state or old image crossing the fault boundary.
[0035] This invention also provides an electronic device, including a processor, a memory, a robot communication interface, and a camera interface. When the processor executes program instructions stored in the memory, it implements the aforementioned method for automatic acquisition and stitching of robot visual base maps based on causal gating. The robot communication interface is used for bidirectional data interaction with the robot controller, sending motion commands and receiving control status, pose feedback, and status flags. The camera interface is used to receive image frames, frame numbers, and timestamp information from an industrial camera. The memory also stores configuration data such as field-of-view calibration parameters, target overlap ratio, positioning tolerance, timeout window, and verification threshold, as well as diagnostic records and persistent base map data generated during operation.
[0036] This invention also provides a computer-readable storage medium storing program instructions. When executed by a processor, these instructions cause the processor to implement the aforementioned method for automatic acquisition and stitching of robot visual base maps based on causal gating. The computer-readable storage medium can be any one or more combinations of read-only memory, random access memory, erasable programmable read-only memory, electrically erasable programmable read-only memory, flash memory, magnetic storage devices, or optical storage devices. When the program instructions are loaded into an electronic device and executed, the electronic device performs a complete process including calibration field reading, adjacent target pose generation, operation generation and request identifier establishment, fresh state confirmation, baseline recording of the positioning frame, reception of new frames after positioning, registration of overlapping areas, multi-dimensional registration verification, condition issuance and atomic update, and failure locking and diagnostic record saving, thereby achieving highly reliable automatic acquisition and stitching of robot visual base maps.
[0037] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for automatic acquisition and stitching of robot visual base maps based on causal gating, characterized in that, Includes the following steps: Obtain the calibrated field of view size, pixel-to-robot coordinate transformation relationship, and target overlap ratio obtained from camera calibration, and generate the poses of adjacent targets based on the current robot pose; Establish operation generations and request identifiers for this data acquisition, and send the poses of the adjacent targets to the robot; Read the fresh control status corresponding to the request identifier and in ascending order, and record the baseline of the arrival frame after confirming that the robot is in place; Only new frames that have crossed the baseline of the arrival frame are received, and they are registered with the overlapping area in the original base map determined by the direction of motion. The candidate registration results are verified, and the verification includes at least the verification of matching confidence, correction boundary and overlap boundary. Conditional release is performed only when the control state, target pose, image frame, registration result, and operation generation are all consistent, atomically updating the visual base map and the relationship between the image and the robot pose; otherwise, release is rejected and the original base map is retained.
2. The automatic acquisition and stitching method for robot visual base maps based on causal gating according to claim 1, characterized in that, The step of generating adjacent target poses based on the current robot pose includes: Read the effective physical length of the calibrated field of view in the direction of movement and the target overlap ratio, and calculate the physical step distance; The physical step distance is transformed to the robot's base coordinate system using a coordinate transformation matrix. Combined with the current robot pose, the poses of adjacent targets are generated, and the pose components other than the movement direction component in the current pose are retained.
3. The automatic acquisition and stitching method for robot visual base maps based on causal gating according to claim 1, characterized in that, The reading of the fresh control state corresponding to the request identifier and in ascending order includes: Continuously read the control status returned by the robot controller and perform four verifications: the control status sequence number is greater than the baseline of the status sequence recorded when the motion command was sent; the control status timestamp is within the preset timeout window; the request identifier carried in the control status is consistent with the request identifier when the motion command was sent; and the pose error between the actual pose and the target pose in the control status meets the position tolerance. The robot is confirmed to be in position only when all four checks are met simultaneously.
4. The automatic acquisition and stitching method for robot visual base maps based on causal gating according to claim 1, characterized in that, The method of only receiving new frames after arrival whose sequence numbers cross the baseline of the arrival frame includes: The latest frame number of the industrial camera is read and recorded as the baseline of the arrival frame at the moment of confirmation of arrival; Discard all images whose frame sequence number is less than or equal to the baseline of the arriving frame, including images cached during motion, images queued before motion but not processed, and old frame images arriving due to communication delays; Only images with frame numbers strictly greater than the baseline of the current frame are accepted as new frames after the current frame is in place.
5. The automatic acquisition and stitching method for robot visual base maps based on causal gating according to claim 1, characterized in that, The registration verification also includes effective region verification, which includes calculating the effective pixel area and aspect ratio of the overlapping region after transformation. The effective pixel area is required to be no less than a preset area threshold and the aspect ratio is within a preset range.
6. The automatic acquisition and stitching method for robot visual base maps based on causal gating according to claim 1, characterized in that, The atomic update of the visual basemap employs a copy-on-write mechanism, including: Create a complete copy of the current base map; Perform basemap expansion and pose relation updates on the copy; The copy is switched to the current basemap by atomic pointer swapping, and the original basemap enters the delayed release queue.
7. A robot vision base map automatic acquisition and stitching system based on causal gating, characterized in that, include: The field of view calibration module is used to store and manage the calibration field of view size, pixel and robot coordinate transformation relationship obtained from camera calibration; The adjacent pose generation module is used to calculate and generate the poses of adjacent targets based on the calibrated field of view size, target overlap ratio, movement direction and current robot pose; The robot state freshness module is used to establish operation generations and request identifiers, send motion commands, and continuously read the control status to perform joint verification of sequence, time, request identifiers and pose errors to confirm the robot's position status. The in-place frame barrier module is used to record the latest frame number of the camera as the in-place frame baseline when the in-place is confirmed, and to filter out old images with frame numbers less than or equal to the baseline. The overlapping region registration module is used to extract the overlapping region from the current base map according to the motion direction when a new frame is received after bit, and to calculate the candidate registration transformation with the theoretical displacement as the initial value. The registration verification module is used to perform multi-dimensional verification of candidate registration transformations, including matching confidence, correction boundary, overlap boundary, and effective region. The operation generation module is used to manage the monotonically increasing operation generation and the allocation of request identifiers, and to perform generation consistency verification on the registration results returned asynchronously. The conditional release module is used to perform atomic releases when the control state, target pose, image frame, registration result, and operation generation are all consistent, updating the visual base map and pose relationship, or to perform locked releases and save diagnostic records when the conditions are not met.
8. The automatic acquisition and stitching system for robot visual base maps based on causal gating according to claim 7, characterized in that, The adjacent pose generation module is also configured to: adopt an adaptive boundary expansion strategy, and add a preset safety boundary margin on the basis of the theoretical overlap ratio, so as to compensate for the robot's positioning error and the field of view deviation caused by lens distortion.
9. The automatic acquisition and stitching system for robot visual base maps based on causal gating according to claim 7, characterized in that, The overlapping region registration module is further configured to employ a hybrid strategy combining feature-based registration algorithms and mutual information-based registration algorithms. First, a coarse registration is performed using the feature-based registration algorithm, and then a fine registration is performed within the neighborhood of the coarse registration result using the mutual information-based registration algorithm.
10. A computer-readable storage medium having program instructions stored thereon, characterized in that, When the program instructions are executed by the processor, the processor implements the automatic acquisition and stitching method for robot visual base maps based on causal gating as described in any one of claims 1 to 6.
