Differentiable Hydrodynamics for Whole-Body MPC of Underwater Robots
This preprint presents a whole-body model predictive controller that uses fluid-load models fitted offline to coordinate an underwater vehicle and its arm. In the independent Stonefish simulator, it tracked a 108 s helix with 7.80 mm RMS tool position error, showing how the vehicle can help follow a tool path without being assigned its own trajectory.
Can a compact hydrodynamic model fitted to offline CFD provide the derivatives needed for whole-body MPC to coordinate an underwater vehicle and its arm?
Moving the arm pushes the floating vehicle, and moving the vehicle changes where the arm can reach. Separate controllers can hold the vehicle steady but limit its ability to help move the tool. Joint planning needs predictions of water forces, moments and their derivatives at every step.
Hierarchical and task-priority controllers coordinate vehicle and arm objectives. Marine MPC has handled tracking and station keeping, often with linear or diagonal quadratic damping that misses off-axis loads. Computational fluid dynamics (CFD) captures geometry-dependent loads but is too expensive to run inside the control loop.
The team fits degree-four spherical harmonics to steady CFD loads, enforcing positive resistance in pure translation and rotation. Oscillatory CFD supplies a symmetric, positive-definite 6 x 6 added-inertia matrix. Closed-form derivatives feed FDDP, which jointly optimizes eight T200 thrusters and four Reach Alpha 5 joint torques on a simulated BlueROV2 Heavy. A Stonefish feedback observer estimates residual loads while keeping the fitted coefficients fixed.
Eight steady CFD folds used 56 training and 8 test directions per motion type. Translation-force and rotation-moment NRMSE were 10.03% and 10.35%, versus 10.32% and 9.85% for componentwise SH and 8.74% and 9.62% for spherical RBF. Inertia folds used 28 training and 4 test axes. Coupled versus diagonal NRMSE was 0.242% versus 1.384% for linear acceleration to force, 1.524% versus 100% for linear acceleration to moment, 2.109% versus 100% for angular acceleration to force, and 0.0817% versus 1.846% for angular acceleration to moment. Full action derivatives averaged 0.1450 ms with steady loads and 0.1650 ms with inertia. In offline simulations with added inertia disabled, a 0.35 m/s following current cut absolute thrust impulse by 13.3% versus still water, and directional drag cut it by 7.9% versus isotropic drag in a separate reach. In Stonefish reaching at 0.2 m/s side current, the load observer reduced final position error from 106.44 to 0.49 mm and orientation error from 82.12° to 0.065° over 400 updates per condition. The 108 s helix recorded 7.80 mm position RMS and 0.98° orientation RMS over 3600 updates.
Evaluation used one simulated vehicle-arm configuration. The model approximates buoyancy with a fixed center and uses hull hydrodynamics. Held-out CFD errors reached 25.41% NRMSE for translation-induced moment and 71.78% for rotation-induced force. Stonefish waited for each solve before advancing its 30 ms simulated replanning interval. Median solve and policy validation times were 50.20 ms for reaching and 115.66 ms for the helix.
Subsea inspection and intervention ROV developers could use the method now to prototype tool-path control in simulation. An onboard pilot is plausible in 1 to 3 years if water trials confirm tracking under real currents and actuator behavior, and if the full controller meets its replanning deadline on vehicle hardware.
The full text is not republished here because the paper's license does not allow it. Read the original on arXiv.