Memory Based Tactile Perception for Task Relevant Action Selection in Robots