Autonomous learning of robot actions in contact with the environment : doctoral dissertation