Following flowchart will give you a basic introduction of robot path planning.

I have defined: