Use GtsamTestCase in example
parent
c442df3866
commit
79880d6a7c
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue