A bit outside the box.
GPS : plot obstacles. Divert around them. Alter speed angle, etc. When nearby.