The invention designs a mechanical arm control method for a
power transmission line hot-line work
robot. The mechanical arm control method comprises the steps that S1, a real-time mechanical arm
kinematics model is established through a current angle; and S2, changing to a base coordinate and obtaining an actual movement speed through
impedance control. And S3, calculating the dynamic speed to obtain the expected
pose of the
robot. And S4, subtracting the
pose from the actual
pose to obtain the
running time, obtaining the correction speed, and calculating the joint speed increment in combination with a Jacobian matrix. And S5, repeating the steps 1)-4) until a convergence condition is met. And S6, the current
joint angle is output, and the current posture of the mechanical arm is obtained. According to the method, the weighted
generalized inverse matrix of the Jacobian matrix is combined with the
tail end speed of the mechanical arm in
impedance control, the angle increment of the ultralimit joint is reduced, compliant control over the multi-degree-of-freedom mechanical arm is achieved, the operation target recognition technology is optimized by improving the YOLOv4
algorithm, and the control precision of the multi-degree-of-freedom mechanical arm is improved. The problem of compliance of contact between the mechanical arm and an unknown environment or object is solved.