Tools for controlling 4 and 5-DOF arms