mirror of
https://github.com/zhm-real/PathPlanning.git
synced 2026-08-29 16:40:46 +08:00
update
This commit is contained in:
@@ -14,7 +14,6 @@ class Plotting():
|
||||
self.obs = self.env.obs_map()
|
||||
self.lose = self.env.lose_map()
|
||||
|
||||
|
||||
def animation(self, path, name):
|
||||
"""
|
||||
animation.
|
||||
@@ -29,7 +28,6 @@ class Plotting():
|
||||
self.plot_lose()
|
||||
self.plot_path(path)
|
||||
|
||||
|
||||
def plot_grid(self, name):
|
||||
"""
|
||||
plot the obstacles in environment.
|
||||
@@ -48,7 +46,6 @@ class Plotting():
|
||||
plt.title(name)
|
||||
plt.axis("equal")
|
||||
|
||||
|
||||
def plot_lose(self):
|
||||
"""
|
||||
plot losing states in environment.
|
||||
@@ -60,7 +57,6 @@ class Plotting():
|
||||
|
||||
plt.plot(lose_x, lose_y, color = '#A52A2A', marker = 's', ms = 24)
|
||||
|
||||
|
||||
def plot_visited(self, visited):
|
||||
"""
|
||||
animation of order of visited nodes.
|
||||
@@ -87,7 +83,6 @@ class Plotting():
|
||||
|
||||
if count % length == 0: plt.pause(0.001)
|
||||
|
||||
|
||||
def plot_path(self, path):
|
||||
path.remove(self.xI)
|
||||
path.remove(self.xG)
|
||||
@@ -100,7 +95,6 @@ class Plotting():
|
||||
plt.show()
|
||||
plt.pause(0.5)
|
||||
|
||||
|
||||
def plot_diff(self, diff, name):
|
||||
plt.figure(2)
|
||||
plt.title(name, fontdict=None)
|
||||
|
||||
Reference in New Issue
Block a user