Path Tracking for Car-like Robots Based on Neural Networks with NMPC as Learning Samples

In the field of path tracking for car-like robots, although nonlinear model predictive control (NMPC) can handle the system constraints well, its real-time performance is poor. To solve this problem, a neural network control method with NMPC as the learning sample is proposed. The design process of this control method includes establishing the NMPC controller based on the time-varying local model, generating learning samples based on this NMPC controller, and training to obtain the neural network controller. The proposed controller is tested by a joint simulation of MATLAB and Carsim and compared with other controllers. According to the simulation results, the accuracy of the NN controller is close to that of the NMPC controller and far better than that of the Stanley controller. In all simulations, the absolute value of displacement error of the NN controller does not exceed 0.2854 m, and the absolute value of heading error does not exceed 0.2279 rad. In addition, the real-time performance of the NN controller is better than that of the NMPC controller. The maximum time cost and average time cost of the NN controller are, respectively, 40.91% and 22.37% smaller than those of the NMPC controller under the same conditions.