added unit test for get/set triangulation threshold
parent
03fac5cd02
commit
97712b39cc
|
|
@ -81,6 +81,17 @@ TEST( SmartProjectionPoseFactor, Constructor4) {
|
||||||
factor1.add(measurement1, x1);
|
factor1.add(measurement1, x1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ************************************************************************* */
|
||||||
|
TEST( SmartProjectionPoseFactor, params) {
|
||||||
|
using namespace vanillaPose;
|
||||||
|
SmartProjectionParams params;
|
||||||
|
double rt = params.getRetriangulationThreshold();
|
||||||
|
EXPECT_DOUBLES_EQUAL(1e-5, rt, 1e-7);
|
||||||
|
params.setRetriangulationThreshold(1e-3);
|
||||||
|
rt = params.getRetriangulationThreshold();
|
||||||
|
EXPECT_DOUBLES_EQUAL(1e-3, rt, 1e-7);
|
||||||
|
}
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
TEST( SmartProjectionPoseFactor, Equals ) {
|
TEST( SmartProjectionPoseFactor, Equals ) {
|
||||||
using namespace vanillaPose;
|
using namespace vanillaPose;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue