25 using namespace gtsam;
38 TEST(ImuBias, Constructor) {
50 TEST(ImuBias, operatorSub) {
57 TEST(ImuBias, operatorAdd) {
64 TEST(ImuBias, operatorSubB) {
74 std::function<Vector3(const Bias&, const Vector3&)>
f =
76 std::placeholders::_2,
nullptr,
nullptr);
86 std::function<Vector3(const Bias&, const Vector3&)>
f =
88 std::placeholders::_2,
nullptr,
nullptr);
Vector3 correctGyroscope(const Vector3 &measurement, OptionalJacobian< 3, 6 > H1={}, OptionalJacobian< 3, 3 > H2={}) const
Vector biasGyro2(Vector3(-0.002, 0.005, 0.03))
static int runAllTests(TestResult &result)
Bias bias2(biasAcc2, biasGyro2)
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
Some functions to compute numerical derivatives.
internal::FixedSizeMatrix< Y, X1 >::type numericalDerivative21(const std::function< Y(const X1 &, const X2 &)> &h, const X1 &x1, const X2 &x2, double delta=1e-5)
static Point2 measurement(323.0, 240.0)
Vector biasAcc2(Vector3(0.1, 0.2, 0.04))
Vector biasGyro1(Vector3(0.1, -0.3, -0.2))
#define EXPECT(condition)
Vector3 correctAccelerometer(const Vector3 &measurement, OptionalJacobian< 3, 6 > H1={}, OptionalJacobian< 3, 3 > H2={}) const
Vector biasAcc1(Vector3(0.2, -0.1, 0))
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
imuBias::ConstantBias Bias
internal::FixedSizeMatrix< Y, X2 >::type numericalDerivative22(std::function< Y(const X1 &, const X2 &)> h, const X1 &x1, const X2 &x2, double delta=1e-5)
Bias bias1(biasAcc1, biasGyro1)
TEST(ImuBias, Constructor)