Some of the obstacles are interactive, such as a rocket one can jump on and ride a short distance, others can merely be kicked out of the way or jumped over.
Occasionally a crown will appear over an obstacle, if you successfully clear it you will briefly soar over the stage avoiding anything that might have been in your path. This is especially common before obstacles that might require outlandish button combos.