I have a problem in MATLAB, that I want to draw a line between two points like start (50,50) and end point (500,200) where (50,50) and (500,200) represents the (x,y) coordinates of these points. To draw this line I have to check whether there is any object/obstacle base on a condition that radius of this obstacle is less or equal to a specific value then it should go around the object following the shape of the obstacle,In this case obstacles are round, they can be squared shape like buildings or rectangular shape. so that I can reach from start to end point passing through these obstructions/obstacles.
I am not getting how to go through, As i have tried straight lines with the help of plot but no good results.
If you can give hint to sort out this issue.