The flexible structure of a robot multi-links manipulator can be either a side effect or, on the contrary, an essential feature. We present a fairly general model to derive the corresponding dynamic equations in quite a systematic and simple way. To this end, we use the Lagrange formulation with strain energy potential and Raleigh (dissipation) functions. The approach can incorporate torsional deformation and aerodynamic friction, and it applies easily to robots working in the sea. The trajectory control appears to be one in the presence of model imprecision, and a slightly modified version of the classical sliding control technique is utilized to design the tracking control of the manipulator. Then we introduce the time-varying inertia link device (carried out by means of sliding masses) which we suggested in earlier work, and we show how it can be used to improve the tracking control scheme above. This paper contributes new ideas concerning flexible multi-links arms and active inertia links.