added redundant DOF checking in CheckEndEffectorCollision for translationdirection5d