A hydraulic system comprising: a hydraulic actuator that is configured to control load and having first and second ports; a hydraulic pump to provide hydraulic fluid to the hydraulic actuator, the hydraulic pump including an interior volume , , third and fourth ports in fluid communication with the interior volume an electric motor disposed inside the interior volume , and a gear assembly comprising a first gear having first gear teeth and a second gear having second gear teeth disposed inside the interior volume such that the first and second gears mesh, the first gear to be driven by the electric motor and the first gear to drive the second gear such that fluid is transferred from one of the third and fourth ports to the other of the third and fourth ports of the hydraulic pump by the first and second gear teeth ; and a controller to control the electric motor , wherein: the electric motor is disposed within a cylindrical opening of the first gear along an axial centerline of the first gear , and characterised in that the controller is configured to control a speed, a torque or both the speed and the torque of the electric motor in the interior volume to exclusively adjust a flow, a pressure or both the flow and pressure in the hydraulic system to a desired set point. a hydraulic actuator that is configured to control load and having first and second ports; a hydraulic pump to provide hydraulic fluid to the hydraulic actuator, the hydraulic pump including an interior volume , , third and fourth ports in fluid communication with the interior volume an electric motor disposed inside the interior volume , and a gear assembly comprising a first gear having first gear teeth and a second gear having second gear teeth disposed inside the interior volume such that the first and second gears mesh, the first gear to be driven by the electric motor and the first gear to drive the second gear such that fluid is transferred from one of the third and fourth ports to the other of the third and fourth ports of the hydraulic pump by the first and second gear teeth ; and an interior volume , , third and fourth ports in fluid communication with the interior volume an electric motor disposed inside the interior volume , and a gear assembly comprising a first gear having first gear teeth and a second gear having second gear teeth disposed inside the interior volume such that the first and second gears mesh, the first gear to be driven by the electric motor and the first gear to drive the second gear such that fluid is transferred from one of the third and fourth ports to the other of the third and fourth ports of the hydraulic pump by the first and second gear teeth ; and a controller to control the electric motor , wherein: the electric motor is disposed within a cylindrical opening of the first gear along an axial centerline of the first gear , and characterised in that the controller is configured to control a speed, a torque or both the speed and the torque of the electric motor in the interior volume to exclusively adjust a flow, a pressure or both the flow and pressure in the hydraulic system to a desired set point. the electric motor is disposed within a cylindrical opening of the first gear along an axial centerline of the first gear , and characterised in that the controller is configured to control a speed, a torque or both the speed and the torque of the electric motor in the interior volume to exclusively adjust a flow, a pressure or both the flow and pressure in the hydraulic system to a desired set point. <EOS>