add cgmres_nmpc test

This commit is contained in:
Atsushi Sakai
2019-01-07 11:36:59 +09:00
parent a01dc16793
commit d3f03c6b48
2 changed files with 16 additions and 2 deletions

View File

@@ -585,8 +585,7 @@ def main():
if show_animation:
animation(plant_system, controller, dt)
plot_figures(plant_system, controller, iteration_num, dt)
plot_figures(plant_system, controller, iteration_num, dt)
if __name__ == "__main__":

15
tests/test_cgmres_nmpc.py Normal file
View File

@@ -0,0 +1,15 @@
from unittest import TestCase
import sys
if 'cvxpy' in sys.modules:
sys.path.append("./PathTracking/cgmres_nmpc/")
from PathTracking.cgmres_nmpc import cgmres_nmpc as m
print(__file__)
class Test(TestCase):
def test1(self):
m.show_animation = False
m.main()