Lyapunov control in robotic systems: tracking regular and chaotic dynamics