The invention relates to an automatic driving vehicle
obstacle avoidance method and device based on
TransFormer-APF-MPC and a medium, and the method comprises the following steps: obtaining
pedestrian motion data and interaction scene data in real time, inputting the
pedestrian motion data and the interaction scene data into an automatic driving vehicle
obstacle avoidance network based on
TransFormer-APF-MPC, and outputting an automatic driving vehicle
obstacle avoidance scheme; the automatic driving vehicle obstacle avoidance network based on the
TransFormer-APF-MPC comprises a TransFormer model and an APF-MPC obstacle avoidance model, the TransFormer model is used for predicting
pedestrian trajectories according to input data, the APF-MPC obstacle avoidance model comprises a path planning layer and a trajectory tracking layer, the path planning layer is used for generating an optimal obstacle avoidance path by improving an artificial
potential field method, and the trajectory tracking layer is used for tracking the optimal obstacle avoidance path. According to the improved artificial
potential field method, the repulsive force between the vehicle and the obstacle and the
gravitational force between the vehicle and the target point are calculated according to the improved repulsive
force constant function with the adjustment factor introduced; and the trajectory tracking layer is used for calculating a
vehicle control instruction through a
model prediction control method, so that the vehicle runs along the optimal obstacle avoidance path. Compared with the prior art, the real-time obstacle avoidance planning and control of the vehicle can be better realized.