BackgroundWith the development and progress of society, not only substations, but also various industries are moving towards automation, intelligence, and unmanned direction. There is an increasing need for machinery to replace human activities. However, how to improve the ability of robotic arms to cope with various working environments and emergencies, and develop real‐time, high‐speed, and accurate trajectory planning algorithms has become a hot topic of discussion.PurposeIn order to develop a reasonable trajectory planning algorithm for robotic arms, this article studies the trajectory planning algorithm of robotic arms based on visual servoing, in order to improve the trajectory operation ability of robotic arms.MethodThe feasibility of the algorithm was tested through experiments.ResultsIt was found that the angle, angular velocity, and angular acceleration curves of both the second and fifth sixth joints of the robotic arm were very smooth, and there were no problems such as faults.ConclusionThis confirms the effectiveness of the algorithm's operation, which can assist the robotic arm in safe, accurate, and efficient operations on the basis of visual servoing.