Skip to main content

Section 4.3 Artificial Potential Fields: Attractors and Repellers

An intuitive, physics-inspired mathematical approach to reactive navigation is the Artificial Potential Field (APF) method.
Instead of writing long lists of if/else statements for every possible sensor combination, imagine placing the robot in an imaginary physical landscape:
  1. The Goal is an Attractor (a deep valley): It exerts a continuous Attractive Force \(F_{\text{att}}\) pulling the robot toward the target location.
  2. Obstacles are Repellers (steep hilltops): They exert Repulsive Forces \(F_{\text{rep}}\) pushing the robot away when it gets too close.
Picture the goal as a hole in the landscape that pulls the robot downhill toward it, and each obstacle as a hill that pushes the robot away as it climbs closerβ€”the robot’s position sits between them, pulled toward the goal and pushed away from every nearby obstacle at once.
Figure 4.3.1. In an artificial potential field, the goal acts as an attractive hole while an obstacle acts as a repulsive hill.

Subsection 4.3.1 Real-World & VEX Robotics Applications

  • Real-World Example (Autonomous Drones & Marine Ships): Aerial inspection drones and autonomous cargo ships frequently use potential field concepts for local collision avoidance. A drone flying toward a GPS waypoint (attractor) will dynamically calculate repulsive force vectors around high-voltage power lines or crane towers (repellers). The drone smoothly curves around the hazard without ever stopping or losing momentum toward its destination.
  • Real-World Example (MagLev Train Safety Buffers): High-speed magnetic levitation trains utilize magnetic repulsion principles analogous to potential fieldsβ€”as the train drifts closer to a track barrier, the opposing physical field strength increases exponentially, naturally pushing the vehicle back toward the center of the lane.
  • VEX Robotics Example (AI Vision Target Tracking with Obstacle Safety): In VEX games involving game elements (like collecting rings or balls), you can set the game element detected by a VEX AI Vision Sensor as an attractive target. Concurrently, signals from ultrasonic or distance sensors measuring nearby field barriers or opponent chassis generate repulsive forces. The VEX drivetrain continuously computes the vector sum to glide directly toward scoring objects while smoothly veering away from collisions.

Subsection 4.3.2 Resultant Vector Combination

The robot calculates the overall net force vector \(F_{\text{total}}\) by superimposing (adding together) the attractive force vector and all surrounding repulsive force vectors:
\begin{equation*} F_{\text{total}} = F_{\text{att}} + F_{\text{rep}} \end{equation*}
The robot’s onboard controller then translates \(F_{\text{total}}\) into wheel speed adjustments: steering the chassis toward the direction of the combined vector while scaling drive speed proportionally to the vector’s magnitude.

Reading Questions 4.3.3 Reading Questions

Check your understanding

1. Exercise 4.3.1: Vector Combination Conceptual Check.

A robot is moving toward a Goal directly East. An obstacle is detected directly ahead (East).
  • Attractive Force (\(F_{\text{att}}\)): Points East (toward Goal).
  • Repulsive Force (\(F_{\text{rep}}\)): Points West (away from Obstacle) and slightly North.
What happens when these two force vectors are added together (\(F_{\text{total}}\))?
  • The robot will stop moving completely.
  • Incorrect. The forces will not cancel out perfectly because of the Northward component.
  • The robot will drive directly into the obstacle.
  • Incorrect. The repulsive force pushes the robot away from the obstacle.
  • The robot will veer sideways to bypass the obstacle while continuing toward the goal.
  • Correct! Combining the Eastward goal pull with the Northward repulsive push produces a diagonal northeast vector, causing the robot to gently steer around the obstacle.
  • The robot will teleport to the goal position.
  • Incorrect. Physical motion updates are vector-driven, not instantaneous teleportation.
You have attempted of activities on this page.