Text this: Analytical forecasting of the optimal trajectory of mobile robot