Automatic path planning for a mobile robot among obstacles of arbitrary shape