Learning, Transfer And Use Of Affordances In Robotics Tasks