Virtual dog to teach robots to perform tasks intelligently