A Unifying Methodology for Robot Control with Redundant DOFs