Online motion synthesis using sequential Monte Carlo