Text this: Optimization-Based Path Planning With Artificial Potential Function