Collision detection and identification for a legged manipulator