path extraction

extracts the path and to be able to be sent to the robot