Abstract:The grinding process has high accuracy requirements on the robot trajectory. Traditional programming method for industrial robot teaching is unable to meet requirements of production.To overcome this problem, taking Visual C++ as the development platform, based on MFC framework and OpenGL graphics library interface,the robot off-line programming and simulation system was built, and the functions of robot offline teaching, program editing and the establishment of track target point database were achieved. Besides, the method of generating the robot's trajectory based on the multilevel sectioning technique of workpiece model STL file was studied, the homogeneous matrix of the robot's locus and position was obtained by calculating the intersection position. Finally, the robot's grinding track parameters were imported into the offline programming system to realize the visual simulation of the robot grinding process.