Self learning crawling robot