mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-04-22 03:00:22 -04:00
add no cover annotations
This commit is contained in:
@@ -259,7 +259,7 @@ def planning(ox, oy, reso,
|
||||
return rx, ry
|
||||
|
||||
|
||||
def planning_animation(ox, oy, reso):
|
||||
def planning_animation(ox, oy, reso) # pragma: no cover:
|
||||
px, py = planning(ox, oy, reso)
|
||||
|
||||
# animation
|
||||
@@ -281,7 +281,7 @@ def planning_animation(ox, oy, reso):
|
||||
plt.pause(0.1)
|
||||
|
||||
|
||||
def main():
|
||||
def main() # pragma: no cover:
|
||||
print("start!!")
|
||||
|
||||
ox = [0.0, 20.0, 50.0, 100.0, 130.0, 40.0, 0.0]
|
||||
|
||||
@@ -24,7 +24,6 @@ try:
|
||||
except ImportError:
|
||||
raise
|
||||
|
||||
|
||||
show_animation = True
|
||||
|
||||
|
||||
@@ -105,7 +104,7 @@ class RRTDubins(RRT):
|
||||
|
||||
return None
|
||||
|
||||
def draw_graph(self, rnd=None):
|
||||
def draw_graph(self, rnd=None): # pragma: no cover
|
||||
plt.clf()
|
||||
if rnd is not None:
|
||||
plt.plot(rnd.x, rnd.y, "^k")
|
||||
@@ -123,7 +122,7 @@ class RRTDubins(RRT):
|
||||
self.plot_start_goal_arrow()
|
||||
plt.pause(0.01)
|
||||
|
||||
def plot_start_goal_arrow(self):
|
||||
def plot_start_goal_arrow(self): # pragma: no cover
|
||||
dubins_path_planning.plot_arrow(
|
||||
self.start.x, self.start.y, self.start.yaw)
|
||||
dubins_path_planning.plot_arrow(
|
||||
|
||||
Reference in New Issue
Block a user