The forward kinematics analysis is the process of determining the posture of the end effector based on the known posture of each joint. The research of inverse kinematics is what posture each joint should be when the end effector reachs a certain position; That is to say, given the position and orientation of the end effector, calculate the angle of each joint.
The popular Denavit Hartenberg(DH) incorporates too much matrix calculation, consuming too much resource and time. Our code is based on a simplifed model for 4 robot arms. Note that, trigonometric function and square root may not be practical in some embeded cpu so a dedicated math library should be implemented and carefull examination about the data type and operations should be done while coding, which is the very challenge for the SoC programming.
The formula derivation is as following:
Then we have:
supposing
where
The same as before: