AI Algorithm Trains Robots with Precision through Chaos