Inverse dynamics‐based formulation of finite horizon optimal control problems for rigid‐body systems. (7th June 2021)