Stacker control method and device, electronic equipment and storage medium

By collecting point cloud data with multi-line radar to calculate the relative position and posture parameters of the forklift and the container truck, and dynamically adjusting the speed and turning angle, the problem of low positioning accuracy of the forklift is solved, and efficient automation of port yard operations is achieved.

CN123177271APending Publication Date: 2026-11-27SANY MARINE HEAVY INDUSTRY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In port container yard operations, existing forklifts suffer from low positioning accuracy due to the poor resistance of vision equipment such as cameras and camcorders to environmental interference. Positioning failures are easily caused by point cloud noise, ground interference, or wheel misdetection.

Method used

By using multi-line radar to collect point cloud data and calculating the relative pose parameters between the forklift and the truck, the desired travel speed and steering angle are dynamically adjusted to achieve precise alignment between the forklift and the truck.

Benefits of technology

It improves the alignment accuracy and robustness between the stacker and the container truck, ensuring the level of automation and efficiency of port yard operations, and avoiding alignment failures caused by initial deviations and environmental interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123177271A_ABST
    Figure CN123177271A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of engineering machinery, and discloses a stacker control method and device, electronic equipment and a storage medium, the method comprises: acquiring point cloud data, and calculating the relative pose parameters between the stacker and the truck based on the point cloud data, the relative pose parameters include the vehicle head angle, the lateral distance and the longitudinal distance, the point cloud data is collected by the multi-line radar arranged on the stacker; based on the relative pose parameters, the expected driving speed and the expected steering angle of the stacker are calculated, and the stacker is controlled to drive based on the expected driving speed and the expected steering angle, so that the relative pose parameters converge to the preset alignment threshold range, and the alignment of the stacker and the truck is completed. In this way, the problems of alignment failure and insufficient precision caused by sensor limitations, environmental interference and large initial deviation are effectively solved, and the automation level and efficiency of port yard operation are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of engineering machinery technology, specifically to forklift control methods, devices, electronic equipment, and storage media. Background Technology

[0002] In port container yard operations, forklifts need to be precisely aligned with the sides of container trucks to complete container grabbing and unloading operations. Current automatic alignment technologies mostly rely on single sensors or simple feature recognition. When the initial deviation is large, positioning failure is easily caused by point cloud noise, ground interference, or wheel misdetection. Furthermore, the poor resistance to environmental interference of vision devices such as cameras further leads to low positioning accuracy of container trucks. Summary of the Invention

[0003] This invention provides a forklift control method, device, electronic equipment, and storage medium to solve the problem of low positioning accuracy of forklifts due to the poor anti-environmental interference capability of visual devices such as cameras.

[0004] In a first aspect, the present invention provides a forklift control method, the method comprising: Point cloud data is acquired, and the relative pose parameters between the forklift and the truck are calculated based on the point cloud data. The relative pose parameters include the truck head angle, lateral distance and longitudinal distance. The point cloud data is acquired by a multi-line radar set on the forklift. Based on the relative pose parameters, the desired travel speed and desired steering angle of the forklift are calculated, and the travel of the forklift is controlled based on the desired travel speed and desired steering angle so that the relative pose parameters converge to the preset alignment threshold range, thereby completing the alignment of the forklift and the truck.

[0005] In this embodiment of the method, based on the calculated relative pose parameters, the desired travel speed and desired turning angle of the forklift are dynamically calculated, and the travel of the forklift is controlled accordingly, thereby improving the robustness and accuracy of the forklift in the alignment process. This effectively solves the problems of alignment failure and insufficient accuracy caused by sensor limitations, environmental interference and large initial deviations, and improves the automation level and efficiency of port yard operations.

[0006] In one optional implementation, the relative pose parameters between the forklift crane and the container truck are calculated based on point cloud data, including: Preprocess the point cloud data to obtain a non-ground point cloud; Clustering is performed on the non-ground point cloud to determine the truck body point cloud; The point cloud of the side flat plate of the container truck is extracted from the point cloud of the container truck body; Wheel point clouds are extracted from the point cloud of the side flat plate of the truck, and the center of the target wheel is obtained by fitting the wheel point cloud. Based on the target wheel center and preset vehicle size parameters, the center point of the truck is calculated; The center point of the forklift machine is determined based on multi-line radar and a pre-set inertial measurement unit. The relative pose parameters are calculated based on the center point of the container truck and the center point of the forklift.

[0007] In this embodiment of the method, the key geometric features of the container truck are accurately identified based on point cloud data, and the center point of the container truck and the center point of the forklift are further accurately located. This significantly improves the calculation accuracy of the relative pose parameters between the forklift and the container truck, provides reliable input data for the precise alignment control of the forklift, and ensures the success rate and efficiency of the forklift alignment operation.

[0008] In one optional implementation, the point cloud of the side flat plate of the truck is extracted from the point cloud of the truck body, including: The point cloud of the container truck body is subjected to multiple rounds of random sampling and consistent plane segmentation to generate multiple candidate planes; Based on preset constraints, the point cloud of the side plate of the truck is obtained by screening from each candidate plane.

[0009] In this embodiment of the method, by extracting the point cloud of the flat plate on the side of the container truck from the point cloud of the container truck body, interference from the point clouds of other structures is effectively avoided, thereby providing high-precision basic data for the subsequent calculation of the container truck's pose parameters. This significantly improves the accuracy and reliability of the calculation of the relative pose parameters between the forklift and the container truck.

[0010] In one optional implementation, the center of the target wheel is obtained based on wheel point cloud fitting, including: Random sampling consistency plane fitting is performed on the wheel point cloud, and the fitted point cloud is projected onto a two-dimensional plane; In a two-dimensional plane, the initial values ​​of the wheel center and the wheel radius are calculated using the algebraic least squares method. Nonlinear iterative optimization is performed on the initial values ​​of the wheel center and wheel radius to obtain the optimized values ​​of the wheel center and wheel radius. The validity of the optimized wheel radius value is verified, and the optimized wheel center value corresponding to the verified optimized wheel radius value is taken as the target wheel center.

[0011] In this embodiment of the method, the center of the target wheel is extracted from the wheel point cloud, ensuring the accurate identification of the center of the target wheel. This facilitates the reliable input for calculating the center point of the container truck, making the calculation of the relative pose parameters between the forklift and the container truck more accurate and providing a solid data foundation for the precise alignment control of the forklift.

[0012] In one optional implementation, the desired travel speed and desired turning angle of the forklift are calculated based on relative pose parameters, including: Based on preset velocity limits and preset acceleration limits, the desired trajectory curve of the forklift from the initial pose to the target pose is generated; Obtain the current travel time of the forklift and determine whether the forklift has reached the endpoint of the desired trajectory curve at the current travel time. If the endpoint of the trajectory is not reached, the inverse kinematics solution is performed on the expected trajectory curve to obtain the expected pose and expected curvature at the current moment. Based on the desired pose, relative pose parameters, and desired curvature, the desired travel speed and desired turning angle of the forklift are calculated.

[0013] In this embodiment of the method, on the one hand, trapezoidal speed planning is performed by pre-setting speed and acceleration limits to ensure that the speed and acceleration of the forklift are always within the physical safety range, avoiding safety hazards caused by overspeeding or sudden acceleration and deceleration. On the other hand, based on the forklift's ability to accurately track the pre-planned desired trajectory, deviations caused by environmental disturbances or sensor errors can be corrected in real time, ensuring that the forklift can converge stably and smoothly to the target pose aligned with the truck.

[0014] In one alternative implementation, controlling the forklift's movement based on a desired travel speed and a desired steering angle includes: Based on the pre-calibrated vehicle kinematics model, the desired driving speed is mapped to the accelerator pedal opening value, and the desired steering angle is mapped to the steering wheel angle value; After filtering and smoothing the accelerator pedal opening value and steering wheel angle value, the accelerator pedal opening value and steering wheel angle value are used as drive signals to control the movement of the forklift.

[0015] In this embodiment of the method, by mapping the desired driving speed and desired steering angle to the steering wheel angle value and the accelerator pedal opening value, the precise and smooth control of the forklift's movement is achieved, enabling it to move according to the expected trajectory and posture, and finally complete the alignment operation with the container truck.

[0016] In one alternative implementation, the method further includes: During the operation of the forklift, the steps of acquiring point cloud data and calculating the desired travel speed and desired steering angle of the forklift based on relative pose parameters are repeatedly executed to update the desired travel speed and desired steering angle.

[0017] In this embodiment of the method, the accuracy and robustness of the alignment between the forklift and the truck are significantly improved by the path correction and attitude adjustment of the forklift during the alignment process. This effectively avoids alignment failure or efficiency reduction caused by initial calculation errors or dynamic disturbances during the journey. Even in complex operating environments, the forklift can maintain accurate tracking of the target alignment point, thereby ensuring the success rate and efficiency of the alignment operation.

[0018] In a second aspect, the present invention provides a forklift control device, the device comprising: The first calculation module is used to acquire point cloud data and calculate the relative pose parameters between the forklift and the truck based on the point cloud data. The relative pose parameters include the truck head angle, lateral distance and longitudinal distance. The point cloud data is acquired by a multi-line radar set on the forklift. The second calculation module is used to calculate the desired travel speed and desired turning angle of the forklift based on the relative pose parameters, and control the travel of the forklift based on the desired travel speed and desired turning angle, so that the relative pose parameters converge to the preset alignment threshold range, thereby completing the alignment of the forklift and the truck.

[0019] Thirdly, the present invention provides an electronic device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the forklift control method of the first aspect or any corresponding embodiment described above.

[0020] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the forklift control method of the first aspect or any corresponding embodiment described above. Attached Figure Description

[0021] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0022] Figure 1 This is a schematic flowchart of a first type of forklift control method according to an embodiment of the present invention; Figure 2 This is a schematic diagram of a second process for a forklift control method according to an embodiment of the present invention; Figure 3 This is a schematic diagram of pose parameters according to an embodiment of the present invention; Figure 4This is a structural block diagram of a forklift control device according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0023] 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.

[0024] It is understood that before using the technical solutions disclosed in the various embodiments of the present invention, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in the present invention and their authorization should be obtained in accordance with relevant laws and regulations through appropriate means.

[0025] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0026] According to an embodiment of the present invention, a forklift control method is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0027] This embodiment provides a forklift control method, such as Figure 1 As shown, Figure 1 This is a schematic diagram of a first type of forklift control method according to an embodiment of the present invention, the process including the following steps: Step S101: Acquire point cloud data and calculate the relative pose parameters between the forklift and the truck based on the point cloud data. The relative pose parameters include the truck head angle, lateral distance and longitudinal distance. The point cloud data is acquired by a multi-line radar set on the forklift.

[0028] Here, point cloud data refers to a dataset consisting of a large number of discrete three-dimensional spatial points acquired by multi-line radar. Each point includes at least coordinate information to accurately reflect the geometry and spatial position of the object's surface.

[0029] It is equipped with at least two multi-line lidars, which can be installed on the mudguards on both sides of the forklift for omnidirectional scanning of the truck in front.

[0030] A forklift is a type of engineering machinery used for moving and stacking containers or heavy objects. In this embodiment, the forklift is equipped with an automatic control system, enabling it to autonomously move and position itself based on perceived environmental information.

[0031] A container truck is a type of truck used to transport containers. In this embodiment, the forklift needs to be precisely aligned with the container truck in order to complete the grabbing or placement of the container.

[0032] Relative pose parameters refer to the relative spatial position and attitude relationship between the forklift and the truck. In this embodiment, the relative pose parameters include at least one of the following: truck head angle, lateral distance, and longitudinal distance. The truck head angle reflects the angle between the forklift's forward direction and the truck's body direction; the lateral distance represents the vertical distance between the center of the forklift and the center of the truck in the truck's forward direction; and the longitudinal distance represents the vertical distance between the center of the forklift and the center of the truck in the forklift's forward direction.

[0033] Relative pose parameters can be calculated based on point cloud data using any suitable method.

[0034] In some implementations, the center point of the container truck and the center point of the forklift can be calculated based on point cloud data, and then the relative pose parameters can be obtained based on the center points of the container truck and the forklift.

[0035] In some implementations, point cloud data can be matched with a preset model of the truck based on a preset geometric model matching algorithm to estimate the relative pose parameters.

[0036] Step S102: Based on the relative pose parameters, calculate the desired travel speed and desired turning angle of the forklift, and control the travel of the forklift based on the desired travel speed and desired turning angle so that the relative pose parameters converge to the preset alignment threshold range, thereby completing the alignment of the forklift and the truck.

[0037] Here, the alignment threshold refers to the preset error range used to determine whether the forklift and the truck have completed alignment. When the relative position parameters (cab angle, lateral distance, and longitudinal distance) between the forklift and the truck all converge to the threshold range, the forklift and the truck are considered to be successfully aligned.

[0038] The desired travel speed and desired turning angle of the forklift can be calculated using any suitable method.

[0039] In some implementations, the control quantities of speed and steering angle can be directly calculated using a simple proportional-integral-derivative controller based on the deviation between the current relative pose parameters and the target alignment pose, so as to determine the desired driving speed and desired steering angle.

[0040] In some implementations, a correspondence between relative pose parameters and desired driving speed and desired steering angle can be established in advance. Based on this correspondence, desired driving speed and desired steering angle adapted to the relative pose parameters can be obtained.

[0041] In some implementations, the relative pose parameters can be input into the inverse gait trajectory planning algorithm to obtain the desired driving speed and desired steering angle.

[0042] Alignment refers to the forklift boom being parallel to the side panel of the truck, with the center of the boom aligned with the center of the container on the truck, and the forklift close to the truck at a short distance. This allows the forklift to easily adjust the boom up, down, left, and right to complete the container grabbing or unloading process.

[0043] In this embodiment of the method, based on the calculated relative pose parameters, the desired travel speed and desired turning angle of the forklift are dynamically calculated, and the travel of the forklift is controlled accordingly, thereby improving the robustness and accuracy of the forklift in the alignment process. This effectively solves the problems of alignment failure and insufficient accuracy caused by sensor limitations, environmental interference and large initial deviations, and improves the automation level and efficiency of port yard operations.

[0044] This embodiment provides a forklift control method, such as Figure 2 As shown, Figure 2 This is a schematic diagram of a second flow chart of a forklift control method according to an embodiment of the present invention, the flow chart including the following steps: Step S201: Acquire point cloud data and calculate the relative pose parameters between the forklift and the truck based on the point cloud data. The relative pose parameters include the truck head angle, lateral distance and longitudinal distance. The point cloud data is acquired by a multi-line radar set on the forklift.

[0045] A diagram illustrating the specific pose parameters is shown below. Figure 3 As shown, the forklift is as follows Figure 3 As shown in the rectangle on the left, the longitudinal axis of the forklift vehicle (i.e., the direction of travel) is indicated by the direction of the long side of the rectangle. The center point of the forklift boom ( Figure 3 The center point (marked with a solid dot) is defined as the reference point of the forklift. This center point is located on the central axis of the forklift's forward direction and serves as the origin of the coordinates for subsequent calculations of longitudinal and lateral distances.

[0046] Collecting trucks Figure 3As shown in the rectangle on the right, the longitudinal direction of the truck body (i.e., the lateral direction) is indicated by the direction of the long side of the rectangle. The center point between the two locks on the side of the truck facing the forklift ( Figure 3 The solid dot marking is defined as the reference point for the truck, serving as the target point for subsequent calculations of longitudinal and lateral distances.

[0047] The angle between the forward direction of the forklift truck body and the forward direction of the container truck body is denoted as β. The cab deviation angle is defined as 90°. β is the angle between the direction of the forklift boom and the direction of the side of the truck.

[0048] Among them, when the front deflection angle is 0 When the forklift boom is completely parallel to the side of the truck body, and the forklift is directly facing the truck, this is the ideal alignment. When the truck head deflection angle is not 0... This indicates a posture deviation between the forklift and the truck, requiring adjustment of the forklift's travel direction to eliminate the deviation.

[0049] The longitudinal distance D is the vertical projection distance from the center point of the forklift boom to the center point of the truck in the forward direction (i.e., the Y-axis direction) of the forklift in the forklift body coordinate system.

[0050] The lateral distance d is the vertical projection distance from the center point of the forklift boom to the center point of the truck in the forklift's forward direction (i.e., the X-axis direction) in the forklift's body coordinate system.

[0051] The step S201 above, "calculating the relative pose parameters between the forklift crane and the container truck based on point cloud data," includes: Step S2011: Preprocess the point cloud data to obtain a non-ground point cloud.

[0052] Here, preprocessing includes coordinate transformation, region of interest clipping, voxel downsampling, and ground segmentation.

[0053] In some implementations, the ground point cloud can be segmented by using the Random Sample Consensus (RANSAC) algorithm for plane fitting.

[0054] Specifically, a random sampling consensus algorithm is used to perform plane fitting on the preprocessed point cloud to obtain candidate ground planes. After fitting, the normal vector of the candidate plane is extracted, and the parallelism between the normal vector and the Z-axis is detected to determine whether the candidate plane is a horizontal ground.

[0055] For example, if the Z component of the normal vector of the candidate ground point cloud is greater than or equal to a preset threshold (e.g., ≥0.94), it indicates that the candidate plane is approximately horizontal, and it is determined to be a horizontal ground, and the point cloud of the plane is directly determined as the ground point cloud of the current frame.

[0056] Conversely, if the Z-component of the normal vector is less than 0.94, it indicates that the plane does not meet the criteria for a horizontal ground. This may be due to factors such as road surface bumps, sparse point clouds, or abnormal radar scanning, leading to ground segmentation failure in the current frame. In this case, the segmentation result of the current frame is not reused; instead, the validated valid ground point cloud from the previous frame is automatically reused. This ensures the continuity and stability of the ground removal process and avoids interruption of subsequent truck identification processes due to single-frame segmentation failure.

[0057] After determining the ground point cloud, it is removed from the original point cloud to extract the non-ground point cloud for use in the subsequent Euclidean clustering process.

[0058] In some implementations, an elevation threshold method can be used, where a height threshold is set, and points below the threshold are considered ground points and removed.

[0059] Step S2012: Cluster the non-ground point cloud to determine the truck body point cloud.

[0060] In some implementations, after removing the ground point cloud, Euclidean clustering is performed on the remaining non-ground point cloud.

[0061] It should be noted that the Euclidean clustering algorithm refers to region growing based on the spatial Euclidean distance between points, grouping adjacent points with a distance less than a preset threshold into the same cluster, thereby dividing the non-ground point cloud into several independent sets of object point clouds.

[0062] After completing the clustering, the number of point clouds in each cluster is counted, and the cluster with the most points is selected from all the clustering results and identified as the point cloud of the truck body.

[0063] It should be noted that within the radar scanning field of view of the forklift, the truck is the primary operational target in front, and its point cloud size is usually much larger than that of other non-target objects (such as streetlights, signs, other vehicles, etc.). Therefore, using the largest number of points as the criterion has high reliability and computational efficiency.

[0064] Furthermore, after selecting the cluster with the most points, a validity check must be performed on that cluster. If the number of points in the point cloud of that cluster is zero, meaning the vehicle body point cloud is empty, it indicates that no valid truck target has been detected within the current radar scanning range. In this case, the perception process terminates, does not output valid pose parameters, and waits for the next frame of data to be detected again.

[0065] If the vehicle body point cloud is not empty, then the point cloud is output as the truck body point cloud and enters the subsequent truck side flat plate extraction stage.

[0066] Step S2013: Extract the point cloud of the flat plate on the side of the truck from the point cloud of the truck body.

[0067] In some optional implementations, step S2013 above includes: Step a1: Perform multi-round random sampling consensus plane segmentation on the truck body point cloud to generate multiple candidate planes. Step a2: Based on preset constraints, select the truck side flat plate point cloud from each candidate plane.

[0068] Here, the Random Sampling Consensus (RANSAC) algorithm is used to iteratively process the point cloud of the truck body in order to identify and extract multiple planar structures in the point cloud.

[0069] It should be noted that the RANSAC algorithm fits a model (e.g., a plane) by randomly selecting a small number of points, then evaluates the degree of conformity of other points to the model, and considers points with a high degree of conformity as interior points. Multi-round segmentation (e.g., ten rounds, eleven rounds, etc.) means that this process is repeated. After each successful identification of a plane, its corresponding interior points are removed from the point cloud, and the remaining point cloud is segmented in the next round until a preset stopping condition is met. In this way, it can systematically discover all salient planes on the truck body, such as the sides, top, bottom, front and rear ends, and use these planes as candidate planes.

[0070] After obtaining candidate planes through multiple rounds of RANSAC plane segmentation, it is necessary to filter out the point clouds belonging to the side flatbed of the container truck from these candidate planes. To this end, this method sets triple geometric constraints as the filtering criteria based on the typical geometric features of the side flatbed of the container truck and the relative operational relationship between the forklift and the container truck. It should be noted that the constraints can be adaptively adjusted according to the actual operating scenario and sensor configuration; this method does not specifically limit them. For example, the following triple constraints can be used for filtering: (1) Distance constraint: Calculate the distance |c| from the candidate plane to the origin of the forklift coordinate system, and require |c|<0.25m.

[0071] It should be noted that the distance constraint is set based on the working condition characteristics of the stacker and the truck operating in parallel. When the stacker boom and the side of the truck are close to parallel, the distance from the truck side flat to the origin of the stacker body coordinate is small. Other non-target planes (such as the ground, the front of the truck cab, the facade of surrounding buildings, etc.) are significantly different from this distance condition. Therefore, it can be used as an effective indicator to distinguish the truck side flat from other planes.

[0072] (2) X-axis span constraint: Calculate the span of the candidate plane in the X direction (lateral direction) of the forklift coordinate system, and require that the X span > 2.5m.

[0073] It should be noted that the X-axis span constraint is set based on the lateral length characteristics of the truck's side. The side length of a truck flatbed trailer is usually several meters or more, and this span threshold can effectively exclude non-target planes that are too small.

[0074] (3) Y-axis span constraint: Calculate the span of the candidate plane in the Y direction (longitudinal direction) of the forklift coordinate system, and require that the Y span < 2.5m.

[0075] It should be noted that the Y-axis span constraint is set based on the geometric feature that the side of the truck is approximately planar. The longitudinal thickness of the flat plate on the side of the truck is relatively small, while other non-target planes (such as the front of the truck cab and other curved surface structures on the side) usually have a large longitudinal span. Therefore, this constraint can effectively filter out non-planar structures.

[0076] It should be further noted that the specific values ​​in the above constraints (such as 0.25m, 2.5m) are all exemplary parameters. In actual applications, they can be adapted to different truck models and radar installation positions. This method does not impose specific limitations on them.

[0077] If none of the candidate planes can simultaneously satisfy all three primary constraints, alternative constraints are used for screening. Alternative constraints can appropriately relax the threshold range based on the primary constraints, or select combinations of some conditions from the primary constraints for screening, to avoid the false rejection of valid targets due to environmental interference or sparse point clouds. Through this hierarchical screening mechanism combining primary and alternative constraints, the robustness of the sensing system under different operating conditions can be improved while ensuring screening accuracy.

[0078] Step S2014: Extract the wheel point cloud from the point cloud of the side plate of the truck, and fit the target wheel center based on the wheel point cloud.

[0079] Here, the side plate point cloud obtained in step S201 can be subjected to random sampling consistency plane fitting again to remove outlier noise and obtain a more accurate side plate point cloud.

[0080] In some implementations, after obtaining the side plate point cloud, the Euclidean clustering algorithm is used to separate the point cloud based on the spatial distribution differences between the plate point cloud and the wheel point cloud.

[0081] Specifically, using the point cloud of the side plate as a reference, a clustering tolerance (e.g., 0.15m) is set, and the point cloud near the plate is clustered and segmented at this distance threshold. Since the side plate and wheels of the truck are structurally connected but not on the same geometric plane—the plate being an approximately planar structure and the wheel a ring-shaped protrusion extending from the plate surface—the natural spatial distance between them allows for effective differentiation within the preset tolerance.

[0082] This clustering operation divides the point cloud into flat plate points belonging to the side flat plate and wheel point clouds belonging to the wheel structure.

[0083] It should be noted that the tolerance of 0.15m mentioned above is an exemplary value. In actual applications, it can be adaptively adjusted according to the radar point cloud density and the size of the truck model. This application does not make any specific limitations on this.

[0084] In some optional implementations, step S2014 above, "obtaining the center of the target wheel based on wheel point cloud fitting," includes: Step b1: Perform random sampling consistency plane fitting on the wheel point cloud, and project the fitted point cloud onto a two-dimensional plane.

[0085] Here, wheel point cloud refers to the set of point clouds clustered and separated near the side plate of the truck, belonging to the truck wheel portion. It should be noted that the truck tire presents a three-dimensional structure in three-dimensional space as a ring or cylinder, and its surface point cloud is distributed on both sides of an approximately flat plane.

[0086] In some implementations, the wheel point cloud in three-dimensional space is projected perpendicularly onto the fitted wheel plane along the direction of the normal vector, thereby converting the three-dimensional point cloud into a point set on a two-dimensional plane.

[0087] For example, a random sampling consensus algorithm is used to fit the point cloud to a plane. In each iteration, three points are randomly selected from the wheel point cloud to determine a plane equation. The distances from all points to this plane are calculated, and points with distances less than a preset threshold (e.g., 0.05m) are marked as inliers. This iteration process is repeated a preset number of times (e.g., 100 times). The plane with the most inliers is selected as the optimal fitting plane. After obtaining the optimal plane, it is used as the projection plane. All three-dimensional points in the wheel point cloud are projected perpendicularly onto this plane along the plane's normal vector direction to obtain a two-dimensional point set.

[0088] Step b2: On a two-dimensional plane, the initial values ​​of the wheel center and the wheel radius are calculated using the algebraic least squares method.

[0089] In some implementations, the circle equation can be expanded into a linear form using algebraic least squares, and a closed solution for the center and radius can be obtained by solving the system of linear equations.

[0090] For example, using the projected 2D point set as input, the general equation of a circle is established: x² + y² + Ax + By + C = 0. Substituting the coordinates of each point in the point set, an overdetermined system of linear equations about parameters A, B, and C is constructed. The least squares method is used to solve this system of equations, obtaining estimates of A, B, and C. Based on the relationship between the general equation of a circle and its center and radius: the center is (-A / 2, -B / 2), and the radius is 1 / 2 × The center coordinates and radius values ​​are calculated separately and used as the initial values ​​of the wheel center and the wheel radius.

[0091] Step b3 involves performing nonlinear iterative optimization on the initial values ​​of the wheel center and wheel radius to obtain optimized values ​​for the wheel center and wheel radius.

[0092] Here, nonlinear iterative optimization refers to the process of iteratively minimizing a certain nonlinear objective function. Specifically, nonlinear iterative optimization can be performed using the Levenberg-Marquardt method, which adaptively adjusts the damping factor in each iteration. When far from the optimal solution, it exhibits the global convergence of gradient descent, and when close to the optimal solution, it exhibits the fast local convergence of Gauss-Newton, thereby obtaining the optimized values ​​for the wheel center and wheel radius.

[0093] Step b4: Verify the validity of the wheel radius optimization value, and take the wheel center optimization value corresponding to the wheel radius optimization value that passes the verification as the target wheel center.

[0094] Here, validity verification refers to the process of checking the reasonableness of the fitted wheel radius. Due to point cloud noise, occlusion, or other interference factors, some candidate wheel point clouds may not be able to fit a valid wheel circle. Filtering through preset physical constraints can prevent false detections.

[0095] In some implementations, a reasonable radius range (e.g., a lower limit of 0.2m and an upper limit of 1.0m) can be set according to the actual physical dimensions of the truck wheels, and the validity can be verified by determining whether the output wheel radius optimization value falls within the preset effective range.

[0096] In some implementations, if the optimized wheel radius value is within the valid range, the verification is passed, and the optimized wheel center value corresponding to that radius is determined as the target wheel center for subsequent calculation of the truck center point.

[0097] In some implementations, if the optimized wheel radius value exceeds the valid range, it indicates that the candidate wheel point cloud may originate from a non-wheel structure (such as the edge of a flat plate, a bracket, etc.), and it is determined to be an invalid fitting result, and the center data is discarded.

[0098] For example, suppose that in a certain frame of radar point cloud processing, after side plate extraction and clustering separation, candidate wheel point cloud A is determined to be likely to belong to a container truck wheel, containing about 300 points, distributed in a spatial ring, but mixed with a small number of outliers from the edge of the plate.

[0099] In step b1, using the candidate wheel point cloud A as input, random sampling consensus plane fitting is performed. After 100 iterations, the optimal plane model is found. The normal vector of this plane is approximately parallel to the side plate, and the number of interior points is 280. The 20 outlier points are excluded. Then, the 280 interior points are projected onto a two-dimensional plane along the plane normal vector to obtain a two-dimensional point set, which at this point exhibits a clear circular distribution.

[0100] Proceeding to step b2, using the two-dimensional point set as input, establish the general equation of the circle and construct a system of linear equations. Solve quickly using the algebraic least squares method, obtaining the initial value of the circle's center as (2.35, 5.12) and the initial value of its radius as 0.52m. This result is close to the true value, but due to the inherent deviation between algebraic and geometric distances, there is still room for improvement in accuracy.

[0101] Proceeding to step b3, with the center (2.35, 5.12) and radius 0.52m as the initial points, the Levenberg-Marquardt algorithm is used for nonlinear iteration. After 8 iterations, the objective function value (sum of squared geometric distances) no longer decreases significantly, satisfying the convergence condition, and the iteration terminates. The optimized center value is output as (2.37, 5.08), and the optimized radius value is 0.51m. The optimized center is offset by 0.02m in the X direction and 0.04m in the Y direction, respectively, and the geometric fitting accuracy is significantly improved compared to the initial value.

[0102] Proceed to step b4 to verify the validity of the radius optimization value of 0.51m. The preset valid range is 0.2m to 1.0m, and 0.51m falls within this range, so the verification passes. The optimized center value (2.37, 5.08) is determined as the target wheel center for subsequent calculation of the truck's center point.

[0103] Step S2015: Calculate the center point of the truck based on the target wheel center and preset vehicle size parameters.

[0104] Here, the truck center refers to the center point of the two locks on one side of the truck where the container is placed.

[0105] Vehicle size parameters refer to the geometric dimensions of different truck models pre-stored in the system, including at least the following parameters: wheelbase, track width, and lock offset.

[0106] Among them, wheelbase refers to the distance between the centers of two adjacent wheels on the same side of the truck, track width refers to the distance between the centers of the left and right wheels on the same axis of the truck, and lock head offset refers to the fixed offset value between the center of the wheel and the center point of the container lock head in the vehicle coordinate system.

[0107] In some implementations, after obtaining the spatial coordinates of the centers of each target wheel, the specific model of the truck is determined by first matching the currently detected wheel layout with the wheelbase and track width parameters in the preset vehicle model database based on the geometric positional relationship between the centers of each wheel. Then, based on the preset lock head offset (i.e., the fixed spatial offset value of the lock head center point relative to the centers of each wheel) of the vehicle model, coordinate compensation calculation is performed using the centers of each wheel as a reference, combined with the wheelbase and track width, to deduce the spatial position of the two lock head center points on the side of the truck, and the midpoint between the two is taken as the center point of the truck.

[0108] For example, a certain car model has a wheelbase of L and a track width of W, with the center point of the lock cylinder located directly above the center of the front wheel on the same side, offset from it. X, Direct forward offset The position of Y is based on the detected center of the front wheel on that side, plus a preset offset. X, The coordinates of the center point of the lock can be obtained by y). The average of the coordinates of the two lock center points is the center point of the truck.

[0109] Step S2016: Determine the center point of the forklift machine based on multi-line radar and a preset inertial measurement unit.

[0110] Here, an Inertial Measurement Unit (IMU) refers to an inertial navigation device that integrates a three-axis accelerometer and a three-axis gyroscope. It can measure the angular velocity and linear acceleration of an object in three-dimensional space, and obtain the object's real-time attitude angles (roll angle, pitch angle, and yaw angle) and position information through integration calculations.

[0111] The center point of a forklift is the center point of the forklift boom in its initial state (without lateral movement, located at the bottom of the mast). This point is located on the central axis of the forklift's forward movement.

[0112] In some implementations, the transformation relationship between the multi-line radar coordinate system and the forklift vehicle coordinate system is determined by calibration, and the fixed position of the forklift center point in the vehicle coordinate system is clarified.

[0113] During operation, the IMU outputs the attitude angles (heading angle, roll angle, pitch angle) and acceleration information of the forklift in real time. Combined with the installation position parameters of the multi-line radar, the real-time coordinates of the forklift center point in the radar fusion coordinate system are calculated through coordinate transformation.

[0114] Step S2017: Calculate the relative pose parameters based on the center point of the container truck and the center point of the forklift.

[0115] Here, the relative pose parameters include the vehicle's frontal angle, lateral distance, and longitudinal distance.

[0116] In some implementations, after obtaining the coordinates of the truck's center point and the forklift's center point, the coordinate difference between the two in the forklift's body coordinate system is calculated. Then, combined with the current heading angle of the forklift and the relative angle of the truck body, the specific values ​​of the truck's front deflection angle, lateral distance, and longitudinal distance are calculated through coordinate transformation and trigonometric function operations.

[0117] That is, the lateral distance is the absolute value of the difference between the lateral coordinates of the truck and the forklift; the longitudinal distance is the absolute value of the difference between the longitudinal coordinates of the truck and the forklift; and the cab deflection angle is the difference between the forklift's heading angle and the truck's side edge direction angle. The truck's side edge direction angle can be determined by the normal vector of the side flat plate.

[0118] For example, the centers of four target wheels were successfully fitted in the current frame, and their coordinates in the forklift vehicle coordinate system are as follows: left front wheel (-0.8, 1.2, -0.1), left rear wheel (-0.8, -3.8, -0.1), right front wheel (0.8, 1.2, -0.1), and right rear wheel (0.8, -3.8, -0.1) (unit: meters).

[0119] The spatial distribution of the four wheel centers is matched with a preset vehicle model database. By calculating the left and right wheel track on the same axle as 1.6m (0.8-(-0.8)=1.6) and the front and rear wheel track on the same side as 5.0m (1.2-(-3.8)=5.0), the dimensional parameters of a certain vehicle model in the database are matched. The preset lock center point of this vehicle model is located 0.5m directly in front of and 0.15m directly above the center of the left front wheel.

[0120] Using the center of the left front wheel (-0.8, 1.2, -0.1) as a reference, add an offset of (0, 0.5, 0.15) to obtain the coordinates of the first lock center point as (-0.8, 1.7, 0.05); using the center of the right front wheel (0.8, 1.2, -0.1) as a reference, add the same offset to obtain the coordinates of the second lock center point as (0.8, 1.7, 0.05). Taking the midpoint between the two, the center point of the truck is obtained as (0, 1.7, 0.05).

[0121] Read the forklift attitude data output by the IMU at the current moment, and combine it with the installation calibration parameters of the multi-line radar to calculate the coordinates of the forklift center point in the radar fusion coordinate system as (0.05, 0.10, 0.00). Assuming that the fixed offset of the initial center point of the boom relative to the IMU installation position has been determined through calibration, the coordinates of the forklift center point are directly output here.

[0122] Obtain the center points of the container truck (0, 1.7, 0.05) and the forklift crane (0.05, 0.10, 0.00). The difference between the two points in the X direction (i.e., the lateral distance) is calculated. X = 0 - 0.05 = -0.05m, the difference in the Y direction (i.e., the longitudinal distance). Y = 1.7 - 0.10 = 1.60m.

[0123] The current heading angle of the forklift is read as 5°, and the heading angle of the side flatbed of the truck is read as 0° (calculated from the side flatbed normal vector). Therefore, the truck head deflection angle = 5° - 0° = 5° (approximately 0.087 rad). After the relative pose parameters are calculated, the forklift is driven to move towards the target pose based on the relative pose parameters.

[0124] In this embodiment of the method, the key geometric features of the container truck are accurately identified based on point cloud data, and the center point of the container truck and the center point of the forklift are further accurately located. This significantly improves the calculation accuracy of the relative pose parameters between the forklift and the container truck, provides reliable input data for the precise alignment control of the forklift, and ensures the success rate and efficiency of the forklift alignment operation.

[0125] Step S202: Based on the relative pose parameters, calculate the desired travel speed and desired steering angle of the forklift, and control the travel of the forklift based on the desired travel speed and desired steering angle so that the relative pose parameters converge to the preset alignment threshold range, thereby completing the alignment of the forklift and the truck.

[0126] Specifically, step S202 above, "calculating the desired travel speed and desired turning angle of the forklift based on the relative pose parameters," includes: Step c1: Based on the preset velocity limit and preset acceleration limit, generate the desired trajectory curve of the forklift from the initial pose to the target pose.

[0127] Here, the speed limit refers to the maximum permissible speed value set according to the physical driving performance of the forklift, including the maximum linear speed and the maximum angular velocity, which is used to constrain the upper limit of the planned trajectory and prevent the vehicle from exceeding its safe driving limits.

[0128] Acceleration limit refers to the maximum permissible acceleration value set according to the physical driving performance of the forklift, including the maximum linear acceleration and the maximum angular acceleration. It is used to constrain the upper limit of acceleration of the planned trajectory and ensure the smoothness of vehicle start-stop and turning processes.

[0129] The initial pose refers to the position and attitude of the forklift at the moment of automatic positioning start-up, including its X and Y coordinates and heading angle in the global coordinate system.

[0130] The target pose refers to the desired position and posture that the forklift should reach after completing automatic alignment.

[0131] In some embodiments, a path is planned from the current starting pose of the stacker to the target pose, which is determined based on the center point of the container truck and a preset alignment distance. Illustratively, the alignment trajectory may be configured as a straight-line segment trajectory pointing toward the alignment position along the alignment direction. Based on preset speed limits and acceleration limits, a trapezoidal velocity planning (or S-curve velocity planning) is performed on this path to determine the desired position, desired speed, and desired attitude at each sampling moment on the trajectory. The core principle of velocity planning is to ensure that, under the constraints of speed and acceleration limits, the stacker smoothly accelerates from its initial speed to the maximum cruising speed, then smoothly decelerates to zero as it approaches the target pose, and finally stops precisely at the target pose.

[0132] Step c2: Obtain the current driving time of the stacker, and determine whether the stacker has reached the trajectory end point of the desired trajectory curve at the current driving time.

[0133] Here, the current driving time refers to the cumulative time elapsed since the stacker started driving from its initial pose, and is used to align with the discrete sampling moments in the desired trajectory curve. The current time is generally represented as the difference between the current time and the initial time, and each time point in the alignment trajectory is also represented as a time elapsed since the start of driving, so as to realize the correspondence between the current time and each time point in the alignment trajectory.

[0134] The trajectory end point refers to the end sampling point of the desired trajectory curve, which corresponds to the target pose that the stacker should reach.

[0135] In some embodiments, the current driving time t of the stacker (i.e., the time elapsed since the start of automatic alignment) is obtained in real time, and the current driving time is compared with the total duration T of the desired trajectory curve. If t ≥ T, it is determined that the stacker has reached the trajectory end point; if t < T, it is determined that it has not yet reached.

[0136] It should be noted that the above judgment step is executed once per frame until it is determined that the end point has been reached.

[0137] Step c3: If the trajectory end point has not been reached, perform inverse kinematics solution on the desired trajectory curve to obtain the desired pose and desired curvature at the current moment.

[0138] Here, the inverse kinematics solution refers to the process of querying or interpolating from the desired trajectory curve based on the current time t to calculate the desired pose (including desired position, desired attitude, and desired speed) and desired curvature corresponding to that moment. For example, for the current moment when the stacker is moving toward the target container from the initial time, the current moment can be substituted into the analytical formula of the alignment trajectory, and the desired pose at the current moment can be determined from the alignment trajectory.

[0139] The desired pose refers to the ideal state of the desired trajectory curve at a certain moment, which includes at least the desired position (X and Y coordinates in the global coordinate system) and the desired velocity (linear velocity), and optionally may also include the desired attitude (camber angle). When the alignment trajectory is configured as a straight line segment, the desired attitude can be directly the alignment direction.

[0140] The desired curvature refers to the curvature value of the desired trajectory curve at the current sampling point, which describes the degree of curvature of the trajectory at that point. As a feedforward control input to the backstepping controller, the curvature can predict the path curvature in advance, thereby improving the response speed and accuracy of curve tracking.

[0141] Step c4: Based on the desired pose, relative pose parameters, and desired curvature, calculate the desired travel speed and desired turning angle of the forklift.

[0142] In some implementations, the pose error vector is calculated by comparing the relative pose parameters with the desired pose. The pose error typically includes longitudinal position error, lateral position error, and heading angle error, and is represented in the local coordinate system of the forklift.

[0143] In some implementations, the pose error and desired curvature are used as inputs and substituted into the backstepping controller for calculation. The backstepping controller is based on the kinematic model of the forklift and Lyapunov stability theory, and constructs the control quantity through a recursive method.

[0144] Based on the kinematic equations and pose error differential equations of the forklift, the correlation between the control law and the error can be determined, thereby setting an appropriate control law so that the tracking error of the forklift asymptotically converges under any initial conditions. The rotation angle and speed of the forklift during movement are determined based on the error between the actual pose at the current moment and the expected pose at the corresponding moment in the alignment trajectory, decoupling the control algorithm from the historical state of the forklift, and achieving precise control based solely on the current pose.

[0145] Finally, the anti-stepping controller outputs the desired linear velocity (as the desired travel speed) and the desired angular velocity (as the initial form of the desired steering angle).

[0146] In this embodiment of the method, on the one hand, trapezoidal speed planning is performed by pre-setting speed and acceleration limits to ensure that the speed and acceleration of the forklift are always within the physical safety range, avoiding safety hazards caused by overspeeding or sudden acceleration and deceleration. On the other hand, based on the forklift's ability to accurately track the pre-planned desired trajectory, deviations caused by environmental disturbances or sensor errors can be corrected in real time, ensuring that the forklift can converge stably and smoothly to the target pose aligned with the truck.

[0147] In some optional implementations, the "controlling the forklift's movement based on the desired travel speed and desired steering angle" in step S202 above includes: Step d1: Based on the pre-calibrated vehicle kinematics model, the desired driving speed is mapped to the accelerator pedal opening value, and the desired steering angle is mapped to the steering wheel angle value.

[0148] In some implementations, the kinematic model can refer to a model describing the mathematical relationship between the motion state of the forklift vehicle and the control input. In the speed-throttle mapping scenario, the kinematic model can be characterized as a mapping model describing the correspondence between the forklift's travel speed and the throttle pedal opening. It should be noted that the kinematic model can be obtained through offline calibration. During the calibration process, the forklift is controlled to travel on a flat road surface at different throttle openings, the steady-state speed reached at each opening is recorded, and a throttle opening-speed correspondence table is established or a mathematical function relationship is fitted. Furthermore, the vehicle kinematic model not only covers the mapping relationship between longitudinal speed and throttle, but in some implementations, the vehicle kinematic model may also include parameters such as the vehicle's wheelbase and center of gravity position to more accurately describe the vehicle's motion characteristics. In addition, the kinematic characteristics of the forklift may differ under different load conditions (no load / full load). Therefore, multiple sets of mapping parameters can be calibrated for different load conditions, and the corresponding mapping relationship can be selected according to the current load condition during actual operation. This method does not impose any limitations on this.

[0149] The accelerator pedal opening value refers to the percentage of the pedal depth when the accelerator pedal of the stacker is pressed. The value range is usually 0% to 100%. It is used to control the output power of the engine or motor, thereby driving the vehicle to accelerate or decelerate.

[0150] In some implementations, the kinematic model can be characterized as a mapping model that describes the correspondence between the desired steering angle and the steering wheel angle value.

[0151] In some implementations, a real-vehicle test can be conducted at a test site to record the steady-state yaw rate data of the forklift at different steering wheel angles, establishing a table corresponding to the steering wheel angle and yaw rate. In actual operation, after the backstepping controller outputs the desired angular velocity, the desired angular velocity is converted into the corresponding steering wheel angle value using a lookup table method or interpolation method.

[0152] It should be noted that when driving at low speeds, the approximate linear relationship between the yaw rate and the steering wheel angle can be estimated using parameters such as the vehicle's wheelbase and center of gravity. For different vehicle speeds and load conditions, multiple sets of mapping parameters can be established, and the corresponding mapping relationship can be selected based on the current vehicle speed and load condition during actual operation.

[0153] Step d2: After filtering and smoothing the accelerator pedal opening value and steering wheel angle value, the accelerator pedal opening value and steering wheel angle value are used as drive signals to control the forklift's movement.

[0154] In some implementations, during each control frame cycle, after obtaining the throttle opening and steering wheel angle values, it is first determined whether the change between the current value and the value sent in the previous frame exceeds a preset safety limit threshold. If the change exceeds the safe range (e.g., a sudden throttle change exceeding 20% ​​or a sudden steering wheel change exceeding 15°), the current value is truncated to the safe range to prevent the actuator from responding too quickly and causing the vehicle to lose control. Subsequently, the limited signal is input into a first-order low-pass filter for smoothing. The filtered signal changes more smoothly, eliminating high-frequency jitter and noise. After the filtering and smoothing process is completed, the final generated throttle opening and steering wheel angle values ​​are used as drive signals and sent to the forklift's vehicle controller via CAN bus or Ethernet communication methods to drive the vehicle along the desired trajectory.

[0155] In this embodiment of the method, by mapping the desired driving speed and desired steering angle to the steering wheel angle value and the accelerator pedal opening value, the precise and smooth control of the forklift's movement is achieved, enabling it to move according to the expected trajectory and posture, and finally complete the alignment operation with the container truck.

[0156] In some alternative implementations, the method further includes: Step e1: During the operation of the forklift, repeatedly execute the step of acquiring point cloud data and calculating the desired travel speed and desired steering angle of the forklift based on relative pose parameters, so as to update the desired travel speed and desired steering angle.

[0157] Here, in each control cycle, the system performs the following operations sequentially: In the first stage, the simultaneous scanning of the multi-line radars on both sides is triggered to acquire the raw point cloud data at the current moment; at the same time, the current attitude data of the inertial measurement unit is read.

[0158] In the second stage, the collected point cloud data is processed sequentially through steps such as coordinate transformation, ROI clipping, ground segmentation, clustering, side plate extraction, wheel center fitting, truck center point calculation, and forklift center point positioning. Finally, the three relative pose parameters of the truck's front deflection angle, lateral distance, and longitudinal distance at the current moment are calculated.

[0159] In the third stage, the current pose parameters are used as feedback quantities. Combined with the desired pose and desired curvature at the current moment obtained from the desired trajectory curve, the desired driving speed and desired steering angle are calculated through the inverse step control law. After calibration, transformation and filtering smoothing, the final throttle opening and steering wheel angle commands are generated.

[0160] In the fourth stage, the generated drive signals are sent to the forklift's vehicle controller via CAN bus or Ethernet to control the vehicle's movement.

[0161] The first to fourth phases described above are repeated in each control cycle until the iteration stops when any of the following termination conditions are met: 1. Under normal termination conditions, that is, when the three parameters of the front deflection angle, lateral distance and longitudinal distance converge to the preset target threshold range simultaneously, it indicates that the forklift has reached the target position and the system executes braking to stop.

[0162] 2. In the event of abnormal termination, i.e., when a valid truck target is not detected for multiple consecutive frames (the vehicle body point cloud is empty), or when the pose parameters change abnormally, or when the forklift travels beyond the preset safety boundary, the system will trigger an emergency stop and alarm.

[0163] The following is a specific implementation method to illustrate the forklift control method.

[0164] Suppose that in a port yard, a forklift needs to automatically align itself with a parked truck in preparation for a container grabbing operation. Initially, there is a certain positional deviation between the forklift and the truck, for example, the truck's front angle is 20 degrees, the lateral distance is 1.0 meter, and the longitudinal distance is 15 meters.

[0165] First, the multi-line radar on the forklift is activated, periodically collecting point cloud data of the surrounding environment. This point cloud data is transmitted to the forklift's control system. Upon receiving the point cloud data, the control system processes it to identify the truck's body outline and the forklift's own position. For example, by performing preprocessing steps such as ground point removal and noise filtering, a non-ground point cloud containing only the truck and forklift bodies can be obtained. Subsequently, through geometric feature extraction and matching algorithms, key features such as the truck's sides and wheels can be identified from the point cloud. Combined with information from the forklift's own sensors (such as the relative positions of the inertial measurement unit (IMU) and radar), the relative pose parameters between the forklift and the truck are accurately calculated: the truck's nose angle, lateral distance, and longitudinal distance. In this example, the calculated relative pose parameters are: a nose angle of 20 degrees, a lateral distance of 1.0 meter, and a longitudinal distance of 15 meters.

[0166] Based on the difference between the current pose and the target alignment pose (e.g., 0-degree nose angle, 0-meter lateral distance, and 0.2-meter longitudinal distance), and combined with a pre-set kinematic model and control strategy, the system calculates the expected travel speed and expected steering angle that the forklift should take at the current moment. For example, due to a large nose angle, the system may calculate a large steering angle to correct the direction; due to a large longitudinal distance, the system may calculate a moderate travel speed to quickly approach the truck.

[0167] Subsequently, the calculated desired travel speed and desired steering angle are converted into drive commands for the forklift chassis. For example, the desired travel speed is mapped to the accelerator pedal opening value, and the desired steering angle is mapped to the steering wheel rotation angle value. These drive commands are sent to the actuators of the forklift, thereby controlling the forklift to start moving. During the forklift's movement, the multi-line radar continuously collects new point cloud data, and the control system continuously updates the relative pose parameters between the forklift and the truck, recalculating the desired travel speed and desired steering angle to form a closed-loop control process. For example, after the forklift has been moving for a period of time, the new relative pose parameters may become a 10-degree frontal deflection angle, a 0.5-meter lateral distance, and a 10-meter longitudinal distance. Based on these new parameters, the desired speed and steering angle are adjusted again.

[0168] Through this continuous cycle of sensing, calculation, and control, the forklift gradually adjusts its posture, causing the relative posture parameters between it and the truck to converge. When the truck's front deflection angle, lateral distance, and longitudinal distance all fall within the preset alignment threshold range (e.g., front deflection angle less than 0.5 degrees, lateral distance less than 0.05 meters, and longitudinal distance less than 0.3 meters), alignment is considered complete, and a stop command is issued, halting the forklift's movement. Thus, the forklift achieves full automation from an initial state of significant deviation to precise alignment with the truck.

[0169] This embodiment also provides a forklift control device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0170] This embodiment provides a forklift control device, such as Figure 4 As shown, it includes: The first calculation module 401 is used to acquire point cloud data and calculate the relative pose parameters between the forklift and the truck based on the point cloud data. The relative pose parameters include the truck head angle, lateral distance and longitudinal distance. The point cloud data is acquired by a multi-line radar set on the forklift.

[0171] The second calculation module 402 is used to calculate the desired travel speed and desired turning angle of the forklift based on the relative pose parameters, and control the travel of the forklift based on the desired travel speed and desired turning angle, so that the relative pose parameters converge to the preset alignment threshold range, thereby completing the alignment of the forklift and the truck.

[0172] In some alternative implementations, the first computing module 401 includes: The preprocessing submodule is used to preprocess point cloud data to obtain non-ground point clouds.

[0173] The clustering submodule is used to cluster non-ground point clouds to determine the point cloud of the truck body.

[0174] The extraction submodule is used to extract the point cloud of the flat plate on the side of the truck from the point cloud of the truck body.

[0175] The fitting submodule is used to extract the wheel point cloud from the point cloud of the side plate of the truck and fit the target wheel center based on the wheel point cloud.

[0176] The first calculation submodule is used to calculate the center point of the truck based on the center of the target wheel and the preset vehicle size parameters.

[0177] The determination submodule is used to determine the center point of the forklift machine based on multi-line radar and a preset inertial measurement unit.

[0178] The second calculation submodule is used to calculate the relative pose parameters based on the center point of the container truck and the center point of the forklift.

[0179] In some alternative implementations, the extraction submodule includes: The generation unit is used to perform multi-round random sampling consensus plane segmentation on the point cloud of the truck body to generate multiple candidate planes.

[0180] The filtering unit is used to filter out the point cloud of the side plate of the truck from each candidate plane based on preset constraints.

[0181] In some alternative implementations, the fitting submodule includes: The fitting unit is used to perform random sampling consistency plane fitting on the wheel point cloud and project the fitted point cloud onto a two-dimensional plane.

[0182] The calculation unit is used to calculate the initial values ​​of the wheel center and the wheel radius on a two-dimensional plane using the algebraic least squares method.

[0183] The iterative unit is used to perform nonlinear iterative optimization on the initial values ​​of the wheel center and the wheel radius to obtain the optimized values ​​of the wheel center and the wheel radius.

[0184] The verification unit is used to verify the validity of the wheel radius optimization value and take the wheel center optimization value corresponding to the wheel radius optimization value that passes the verification as the target wheel center.

[0185] In some alternative implementations, the second computing module 402 includes: The generation submodule is used to generate the desired trajectory curve of the forklift from the initial pose to the target pose based on the preset velocity limit and preset acceleration limit.

[0186] The judgment submodule is used to obtain the current travel time of the forklift and determine whether the forklift has reached the end point of the expected trajectory curve at the current travel time.

[0187] The solution submodule is used to perform inverse kinematics calculation on the desired trajectory curve if the trajectory endpoint is not reached, so as to obtain the desired pose and desired curvature at the current moment.

[0188] The third calculation submodule is used to calculate the desired travel speed and desired turning angle of the forklift based on the desired pose, relative pose parameters, and desired curvature.

[0189] In some alternative implementations, the second computing module 402 further includes: The mapping submodule is used to map the desired driving speed to the accelerator pedal opening value and the desired steering angle to the steering wheel angle value based on the pre-calibrated vehicle kinematics model. The filtering submodule is used to filter and smooth the accelerator pedal opening value and steering wheel angle value, and then use the accelerator pedal opening value and steering wheel angle value as drive signals to control the movement of the forklift.

[0190] In some alternative embodiments, the apparatus further includes: The execution module is used to repeatedly execute the steps of acquiring point cloud data and calculating the expected travel speed and expected steering angle of the forklift based on relative pose parameters during the operation of the forklift, so as to update the expected travel speed and expected steering angle.

[0191] The forklift control device provided in this embodiment of the invention can execute the forklift control method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the various modules and units described above are the same as in the corresponding embodiments described above, and will not be repeated here.

[0192] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention.

[0193] The following is a detailed reference. Figure 5The diagram illustrates a structural schematic suitable for implementing an electronic device according to embodiments of the present invention. The electronic device may include a processor (e.g., a central processing unit, graphics processor, etc.) 501, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 502 or a program loaded from memory 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the electronic device. The processor 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0194] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 5 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.

[0195] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a memory 508, or installed from a ROM 502. When the computer program is executed by the processor 501, it performs the functions defined in the forklift control method of the embodiments of the present invention.

[0196] Figure 5 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of the present invention.

[0197] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the forklift control method shown in the above embodiments is implemented.

[0198] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0199] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and all such modifications and variations fall within the scope defined by the appended claims.

Claims

1. A forklift control method, characterized in that, The method includes: Point cloud data is acquired, and the relative pose parameters between the forklift and the truck are calculated based on the point cloud data. The relative pose parameters include the truck head angle, lateral distance and longitudinal distance. The point cloud data is acquired by a multi-line radar installed on the forklift. Based on the relative pose parameters, the desired travel speed and desired turning angle of the forklift are calculated, and the travel of the forklift is controlled based on the desired travel speed and desired turning angle, so that the relative pose parameters converge to a preset alignment threshold range, thereby completing the alignment of the forklift and the truck.

2. The method according to claim 1, characterized in that, The calculation of the relative pose parameters between the forklift crane and the container truck based on the point cloud data includes: The point cloud data is preprocessed to obtain a non-ground point cloud; Clustering is performed on the non-ground point cloud to determine the truck body point cloud; The point cloud of the side flat plate of the truck is extracted from the point cloud of the truck body; Wheel point clouds are extracted from the point cloud of the side plate of the truck, and the center of the target wheel is obtained by fitting the wheel point cloud. Based on the target wheel center and the preset vehicle size parameters, the center point of the truck is calculated; The center point of the forklift machine is determined based on the multi-line radar and the preset inertial measurement unit; The relative pose parameters are calculated based on the center point of the container truck and the center point of the forklift.

3. The method according to claim 2, characterized in that, The step of extracting the side plate point cloud of the truck from the truck body point cloud includes: The point cloud of the truck body is subjected to multiple rounds of random sampling consensus plane segmentation to generate multiple candidate planes; Based on preset constraints, the point cloud of the side plate of the truck is obtained by screening from each of the candidate planes.

4. The method according to claim 2, characterized in that, The process of obtaining the center of the target wheel based on the wheel point cloud fitting includes: The wheel point cloud is subjected to random sampling consistency plane fitting, and the fitted point cloud is projected onto a two-dimensional plane; On the two-dimensional plane, the initial values ​​of the wheel center and the wheel radius are calculated using the algebraic least squares method. Nonlinear iterative optimization is performed on the initial values ​​of the wheel center and the wheel radius to obtain optimized values ​​of the wheel center and wheel radius. The validity of the optimized wheel radius value is verified, and the optimized wheel center value corresponding to the verified optimized wheel radius value is taken as the target wheel center.

5. The method according to claim 1, characterized in that, The calculation of the desired travel speed and desired turning angle of the forklift based on the relative pose parameters includes: Based on preset speed limits and preset acceleration limits, the desired trajectory curve of the forklift from the initial pose to the target pose is generated; Obtain the current travel time of the forklift and determine whether the forklift has reached the endpoint of the desired trajectory curve at the current travel time. If the endpoint of the trajectory is not reached, the inverse kinematics solution is performed on the expected trajectory curve to obtain the expected pose and expected curvature at the current moment. Based on the desired pose, the relative pose parameters, and the desired curvature, the desired travel speed and desired turning angle of the forklift are calculated.

6. The method according to claim 5, characterized in that, The method of controlling the forklift's movement based on the desired travel speed and the desired steering angle includes: Based on the pre-calibrated vehicle kinematics model, the desired driving speed is mapped to the accelerator pedal opening value, and the desired steering angle is mapped to the steering wheel angle value; After filtering and smoothing the accelerator pedal opening value and the steering wheel angle value, the accelerator pedal opening value and the steering wheel angle value are used as drive signals to control the movement of the forklift.

7. The method according to any one of claims 1 to 6, characterized in that, The method further includes: During the operation of the forklift, the steps of acquiring point cloud data and calculating the desired travel speed and desired turning angle of the forklift based on the relative pose parameters are repeated to update the desired travel speed and desired turning angle.

8. A forklift control device, characterized in that, The device includes: The first calculation module is used to acquire point cloud data and calculate the relative pose parameters between the forklift and the truck based on the point cloud data. The relative pose parameters include the truck head angle, lateral distance and longitudinal distance. The point cloud data is acquired by a multi-line radar set on the forklift. The second calculation module is used to calculate the desired travel speed and desired turning angle of the forklift based on the relative pose parameters, and control the travel of the forklift based on the desired travel speed and desired turning angle, so that the relative pose parameters converge to a preset alignment threshold range, thereby completing the alignment of the forklift and the truck.

9. An electronic device, characterized in that, include: A memory and a processor are communicatively connected, the memory stores computer instructions, and the processor executes the forklift control method according to any one of claims 1 to 7 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the forklift control method according to any one of claims 1 to 7.