The present invention discloses an inverse solution method for the anchor posture at the end of the anchor trolley mechanical arm, and the steps are as follows: Step 1, based on the number of joints of the mechanical arm of the anchor trolley, adopt the DH method to establish a coordinate
system; Step 2, establish the total kinematic
transformation matrix of the mechanical arm of the anchor trolley: #imgabs0# Step 3, calculate the posture change matrix of the working plane coordinate
system {S} relative to the coordinate
system {5} #imgabs1# According to the starting point and end point coordinates (x1, z1), (x2, z2) of the anchor in the working plane coordinate system, and the anchor length l, deduce the posture of the Z axis of the coordinate system {T} in the working plane coordinate system #imgabs2# Step 4, solve θ6, θ7, #imgabs3# Step 5, solve θ1, θ2, d3, θ4, θ5. The invention obtains a closed solution for the joint variables of the
robotic arm based on the inverse transformation method, has a fast calculation speed, is used for real-
time control of the anchor trolley, realizes the rapid and automatic hole alignment operation of the
robotic arm during drilling and grouting of the anchor trolley, improves work efficiency, and is suitable for the technical field related to the
robot inverse kinematics algorithm.