Roomba maker iRobot has filed for bankruptcy after 35 years, citing debt pressures, weak demand and rising competition.