Warehouse path planning method based on visual multi-agv cooperative scheduling
By obtaining the task priority and turning direction of AGVs through visual coding and identification, and combining the collaborative potential field diagram to plan the path, the problems of traffic congestion and path deadlock in multi-AGV collaborative scheduling are solved, and efficient and safe warehouse path planning is achieved.
Patent Information
- Application Number
- CN202611177594.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-05
- Publication Date
- 2026-11-20
AI Technical Summary
Existing warehouse route planning methods fail to effectively utilize dynamic information in the collaborative scheduling of multiple AGVs, leading to traffic congestion and route deadlock. Furthermore, wireless communication has poor reliability in warehouse environments, making it difficult to achieve efficient collaborative scheduling.
By obtaining the task priority and planned turning direction of AGVs through visual encoding, and combining it with global environmental information to construct a cooperative potential field diagram, a conflict-free path trajectory is generated, enabling efficient cooperative scheduling of multiple AGVs.
Under conditions of limited wireless communication, real-time intention perception and dynamic path planning between AGVs were realized, reducing the probability of conflicts and improving the safety and efficiency of multi-AGV collaborative operation.
Smart Images

Figure CN123135045A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent warehousing and logistics technology, specifically a vision-based multi-AGV collaborative scheduling method for warehouse path planning. Background Technology
[0002] As automated warehousing scales up, the collaborative scheduling of multiple AGVs in dense environments is a core means to improve logistics efficiency. Existing warehouse path planning methods typically rely on global cameras or laser SLAM systems deployed on the warehouse ceiling to construct a static environmental map. A centralized scheduler then uses global planning algorithms such as A* and Dijkstra's algorithm to assign travel paths to each AGV based on the known map and the real-time location of the AGVs. When multiple AGVs intersect at intersections or narrow passages, the scheduler generally resolves conflicts based on pre-set fixed priority rules or time window algorithms. These methods treat AGVs as passive objects that only move along predetermined trajectories, failing to incorporate dynamic information such as the urgency of the AGV's current task and its next movement intention. In actual operation, AGVs performing urgent tasks may need to rush through or temporarily change course, while other AGVs, lacking knowledge of this intention, can only resort to on-site emergency stops or conservative avoidance according to fixed rules, easily leading to local traffic congestion or even path deadlock. Some solutions exchange planned paths and priority statuses of each AGV in real time via wireless LAN. However, in warehouse environments with dense metal shelving and severe multipath interference, the real-time performance and reliability of wireless communication are difficult to guarantee. Transmission delays can lead to lag in other vehicles' status information, increasing the risk of collisions. Furthermore, traditional artificial potential field path planning often uses a superposition of static obstacle repulsive potential and target gravitational potential, failing to incorporate task priority and planned turning direction into the potential field construction. This lacks the ability to avoid high-priority AGVs about to turn in dynamic scenarios, often resulting in paths planned close to the edges of moving obstacles, impacting safety and scheduling efficiency. Therefore, it is necessary to achieve reliable real-time perception of other vehicles' intentions under conditions of limited wireless communication and to solve the problem of dynamically integrating priority and turning direction into the collaborative potential field for conflict-free path search. Summary of the Invention
[0003] This paper presents a vision-based multi-AGV collaborative scheduling warehouse path planning method. It directly obtains the task priority and planned turning direction of other AGVs through visual encoding and identification, and integrates the above dynamic intentions with global environmental information to construct a collaborative potential field diagram. In the path search, it generates a conflict-free path trajectory based on the time-varying collaborative repulsive potential, realizing efficient collaborative scheduling of multiple AGVs without relying on wireless communication.
[0004] To achieve the above objectives, the present invention provides the following technical solution: a vision-based multi-AGV collaborative scheduling warehouse path planning method, comprising: Collect a top view of the warehouse, generate a global occupancy grid map, and identify the number, location, and orientation of each AGV; Each AGV acquires surrounding images through onboard forward and side vision sensors, extracts visual coding markings from other AGVs, and parses out the current task priority and planned turning direction of the corresponding AGV. The global scheduling module determines the target pose of the AGV to be scheduled based on the task request, and merges the global occupancy grid map with the local encoding parsing results to construct a cooperative potential field map. On the cooperative potential field diagram, a path search is performed starting from the current position of the AGV to be scheduled, the comprehensive cost of the path is calculated, and a conflict-free path trajectory is output. The path trajectory is sent to the AGV actuator, and trajectory tracking control is performed based on the deviation feedback from the AGV's onboard vision in real time.
[0005] As a preferred implementation, the acquisition of the warehouse top view, generation of a global occupancy grid map, and identification of each AGV's pose further includes: acquiring images of different areas of the warehouse using multiple synchronously triggered global cameras; performing distortion correction and perspective projection transformation on each image; stitching them together to form a complete top-down panoramic image; performing difference analysis between the panoramic image and a static background model to extract foreground moving blocks; filtering the AGV vehicle body area through connected component analysis and contour polygon approximation; detecting colored labels and internal black coded numbers above the vehicle body area; converting the color space to HSV space; segmenting the background area and coded number area based on hue and saturation thresholds; binarizing and connecting component splitting the coded number area; scaling individual digital image blocks to template size and normalizing and matching them with a digital template library to obtain the AGV number; performing contour detection on the directional arrow area; extracting the arrow vertex and two base points; using the midline direction of the line connecting the vertex and base points as the vehicle's heading. This method does not rely on external positioning equipment and can accurately acquire the global pose of each AGV in a dynamic warehouse environment with multiple AGVs coexisting, providing a precise spatial reference for collaborative scheduling.
[0006] When each AGV extracts visual coded identifiers from the bodies of other AGVs to deduce task priorities and planned turning directions, it uses wide-angle cameras installed on the front and rear bumpers and left and right sides of the AGVs to capture images. Histogram equalization is then applied to these images to enhance contrast. Edge detection and arc search are used to locate the circular coded identifier areas on the sides of other AGV bodies. This circular area is then expanded in polar coordinates to obtain a sector distribution, with each sector filled with black and white stripes of different pulse widths. Brightness value sequences are collected along the angle axis, and edge detection operators are used to determine stripe boundaries and calculate the pixel span between adjacent boundaries, thus distinguishing the widths of black and white stripes. The sum of the widths of all black stripes and the sum of the widths of all white stripes within a sector are summed, and the ratio is calculated. This ratio is input into a decoding table divided according to the ratio range to obtain the symbol value for that sector. All sectors are processed sequentially, and the obtained symbol sequences are used as address retrieval priority and turning angle encoding tables to obtain the corresponding priority and turning angle values. This visual coding and identification method enables AGVs to reliably perceive each other's scheduling intentions and movement trends at close range without the need for wireless communication links, enhancing the system's robustness and real-time performance under communication-constrained conditions.
[0007] In the process of constructing the collaborative potential field map, each grid cell of the globally occupied grid map is used as a unit, and the potential field value is initialized to zero. The boundary of the static environment obstacle is read, and the grid cells located inside the obstacle are assigned the maximum repulsive potential. The static environment potential field is generated by spreading outward from the boundary of the obstacle according to a preset decay function. A gravitational potential field pointing towards the target is generated with the grid cell where the target pose of this AGV is located as the center. According to the resolution of the priority and planned turning direction of other AGVs, a dynamic danger zone is constructed for each other AGV. This zone extends along its turning direction and expands as the priority decreases. A time-varying collaborative repulsive potential is superimposed on the grid cells in this zone. The static environment potential field, the gravitational potential field, and all time-varying collaborative repulsive potentials are summed according to weights to obtain the collaborative potential field map. Preferably, when constructing the dynamic danger zone, a fan-shaped expansion area is established along the turning direction of other AGVs, with the current grid position of each AGV as the vertex. The central angle of the fan is consistent with the planned turning angle, and the radius of the fan is determined based on the safety distance and priority difference between this AGV and other AGVs; the lower the priority, the larger the radius. For each grid within the fan-shaped area, a two-dimensional Gaussian potential energy function is constructed based on its distance from the vertex and the center line. The peak potential energy is located at the vertex and decays radially and angularly. This potential energy value is superimposed on the corresponding grid as a time-varying cooperative repulsive potential, and the size of the fan-shaped area is updated at each time step based on the new position and turning direction of other AGVs. This cooperative potential field map effectively integrates static environmental constraints, target guidance, and dynamic cooperative repulsion information of multiple AGVs. In particular, by dynamically adjusting the repulsion range through priority differences, the planned path actively moves away from the predetermined movement trajectory of low-priority AGVs while avoiding obstacles, significantly reducing the probability of conflict.
[0008] When performing path search on the cooperative potential field graph, an open node priority queue is constructed, with the starting node having a cost value of zero. The node with the lowest cost is retrieved from the open queue, and its surrounding neighboring grid nodes are examined. Preferably, the direction vector between the current node and candidate neighboring nodes is determined, and the angle between this direction vector and the current AGV orientation is calculated. If the angle exceeds a set maximum turning angle threshold, the neighboring node is marked as unreachable. For reachable neighboring nodes, the potential value, Euclidean distance increment, and absolute value of the turning change of that node in the cooperative potential field graph are read, multiplied by preset potential weights, distance weights, and turning weights respectively, and then summed to obtain the estimated cost of reaching the target node from the current node via that neighboring node. If a neighboring node is not visited or its new cost is lower, its information is updated and it is added to the open queue. This process is repeated until the target node is expanded. A path grid sequence is generated by backtracking the node's parent pointer, and the sequence is smoothed using cubic splines to obtain a continuous, conflict-free path trajectory. During the search process, the time-varying cooperative repulsive potential field distribution is updated every time a layer of nodes is expanded, ensuring that path planning is always based on the latest dynamic environmental information and avoiding lagging conflicts. By incorporating steering change into the cost assessment, unnecessary directional abrupt changes are suppressed, resulting in a smooth and easy-to-follow driving path.
[0009] When the path trajectory is sent to the AGV actuator for trajectory tracking control, the smoothed path trajectory is discretized into a sequence of pose reference points and sent to the AGV's underlying motion controller. The onboard forward vision sensor identifies the ground guide line in real time, obtains a bird's-eye view through inverse perspective transformation, detects the edge of the guide line in the bird's-eye view, fits the center line, and extracts the lateral offset and heading angle deviation between the vehicle center and the guide line. The lateral offset and heading angle deviation are input into a linear quadratic regulator, which outputs a front wheel steering angle command. At the same time, the difference between the current speed and the reference speed is input into a proportional-integral controller to adjust the drive wheel speed. This visual feedback closed-loop control mechanism achieves high-precision tracking of the preset trajectory without relying on continuous global positioning assistance, effectively overcoming tracking errors caused by uneven ground and wheel slippage, and improving the safety and operational efficiency of multi-AGV collaborative operation.
[0010] The technical effects and advantages provided by the present invention in the above technical solution are as follows: Each AGV acquires surrounding images through onboard forward and lateral vision sensors, extracts visual coded identifiers from other AGVs, and parses the corresponding AGV's current task priority and planned turning direction. The visual coded identifier is carried by a circular coded area. Edge detection and arc location are used to locate the coded area. After polar coordinate expansion, the ratio of black and white stripe widths is calculated by sector, and the priority value and turning angle value are decoded according to the coded mapping table. This vision-based intention perception method does not rely on wireless communication links, avoiding communication interruptions or delays caused by signal blockage and electromagnetic interference in the warehouse environment. In dense AGV operation scenarios, each AGV can reliably and in real time obtain the upcoming turning actions and task urgency of other vehicles, providing direct basis for coordinated avoidance.
[0011] When constructing the collaborative potential field map, the global occupancy grid map and the local encoding analysis results are fused. Using the current grid position of other AGVs as vertices, a fan-shaped dynamic danger zone is established along their turning direction. The central angle of the fan is consistent with the planned turning angle, and the radius of the fan is determined by the safe distance and priority difference between this AGV and other AGVs; the lower the priority, the larger the radius. A two-dimensional Gaussian time-varying collaborative repulsive potential is superimposed on the grid of this region, with the potential energy peak located at the vertex and decaying radially and angularly. By injecting a dynamic repulsive potential associated with task priority and turning intention into the collaborative potential field, the path search algorithm senses a larger repulsive force on the estimated motion path of high-priority AGVs, guiding the AGVs to be scheduled to detour in advance and avoid crossing the channel area that other vehicles are about to enter. During the search process, the time-varying collaborative repulsive potential field distribution is updated with each expanded node layer, allowing the planned path to respond in real time to changes in the position and turning of other AGVs, ultimately generating a smooth, conflict-free trajectory. This effectively reduces stopping waits and path replanning times, improving the overall handling efficiency and space utilization in multi-AGV dense storage environments. Attached Figure Description
[0012] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this invention. For those skilled in the art, other drawings can be obtained based on these drawings.
[0013] Figure 1 This is a flowchart of a vision-based multi-AGV collaborative scheduling warehouse path planning method; Figure 2 This is a flowchart of AGV task priority and turning direction recognition based on visual coding identifiers; Figure 3 This is a flowchart of the process for constructing a collaborative potential field diagram; Figure 4 This is a schematic diagram of the foreground and background distribution density and the difference threshold based on pixel brightness differences; Figure 5 These are the curves showing the changes in the static environmental potential field, gravitational potential field, and time-varying cooperative repulsive potential in the cooperative potential field diagram. Detailed Implementation
[0014] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0015] See Figure 1 This invention provides a vision-based multi-AGV collaborative scheduling warehouse path planning method, comprising: acquiring a top view of the warehouse, generating a global occupancy grid map, and identifying the number, position, and heading of each AGV; each AGV acquiring surrounding images through onboard forward and lateral vision sensors, extracting visual coding identifiers on the bodies of other AGVs, and parsing the current task priority and planned turning direction of the corresponding AGV; the global scheduling module determining the target pose of the AGV to be scheduled according to the task request, and fusing the global occupancy grid map with the local coding parsing results to construct a collaborative potential field map; on the collaborative potential field map, starting from the current position of the AGV to be scheduled, performing path search, calculating the comprehensive path cost, and outputting a conflict-free path trajectory; sending the path trajectory to the AGV actuator, and performing trajectory tracking control based on the deviation feedback from the AGV's onboard vision in real time.
[0016] Example 1: In practice, the process of acquiring a top-view view of the warehouse to generate a global occupancy grid map and identifying the number, location, and orientation of each AGV consists of multiple steps. Multiple synchronously triggered global cameras are installed at different locations on the warehouse roof. The fields of view of each global camera cover different areas of the warehouse, and adjacent cameras have overlapping fields of view. An external trigger signal is simultaneously sent to all global cameras, causing them to expose at the same time and acquire original images of different areas of the warehouse. For the original images acquired by each global camera, distortion correction and perspective projection transformation are performed. Distortion correction is based on the intrinsic parameter matrix and distortion coefficients obtained from the offline calibration of the global camera, eliminating radial and tangential distortion in the image through inverse mapping. Perspective projection transformation uses a pre-calculated ground plane homography matrix to map the distortion-corrected image into a top-down view image. The homography matrix is obtained by solving for at least four sets of image pixel coordinates and corresponding world plane coordinate point pairs. All images that have undergone distortion correction and perspective projection transformation are stitched together using a stitching method based on overlapping region feature matching to create a complete top-down panoramic image. Feature matching uses scale-invariant feature transformation descriptors to find matching point pairs in the overlapping area of adjacent images, calculates homography transformation and performs weighted fusion to eliminate stitching seams.
[0017] In some embodiments, the synchronous trigger signal is implemented by a pulse signal issued by a programmable logic controller, and each global camera is set to external trigger mode, with the rising edge arrival time deviation of the trigger signal not exceeding 1 millisecond. The process of establishing the static background model is as follows: in a state where there are no AGVs and dynamic objects in the warehouse, multiple synchronously triggered global cameras are used to continuously acquire multiple frames of panoramic images, and the median value of the brightness values of multiple frames is taken for each pixel position to form a static background image.
[0018] The foreground moving blocks are extracted by subtracting the top-down panoramic image from the static background model. The absolute difference between the brightness value of each pixel in the top-down panoramic image and the brightness value of the pixel at the same coordinate in the static background image is calculated. When the absolute difference is greater than a preset difference threshold, the pixel is classified as a foreground pixel. The difference threshold is set according to the fluctuation range of warehouse lighting; in one embodiment, the difference threshold is 15. A morphological dilation operation is performed on the binary image composed of foreground pixels, with a 3×3 cross-shaped structuring element. Then, a morphological erosion operation is performed, also with a 3×3 cross-shaped structuring element, to eliminate isolated noise and fill internal holes. The resulting connected components are the foreground moving blocks.
[0019] Connectivity analysis and contour polygon approximation are performed on the foreground moving blocks to filter out the AGV body region. A two-pass connected component labeling algorithm is used to extract the connected regions of each foreground moving block, recording the circumscribed rectangle, area, and center coordinates of each region. Based on the projected size range of the actual AGV body dimensions in the top-view panoramic image, connected regions with areas smaller than the minimum AGV projected area threshold or larger than the maximum AGV projected area threshold are removed. For each retained connected region, contour extraction is performed. The Canney edge detection operator is used to obtain an edge point sequence, which is then approximated using the Douglas-Pock algorithm to obtain an approximate contour. The approximation accuracy of the Douglas-Pock algorithm is set to 2 pixels. The approximate contour is determined by whether it is a convex quadrilateral or an approximate rectangle, and whether the aspect ratio of the circumscribed rectangle falls within the preset AGV aspect ratio range. Connected regions meeting these conditions are marked as AGV body regions.
[0020] Above the AGV vehicle body area, colored labels and internal black coded numbers are detected. The AGV number is derived through color segmentation and character template matching, and the vehicle's heading is determined by the direction of the directional arrow on the label. Specifically, in the top area of the AGV vehicle body area, the colored label area is coarsely located using a color histogram back projection based on a pre-defined color distribution range of the colored label. The coarsely located colored label area image is converted from the RGB color space to the HSV color space. The background area and the coded number area are segmented according to preset hue and saturation thresholds. The hue threshold range corresponds to the hue value of the label's background color; when the background color is red, the hue threshold range is 0 to 10 and 160 to 180. The saturation threshold is set to greater than 50. Pixels with hue values within the hue threshold range and saturation values greater than the saturation threshold are assigned to the background area; the remaining pixels are assigned to the coded number area and the arrow area.
[0021] The encoded digit region is binarized, and the image is converted to a black-and-white binary image using Otsu's method for automatic thresholding. Connected component decomposition is performed on this binary image to extract each independent digit image block. Each digit image block is scaled to the template size, which is 20 pixels wide and 30 pixels high. The scaled digit image blocks to be matched are then matched against each digit template in the digit template library using normalized cross-correlation. The digit template library contains ten standard digit templates from 0 to 9, each with the same dimensions as the template and normalized for mean and standard deviation. The formula for calculating normalized cross-correlation matching is:
[0022] in, Indicates the coordinates of the digital image patch to be matched. Pixel value at that location, This represents the average value of all pixels in the digital image block to be matched. This indicates the coordinates of the number templates in the number template library. Pixel value at that location, This represents the average value of all pixel values in the digital template. and For pixel coordinate indices within the template image, The value range is from 1 to the template width of 20. The value range is from 1 to 30 for the template height. The normalized cross-correlation coefficient ranges from -1 to 1. A higher value indicates a higher similarity. For the same digit image block to be matched, the normalized cross-correlation coefficient with each of the ten digit templates is calculated, and the number corresponding to the largest normalized cross-correlation coefficient is selected as the recognition result of that digit image block. The recognition results of all digit image blocks on a single AGV vehicle body area are combined according to the spatial position order of the digit image blocks within the vehicle body area to obtain the AGV number.
[0023] In some embodiments, the processing of the directional arrow region is as follows: Within the colored label region, the arrow shape is extracted through contour detection. Cannibalistic edge detection is performed on the binary image of the colored label region, and then a contour lookup function is used to extract all closed contours. The contour with three distinct corners and a shape matching the arrow is selected as the directional arrow region. Convex hull analysis is performed on the contour point set of the directional arrow region to extract the vertex and two base points of the arrow. The vertex is the contour point farthest from the center of the arrow region and with the largest local curvature; the two base points are the contour points on either side of the arrow region closest to the edge of the colored label. The vector from the vertex to the midpoint of the line connecting the two base points is calculated; the direction of this vector is the arrow's direction, thus determining the AGV's heading. The heading is represented by an angle, with the reference coordinate system being the pixel coordinate system of the top-view panoramic image, and the angle ranging from 0 degrees to 360 degrees.
[0024] Through the above process, the ID, location, and orientation of each AGV within the warehouse are simultaneously obtained. The location is represented by the pixel coordinates of the center of the circumscribed rectangle of the AGV's vehicle area in the top-down panoramic image, which can be subsequently converted to the warehouse's physical coordinate system using a world coordinate transformation matrix. The obtained ID, location, and orientation data are sent to the global scheduling module for subsequent global occupancy grid updates and collaborative scheduling.
[0025] See Figure 4 In the graph, the horizontal axis represents the absolute value of the pixel brightness difference, ranging from 0 to 80, and the vertical axis represents the density of the corresponding difference. The blue solid curve represents the density distribution of the brightness difference of the foreground pixels, the orange dashed curve represents the density distribution of the brightness difference of the background pixels, and the red dashed vertical line represents the preset difference threshold.
[0026] The density distribution shown is based on the pixel brightness difference results between the static background model and the acquired top-down panoramic image in Example 1. The peak of the blue curve appears between approximately 5 and 10 in absolute difference values, and is generally concentrated in the lower brightness difference range, indicating that the pixel brightness difference of the foreground moving blocks is large and concentrated in the low difference range, reflecting the obvious difference between the dynamic AGV area and the static background. The peak of the orange curve appears in the higher difference range of approximately 50 to 60, but the overall density value is low, indicating that the pixels in the background area are more dispersed at larger brightness differences, and the density is extremely low in the part with smaller differences.
[0027] The difference threshold set at the red dashed line is 15, which is in the region where the two curves are clearly separated, effectively distinguishing foreground and background pixels. This threshold corresponds to the preset difference threshold in Example 1 when differentiating pixel brightness between the top-view panoramic image and the static background image. Using this threshold for pixel classification can minimize misjudgments, accurately extract foreground moving blocks, and facilitate subsequent connected component analysis and AGV vehicle body region recognition.
[0028] Example 2: In specific implementation, please refer to Figure 2 Each AGV acquires surrounding images using its onboard vision sensors, extracts visually coded identifiers from other AGVs, and parses the current task priority and planned turning direction of the other AGVs. Wide-angle cameras are mounted on the front and rear bumpers and left and right sides of the AGV, each with a field of view of at least 180 degrees. These four wide-angle cameras collectively cover the entire horizontal field of view around the AGV. Each wide-angle camera continuously captures images at a fixed frame rate, and the captured image data is sent to the AGV's onboard processing unit.
[0029] After receiving each frame of image, the onboard processing unit performs histogram equalization on the image. Histogram equalization transforms the gray-level histogram of the input image into an approximately uniform distribution, enhancing image contrast and making the details of visually encoded identifiers clearer under different lighting conditions. Histogram equalization uses the cumulative distribution function mapping method, first counting the frequency of each gray level in the image, calculating the cumulative histogram, and then using the cumulative histogram as a mapping function to replace the original gray-level values with new gray-level values.
[0030] The image after histogram equalization is fed into the edge detection stage. Edge detection employs the Cannibal edge detection algorithm. First, a Gaussian filter is used to smooth the image. The Gaussian filter convolution kernel size is 5×5, and the standard deviation is set to 1.4. Then, the gradient magnitude and direction are calculated, and non-maximum suppression is performed. Finally, a binary edge map is obtained using double thresholding and edge concatenation. The high threshold in the double thresholding is taken as the cumulative boundary value at the top 85% of the image gradient magnitude histogram, and the low threshold is 0.4 times the high threshold.
[0031] A circular arc search is performed on the binary edge map to locate the circular coded marker areas on the side of other AGVs. The circular arc search uses the Hough circle detection method based on gradient direction. For each edge point in the edge map, along the gradient direction and its opposite direction, a center vote is accumulated within a preset circular coded marker radius range. The physical radius of the circular coded marker is 50 mm. After imaging with a wide-angle camera, the corresponding radius range in the image is related to the distance to the target AGV, and the search radius range is set to 20 to 120 pixels. Local maxima points in the accumulator array that receive more votes than a preset accumulation threshold are identified as candidate center points. The accumulation threshold is set to 0.08 times the total number of edge points in the edge map. Circular coded marker areas are extracted with the candidate center as the center. The image size of the circular coded marker area is obtained by expanding outward by 5 pixels based on the accumulated radius of the candidate center.
[0032] Optionally, the extracted circular coded identification area is subjected to roundness verification. The ratio of the area of the edge contour of the circular coded identification area to the square of the perimeter is calculated and compared with the theoretical ratio of a standard circle. Candidate areas with deviations exceeding a preset roundness deviation threshold are eliminated. The roundness deviation threshold is set to 0.85.
[0033] The verified circular coded identifier region is expanded using polar coordinates to obtain the sector distribution. The polar coordinate expansion transforms the circular coded identifier region from Cartesian coordinates to polar coordinates, with angular coordinates arranged horizontally and radial coordinates arranged vertically, generating a polar coordinate expanded image. In the expanded image, each column corresponds to an angle, and each row corresponds to a radial distance. During the polar coordinate expansion process, the angular sampling interval is 1 degree, and the radial sampling interval is 1 pixel. The expanded image has a width of 360 pixels and a height equal to the radius of the circular coded identifier region in pixels.
[0034] In the polar coordinate unfolded image, the circular coded identification area is pre-designed as multiple sectors arranged circumferentially, each sector filled with black and white stripes of varying pulse widths. The total number of sectors is fixed at 8, with each sector occupying a 45-degree angular range. Within each sector, black and white stripes alternate radially, with the widths varying according to the coding rules. The direction of the black and white stripes within a sector is perpendicular to the radial direction, meaning the stripes extend circumferentially. By analyzing the image column intervals corresponding to each sector in the polar coordinate unfolded image, the brightness variation sequence within that sector is obtained.
[0035] In some embodiments, the sector positioning method is as follows: the polar coordinate unfolded image is divided into 8 sector sub-images in the horizontal direction with a step size of 45 degrees, and the horizontal range of each sector sub-image is from the start angle to the end angle of the corresponding sector.
[0036] For each sector sub-image, a sequence of brightness values is collected along the angular axis. The brightness values of each column of pixels in the sector sub-image are then summed vertically to obtain a one-dimensional brightness sequence, the length of which is the horizontal pixel width of the sector sub-image. This brightness sequence reflects the distribution of black and white stripes along the angular direction within the sector.
[0037] The location of stripe boundaries is obtained using an edge detection operator. Points where the absolute value of the first-order difference in the brightness sequence exceeds a preset difference detection threshold are marked as boundary points. The difference detection threshold is 0.2 times the maximum difference in the brightness sequence. The pixel span between adjacent boundary points is the width of a stripe. The stripe color is determined based on the average brightness value of this interval in the brightness sequence: a stripe is black if the average brightness value is less than the median brightness value of the image, and a stripe is white if the average brightness value is greater than the median brightness value.
[0038] After determining the widths of all black stripes and all white stripes within a sector, sum the widths of all black stripes and the widths of all white stripes within the sector, and calculate the ratio between the two. The formula for calculating the sector ratio is:
[0039] in, This represents the stripe width ratio calculated for the current sector; This indicates the total number of black bars in the current sector. The index number of the black stripe; Indicates the number of sectors in the current sector The width of the black stripes, in pixels; This indicates the total number of white stripes in the current sector. The index number of the white stripe; Indicates the number of sectors in the current sector The width of the white stripes, in pixels.
[0040] ratio Input a decoding table divided by ratio range to obtain the symbol value of the current sector. The decoding table maps ratio intervals to symbol values one-to-one, with the ratio intervals divided based on the theoretical center value of the ratio, setting a tolerance range of ±0.1. A ratio of 0.5 corresponds to symbol value 0, a ratio of 1.0 corresponds to symbol value 1, a ratio of 1.5 corresponds to symbol value 2, and a ratio of 2.0 corresponds to symbol value 3. When the ratio... If the ratio falls within one of the tolerance intervals, the corresponding symbol value is output; if the ratio does not fall within any interval, the current sector is marked as a decoding failure.
[0041] All eight sectors are processed sequentially, and the decoded symbol value sequences are combined into an 8-bit symbol sequence. This symbol sequence is used to retrieve the address priority and steering angle encoding table, yielding the corresponding priority and steering angle values. The priority and steering angle encoding table is pre-stored in the AGV's onboard processing unit memory. Each address entry in the encoding table corresponds to a symbol sequence, and the entry content includes the priority value and planned steering angle value. The current task priority and planned steering direction of other AGVs are directly obtained by looking up the table. The priority value is an integer from 0 to 7, and the planned steering angle value is an angle value within the range of -90 degrees to 90 degrees, with a resolution of 1 degree. This process is repeated, outputting the corresponding current task priority and planned steering direction for each other AGV appearing in the field of view.
[0042] Example 3: In specific implementation, please refer to Figure 3 After determining the target pose of the AGV to be scheduled based on the task request, the global scheduling module merges the global occupancy grid map with the local encoding and parsing results to construct a cooperative potential field map. The cooperative potential field map is constructed using each grid cell of the global occupancy grid map as a unit, with an initial potential field value of zero. The global occupancy grid map is generated from the warehouse top-down panoramic view through occupancy probability updates. The physical size of each grid cell is 0.1m × 0.1m, and the number of rows and columns of the grid is determined by both the actual warehouse size and the grid's physical size. Each grid cell in the global occupancy grid map stores an occupancy status identifier, which can be either idle or occupied. Occupied grid cells include those occupied by static environmental obstacles such as warehouse walls, shelf uprights, and fixed equipment. The grid cells in the cooperative potential field map are integrated with the global occupancy grid. Figure 1 In a one-to-one correspondence, each grid cell of the collaborative potential field map stores a floating-point potential field value, and at the beginning of the construction, the potential field values of all grid cells are uniformly assigned to zero.
[0043] Read the static environment obstacle boundaries and generate a static environment potential field. Traverse all grids in the global occupied grid map. When a grid's occupied state is marked as occupied, assign the maximum repulsive potential to the corresponding grid in the cooperative potential field map. The maximum repulsive potential is a pre-defined positive constant, set to 1000 in one embodiment, to indicate that the grid is impassable. Identify obstacle boundary grids, defined as grids that are occupied themselves and have at least one free four neighboring grids. For each obstacle boundary grid, superimpose a decaying repulsive potential that diffuses outwards onto the surrounding free grids, using a linear decay model. Let the grid coordinates of the obstacle boundary grid be... The coordinates of the free grid cells in its four neighboring directions are Free grid Obstacle boundary grid The Chebyshev distance between them is The attenuation repulsive potential is the product of the maximum repulsive potential and the distance attenuation factor. The formula for calculating the attenuation repulsive potential is:
[0044] in, Indicates coordinates as The idle grid cells are assigned static environmental potential values; This represents the maximum repulsive potential, with a value of 1000. Indicates free grid cells The Chebyshev distance between the nearest obstacle boundary grid is calculated as follows: The unit is the number of grid cells; This represents the preset threshold for the diffusion distance of the obstacle potential field. The value is set to 8 grids, corresponding to a physical distance of 0.8 meters. This value is determined based on the safe obstacle avoidance distance required between the AGV and obstacles. When the Chebyshev distance... Greater than or equal to When the attenuation factor is zero, the static environment potential field is not superimposed. When an idle grid is affected by multiple obstacle boundary grids, the maximum value among the multiple attenuation repulsion potential values is taken as the static environment potential field value. After traversing all obstacle boundary grids, the static environment potential field is generated.
[0045] A gravitational potential field pointing towards the target is generated, centered on the grid cell containing the target pose of this AGV. The target pose of this AGV is calculated by the global scheduling module based on the task type and target point in the task request. The target pose includes the target position coordinates and the target orientation angle. The target position coordinates are then transformed to the grid coordinate system of the globally occupied grid map to obtain the target grid coordinates. Centered on the target grid, a gravitational potential field is applied to all grids in the cooperative potential field map. The gravitational potential field function adopts a quadratic attraction model. For grid coordinates... The grid, which is assigned a gravitational potential value By grid The Euclidean distance to the target grid cell is determined by the following method: When the Euclidean distance is greater than the preset gravitational saturation distance threshold, the gravitational potential field value is set as the product of a constant and the Euclidean distance; when the Euclidean distance is less than or equal to the gravitational saturation distance threshold, the gravitational potential field value is set as proportional to the square of the Euclidean distance. The gravitational saturation distance threshold is set to 30 grids, corresponding to a physical distance of 3 meters, based on the control requirement that the AGV needs to reduce its speed to avoid overshoot when approaching the target point. The overall sign of the gravitational potential field value is negative, indicating attraction, which is the opposite of the sign of the static environmental potential field, which indicates repulsion.
[0046] Based on the priorities and planned turning directions of other AGVs, a dynamic danger zone is constructed for each other AGV, and a time-varying cooperative repulsive potential is superimposed on the grid of this zone. Using the current grid position of each other AGV as a vertex, a fan-shaped expansion region is established along the planned turning direction of the other AGVs. The current grid position of the other AGVs is obtained from the pose list of other AGVs maintained in real time by the global scheduling module, with a data update frequency of 10 Hz. The center angle of the fan is consistent with the planned turning angle of the other AGVs, and the direction of the centerline of the fan is the sum of the heading direction of the other AGVs and their planned turning angles. The radius of the fan-shaped region is determined by the safe distance and priority difference between this AGV and other AGVs; the lower the priority, the larger the fan radius. The safe distance is the minimum interval that should be maintained between two AGVs, set to 1.5 meters, equivalent to 15 grids. The priority difference between this AGV and other AGVs is the priority value of this AGV minus the priority value of the other AGVs; the priority difference can be positive or negative. When the priority difference is positive and large, it indicates that this AGV has a higher priority than other AGVs, and the sector radius is reduced based on the safety distance. When the priority difference is negative and large in absolute value, it indicates that this AGV has a lower priority than other AGVs, and the sector radius is expanded based on the safety distance. Sector radius The specific calculation method is to add an adjustment amount that is linearly related to the priority difference to the safety distance. The slope of the adjustment amount is 0.3 meters per priority level, the intercept is zero, and the minimum lower limit of the sector radius is 1.0 meter.
[0047] For each grid cell within the sector region, calculate the distance from the grid cell to the sector vertex and the sector centerline, and construct a two-dimensional Gaussian potential function as the time-varying cooperative repulsive potential. The vertex coordinates of the sector region are denoted as follows: The unit vector of the direction of the center line of the sector is denoted as The raster coordinates to be calculated are: The Euclidean distance from the grid to the vertex is The vertical distance from the grid to the center line is The time-varying cooperative repulsive potential is expressed as a two-dimensional Gaussian function, with its peak at the apex of the sector, decaying radially and angularly. The radial decay coefficient controls the rate of potential energy decrease outward from the apex, while the angular decay coefficient controls the rate of potential energy decrease off the centerline. The standard deviation of the radial decay coefficient is one-third of the sector radius, and the standard deviation of the angular decay coefficient is one-third of the central angle of the sector. The potential energy value calculated using the two-dimensional Gaussian potential function is used as the time-varying cooperative repulsive potential and added to the potential field value of the corresponding grid's cooperative potential field map. Within each time step, the size, orientation, and two-dimensional Gaussian potential function of the sector are recalculated based on the new positions and planned turning directions of other AGVs, updating the time-varying cooperative repulsive potential on all affected grids. The time step is 0.1 seconds, consistent with the AGV pose update frequency.
[0048] The final potential field value of the cooperative potential field map is obtained by weighting and summing the static environment potential field, the gravitational potential field, and the time-varying cooperative repulsive potential corresponding to all other AGVs. The weight of the static environment potential field is set to 1.0, the weight of the gravitational potential field is set to 0.8, and the weight of the time-varying cooperative repulsive potential is set to 1.2. The weight of the time-varying cooperative repulsive potential is slightly greater than 1.0 to prioritize avoiding cooperative conflicts in a dynamic multi-AGV environment. After weighting, each grid in the cooperative potential field map stores a comprehensive potential field value. Positive value regions have a repulsive effect on AGVs, negative value regions have an attractive effect on AGVs, and zero value regions are neutral regions. This cooperative potential field map serves as the input for subsequent path search steps to calculate the comprehensive path cost.
[0049] See Figure 5 In the figure, the horizontal axis represents distance in grid numbers, ranging from 0 to 50 grids; the vertical axis represents the potential field value, ranging from -200 to 1000. The legend shows four curves: the static environment potential field, the gravitational potential field, and two curves representing the time-varying cooperative repulsive potential under different priority difference conditions.
[0050] The brown solid line represents the static environmental potential field. This potential field value reaches a maximum of 1000 at a distance of 0, and then decreases rapidly and linearly with increasing distance, dropping to zero at about 8 grids, and then remaining at zero. This reflects the maximum repulsive potential exerted by the obstacle and its boundary on the surrounding grids and the range of linear decay, which is consistent with the definition of the static environmental potential field in Example 3 and the setting of the maximum repulsive potential value of 1000 and the diffusion distance threshold of 8 grids.
[0051] The blue dashed line represents the gravitational potential field. The gravitational potential field value starts close to zero and gradually decreases with increasing distance, showing a negative trend. It changes in a way that is negative squared or linearly increasing, and the overall value is negative, which is consistent with the quadratic attraction model of the gravitational potential field in Example 3. The gravitational field of the target pose gradually weakens with increasing distance, and the negative value indicates the attraction effect.
[0052] The green dashed line and orange dotted line represent the changes in the time-varying cooperative repulsive potential at priority differences of -2 and +2, respectively. Both curves show a potential field value of approximately 500 at a distance of 0, which then decreases with increasing distance, with the green curve (priority difference -2) decaying faster than the orange curve (priority difference +2). This reflects the mechanism by which the sector radius of the time-varying cooperative repulsive potential adjusts with the priority difference in Example 3: a lower priority (negative difference) results in a larger repulsive radius and a faster decay of the potential field value; a higher priority (positive difference) results in a smaller repulsive radius and a slower decay of the potential field value. Both curves decay to near zero at approximately 20 to 25 grid points.
[0053] Example 4: In practical implementation, a path search process is performed on the cooperative potential field graph, starting from the current position of the AGV. Each grid cell in the cooperative potential field graph is treated as a node, and a conflict-free path trajectory from the starting point to the target is generated using a priority queue-based graph search algorithm. The current position of the AGV to be scheduled is obtained by converting real-time pose information provided by the global scheduling module and mapped to a starting grid cell node in the cooperative potential field graph. The row and column coordinates corresponding to the starting grid cell node are... The target pose of the AGV to be scheduled is mapped to the target grid node in the cooperative potential field graph, and the row and column coordinates corresponding to the target grid node are: .
[0054] Construct an open node priority queue, implemented using a binary min-heap data structure. Each element in the heap stores the row and column coordinates of a grid node and its corresponding cost value. The top element of the heap is always the node with the minimum cost value. The open node priority queue is initially empty. Maintain two data items for each grid node in the cooperative potential graph: one is the cost value, recording the current minimum estimated cost value from the starting grid node to this grid node; the other is a parent node pointer, recording the coordinates of the grid node's parent node in the search tree. During initialization, the cost values of all grid nodes are set to positive infinity, and the parent node pointers are set to null. Set the cost value of the starting grid node to zero and add it to the open node priority queue.
[0055] Optionally, to accelerate search convergence, a closed node set is constructed to record raster nodes that have already been expanded. The closed node set is initially empty. When a raster node is taken from the open node priority queue and expanded, it is added to the closed node set and will not be expanded again.
[0056] The pathfinding process iteratively executes the following steps: First, select the node with the lowest cost from the open node priority queue as the current expansion node. If the row and column coordinates of the current expansion node are equal to the row and column coordinates of the target raster node, the pathfinding is complete, and the loop exits. If the current expansion node is already in the closed node set, skip this expansion and continue to the next iteration.
[0057] The system iterates through the surrounding neighboring raster nodes of the current expanded node. A neighboring raster node is defined as one of the eight raster nodes in the eight-neighborhood direction of the current expanded node, including four axial neighboring raster nodes (top, bottom, left, and right) and four diagonal neighboring raster nodes. During the traversal, reachability checks and cost calculations are performed on each neighboring raster node.
[0058] Determine the direction vector between the current extended node and candidate adjacent grid nodes, and calculate the angle between the direction vector and the current AGV orientation. The coordinates of the current extended node in the grid coordinate system are: The coordinates of the candidate adjacent grid nodes are The direction vector is defined as the vector pointing from the current extended node to the candidate adjacent grid node, and the corresponding direction angle is... The current orientation angle of the AGV is recorded as follows: This angle is determined by the direction of travel of the AGV to be scheduled when it enters the current expansion node. When the current expansion node is the starting grid node, The value is the real-time measured orientation of the AGV to be scheduled. The direction angle is then calculated. relative to the current AGV orientation angle absolute value of the included angle included angle Take the smallest positive angle of the difference between the two angles; its range is [range missing]. to radian.
[0059] A maximum steering angle threshold is preset, denoted as . , Values The angle in radians is determined based on the maximum physical deflection angle that the AGV's front wheel steering mechanism can achieve under low-speed driving conditions. If the included angle... Exceeding the maximum steering angle threshold The candidate adjacent grid node is marked as unreachable, and no further cost calculation and queue update operations are performed.
[0060] For the included angle No more than The system retrieves the reachable adjacent grid nodes, reads the potential value stored in the adjacent grid node in the cooperative potential field map, calculates the Euclidean distance increment and turning change, and obtains the estimated cost of reaching the target grid node from the current extended node via the adjacent grid node through a weighted summation method. The formula for the weighted summation is:
[0061] in, This indicates the path from the current extended node through adjacent grid nodes. The estimated cost of reaching the target grid node; The coordinates in the cooperative potential field diagram are The potential values stored in the adjacent grid nodes; The Euclidean distance from the current expanded node to the adjacent grid node is calculated as follows: ,in This represents the physical size of the grid, taken as 0.1 meters. The unit is meters; The included angle The absolute value, in radians; As for power and influence, Distance weights For the shift weight.
[0062] Potential weight A value of 1.0 indicates that the potential field contributes directly to the cost in a linear manner. A positive potential field increases the cost, reflecting repulsion, while a negative potential field decreases the cost, reflecting attraction. Distance weight. The value is set to 10.0, which amplifies the Euclidean distance to a suitable order of magnitude to match the potential field value. The coefficient is determined based on the typical range of potential field values in the synergistic potential field diagram, which is between -100 and 1000. (Steering weight) The value is 50.0, which makes the cost sensitivity of turning changes higher than that of distance changes, promotes the straightness of the planned path trajectory, and reduces unnecessary detours. The coefficient is set based on empirical testing to ensure that the cost of a single turning item accounts for no more than 30% of the total path cost. All of the above weight values are fixed constants and remain unchanged during the path search process of the AGV to be scheduled.
[0063] In some embodiments, potential field value This represents the current potential value of the adjacent grid node in the cooperative potential field diagram. This potential value includes the sum of the static environment potential field, the gravitational potential field, and the time-varying cooperative repulsive potential of all other AGVs. If the adjacent grid node is located inside a static obstacle and cannot be traversed, then the potential value is... Equal to the maximum repulsive potential value of 1000, calculated If the value is extremely large, the adjacent grid node will naturally not be selected by the algorithm as a feasible path.
[0064] The estimated cost was calculated. Then, it is compared with the value currently stored in the adjacent raster nodes. If... If the cost value is less than the currently stored cost value of the adjacent raster node, then the cost value for updating the adjacent raster node is [value]. And set the parent node pointers of adjacent grid nodes to the coordinates of the currently expanding node. Then update the information of adjacent grid nodes or their status in the open node priority queue. If an adjacent grid node is not in the open node priority queue, insert it. If the value is greater than or equal to the value currently stored in the adjacent raster node, no update is made.
[0065] Repeat the above expansion process until the target grid node is removed from the open node priority queue and used as the current expansion node, at which point the path search ends.
[0066] During the search process, the time-varying cooperative repulsive potential field distribution is updated once for each layer of nodes expanded. Expanding a layer of nodes is defined as either taking all nodes with equal current generation value from the open node priority queue for expansion, or triggering an expansion by setting an expansion count threshold, which is one-tenth of the total number of nodes in the current open node priority queue. When the time-varying cooperative repulsive potential field update condition is met, the global scheduling module obtains the latest current position and planned turning direction of other AGVs. Following the aforementioned dynamic danger zone construction method, it recalculates the sector regions and two-dimensional Gaussian potential functions corresponding to all other AGVs, updating the corresponding grids of the cooperative potential field map with the new time-varying cooperative repulsive potential values. After the update is complete, the updated cooperative potential field map is used for subsequent node expansion and cost calculation.
[0067] After the path search is complete, starting from the target raster node, the path raster sequence is generated by backtracking node by node according to the parent node pointer. The path raster sequence is a series of coordinate points arranged in reverse order from the target raster node to the starting raster node. Reversing the path raster sequence yields a sequence of sequential path points from the starting point to the target, with each path point represented by the physical coordinates of its corresponding raster center.
[0068] A cubic spline smoothing process is applied to the path point sequence to obtain a continuous path trajectory. The physical coordinates of each path point in the sequence are used as control points for the spline curve. A cubic polynomial curve segment is constructed between every two adjacent control points, requiring the entire curve to have continuous first and second derivatives at the control points. Natural boundary conditions are used for the cubic spline interpolation, i.e., the second derivatives at the two endpoints are set to zero. The smoothed curve is sampled at equal intervals using arc length as a parameter, with a sampling interval of 0.02 meters. After sampling, a continuous path trajectory is generated and output as a sequence of pose reference points. Each sampling point records its position coordinates and the reference orientation determined by the curve tangent direction. The final output continuous path trajectory is the conflict-free path trajectory.
[0069] Example 5: In practice, the smoothed continuous path trajectory is discretized into a sequence of pose reference points and sent to the AGV's underlying motion controller. After being smoothed by three splines, the continuous path trajectory is sampled at equal intervals, with arc length as the parameter and a sampling interval of 0.02 meters. Each sampling point records a pose reference point, which includes reference position coordinates and a reference orientation angle. All pose reference points are arranged in order from the start point to the end point to form a pose reference point sequence, which is then sent to the AGV's underlying motion controller via the AGV's onboard communication bus. The AGV's underlying motion controller receives the pose reference point sequence and stores it in a local buffer. It then periodically retrieves the pose reference points one by one as the tracking target for the current control cycle. The control cycle is set to 20 milliseconds, consistent with the servo control frequency of the AGV's underlying motion controller.
[0070] During AGV operation, the onboard forward vision sensor continuously identifies ground guide lines, extracting the lateral offset and heading angle deviation between the AGV's center and the ground guide lines. The onboard forward vision sensor is mounted at the center of the front of the AGV, with its optical axis pointing directly forward and tilted downwards at a preset angle. This preset angle ensures that the ground guide lines remain within the effective field of view of the onboard forward vision sensor throughout the AGV's normal operating speed range. The onboard forward vision sensor continuously acquires images of the ground guide lines at a frame rate of 30 frames per second, and each frame is processed by the AGV's onboard processing unit.
[0071] The process of obtaining the lateral offset is as follows: An inverse perspective transformation is performed on the ground guide line image, converting the original perspective image acquired by the vehicle-mounted forward vision sensor into a bird's-eye view. The inverse perspective transformation utilizes a pre-calibrated 3×3 homography transformation matrix, determined by the mapping relationship between the vehicle-mounted forward vision sensor coordinate system and the ground coordinate system. During calibration, a checkerboard calibration board of known size is placed on the ground, with each square having a side length of 50 mm. The pixel coordinates of at least four corner points in the checkerboard calibration board image are extracted, and combined with the actual physical coordinates of the corner points in the ground coordinate system, the homography transformation matrix is solved through a direct linear transformation. The homography transformation matrix is then used to perform perspective transformation on all pixels of each frame of the ground guide line image, resulting in a bird's-eye view with perspective removed. The ground physical dimension corresponding to each pixel in the bird's-eye view is determined synchronously during the calibration process; the ground physical dimension corresponding to one pixel is 2 mm.
[0072] The edges of the ground guide lines are detected and a centerline is fitted in the bird's-eye view. The bird's-eye view is then converted to grayscale, transforming the color bird's-eye view into a single-channel grayscale image. The Canney edge detection operator is used to detect edges in the grayscale image, with a low threshold of 40 and a high threshold of 120, set based on the contrast range between the warehouse ground guide lines and the background ground. A Hough line transform is performed on the edge image to extract line segments. The angle resolution of the Hough line transform is set to 1 degree, the distance resolution to 1 pixel, and the cumulative threshold to 50. From all extracted line segments, pairs of line segments representing the two edges of the ground guide lines are selected. The selection criteria are that the difference in the tilt angle between the two line segments does not exceed 3 degrees, and the distance between the two line segments is within the allowable range of the actual width of the ground guide line. The actual width of the ground guide line is 40 mm, corresponding to 20 pixels in the bird's-eye view, with an allowable range of 18 to 22 pixels. The centerline between the two edge line segments is taken as the centerline of the ground guide line, which is represented as a straight line in the bird's-eye view.
[0073] In the bird's-eye view, determine the pixel position corresponding to the center point of the AGV vehicle. The center point of the AGV vehicle is located on a fixed pixel column in the bird's-eye view, which corresponds to the projection position of the optical center of the onboard forward vision sensor in the bird's-eye view. Calculate the vertical distance from the pixel of the AGV vehicle's center point to the center line of the ground guide line. The vertical distance is in pixels. Multiply the vertical distance by the physical dimension of the ground corresponding to a single pixel in the bird's-eye view to obtain the lateral offset, in millimeters. The sign of the lateral offset is determined by the position of the AGV vehicle's center point relative to the center line of the ground guide line. When the AGV vehicle's center point is to the left of the center line, the lateral offset is positive; when it is to the right, it is negative.
[0074] The process of obtaining the heading angle deviation is as follows: Calculate the angle between the centerline of the ground guide line and the vertical direction of the image in the bird's-eye view. The vertical direction of the image corresponds to the ideal driving direction directly in front of the AGV. The direction of the centerline of the ground guide line is directly obtained from the angle parameters of the straight line segment extracted by the Hough linear transformation. Taking the vertical direction of the image as the reference zero degree, clockwise is positive and counterclockwise is negative. Calculate the angle difference between the direction of the centerline of the ground guide line and the vertical direction of the image. This angle difference is the heading angle deviation, and the unit of the heading angle deviation is radians. The value range of the heading angle deviation is from -0.5 radians to 0.5 radians. When the absolute value of the heading angle deviation exceeds 0.5 radians, it is considered that the ground guide line tracking has been lost, and the AGV's underlying motion controller triggers the guide line loss protection mechanism.
[0075] In some embodiments, the lateral offset and heading angle deviation are updated once in each control cycle, and the visual feedback deviation value obtained from the latest frame processed in each control cycle is taken.
[0076] The lateral offset and heading angle deviation are input to the linear quadratic regulator, which outputs the front wheel steering angle command. The linear quadratic regulator is designed based on the kinematic linearization model of the AGV. The kinematic linearization model of the AGV adopts a bicycle model, with the rear axle center of the AGV as the reference point, and the state vector is selected as... ,in This is the lateral offset. The heading angle deviation is given. The control input is the front wheel steering angle. The discrete state-space equation of the linear quadratic regulator is as follows:
[0077] in, Indicates the first The state vector at each control moment Indicates the first The lateral offset at each control moment, in meters. Indicates the first The heading angle deviation at each control moment, in radians; Indicates the first The front wheel steering angle command at each control moment is in radians; It is a 2×2 state transition matrix. ,in This indicates the measured speed of the AGV, in meters per second. Indicates the control period. The value is 0.02 seconds; Given a 2×1 input matrix, ,in This indicates the wheelbase of the AGV. It is a fixed value, determined based on the mechanical design parameters of the AGV body, and is applicable to one model. Take 1.2 meters.
[0078] The cost function of a linear quadratic regulator is defined as follows: ,in It is a 2×2 state weight matrix. It is a 1×1 control weight matrix. Take as a diagonal matrix , For horizontal offset weights, The value is 100. As the weight for the heading angle deviation, With a value of 10, this weight setting prioritizes the convergence of lateral offset over the convergence of heading angle deviation. The value is 0.1. A smaller value allows the linear quadratic regulator to output a larger front wheel steering angle for rapid correction of deviations. The steady-state feedback gain matrix is obtained by offline solving of the discrete algebraic Riccati equation. The calculation method for the front wheel steering angle command is as follows: .
[0079] In some embodiments, the gain matrix of the linear quadratic regulator Based on the current speed of the AGV The calculation is performed in segments, with the speed range divided into steps of 0.5 meters per second. A set of corresponding gain matrices is calculated offline for each speed range. When running online, the gain matrix corresponding to the closest speed range is selected for control based on the current speed measurement value of the AGV.
[0080] Simultaneously, the difference between the AGV's current speed and the reference speed is input to the proportional-integral controller (PIC) to adjust the drive wheel speed. The reference speed is determined by the preset speed of the pose reference point tracked in the current control cycle on the path trajectory. The preset speed is set during global path planning based on path curvature and task timeliness requirements. The AGV's current speed is measured in real-time by encoders installed on the drive wheels. The control law of the PIC is:
[0081] in, This command indicates the speed of the drive wheels, in revolutions per minute. Indicates the current time Lower reference speed With current speed The difference in speed The unit is meters per second; For proportional gain, The value is 5.0 revolutions per minute per meter per second, which is determined based on the speed response characteristics and speed control bandwidth of the drive wheel motor. For integral gain, The value is taken as 0.5 revolutions per minute per meter per second cumulative value. A smaller value is used to eliminate steady-state velocity error and prevent integral saturation.
[0082] The proportional-integral controller outputs the drive wheel speed command, which is sent to the drive wheel motor driver, which performs closed-loop speed control. The front wheel steering angle command is sent to the steering servo motor driver, which performs closed-loop angle control. The AGV's underlying motion controller synchronously executes the lateral control loop and the longitudinal control loop in each control cycle. The lateral control loop outputs the front wheel steering angle command, while the longitudinal control loop outputs the drive wheel speed command. These two control loops operate in parallel, enabling the AGV to travel along the issued path and correcting trajectory deviations caused by uneven ground, wheel slippage, or other factors in real time.
[0083] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. A vision-based multi-AGV collaborative scheduling warehouse path planning method, characterized in that, include: Collect a top view of the warehouse, generate a global occupancy grid map, and identify the number, location, and orientation of each AGV; Each AGV acquires surrounding images through onboard forward and side vision sensors, extracts visual coding markings from other AGVs, and parses out the current task priority and planned turning direction of the corresponding AGV. The global scheduling module determines the target location of the AGV to be scheduled based on the task request, and merges the global occupancy grid map with the local encoding parsing results to construct a cooperative potential field map; On the cooperative potential field diagram, starting from the current position of the AGV to be scheduled, a path search is performed, the comprehensive cost of the path is calculated, and a conflict-free path trajectory is output. The path trajectory is sent to the AGV actuator, and trajectory tracking control is performed based on the deviation feedback from the AGV's onboard vision in real time.
2. The warehouse path planning method based on vision-based multi-AGV collaborative scheduling according to claim 1, characterized in that, The data collection of the warehouse top view generates a global occupancy grid map, and identifies the number, position, and heading of each AGV, including: Multiple synchronously triggered global cameras acquire images of different areas of the warehouse, and each image is subjected to distortion correction and perspective projection transformation, and then stitched together to form a complete top-down panoramic image. The panoramic image is compared with the static background model to extract the foreground moving blocks; Perform connected component analysis and contour polygon approximation on the foreground moving blocks to filter out the AGV vehicle body region; Above the vehicle body area, the colored stickers and internal black coded numbers are detected. The AGV number is obtained through color segmentation and character template matching, and the direction of the vehicle is determined by the direction of the directional arrow on the sticker.
3. The warehouse path planning method based on vision-based multi-AGV collaborative scheduling according to claim 1, characterized in that, Each AGV acquires surrounding images through onboard forward and lateral vision sensors, extracts visual coded identifiers from other AGVs, and parses the current task priority and planned turning direction of the corresponding AGV, including: Images are captured using wide-angle cameras installed on the front and rear bumpers and left and right sides of the AGV, and histogram equalization is performed on the images. By using edge detection and arc search, the circular coded marking area on the side of other AGV vehicles can be located. The circular region is expanded in polar coordinates to obtain the sector distribution, and each sector is filled with black and white stripes of different pulse widths. The stripe width ratio is calculated sequentially by sector, and the priority value and steering angle value are decoded according to the predefined encoding mapping table.
4. The warehouse path planning method based on vision-based multi-AGV collaborative scheduling according to claim 1, characterized in that, The process of fusing the global occupancy grid map with the local encoding parsing results to construct a cooperative potential field map includes: Initialize the potential field value to zero for each grid cell in the globally occupied grid map; Read the boundaries of static environment obstacles, assign the maximum repulsive potential to the grid located inside the obstacle, and generate a static environment potential field by spreading outward from the boundary of the obstacle according to a preset decay function; A gravitational potential field pointing towards the target is generated, centered on the grid where the target pose of this AGV is located; Based on the priority and planned turning direction of other AGVs, a dynamic danger zone is constructed for each other AGV. This zone extends along its turning direction and expands as the priority decreases. A time-varying cooperative repulsive potential is superimposed on the grid of this zone. The static environmental potential field, the gravitational potential field, and all time-varying cooperative repulsive potentials are summed according to their weights to obtain the cooperative potential field diagram.
5. The warehouse path planning method based on vision-based multi-AGV collaborative scheduling according to claim 1, characterized in that, On the cooperative potential field diagram, starting from the current position of the AGV to be scheduled, a path search is performed, the comprehensive path cost is calculated, and a conflict-free path trajectory is output, including: Construct an open node priority queue with a starting node cost of zero; Take the minimum cost node from the open queue, and for its surrounding neighboring grid nodes, read the potential value, Euclidean distance increment and turning change of the node in the cooperative potential field graph, and calculate the total cost value by weighted summation; If an adjacent node has not been visited or the new cost is smaller, update its information and add it to the open queue; Repeat until the target node is expanded; Backtracking the parent pointer of the node generates a path raster sequence, and the sequence is smoothed by cubic spline to obtain a continuous path trajectory; During the search process, the time-varying cooperative repulsive potential field distribution is updated once for each layer of nodes expanded.
6. The warehouse path planning method based on vision-based multi-AGV collaborative scheduling according to claim 1, characterized in that, The process of sending the path trajectory to the AGV actuator and performing trajectory tracking control based on the deviation feedback from the AGV's onboard vision in real time includes: The smoothed path trajectory is discretized into a sequence of pose reference points and sent to the underlying motion controller of the AGV. The vehicle-mounted forward vision sensor identifies ground guide lines in real time and extracts the lateral offset and heading angle deviation between the vehicle center and the guide lines. The lateral offset and heading angle deviation are input into the linear quadratic regulator, which outputs the front wheel steering angle command. At the same time, the difference between the current speed and the reference speed is input into the proportional-integral controller to adjust the speed of the drive wheels; The acquisition of the lateral offset includes performing an inverse perspective transformation on the guide line image, detecting the edge of the guide line in the bird's-eye view, and fitting the center line.
7. The warehouse path planning method based on vision-based multi-AGV collaborative scheduling according to claim 2, characterized in that, The process of obtaining the AGV number through color segmentation and character template matching, and determining the vehicle's heading by the direction of the directional arrow on the label, includes: Extract the colored label area above the AGV vehicle body area, convert it from RGB space to HSV space, and segment the background area and coded number area according to the preset hue threshold and saturation threshold. Binarize and decompose the coded digital region to obtain a single digital image block; Each digital image patch is scaled to the template size, normalized and matched with the digital template library, and the number corresponding to the largest correlation coefficient is taken as the recognition result. Contour detection is performed on the directional arrow area to extract the apex and two base points of the arrow. The direction of the center line connecting the apex and the base points is calculated as the direction of the vehicle's front.
8. The warehouse path planning method based on vision-based multi-AGV collaborative scheduling according to claim 3, characterized in that, The step of sequentially calculating the stripe width ratio by sector and decoding the priority and steering angle values according to a predefined encoding mapping table includes: For the polar coordinate unfolded diagram of the circular coded identification area, collect the brightness value sequence along the angle axis; The position of the stripe boundary is obtained by the edge detection operator, the pixel span between adjacent boundaries is calculated, and the width of the black and white stripes is determined according to the alternation order of the stripes. Add the sum of the widths of all black stripes and the sum of the widths of all white stripes in the sector, and calculate the ratio between the two. Input the ratio into the decoding table divided by the ratio range to obtain the symbol value of the sector; All sectors are processed sequentially, and the symbol sequence is used as an address retrieval priority and turning angle encoding table to obtain the corresponding priority value and turning angle value.
9. The warehouse path planning method based on vision-based multi-AGV collaborative scheduling according to claim 4, characterized in that, The construction of a dynamic danger zone for each other AGV, which extends along its turning direction and expands as priority decreases, and the superposition of time-varying cooperative repulsive potentials on the grid of this zone, includes: Using the current grid position of other AGVs as the vertex, a fan-shaped expansion area is established along their turning direction. The central angle of the fan is consistent with the planned turning angle. The radius of the fan is determined by the safe distance and priority difference between this AGV and other AGVs. The lower the priority, the larger the radius. For each grid cell within the sector region, calculate its distance from the vertex and the center line, and construct a two-dimensional Gaussian potential energy function with the potential energy peak located at the vertex and decaying along the radial and angular directions; The value of the Gaussian potential energy function is superimposed onto the corresponding grid as a time-varying cooperative repulsive potential, and the size of the sector area is updated at each time step according to the new position and direction of other AGVs.
10. The warehouse path planning method based on vision-based multi-AGV collaborative scheduling according to claim 5, characterized in that, The process involves reading the potential value, Euclidean distance increment, and turning change of a node in the cooperative potential field map from its surrounding adjacent grid nodes, and then weighted summing these values to calculate the total surcharge value, including: Determine the direction vector between the current node and the candidate adjacent nodes, and calculate the angle between this direction vector and the current AGV orientation. If the included angle exceeds the set maximum steering angle threshold, then the adjacent node is marked as unreachable; For reachable neighboring nodes, extract the potential value of the node in the cooperative potential field graph, calculate the potential value, Euclidean distance increment, and absolute value of the turning change, multiply them by preset potential weights, distance weights, and turning weights respectively, and then sum them to obtain the estimated cost of reaching the target node from the current node through the neighboring node.
