Cargo handling method, system, electronic device, and storage medium

By combining the Reeds-Shepp algorithm and the A* algorithm for path planning, an obstacle map of the truck compartment and the pose of the target cargo are obtained, which solves the problem of inaccurate path planning of unmanned forklifts in narrow compartments and improves loading and unloading efficiency.

CN115951688BActive Publication Date: 2026-11-20VISIONNAV ROBOTICS SHENZHEN LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310072652.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-12
Publication Date
2026-11-20
Estimated Expiration
2043-01-12

AI Technical Summary

Technical Problem

Existing unmanned forklifts struggle to accurately plan routes within the confined space of the truck bed when loading and unloading goods, resulting in low loading and unloading efficiency.

Method used

By acquiring the obstacle map of the truck bed and the pose of the target cargo, a path planning method combining the Reeds-Shepp algorithm and the A* algorithm is used to determine the loading and unloading path of the unmanned forklift, including obstacle detection and path adjustment, to ensure that the unmanned forklift can accurately avoid obstacles.

Benefits of technology

It improves the accuracy and efficiency of path planning for unmanned forklifts during loading and unloading, enabling them to accurately complete loading and unloading tasks in narrow compartments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115951688B_ABST
    Figure CN115951688B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a cargo loading and unloading method and system, an electronic device and a storage medium. The method comprises: acquiring an obstacle map in a truck compartment and a pose of target cargo in the truck compartment; determining a path node of an unmanned forklift loading and unloading the target cargo according to the pose of the target cargo, a starting point of the unmanned forklift and an end point of the unmanned forklift; determining a target path connecting the path nodes based on the obstacle map and the path node of the target cargo; and loading and unloading the target cargo based on the target path. The embodiments of the present application can improve the accuracy of path planning of the unmanned forklift in the process of loading and unloading cargo.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automation technology, and in particular to a cargo loading and unloading method, system, electronic device and storage medium. Background Technology

[0002] Loading and unloading goods from trucks is a crucial step in transportation operations. Existing methods involve using automated forklifts (AGTs) to handle cargo. However, in the confined space of a truck bed, goods often obscure the interior, preventing the ATG from accurately determining the goods' location using sensors. This hinders accurate path planning and the proper loading and unloading of goods based on the planned path. Therefore, improving the accuracy of path planning during loading and unloading has become a pressing issue. Summary of the Invention

[0003] This application discloses a cargo loading and unloading method, system, electronic device, and storage medium, which can improve the accuracy of path planning for unmanned forklifts during cargo loading and unloading.

[0004] This application discloses a cargo loading and unloading method, the method comprising:

[0005] Obtain an obstacle map in the truck bed and the pose of the target cargo in the truck bed;

[0006] Based on the pose of the target cargo, the starting point of the unmanned forklift, and the ending point of the unmanned forklift, determine the path nodes for loading and unloading the target cargo by the unmanned forklift.

[0007] Based on the obstacle map and the path nodes of the target cargo, determine the target path connecting the path nodes;

[0008] The unmanned forklift loads and unloads the target goods based on the target path.

[0009] In one embodiment, determining the target path connecting the path nodes based on the obstacle map and the path nodes of the target cargo includes:

[0010] The first path connecting the path nodes is determined based on the Reeds-Shepp algorithm;

[0011] Based on the first path and the positions of obstacles in the obstacle map, determine whether the first path collides with the obstacle to obtain a first collision detection result;

[0012] Based on the first collision detection result, the target path connecting the path nodes is determined.

[0013] In one embodiment, determining the target path connecting the path nodes based on the first collision detection result includes:

[0014] If the first collision detection result indicates that the first path does not collide with the obstacle, the first path is determined as the target path connecting the path nodes;

[0015] If the first collision detection result indicates that the first path collides with the obstacle, the turning radius of the unmanned forklift is modified.

[0016] Based on the modified turning radius, a second path connecting the path nodes is determined using the Reeds-Shepp algorithm;

[0017] Determine whether the second path collides with the obstacle to obtain a second collision detection result;

[0018] Based on the second collision detection result, the target path connecting the path nodes is determined.

[0019] In one embodiment, determining the target path connecting the path nodes based on the second collision detection result includes:

[0020] If the second collision detection result indicates that the second path does not collide with the obstacle, the second path is determined as the target path connecting the path nodes;

[0021] If the second collision detection result indicates that the second path collides with the obstacle, the A* algorithm is used to determine the target path connecting the path nodes.

[0022] In one embodiment, determining the target path connecting the path nodes based on the obstacle map and the path nodes of the target cargo includes:

[0023] If the distance between the unmanned forklift's travel position and its destination is less than a distance threshold, the target path connecting the path nodes is determined based on the Reeds-Shepp algorithm.

[0024] If the distance between the location of the unmanned forklift and the destination is greater than a distance threshold, the target path connecting the path nodes is determined based on the A* algorithm.

[0025] In one embodiment, determining the target path connecting the path nodes based on the A* algorithm includes:

[0026] Based on the A* algorithm, the movement cost between the path nodes is calculated. By iterating through the path nodes with the minimum movement cost, the path nodes are expanded until the target path node is reached, thus obtaining the third path. The distance between the target path node and the destination of the unmanned forklift is less than the distance threshold.

[0027] The fourth path between the target path node and the destination of the unmanned forklift is determined using the Reeds-Shepp algorithm;

[0028] The target path connecting the path nodes is determined based on the third path and the fourth path.

[0029] In one embodiment, the method further includes:

[0030] If the number of iterations of the path node with the minimum movement cost exceeds the maximum number of iterations, and the iteration does not extend to the target path node, the target cargo is determined to be unloadable.

[0031] Send a manual intervention request; the manual intervention request is used to indicate that the target cargo is non-unloadable.

[0032] This application discloses a cargo loading and unloading system, which includes sensors, control equipment, and unmanned forklifts.

[0033] The sensor is used to acquire an obstacle map in the truck bed and the pose of the target cargo in the truck bed.

[0034] The control device is used to determine the path nodes for loading and unloading the target goods by the unmanned forklift based on the pose of the target goods, the starting point of the unmanned forklift, and the ending point of the unmanned forklift.

[0035] The control device is also used to determine a target path connecting the path nodes based on the obstacle map and the path nodes of the target cargo;

[0036] The unmanned forklift is used to load and unload the target goods based on the target path.

[0037] This application discloses an electronic device, including:

[0038] Memory containing executable program code;

[0039] A processor coupled to the memory;

[0040] The processor calls the executable program code stored in the memory to execute the method described in any of the above embodiments.

[0041] This application discloses a computer-readable storage medium storing a computer program, wherein when executed by a processor, the computer program causes the processor to perform the methods described in any of the above embodiments.

[0042] The cargo loading and unloading method, system, electronic device, and storage medium disclosed in this application discloses the following: an obstacle map in the truck compartment and the pose of the target cargo are obtained; based on the pose of the target cargo, the starting point of the unmanned forklift, and the ending point of the unmanned forklift, the path nodes for loading and unloading the target cargo are determined; according to the obstacle map and the path nodes of the target cargo, a target path connecting the path nodes is determined; the unmanned forklift completes the loading and unloading of the target cargo based on the target path. Therefore, even in a narrow truck compartment where cargo obstructs the interior environment, an obstacle map can be obtained first. Through the obstacle map, the cargo obstruction situation can be understood, and the pose of the target cargo can be accurately obtained, thereby improving the accuracy of path planning during the loading and unloading process of the unmanned forklift and thus improving the efficiency of cargo loading and unloading. Attached Figure Description

[0043] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0044] Figure 1 This is a schematic diagram illustrating an application scenario of a cargo loading and unloading method disclosed in an embodiment of this application;

[0045] Figure 2 This is a schematic flowchart of a cargo loading and unloading method disclosed in an embodiment of this application;

[0046] Figure 3 This is a schematic flowchart of another cargo loading and unloading method disclosed in the embodiments of this application;

[0047] Figure 4a This is a schematic diagram of vehicle motion using a Reeds-Shepp algorithm disclosed in an embodiment of this application;

[0048] Figure 4b This is a flowchart of a Bresenham line algorithm disclosed in an embodiment of this application;

[0049] Figure 4c This is a schematic diagram of vehicle motion using a standard A* algorithm disclosed in an embodiment of this application;

[0050] Figure 4dThis is a schematic diagram of vehicle motion using a hybrid A* algorithm disclosed in an embodiment of this application;

[0051] Figure 4e This is a schematic diagram of vehicle motion using another hybrid A-Star algorithm disclosed in this application embodiment;

[0052] Figure 4f This is a schematic diagram illustrating the principle of a hybrid A* algorithm disclosed in an embodiment of this application;

[0053] Figure 4g This is an algorithm diagram of a hybrid A* algorithm disclosed in an embodiment of this application;

[0054] Figure 5 This is a schematic flowchart of another cargo loading and unloading method disclosed in the embodiments of this application;

[0055] Figure 6 This is a schematic diagram of the structure of a cargo loading and unloading system disclosed in an embodiment of this application;

[0056] Figure 7 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application. Detailed Implementation

[0057] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0058] It should be noted that the terms "comprising" and "having" and any variations thereof in the embodiments of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to these processes, methods, products, or devices.

[0059] This application discloses a cargo loading and unloading method, system, electronic device, and storage medium, which can improve the accuracy of path planning for unmanned forklifts during cargo loading and unloading.

[0060] The following will be described in detail with reference to the accompanying drawings.

[0061] like Figure 1 As shown, Figure 1 This is a schematic diagram of an application scenario for a cargo loading and unloading method disclosed in an embodiment of this application. The application scenario may include a control device 10, a sensor 20, and an unmanned forklift 30.

[0062] The control device 10 may include, but is not limited to, mobile phones, tablets, wearable devices, laptops, PCs (Personal Computers), etc.

[0063] Sensor 20 may include lidar sensors, camera sensors, millimeter-wave radar sensors, etc., and is not specifically limited. Sensor 20 can be used to acquire an obstacle map in the truck bed and the pose of the target cargo in the truck bed, and send the obstacle map and the pose of the target cargo in the truck bed to the control device 10.

[0064] The control device 10 can be used to determine the path nodes for loading and unloading target goods by the unmanned forklift based on the pose of the target goods, the starting point of the unmanned forklift, and the ending point of the unmanned forklift.

[0065] The control device 10 can also be used to determine the target path connecting the path nodes based on the obstacle map and the path nodes of the target cargo.

[0066] The control device can send the target path directly to the unmanned forklift, or it can send the target path to the central control device first, and then send it to the unmanned forklift through the central control device. The specific method is not limited.

[0067] The unmanned forklift 30 is an Automated Guided Vehicle (AGV), which may include, but is not limited to, lurking AGVs, backpack AGVs, and counterbalanced AGVs. The unmanned forklift 30 can be used to load and unload target goods based on a target path.

[0068] The communication methods between the control device 10 and the sensor 20, and between the control device 10 and the unmanned forklift 30, may include, but are not limited to, wireless fidelity communication technology, Bluetooth communication technology, ZigBee communication technology, RS485 wireless transmission technology, cellular communication technology, etc., without specific limitations.

[0069] Implementing this embodiment can improve the accuracy of path planning for unmanned forklifts during loading and unloading, thereby improving the efficiency of loading and unloading goods.

[0070] like Figure 2 As shown, Figure 2 This is a schematic flowchart of a cargo loading and unloading method disclosed in an embodiment of this application. This method can be applied to a cargo loading and unloading system, which may include control equipment, sensors, and unmanned forklifts. The cargo loading and unloading method may include the following steps:

[0071] 201. Obtain the obstacle map in the truck bed and the pose of the target cargo in the truck bed.

[0072] Sensors acquire an obstacle map of the truck bed and the pose of the target cargo within the truck bed. The loading and unloading process can be as follows: the truck arrives at the corresponding unloading platform, the truck bed opens, and an unmanned forklift can enter the truck bed to load and unload the cargo.

[0073] The types of trucks can include container trucks, tailgate trucks, trailers, and other box trucks. The loading ramps that rise between the unloading platform and the trucks form a slope with the ground, which facilitates unmanned forklifts to enter the truck compartments via the loading ramps.

[0074] Optionally, the sensor can be installed at a height of 2.2 to 2.4 meters above the ground on the unloading platform. The sensor can be a lidar sensor, and its sensing area can cover the loading ramp and the truck bed.

[0075] The sensor can collect point cloud data within the sensing area and generate an obstacle map inside the truck bed based on the point cloud data. The point cloud data can include environmental image information of the truck bed, such as the three-dimensional coordinates of objects and laser reflection intensity. The obstacle map inside the truck bed generated by the sensor based on the point cloud data can include the spatial distribution of various objects in the truck bed, that is, the precise three-dimensional coordinates of each object within the sensing area, thereby obtaining the pose of obstacles such as the truck bed walls, ground protrusions, and cargo.

[0076] Meanwhile, the sensors can acquire the three-dimensional pose of each target cargo inside the truck compartment, or the pose of the vehicle corresponding to each target cargo, based on point cloud data.

[0077] The poses mentioned above can all be two-dimensional poses, which can be represented by a three-dimensional vector (x, y, theta), where x represents translation along the x-axis, y represents translation along the y-axis, and theta represents rotation around the origin.

[0078] 202. Based on the position of the target cargo, the starting point of the unmanned forklift, and the ending point of the unmanned forklift, determine the path nodes for loading and unloading the target cargo by the unmanned forklift.

[0079] The control equipment determines the path nodes for loading and unloading the target goods by the unmanned forklift based on the position of the target goods, the starting point of the unmanned forklift, and the ending point of the unmanned forklift.

[0080] The pose of the target goods can be used to determine the unloading and picking point of the unmanned forklift; the starting point and the ending point of the unmanned forklift can both be a fixed position on the unloading platform; optionally, the sensor can send the pose and dimensions of the unloading platform to the control device, and the control device can determine the starting point and the ending point of the unmanned forklift based on the pose and dimensions of the unloading platform; or, the starting point and the ending point of the unmanned forklift can be custom parameters that are manually input.

[0081] The path nodes for the unmanned forklift loading and unloading target goods are the necessary locations the unmanned forklift must pass through during the process. Path nodes include the pose of the target goods, the starting point of the unmanned forklift, and the ending point of the unmanned forklift. The unmanned forklift starts from the starting point, passes through each target goods, and arrives at the ending point.

[0082] 203. Based on the obstacle map and the path nodes of the target cargo, determine the target path connecting the path nodes.

[0083] The main control device determines the target path connecting the path nodes based on the obstacle map and the path nodes of the target cargo.

[0084] The obstacle map can include the poses of various obstacles in the truck compartment. Based on the obstacle map and the path nodes of the target cargo, the main control device can determine multiple paths that avoid each obstacle and pass through each path node, calculate the path length of each path, and determine the shortest path as the target path from the path lengths of each path.

[0085] It should be noted that when unloading cargo from trucks, the path nodes of the target cargo are connected in an orderly manner according to the unloading sequence; therefore, when loading cargo from trucks, it is only necessary to reverse the unloading sequence to obtain the loading sequence, and then determine the target path connecting the path nodes based on the loading sequence.

[0086] 204. Unmanned forklifts load and unload target goods based on the target path.

[0087] The target path may include the encoding information of each path node. The control device can send the encoding information of each path node to the unmanned forklift to control the unmanned forklift to load and unload goods from the truck.

[0088] The unmanned forklift loads and unloads target goods based on the target path. Starting from the unloading platform, the unmanned forklift passes through the loading bridge between the unloading platform and the truck, enters the truck's compartment, and loads and unloads the target goods.

[0089] In this embodiment, an obstacle map in the truck bed and the pose of the target cargo are obtained; based on the pose of the target cargo, the starting point of the unmanned forklift, and the ending point of the unmanned forklift, the path nodes for loading and unloading the target cargo by the unmanned forklift are determined; according to the obstacle map and the path nodes of the target cargo, the target path connecting the path nodes is determined; the unmanned forklift completes the loading and unloading of the target cargo based on the target path, which can improve the accuracy of path planning of the unmanned forklift during the loading and unloading process, thereby improving the efficiency of loading and unloading cargo.

[0090] like Figure 3 As shown, Figure 3This is a schematic flowchart of another cargo loading and unloading method disclosed in an embodiment of this application. This cargo loading and unloading method can be applied to the cargo loading and unloading system in the above embodiments, and the cargo loading and unloading method may include the following steps:

[0091] 301. Obtain the obstacle map in the truck bed and the pose of the target cargo in the truck bed.

[0092] 302. Determine the path nodes for loading and unloading the target goods by the unmanned forklift based on the position of the target goods, the starting point of the unmanned forklift, and the ending point of the unmanned forklift.

[0093] The implementation methods for steps 301 to 302 can be referred to the above embodiments, and will not be described in detail here.

[0094] 303. Determine the first path of the connecting path nodes based on the Reeds-Shepp algorithm.

[0095] The Reeds-Shepp algorithm is as follows: Assuming that a vehicle can turn with a fixed radius and can move forward and backward, the Reeds-Sheep curve is the shortest path from the starting point to the ending point under the above conditions, and it can guarantee that the position and direction of the vehicle reaching the ending point meet the expected values.

[0096] Specifically, the Reeds-Shepp curve can be composed of several segments of circular arcs and straight lines with fixed radii, such as... Figure 4a As shown, Figure 4a This is a schematic diagram of vehicle motion using a Reeds-Shepp algorithm disclosed in an embodiment of this application. The circular arc segments and straight line segments can include left-turn forward, left-turn backward, right-turn forward, right-turn backward, straight forward, and straight backward. By arranging and combining the above circular arc segments and straight line segments, no more than 48 operating modes for the unmanned forklift can be obtained, as shown in Table 1.

[0097]

[0098] Table 1. Vehicle Operation Modes of the Reeds-Shepp Algorithm

[0099] There are a total of 48 operating modes, categorized into 9 Reeds-Shepp curve paths. The "|" in the Reeds-Shepp curve path indicates a change in vehicle direction from forward to reverse or vice versa. Each Reeds-Shepp curve path consists of six action units: L+, L-, R+, R-, S+, and S-. L+ indicates a left turn forward; L- indicates a left turn backward; R+ indicates a right turn forward; R- indicates a right turn backward; S+ indicates a straight forward; S- indicates a straight backward; C... βC represents the curve portions of two curves with the same length. π / 2 This indicates that the curved portion has a 90-degree angle.

[0100] In this embodiment of the application, the method for determining the first path of a connecting path node based on the Reeds-Shepp algorithm may include:

[0101] (1) As the unmanned forklift moves continuously in the obstacle map, the pose information of the unmanned forklift when it reaches the current path node can be obtained.

[0102] In a two-dimensional plane, the bounding box of an automated forklift can be considered a rectangle. Referring to the parameters of an actual automated forklift, the dimensions of this rectangle are set, such as its length, width, and the origin pose of the automated forklift.

[0103] (2) Since the rectangle of the unmanned forklift is a closed shape and moves continuously in the obstacle map, each collision detection only needs to detect whether the four sides of the rectangle collide with the obstacles in the obstacle map.

[0104] (3) Given the starting point of the unmanned forklift and its pose information at the current path node, i.e., the origin pose of the unmanned forklift when it reaches the current path node, the origin pose can be represented by the x-axis, y-axis, and rotation angle theta. The positions of the four vertices of the unmanned forklift's rectangle in the obstacle map can be calculated through coordinate transformation.

[0105] (4) Connect a pair of adjacent vertices of the rectangle and use the Bresenham line algorithm to calculate the coordinates of all pixels on the connection line; then search the obstacle map to confirm whether there are obstacles, i.e. whether the unmanned forklift collides with any obstacle. If there are no obstacles at any pixel position on all four sides of the unmanned forklift's rectangle, the obtained path is a drivable path, and the drivable path is used as the first path of the connecting path nodes determined based on the Reeds-Shepp algorithm.

[0106] The slope of the first path can be represented by Equation 1:

[0107]

[0108] The endpoints of the line segment in the first path are (x1, y1) and (x2, y2), and r is the slope.

[0109] The Bresenham line algorithm works as follows: a set of virtual grid lines is constructed through the center of each row and column of pixels. The intersection points of each perpendicular grid line of the line are calculated in the order from the start point to the end point. Then, the pixel in the column that is closest to this intersection point is determined.

[0110] The Bresenham line algorithm flow is as follows: Figure 4b As shown, Figure 4b This is a flowchart of a Bresenham line algorithm disclosed in an embodiment of this application.

[0111] 304. Based on the first path and the location of obstacles in the obstacle map, determine whether the first path collides with the obstacle and obtain the first collision detection result.

[0112] Therefore, for path planning of unmanned forklift loading and unloading, given the starting point, ending point of the unmanned forklift, and the pose of the target goods, the Reeds-Shepp curve algorithm calculates an analytical solution according to the formula to obtain the first path. Then, based on the first path and the obstacle positions in the obstacle map, collision detection is performed on the path sampling points in the first path. This method is passive obstacle avoidance. Because this algorithm has fewer steps and is computationally fast, it is very suitable for simple scenarios with static conditions and sparse obstacles.

[0113] 305. Based on the first collision detection result, determine the target path of the connecting path node.

[0114] As an optional implementation, determining the target path connecting the path nodes based on the first collision detection result may include the following steps:

[0115] If the first collision detection result indicates that the first path does not collide with the obstacle, the first path is determined as the target path connecting the path nodes. If the first collision detection result indicates that the first path collides with the obstacle, the turning radius of the unmanned forklift is modified. Based on the modified turning radius, the second path connecting the path nodes is determined using the Reeds-Shepp algorithm. It is then determined whether the second path collides with the obstacle to obtain the second collision detection result. Based on the second collision detection result, the target path connecting the path nodes is determined.

[0116] Further, optionally, determining the target path connecting the path nodes based on the second collision detection result may include the following steps:

[0117] If the second collision detection result indicates that the second path does not collide with the obstacle, the second path is determined as the target path connecting the path nodes; if the second collision detection result indicates that the second path collides with the obstacle, the A* algorithm is used to determine the target path connecting the path nodes.

[0118] The A* algorithm can include a hybrid A* algorithm and a standard A* algorithm. The hybrid A* algorithm is an improvement on the standard A* algorithm, allowing it to satisfy vehicle kinematics. Firstly, in the standard A* algorithm, the vehicle's motion direction is the line connecting the center points of the grid, such as... Figure 4c As shown, Figure 4c This is a schematic diagram of vehicle motion using a standard A* algorithm disclosed in an embodiment of this application. Therefore, the standard A* algorithm cannot solve the problem of vehicle orientation and position in continuous space. The hybrid A* algorithm, however, replaces the nodes in the A* algorithm with trajectories generated by vehicle kinematics, such as... Figure 4d As shown, Figure 4d This is a schematic diagram of vehicle motion using a hybrid A* algorithm disclosed in this application, thereby solving the problem that the path does not satisfy vehicle kinematics.

[0119] like Figure 4e As shown, Figure 4e This is a schematic diagram of vehicle motion using another hybrid A* algorithm disclosed in this application. In the hybrid A* algorithm, each current path node can generate extended nodes (neighbor nodes) in six directions: forward (straight, left turn, right turn) and backward (straight, left turn, right turn). To calculate the extended nodes of the current path node, a digital model of the vehicle's motion needs to be established; a front-wheel-drive bicycle model can be selected.

[0120] like Figure 4f As shown, Figure 4f This is a schematic diagram illustrating the principle of a hybrid A* algorithm disclosed in an embodiment of this application. When the vehicle is front-wheel drive (front-wheel-only), the steering angle δ of the rear wheels can be assumed. r The constant value is 0, and the steering angle of the front wheel is δ. f The distance between the vehicle's center and the front axle is l. f The distance between the vehicle's center and the rear axle is l. r At this point, the vehicle's kinematics formula is as follows:

[0121]

[0122] Where (X, Y) are the coordinates of the rear wheel axle center of the vehicle, ψ is the heading angle, v is the vehicle speed, and β is the slip angle; These are the derivatives of the parameters mentioned above.

[0123] At any given moment, the current x and y coordinates can be calculated based on the vehicle's speed v, the angle Ψ between the vehicle's orientation and the horizontal direction, and the vehicle's steering angle δf, thus obtaining the position information of neighboring nodes.

[0124] The hybrid A* algorithm uses an open list to represent the set of nodes to be searched during the pathfinding process. Each time the current node is expanded, its neighboring nodes are added to the open list, and a closed list is used to record nodes that have already been searched. Searched nodes are then removed from the open list.

[0125] like Figure 4g As shown, Figure 4gThis is a flowchart of a hybrid A* algorithm disclosed in an embodiment of this application. For each node n, the following costs need to be evaluated:

[0126] The movement cost from the current point N to the starting point is g(n); the estimated cost h(n) of the current node N from the destination is obtained by a heuristic (function); the total movement cost of node N is f(n) = g(n) + h(n). When selecting the next node to search, the node with the smallest f value in the current open list is selected.

[0127] Hybrid A has two heuristics, including a constrained heuristic and an unconstrained heuristic. Generally, the maximum value of the two is taken as the h value.

[0128] Specifically, the constraint heuristic ignores the influence of obstacles in path planning, but considers the vehicle's kinematic constraints. This constraint heuristic connects the current node N and the destination using a Reeds-Shepp or Dubins curve, and uses the path length of the optimal curve as the projected cost h(n). This heuristic constraint considers the current heading angle and turning radius, ensuring the vehicle approaches the target pose with the correct heading. This constraint plays a more important role as the vehicle gets closer to the target.

[0129] Unconstrained heuristics ignore the vehicle's kinematic constraints and primarily consider the impact of obstacles. This unconstrained heuristic uses Dijkstra's algorithm to obtain the shortest path from the current node N to the destination as the estimated cost h(n), or uses the Euclidean distance (the straight-line distance between two nodes) as the estimated cost h(n) obtained through the A* algorithm. This obstacle-influenced heuristic can guide the vehicle around obstacles or U-turns.

[0130] It should be noted that the aforementioned vehicles may include the unmanned forklifts in the embodiments of this application.

[0131] It should be noted that during the loading and unloading of goods by the unmanned forklift, the Reeds-Shepp algorithm can be used to determine the target path for loading and unloading goods. If the first path obtained does not collide with any obstacles, it can be determined as the target path connecting the path nodes and sent to the unmanned forklift. If the first path obtained collides with any obstacles and the obstacles cannot be avoided by modifying the turning radius of the unmanned forklift, the hybrid A* algorithm is used to search for and determine the target path. This improves the flexibility and accuracy of path planning during the loading and unloading process of the unmanned forklift, thereby improving the efficiency of loading and unloading goods.

[0132] Therefore, for path planning of unmanned forklift loading and unloading, the Reeds-Shepp curve algorithm and the hybrid A* algorithm can be combined. If the second path still collides with obstacles, it indicates that the Reeds-Shepp curve algorithm cannot determine the target path. Therefore, the Reeds-Shepp curve algorithm can be flexibly switched to the A* algorithm to determine the target path connecting the path nodes.

[0133] 306. Unmanned forklifts load and unload target goods based on the target path.

[0134] The implementation method of step 306 can be referred to the above embodiments, and will not be described in detail here.

[0135] In this embodiment, an obstacle map in the truck bed and the pose of the target cargo are obtained; based on the pose of the target cargo, the starting point of the unmanned forklift, and the ending point of the unmanned forklift, the path nodes for loading and unloading the target cargo are determined; firstly, a first path connecting the path nodes is determined based on the Reeds-Shepp algorithm, and then based on the first path and the obstacle positions in the obstacle map, it is determined whether the first path collides with the obstacle to obtain a first collision detection result; based on the first collision detection result, a target path connecting the path nodes is determined; the unmanned forklift completes the loading and unloading of the target cargo based on the target path, which can improve the flexibility and accuracy of path planning during the loading and unloading process of the unmanned forklift, thereby improving the efficiency of loading and unloading cargo.

[0136] like Figure 5 As shown, Figure 5 This is a schematic flowchart of another cargo loading and unloading method disclosed in an embodiment of this application. This cargo loading and unloading method can be applied to the cargo loading and unloading system in the above embodiments, and the cargo loading and unloading method may include the following steps:

[0137] 501. Obtain the obstacle map in the truck bed and the pose of the target cargo in the truck bed.

[0138] 502. Based on the position of the target cargo, the starting point of the unmanned forklift, and the ending point of the unmanned forklift, determine the path nodes for loading and unloading the target cargo by the unmanned forklift.

[0139] The specific implementation methods for steps 501 and 502 can be found in the above embodiments, and will not be elaborated further.

[0140] 503. When the distance between the location of the unmanned forklift and its destination is less than a distance threshold, determine the target path connecting the path nodes based on the Reeds-Shepp algorithm.

[0141] The control device can acquire the coordinates of the unmanned forklift's travel position on the obstacle map, as well as the coordinates of the forklift's destination on the obstacle map, and calculate the distance between the forklift's travel position and destination. The distance threshold can be determined based on the length of the truck's cargo box. If the distance threshold is greater than the cargo box length, it indicates a large distance threshold; if the distance threshold is less than the cargo box length, it indicates a small distance threshold. Based on the size of the distance threshold, it can be determined whether to use the Reeds-Shepp algorithm or the A* algorithm to determine the target path.

[0142] 504. When the distance between the location of the unmanned forklift and the destination is greater than the distance threshold, determine the target path connecting the path nodes based on the A* algorithm.

[0143] As an optional implementation, determining the target path of connecting path nodes based on the A* algorithm may include the following steps:

[0144] Based on the A* algorithm, the movement cost between path nodes is calculated. The path nodes are expanded iteratively by finding the path node with the minimum movement cost until the target path node is reached, thus obtaining the third path. The distance between the target path node and the destination of the unmanned forklift is less than a distance threshold. The fourth path between the target path node and the destination of the unmanned forklift is determined using the Reeds-Shepp algorithm. The target path connecting the path nodes is determined based on the third and fourth paths.

[0145] It's important to note that the hybrid A* algorithm can be combined with the Reeds-Shepp (RS) algorithm. When the automated forklift is close enough to the destination (below a distance threshold), the search stops, and the Reeds-Shepp (RS) curve is directly calculated and generated, with collision detection performed. If no collision occurs, the calculation stops, and the target path is determined based on the third path determined by the A* algorithm (from the starting point to the target node) and the fourth path determined by the Reeds-Shepp algorithm (from the target node to the destination). If a collision occurs, the A* algorithm is used again to search for the path to the destination. This significantly reduces computation time and improves the flexibility and efficiency of path planning.

[0146] Therefore, adjusting this distance threshold allows for flexible control over the algorithm used for path planning. If the distance threshold is quite large (exceeding the total length of the truck bed), then the hybrid A* algorithm becomes the Reeds-Shepp algorithm, which is sufficient for simple unloading scenarios. If the distance threshold is small, then initially, the A* algorithm is used to expand the path nodes according to the vehicle kinematics model, evaluate the movement cost, and iterate continuously until the destination is neared. Then, the RS algorithm is used to find the analytical solution, which can handle complex unloading scenarios.

[0147] For path planning of unmanned forklift loading and unloading, the Reeds-Shepp curve algorithm and the hybrid A* algorithm can be combined.

[0148] Compared to the Reeds-Shepp algorithm, the hybrid A* algorithm is heuristic, allowing for the evaluation of the cost of path nodes. During the search for the target path, it continuously expands by selecting path nodes with the lowest movement costs, enabling proactive obstacle avoidance and making it suitable for path planning in complex scenarios.

[0149] As another alternative implementation, if the number of iterations of the path node with the minimum movement cost exceeds the maximum number of iterations and the process does not extend to the target path node, the target cargo is determined to be unloadable; a manual intervention request is sent; the manual intervention request is used to indicate that the target cargo is unloadable.

[0150] It should be noted that if there is still no solution after exceeding the maximum number of iterations of the hybrid A* algorithm, the scenario is judged as unresolvable, and a manual intervention request can be sent to request human assistance.

[0151] 505. Unmanned forklifts load and unload target goods based on the target path.

[0152] The control equipment can feed back the target path to the unmanned forklift in the form of coded data, so that the unmanned forklift can load and unload the target goods based on the target path, thereby realizing automated unloading.

[0153] In this embodiment, the environment of the truck compartment is perceived by sensors (such as lidar sensors) to obtain an obstacle map and the pose of the target cargo. Based on the obstacle map, the pose of the target cargo, and the starting and ending points of the unmanned forklift, the path nodes for loading and unloading the target cargo are determined. By adjusting the distance threshold, two path planning algorithms are cleverly combined: the Reeds-Shepp curve algorithm and the hybrid A* algorithm to plan the unloading path. When the distance threshold is large enough, the Reeds-Shepp algorithm is used. If a collision occurs in the solved path and cannot be avoided by parameter tuning (i.e., cannot be avoided by adjusting the turning radius), the distance threshold is set to a smaller value, i.e., the more complex hybrid A* algorithm is used. When neither path planning method has a solution, the scene is determined to be unloadable, and manual intervention is then performed.

[0154] Therefore, this method is highly flexible and can handle various scenarios. It can effectively prevent unmanned forklifts from colliding with the truck bed walls and goods during operation, thus avoiding unnecessary losses, while improving operational efficiency.

[0155] like Figure 6 As shown, Figure 6This is a schematic diagram of a cargo loading and unloading system disclosed in an embodiment of this application. The cargo loading and unloading system 600 includes a control device 10, a sensor 20, and an unmanned forklift 30.

[0156] Sensor 20 is used to acquire a map of obstacles in the truck bed and the pose of the target cargo in the truck bed;

[0157] The control device 10 is used to determine the path nodes for loading and unloading the target goods by the unmanned forklift based on the pose of the target goods, the starting point of the unmanned forklift, and the ending point of the unmanned forklift.

[0158] Control device 10 is used to determine the target path connecting the path nodes based on the obstacle map and the path nodes of the target cargo.

[0159] The unmanned forklift 30 is used for loading and unloading target goods based on the target path.

[0160] In one embodiment, the control device 10 is further configured to determine a first path connecting the path nodes based on the Reeds-Shepp algorithm; determine whether the first path collides with an obstacle based on the first path and the obstacle position in the obstacle map, and obtain a first collision detection result; and determine the target path connecting the path nodes based on the first collision detection result.

[0161] In one embodiment, the control device 10 is further configured to: determine the first path as the target path connecting the path nodes if the first collision detection result indicates that the first path does not collide with the obstacle; modify the turning radius of the unmanned forklift if the first collision detection result indicates that the first path collides with the obstacle; determine the second path connecting the path nodes based on the modified turning radius using the Reeds-Shepp algorithm; determine whether the second path collides with the obstacle to obtain the second collision detection result; and determine the target path connecting the path nodes based on the second collision detection result.

[0162] In one embodiment, the control device 10 is further configured to determine the second path as the target path connecting the path nodes when the second collision detection result is that the second path does not collide with the obstacle; and to determine the target path connecting the path nodes using the A* algorithm when the second collision detection result is that the second path collides with the obstacle.

[0163] In one embodiment, the control device 10 is further configured to determine the target path of the connecting path node based on the Reeds-Shepp algorithm when the distance between the driving position of the unmanned forklift and the destination of the unmanned forklift is less than a distance threshold; and to determine the target path of the connecting path node based on the A* algorithm when the distance between the driving position of the unmanned forklift and the destination is greater than the distance threshold.

[0164] In one embodiment, the control device 10 is further configured to calculate the movement cost between path nodes based on the A* algorithm, expand the path nodes by iteratively finding the path node with the minimum movement cost, until the target path node is reached, and obtain a third path; the distance between the target path node and the destination of the unmanned forklift is less than a distance threshold; determine a fourth path between the target path node and the destination of the unmanned forklift using the Reeds-Shepp algorithm; and determine the target path connecting the path nodes based on the third path and the fourth path.

[0165] In one embodiment, the control device 10 is further configured to determine that the target cargo is unloadable if the number of iterations of the path node with the minimum moving cost exceeds the maximum number of iterations and the process does not extend to the target path node; and send a manual intervention request; the manual intervention request is used to indicate that the target cargo is unloadable.

[0166] In this embodiment, an obstacle map in the truck bed and the pose of the target cargo are obtained; based on the pose of the target cargo, the starting point of the unmanned forklift, and the ending point of the unmanned forklift, the path nodes for loading and unloading the target cargo by the unmanned forklift are determined; according to the obstacle map and the path nodes of the target cargo, the target path connecting the path nodes is determined; the unmanned forklift completes the loading and unloading of the target cargo based on the target path, which can improve the accuracy of path planning of the unmanned forklift during the loading and unloading process, thereby improving the efficiency of loading and unloading cargo.

[0167] like Figure 7 As shown, in one embodiment, an electronic device is provided, which may include:

[0168] Memory 710 storing executable program code;

[0169] Processor 720 coupled to memory 710;

[0170] The processor 720 can call the executable program code stored in the memory 710 to implement the cargo loading and unloading methods provided in the above embodiments.

[0171] The memory 710 may include random access memory (RAM) or read-only memory (ROM). The memory 710 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 710 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described above. The data storage area may also store data created during the use of the electronic device.

[0172] Processor 720 may include one or more processing cores. Processor 720 connects to various parts of the electronic device using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in memory 710, and by calling data stored in memory 710. Optionally, processor 720 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 720 may integrate one or more of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into processor 720 and may be implemented separately using a communication chip.

[0173] Understandably, electronic devices may include more or fewer structural elements than those shown in the block diagram above, such as power modules, physical buttons, WiFi (Wireless Fidelity) modules, speakers, Bluetooth modules, sensors, etc., and are not limited thereto.

[0174] This application discloses a computer-readable storage medium storing a computer program that causes a computer to perform the methods described in the above embodiments.

[0175] Furthermore, this application further discloses a computer program product that, when run on a computer, enables the computer to execute all or part of the steps in any of the cargo loading and unloading methods described in the above embodiments.

[0176] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.

[0177] The above provides a detailed description of a cargo loading and unloading method, system, electronic device, and storage medium disclosed in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for loading and unloading goods, characterized in that, The method includes: Obtain an obstacle map in the truck bed and the pose of the target cargo in the truck bed. The obstacle map includes the truck bed walls, ground protrusions and the pose of the target cargo. Based on the pose of the target cargo, the starting point of the unmanned forklift, and the ending point of the unmanned forklift, the path nodes for loading and unloading the target cargo by the unmanned forklift are determined, and the pose of the target cargo is used to determine the unloading and picking point of the unmanned forklift. Based on the obstacle map and the path nodes of the target cargo, determine the target path connecting the path nodes, including: The first path connecting the path nodes is determined based on the Reeds-Shepp algorithm; Based on the first path and the obstacle positions in the obstacle map, a first collision detection result is obtained by determining whether the first path collides with the obstacle. This includes: treating the unmanned forklift as a rectangle in the obstacle map and determining the size information of the rectangle by referring to the parameters of the unmanned forklift; calculating the coordinates of each pixel on each side of the rectangle using the Bresenham line algorithm, and checking whether the obstacle exists at the coordinates of each pixel in the obstacle map; if no obstacle exists at the position of any pixel on any of the four sides of the rectangle, the first collision detection result is that the first path does not collide with the obstacle; if an obstacle exists at the position of any pixel on any of the four sides of the rectangle, the first collision detection result is that the first path collides with the obstacle. Based on the first collision detection result, the target path connecting the path nodes is determined, including: If the first collision detection result indicates that the first path does not collide with the obstacle, the first path is determined as the target path connecting the path nodes; If the first collision detection result indicates that the first path collides with the obstacle, the turning radius of the unmanned forklift is modified. Based on the modified turning radius, a second path connecting the path nodes is determined using the Reeds-Shepp algorithm; Determine whether the second path collides with the obstacle to obtain a second collision detection result; If the second collision detection result indicates that the second path does not collide with the obstacle, the second path is determined as the target path connecting the path nodes; If the second collision detection result indicates that the second path collides with the obstacle, the A* algorithm is used to determine the target path connecting the path nodes. The unmanned forklift loads and unloads the target goods based on the target path.

2. The method according to claim 1, characterized in that, Determining the target path connecting the path nodes based on the obstacle map and the path nodes of the target cargo includes: If the distance between the unmanned forklift's travel position and its destination is less than a distance threshold, the target path connecting the path nodes is determined based on the Reeds-Shepp algorithm. If the distance between the location of the unmanned forklift and the destination is greater than a distance threshold, the target path connecting the path nodes is determined based on the A* algorithm.

3. The method according to claim 2, characterized in that, The determination of the target path connecting the path nodes based on the A* algorithm includes: Based on the A* algorithm, the movement cost between the path nodes is calculated. By iterating through the path nodes with the minimum movement cost, the path nodes are expanded until the target path node is reached, thus obtaining the third path. The distance between the target path node and the destination of the unmanned forklift is less than the distance threshold. The fourth path between the target path node and the destination of the unmanned forklift is determined using the Reeds-Shepp algorithm; The target path connecting the path nodes is determined based on the third path and the fourth path.

4. The method according to claim 3, characterized in that, The method further includes: If the number of iterations of the path node with the minimum movement cost exceeds the maximum number of iterations, and the iteration does not extend to the target path node, the target cargo is determined to be unloadable. Send a manual intervention request; the manual intervention request is used to indicate that the target cargo is non-removable.

5. A cargo loading and unloading system, characterized in that, The cargo loading and unloading system includes sensors, control equipment, and unmanned forklifts. The sensor is used to acquire an obstacle map in the truck bed and the pose of the target cargo in the truck bed. The obstacle map includes the truck bed walls, ground protrusions and the pose of the target cargo. The control device is used to determine the path nodes for loading and unloading the target goods by the unmanned forklift based on the pose of the target goods, the starting point of the unmanned forklift, and the ending point of the unmanned forklift. The pose of the target goods is used to determine the unloading and picking point of the unmanned forklift. The control device is further configured to determine a target path connecting the path nodes based on the obstacle map and the path nodes of the target cargo, including: The first path connecting the path nodes is determined based on the Reeds-Shepp algorithm; Based on the first path and the obstacle positions in the obstacle map, a first collision detection result is obtained by determining whether the first path collides with the obstacle. This includes: treating the unmanned forklift as a rectangle in the obstacle map and determining the size information of the rectangle by referring to the parameters of the unmanned forklift; calculating the coordinates of each pixel on each side of the rectangle using the Bresenham line algorithm, and checking whether the obstacle exists at the coordinates of each pixel in the obstacle map; if no obstacle exists at the position of any pixel on any of the four sides of the rectangle, the first collision detection result is that the first path does not collide with the obstacle; if an obstacle exists at the position of any pixel on any of the four sides of the rectangle, the first collision detection result is that the first path collides with the obstacle. Based on the first collision detection result, the target path connecting the path nodes is determined, including: If the first collision detection result indicates that the first path does not collide with the obstacle, the first path is determined as the target path connecting the path nodes; If the first collision detection result indicates that the first path collides with the obstacle, the turning radius of the unmanned forklift is modified. Based on the modified turning radius, a second path connecting the path nodes is determined using the Reeds-Shepp algorithm; Determine whether the second path collides with the obstacle to obtain a second collision detection result; If the second collision detection result indicates that the second path does not collide with the obstacle, the second path is determined as the target path connecting the path nodes; If the second collision detection result indicates that the second path collides with the obstacle, the A* algorithm is used to determine the target path connecting the path nodes. The unmanned forklift is used to load and unload the target goods based on the target path.

6. An electronic device, characterized in that, include: Memory containing executable program code; A processor coupled to the memory; The processor invokes the executable program code stored in the memory to execute the method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein, when executed by a processor, the computer program causes the processor to perform the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Trajectory planning method, trajectory planning device, storage medium and electronic equipment

    CN110836671A

  • Unmanned multi-target-point trajectory parallel planning method based on semantic road map

    CN113932823A