An approach to robot task learning and planning with loops | IEEE Conference Publication | IEEE Xplore