22 #include <boost/bind.hpp> 25 using namespace gtsam;
38 TEST(ImuBias, Constructor) {
72 TEST(ImuBias, localCoordinates) {
82 delta << 0.1, 0.2, -0.3, 0.1, -0.1, 0.2;
99 delta << 0.1, 0.2, -0.3, 0.1, -0.1, 0.2;
130 boost::function<Vector3(const Bias&, const Vector3&)>
f = boost::bind(
141 boost::function<Vector3(const Bias&, const Vector3&)>
f =
Vector biasGyro2(Vector3(-0.002, 0.005, 0.03))
static int runAllTests(TestResult &result)
T between(const T &t1, const T &t2)
Bias bias2(biasAcc2, biasGyro2)
static Vector6 Logmap(const ConstantBias &p)
Pose2_ Expmap(const Vector3_ &xi)
Some functions to compute numerical derivatives.
internal::FixedSizeMatrix< Y, X1 >::type numericalDerivative21(const boost::function< Y(const X1 &, const X2 &)> &h, const X1 &x1, const X2 &x2, double delta=1e-5)
ConstantBias compose(const ConstantBias &q)
T compose(const T &t1, const T &t2)
ConstantBias retract(const Vector6 &v)
internal::FixedSizeMatrix< Y, X2 >::type numericalDerivative22(boost::function< Y(const X1 &, const X2 &)> h, const X1 &x1, const X2 &x2, double delta=1e-5)
Vector biasAcc2(Vector3(0.1, 0.2, 0.04))
#define EXPECT(condition)
Vector3 correctAccelerometer(const Vector3 &measurement, OptionalJacobian< 3, 6 > H1=boost::none, OptionalJacobian< 3, 3 > H2=boost::none) const
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
Vector6 localCoordinates(const ConstantBias &q)
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
imuBias::ConstantBias Bias
Vector biasAcc1(Vector3(0.2,-0.1, 0))
ConstantBias between(const ConstantBias &q)
static ConstantBias Expmap(const Vector6 &v)
Vector3 correctGyroscope(const Vector3 &measurement, OptionalJacobian< 3, 6 > H1=boost::none, OptionalJacobian< 3, 3 > H2=boost::none) const
Bias bias1(biasAcc1, biasGyro1)
Eigen::Matrix< double, Eigen::Dynamic, 1 > Vector
Vector biasGyro1(Vector3(0.1,-0.3,-0.2))
EIGEN_DEVICE_FUNC const InverseReturnType inverse() const
TEST(ImuBias, Constructor)