Use GtsamTestCase in example

release/4.3a0
Frank Dellaert 2019-03-20 17:36:11 -04:00
parent c442df3866
commit 79880d6a7c
1 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ from mpl_toolkits.mplot3d import Axes3D # pylint: disable=W0611
import gtsam import gtsam
import gtsam.utils.plot as gtsam_plot import gtsam.utils.plot as gtsam_plot
from gtsam import Pose2 from gtsam import Pose2
from gtsam.utils.test_case import GtsamTestCase
def vector3(x, y, z): def vector3(x, y, z):
@ -202,7 +203,7 @@ Q1 = np.radians(vector3(-30, -45, -90))
Q2 = np.radians(vector3(-90, 90, 0)) Q2 = np.radians(vector3(-90, 90, 0))
class TestPose2SLAMExample(unittest.TestCase): class TestPose2SLAMExample(GtsamTestCase):
"""Unit tests for functions used below.""" """Unit tests for functions used below."""
def setUp(self): def setUp(self):