This is a simple approach to the potential fields method used by the reactive paradigm in robotics.
It has been developed using ROS and Gazebo, with Turtlebot3 as the robot. It will simply move forward until it finds an obstacle. At that time, it will turn around and will keep moving.