Redundancy Analysis of Articulated Robot Arms and Its Utilization for Tasks with Priority