Add setMotion method to motionSolver class