python
gtsam
tests
test_Point3.py
Go to the documentation of this file.
1
"""
2
GTSAM Copyright 2010-2019, Georgia Tech Research Corporation,
3
Atlanta, Georgia 30332-0415
4
All Rights Reserved
5
6
See LICENSE for the license information
7
8
Point3 unit tests.
9
Author: Frank Dellaert & Fan Jiang
10
"""
11
import
unittest
12
13
import
gtsam
14
import
numpy
as
np
15
from
gtsam.utils.test_case
import
GtsamTestCase
16
17
18
class
TestPoint3
(
GtsamTestCase
):
19
"""Test selected Point3 methods."""
20
21
def
test_constructors
(self):
22
"""Test constructors from doubles and vectors."""
23
expected =
gtsam.Point3
(1, 2, 3)
24
actual =
gtsam.Point3
(np.array([1, 2, 3]))
25
np.testing.assert_array_equal(actual, expected)
26
27
28
if
__name__ ==
"__main__"
:
29
unittest.main()
test_Point3.TestPoint3.test_constructors
def test_constructors(self)
Definition:
test_Point3.py:21
gtsam::utils.test_case
Definition:
test_case.py:1
gtsam::utils.test_case.GtsamTestCase
Definition:
test_case.py:16
gtsam::Point3
Vector3 Point3
Definition:
Point3.h:38
test_Point3.TestPoint3
Definition:
test_Point3.py:18
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:15:58