The application provides a method for converting
robot coordinate systems to a three-dimensional coordinate
system and a
virtual platform. The method comprises: obtaining more than one
robot uploaded reference point coordinates and to-be-converted point coordinates in corresponding
robot coordinate systems; creating an auxiliary coordinate
system in a three-dimensional coordinate
system of the
virtual platform; converting the to-be-converted point coordinates of each robot into coordinates of the to-be-converted point in the three-dimensional coordinate system, which comprises: corresponding the reference point coordinates in the robot coordinate system to the auxiliary coordinate system; obtaining a comprehensive
rotation matrix and a position offset by using the reference point coordinates in the auxiliary coordinate system and the reference point coordinates in the three-dimensional coordinate system; multiplying the to-be-converted point coordinates by the comprehensive
rotation matrix, and adding the position offset to the multiplied coordinates to obtain the coordinates of the to-be-converted point in the three-dimensional coordinate system. The application also provides a
virtual platform, which comprises: a receiving module, a display module and a robot three-dimensional coordinate acquisition module. With the aid of the auxiliary coordinate system and the reference point, the conversion process is simplified, and the calculation amount is reduced.