Control of a one rigit-link manipulator in the case of non-smooth periodic trajectory