A Lie Group Formulation Of Robots