Learning And Optimization Methods For Robust Control Of Hard Disk Drives And Geometric Control Of Fully Actuated Mechanical Systems