BEIJING—Foxconn plans to install some 20,000 robots at its Chinese assembly plants by the end of the year. MORE