What we're discussing here is called "the singularity," which is the day that computers become smarter than human beings and take over the world. There won't be any task that computers/robots won't be able to do, and do it far better than a human.
Computers will never be "smart."
We create ever more sophisticated applications, but the reality is that intelligence from a computer will never happen. We can develop applications that adapt to conditions, but only only predetermined parameters. What cannot be programmed into binary computers is curiosity. It is for this reason that intelligence is an impossibility, regardless of how clever programers are at emulating it. Intelligence in machines is always an illusion, and always will be.