Adaptive Flow Planning of Modular Spherical Robot Considering Static Gravity Stability