The application provides a three-dimensional
rotation control method and
system for
radio frequency immunity test of an
electric energy meter, which comprises the relative conversion relationship between a calibration camera and a three-dimensional turntable coordinate
system, and establishes a 3D reference feature
library of key points on the surface of the
electric energy meter; in the test process, feature points are extracted from real-time monitoring images and matched with the reference
library, and reliable 2D-3D point pairs are screened out by using a RANSAC
algorithm;
six degrees of freedom poses of the
electric energy meter in the camera coordinate
system are solved based on an EPnP
algorithm, and then are mapped to the turntable coordinate system through coordinate transformation to obtain actual poses; the current actual poses and target test poses are respectively converted into the start and end angles of the axes of the turntable, and
trajectory planning is performed in the joint space; the instantaneous poses are solved through real-time
visual feedback, the
pose deviation from the theoretical trajectory is calculated, and the angle compensation of each axis is iteratively solved by using a Gauss-Newton method, so that the control command is corrected, closed-loop
pose tracking is realized, and the electric energy meter is stably brought to the predetermined test angle.