
181Chapter 9: Inverse Kinematics for 3D Movement
the inverse kinematics, telling our motors to respond to the changing angle
values, and printing out the result can be iterated though each time the loop
is completed.
Once you have written, compiled, and uploaded the code above, you should
start to see the end effector of the robotic arm slowly trace the eight corners
of a cube. Keep in mind that this sample code can be updated, altered, and
customized to make all kinds of shapes. By adding coordinates, we can
program all kinds of interesting shapes and movements for our robotic arm.
Now, before we move on to our next robotic-arm design, there’ ...