A method performed by a control device (200, 300) of a vehicle, for operating the vehicle, wherein the vehicle comprises: at least one functional module; two or more drive modules, wherein the drive modules are configured to be autonomously operated, are individually associated with an individual set of energy parameters and wherein at least one drive module has a gear ratio being different from any other gear ratio of any other drive module; and respectively comprises a pair of wheels, at least one electrical motor arranged for operating the pair of wheels; at least one interface releasably connected to a corresponding interface on the functional module; the method comprising: obtaining route information describing a planned route of the vehicle; determining a distribution of a requested driving torque between the respective at least one electrical motor of the two or more drive modules for operating the vehicle along the route based on the route information and the individual sets of energy parameters in order to meet energy criteria, and controlling the two or more drive modules to produce the requested driving torque, in accordance with the determined distribution. at least one functional module; two or more drive modules, wherein the drive modules are configured to be autonomously operated, are individually associated with an individual set of energy parameters and wherein at least one drive module has a gear ratio being different from any other gear ratio of any other drive module; and respectively comprises a pair of wheels, at least one electrical motor arranged for operating the pair of wheels; at least one interface releasably connected to a corresponding interface on the functional module; the method comprising: obtaining route information describing a planned route of the vehicle; determining a distribution of a requested driving torque between the respective at least one electrical motor of the two or more drive modules for operating the vehicle along the route based on the route information and the individual sets of energy parameters in order to meet energy criteria, and controlling the two or more drive modules to produce the requested driving torque, in accordance with the determined distribution. a pair of wheels, at least one electrical motor arranged for operating the pair of wheels; at least one interface releasably connected to a corresponding interface on the functional module; the method comprising: obtaining route information describing a planned route of the vehicle; determining a distribution of a requested driving torque between the respective at least one electrical motor of the two or more drive modules for operating the vehicle along the route based on the route information and the individual sets of energy parameters in order to meet energy criteria, and controlling the two or more drive modules to produce the requested driving torque, in accordance with the determined distribution. obtaining route information describing a planned route of the vehicle; determining a distribution of a requested driving torque between the respective at least one electrical motor of the two or more drive modules for operating the vehicle along the route based on the route information and the individual sets of energy parameters in order to meet energy criteria, and controlling the two or more drive modules to produce the requested driving torque, in accordance with the determined distribution.