Constraints Identification in Time-Varying Obstacle Avoidance for Mechanical Manipulators