This question already has an answer here:
- Robot path planning 1 answer
I'm trying to build an Autonomous parcel delivering rover using GPS.So after giving destination coordinates, I don't know how to make the robot understand to which direction it should move. Basically, My question is, How can I find out or calculate the direction(angle at which the the boat should move) from starting and destination coordinates?
My bot is actually a rover which is designed for parcel delivery purposes. I want to know how to calculate the direction( angle at which it should move) from the coordinates of current location and target location? for example, if my boat is at A and and it was moving on a straight line until it reached A. And now after reaching A, next target is B which is at an angle from the initial line of motion, I want to calculate this angle from coordinates of A and B.