A robust optimal control approach in the weighted Sobolev space for underactuated mechanical systems. (March 2021)