In the layout of modern agricultural warehouse logistics handling industry, it is an inevitable way to realize industrial upgrading by replacing people with mobile robots. Aiming at the problems that the existing obstacle avoidance control algorithm of agricultural handling robot is easy to fall into local optimal solution, and the operation process of agricultural warehouse logistics handling robot is prone to collision, the obstacle avoidance control of agricultural warehouse logistics handling robot is studied, and a control algorithm based on improved potential field ant colony is proposed. The moving trajectory of the agricultural warehouse logistics handling robot during the handling process is studied, and the spatial kinematics equation of the robot is given. The ant colony algorithm is used to optimize the classical artificial potential field algorithm to improve the global optimization ability and balance the interaction between gravity and repulsion. In the aspect of local area obstacle avoidance of agricultural storage and handling robots, the artificial potential field is optimized twice based on the strategy gradient algorithm. By analyzing the probability of the next action command, the randomness of the travel path selection when multiple robots work at the same time is improved. After testing, the path of the proposed control algorithm is the shortest, and under the condition of complex path planning, the number of collisions between robots is also significantly less than that of the traditional obstacle avoidance control algorithm. The practical application can meet the needs of improving the efficiency of warehouse logistics management.