Compensating for Quasi-periodic Motion in Robotic