Generalized Hamiltonian biodynamics and topology invariants of humanoid robots. (2002)