METHOD FOR CONTROLLING AN ARTICULATED AND/OR DEFORMABLE MECHANICAL SYSTEM AND ITS APPLICATIONS