I disagree that we are still a long way away from that point. The speed of technological change increases exponentially and so 20 years of change in the 21st century is equal to maybe twice that, or more, in the 20th/19th centuries. We pretty much have driverless cars, it's really just fine-tuning that's left in terms of their overall development. We have robots in factories such as car plants. We have incredible software such as NASA uses to send probes billions of miles away. Add that altogether and it seems very close to me. 20 years is probably way off, maybe less than 15.
In terms of a working clean energy system that is very close too. If there was universal political will that could be solved very quickly. Wind/Solar/Wave technology is increasing very quickly. A lot of energy used in factories etc is required for humans but not robots. Lighting, A/C etc won't really be needed for robots, they'll be able to work in near-dark situations and temps. won't affect them like they do humans. So, this means that much less energy will be required to run a plant full of robots. Battery technology is increasing rapidly and that will replace the need for so much electricity from a mains supply.
Automation and the logistics for making renewables happen will occur at the same time so it won't be 10 + 10 years, it'll more likely be 10-15 years total.
In terms of the population I agree that it is a major problem. Unfortunately though many people in countries in Africa or in India, Bangladesh etc don't temper their breeding based upon food availability. It may happen in the US/Europe but they will be the exception not the rule. People won't look ahead and think "We need to have less kids" it'll be a case of food being fought over to feed those populations.
The big problem as I see it, or one of the big problems is that the Corporates don't address problems untill/unless it affect their profits. This means that problems will occur and THEN a solution will be sought, rather than trying to stop those problems occuring in the first place.
Robots don't require food/water. That will push their development/use even quicker as food becomes harder to provide for the burgeoning world population.
Either way, the future doesn't look great.