Text this: Optimal trajectory generation method for robots for rapid handling of diversified products