The centralized formulation for complete dynamic modelling of robots