Hi guys!
I am writing code for rrt(rapidly exploring random trees) which is a sampling based motion planning algorithm.I wrote the code in MATLAB but now i am writing it in c++. I am trying to use sfml but I am having problems with it.
Basically this is what I am trying to do:
calculate the position of the robot and plot it.So when the program executes I would be seeing my robot traversing the space and avoiding the obstacles and finally reaching the goal position.This means that window needs to update dynamically retaining te previous state.
Q-1 how to check whether a point lies inside a polygon (this is for obstacle detection)?
Q-2 the default window only works in the first coordinate....how can i deal with negative coordinates? if i try to give position values which are negative then i can't see anything on the window.Does it have to do something with the views?
Q-3 is it even possible to do what i intend to do using sfml?
Thanks a lot