testWhiteNoiseFactor.cpp
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2 
3  * GTSAM Copyright 2010, Georgia Tech Research Corporation,
4  * Atlanta, Georgia 30332-0415
5  * All Rights Reserved
6  * Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7 
8  * See LICENSE for the license information
9 
10  * -------------------------------------------------------------------------- */
11 
18 #include <gtsam/base/Testable.h>
19 
21 
22 using namespace gtsam;
23 using namespace std;
24 
25 /* ************************************************************************* */
27 {
28  double z = 0.1;
29  Key meanKey=1, precisionKey=2;
30  WhiteNoiseFactor factor(z,meanKey, precisionKey);
31  LONGS_EQUAL(2, (long)factor.dim());
32 }
33 
34 /* ************************************************************************* */
35 int main() { TestResult tr; return TestRegistry::runAllTests(tr); }
36 /* ************************************************************************* */
TestRegistry::runAllTests
static int runAllTests(TestResult &result)
Definition: TestRegistry.cpp:27
Testable.h
Concept check for values that can be used in unit tests.
TestHarness.h
WhiteNoiseFactor.h
Binary white noise factor.
main
int main()
Definition: testWhiteNoiseFactor.cpp:35
pybind_wrapper_test_script.z
z
Definition: pybind_wrapper_test_script.py:61
TestResult
Definition: TestResult.h:26
gtsam::WhiteNoiseFactor::dim
size_t dim() const override
get the dimension of the factor (number of rows on linearization)
Definition: WhiteNoiseFactor.h:124
gtsam::WhiteNoiseFactor
Binary factor to estimate parameters of zero-mean Gaussian white noise.
Definition: WhiteNoiseFactor.h:41
gtsam
traits
Definition: chartTesting.h:28
gtsam::TEST
TEST(SmartFactorBase, Pinhole)
Definition: testSmartFactorBase.cpp:38
constructor
Definition: init.h:200
std
Definition: BFloat16.h:88
gtsam::Key
std::uint64_t Key
Integer nonlinear key type.
Definition: types.h:97
LONGS_EQUAL
#define LONGS_EQUAL(expected, actual)
Definition: Test.h:134


gtsam
Author(s):
autogenerated on Tue Jun 25 2024 03:07:12