From learning to new goal generation in a bioinspired robotic setup