Gröbner bases for modules are used to calculate a generalized linear immersion for a plant whose solutions to its regulation equations are polynomials or pseudo-polynomials. After calculating the generalized linear immersion, we build the controller which gives the robust regulation.