The application of artificial neural network in robot trajectory planning is studied. The penalize function method is used in collision free trajectory planning and the BP algorithm is given in avoiding collision .At the last ,the computer simulation is provided.