obstacle avoidance  using potential fields and Rapidly exploring random tree