Towards A Unified Framework Of Efficient Algorithms For Numerical Optimal Robot Control