There are a few variants on that. One kind just overdoses the weed with fertilizer. One zaps weeds with a laser. One just stomps on them. A small one from WalMart takes out weeds with a string trimmer.
Most of the successful systems are wide implements to be towed behind a tractor, not autonomous robots. Farmers already have tractors.
[1] https://www.deere.com/en/our-company/news-and-announcements/...