As the article states they were more than vacuums- they also did defense work and research. They gutted that for higher short term gains. Offshoring to China also likely helped China learn to build their own.
It only mentions a one sided view presuming an investor’s intentions. There is no numerical analysis on whether or not iRobot’s spending on various efforts was yielding or likely to yield a return.