Integrate[Sin[Floor[x]*Pi/4], {x, 0, 6}]