A KNN-based
lateral stability control method for heavy-duty AGVs is disclosed, characterized by the following steps: 1. Classifying AGV operating conditions into five categories based on different loads, and collecting motion state data of the AGV under different operating conditions using
simulation software; 2. Establishing a K-nearest neighbor (KNN) classifier, and training and validating it using the collected dataset; 3. Designing a set of nonlinear sub-controllers based on
fuzzy PID, calculating the required
yaw moment, and distributing the torque to the four drive wheels according to the
torque distribution rule; 4. Introducing an error judgment strategy, activating the controller based on the
centroid sideslip angle error to control its
lateral stability. This invention establishes a load
KNN classifier for heavy-duty AGVs, which can monitor the
centroid sideslip angle error in real time. If the error exceeds a threshold, the controller is activated, the classifier's
classification result is matched to the corresponding sub-controller, and an additional
yaw moment is calculated and applied to the AGV.