Homogeneity conditions for generalized cosserat media