Text this: Repurposing a sampling-based planner for a six-degree-of-freedom manipulator to avoid unpredictable obstacles