I have made a simple program that generates a path avoiding objects (objects here are shown in green and yellow). The path is shown in red.
This is meant to be used to navigate a small car however it cant make straight 45° turns and i need a way to make the path more smooth.
The yellow area is just a safety zone so there is no problem if it slightly cuts into it.
The plot is being made using the follow code (it updates as the object moves around).
path_data, = plt.plot(path_x, path_y, 'r-')
Image of path and object:
Regards, Jakob
Edit: The difference (from what i can tell) between my problem and the problem answered in the other thread is that I will not know what degree my curve will have beforehand and it will be used continuously so i can not plot it and the decide the degree myself. (I´m not an experienced programmer so I could very well be wrong)