Exploiting Dynamics in robotic arms with repetitive tasks