Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
python
gtsam
tests
test_Pose2.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
Pose2 unit tests.
9
Author: Frank Dellaert & Duy Nguyen Ta (Python)
10
"""
11
import
unittest
12
13
import
numpy
as
np
14
15
import
gtsam
16
from
gtsam
import
Pose2
17
from
gtsam.utils.test_case
import
GtsamTestCase
18
19
20
class
TestPose2
(
GtsamTestCase
):
21
"""Test selected Pose2 methods."""
22
23
def
test_adjoint
(self):
24
"""Test adjoint method."""
25
xi = np.array([1, 2, 3])
26
expected = np.dot(Pose2.adjointMap_(xi), xi)
27
actual = Pose2.adjoint_(xi, xi)
28
np.testing.assert_array_equal(actual, expected)
29
30
31
if
__name__ ==
"__main__"
:
32
unittest.main()
test_Pose2.TestPose2
Definition:
test_Pose2.py:20
gtsam.utils.test_case
Definition:
test_case.py:1
test_Pose2.TestPose2.test_adjoint
def test_adjoint(self)
Definition:
test_Pose2.py:23
gtsam.utils.test_case.GtsamTestCase
Definition:
test_case.py:15
gtsam
Author(s):
autogenerated on Sat May 8 2021 02:46:04