A variable structure regulator for robotic systems