Optimistic estimates place computing power equivalence to human brain functions at around or before 2030. Appropriate Al software may not be ready by then. A more conservative date would place the readiness of human equivalent Al robots at around 2050.
But there is no reason why all robots would have to full human equivalent intelligence. If robots are going to be used for specific tasks only, then they could presumably be programmed with that level of intelligence or capability only.