diff --git a/artificial_potential.py b/artificial_potential.py index 6f2e932..180d6e9 100644 --- a/artificial_potential.py +++ b/artificial_potential.py @@ -1,4 +1,3 @@ -# /usr/bin/python import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation @@ -13,13 +12,13 @@ def attractive_force(position, goal): """ - Calculate the attractive force towards the goal. + Calculate the attractive force towards the goal """ return -k_att * (position - goal) def repulsive_force(position, obstacles, d0, k_rep): """ - Calculate the repulsive force from obstacles. + Calculate the repulsive force from obstacles """ force = np.zeros(2) for obs in obstacles: @@ -104,4 +103,4 @@ def update(frame): ax.set_title('Dynamic Potential Field') ax.grid() -plt.show() \ No newline at end of file +plt.show()