Planning motion of rolling surfaces