Use pytest_xdist for unit-test speed up in CI (#459)

* Remove unnecessary plot

* Remove unnecessary plot

* update appveyor.yml
This commit is contained in:
Atsushi Sakai
2021-01-16 14:28:24 +09:00
committed by GitHub
parent 67d7d5c610
commit 2731cdba00
7 changed files with 19 additions and 20 deletions

View File

@@ -7,10 +7,10 @@ author: Atsushi Sakai
import math
from enum import IntEnum
import matplotlib.pyplot as plt
import numpy as np
from scipy.spatial.transform import Rotation as Rot
from Mapping.grid_map_lib.grid_map_lib import GridMap
import matplotlib.pyplot as plt
do_animation = True
@@ -240,8 +240,6 @@ def sweep_path_search(sweep_searcher, grid_map, grid_search_animation=False):
grid_map.plot_grid_map(ax=ax)
plt.pause(1.0)
grid_map.plot_grid_map()
return px, py
@@ -289,13 +287,13 @@ def planning_animation(ox, oy, resolution): # pragma: no cover
plt.grid(True)
plt.pause(0.1)
plt.cla()
plt.plot(ox, oy, "-xb")
plt.plot(px, py, "-r")
plt.axis("equal")
plt.grid(True)
plt.pause(0.1)
plt.close()
plt.cla()
plt.plot(ox, oy, "-xb")
plt.plot(px, py, "-r")
plt.axis("equal")
plt.grid(True)
plt.pause(0.1)
plt.close()
def main(): # pragma: no cover
@@ -316,7 +314,8 @@ def main(): # pragma: no cover
resolution = 5.0
planning_animation(ox, oy, resolution)
plt.show()
if do_animation:
plt.show()
print("done!!")

View File

@@ -25,7 +25,7 @@ sys.path.append(os.path.dirname(os.path.abspath(__file__))
try:
import model_predictive_trajectory_generator as planner
import motion_model
except:
except ImportError:
raise
@@ -323,6 +323,7 @@ def lane_state_sampling_test1():
def main():
planner.show_animation = show_animation
uniform_terminal_state_sampling_test1()
uniform_terminal_state_sampling_test2()
biased_terminal_state_sampling_test1()