Scholars agree that Walt Whitman felt inspired by Ralph Waldo Emerson's stated need for America to have its own American poet. Emerson saw all of America as one great poem that was left "unsung" and that it was high time for a poet to write patriotic verse. We see Emerson's famous call for a national poet, the same call that inspired Whitman, in his essay "The Poet":
Our log-rolling, our stumps and their politics, our fisheries, our Negroes, and Indians, our boasts, and our repudiations, the wrath of rogues, and the pusillanimity of honest men ... are yet unsung. Yet America is a poem in our eyes; its ample geography dazzles the imagination, and it will not wait long for meters. (as cited in Price & Folsom)
After Emerson's call, Whitman dedicated himself to the publication of his book of poems Leaves of Grass in which most, if not all, poems have very political and even national themes. One example can be seen the poem "On Journeys Through the States" in which he describes a journey through the states, even listing many of the areas found in the US, such as the Northeast, the Mississippi, and the South. We especially even hear his political voice speaking for the need of liberty in "To the States." In this poem, he encourages Americans' common rebellious mindset saying that rebellion is the only way to ensure liberty.
Hence we see that Emerson's idea concerning America's need for a great political poet certainly influenced Whitman's poetry, inspiring him to become Emerson's great political poet.
In addition to what was said in answer #1, I would like to point out that something else Emerson wrote in his famous essay "The Poet" had a very powerful influence on Walt Whitman and subsequently on all modern poetry. According to Emerson:
For it is not metres, but a metre-making argument, that makes a poem, — a thought so passionate and alive, that, like the spirit of a plant or an animal, it has an architecture of its own, and adorns nature with a new thing. The thought and the form are equal in the order of time, but in the order of genesis the thought is prior to the form.
Whitman took this advice literally, and much of his poetry in Leaves of Grass shows that he was ignoring many of the traditions of European poetry, most of which had themselves been derived from the ancient Greeks and Romans. Walt Whitman's poetry notably disregarded meter, rhyme, and line length. He also seemed to pay scant attention to such poetic devices as similes and metaphors. His poetry represented a revolutionary departure from English poetry by such great names as Shakespeare and Keats. Here is a sample of Whitman's characteristic style from his "Song of Myself":
My tongue, every atom of my blood, form’d from this soil, this air,
Born here of parents born here from parents the same, and their parents the same,
I, now thirty-seven years old in perfect health begin,
Hoping to cease not till death.
Hardly anything remains of traditional poetry in such lines. Every line is of a different length. There are no rhyming words at the ends of the lines. There are no metaphors or similes. There is no detectable meter. There is something in most of Whitman's poetry that makes it sound, somehow, like poetry. It is a sort of chanting. Note how he repeats the word "parents" three times in the second line of the above sample. Whitman is obviously following Emerson's idea that it is not meter but a meter-making argument that makes a poem. "Form follows function."
Many anthologies of modern poetry begin with selections from Walt Whitman. At first he was scorned by European and even American critics. Henry James published a sarcastic review of "Leaves of Grass" in which he wrote, among other things, that if you are going to write prose you should not break it up into separate lines and should use orthodox punctuation. But modern poetry breaks all the old rules in the belief that the form should follow the thought and not that the thought should have to be forced into a rigid predetermined form.
Emerson stated the idea and Whitman provided the early examples. Emerson was quite pleased with Whitman's poetry and praised him for his efforts. With the great Ralph Waldo Emerson as his advocate, Whitman became famous in his time. It is probably only fair to call Whitman the father of modern poetry.