The comedic duo that combines into an ice cream truck in Transformers: Revenge of the Fallen are the Autobot twins Sideswipe and Skids (often referred to collectively as "The Twins").
In the film's toyline and expanded lore (though not explicitly shown combining on screen in the final cut), they merge into Twinstrike, a larger robot wielding a massive ice cream cone-shaped weapon. The ice cream truck alternate mode (a hybrid of their car forms) is featured prominently in their introduction scene.
Note: The characters were controversial for their stereotypical portrayal and were largely absent from the third film, Dark of the Moon.