PALMER: Perception-ActionLoopwithMemory forLong-HorizonPlanning