20 #include <boost/make_shared.hpp> 37 accelerometerCovariance(I_3x3),
38 integrationCovariance(I_3x3),
39 use2ndOrderCoriolis(false),
40 n_gravity(0, 0, -1) {}
46 accelerometerCovariance(I_3x3),
47 integrationCovariance(I_3x3),
48 use2ndOrderCoriolis(false),
49 n_gravity(n_gravity) {}
52 static boost::shared_ptr<PreintegrationParams>
MakeSharedD(
double g = 9.81) {
57 static boost::shared_ptr<PreintegrationParams>
MakeSharedU(
double g = 9.81) {
61 void print(
const std::string&
s=
"")
const override;
76 friend class boost::serialization::access;
77 template<
class ARCHIVE>
79 namespace bs = ::boost::serialization;
81 ar & BOOST_SERIALIZATION_NVP(accelerometerCovariance);
82 ar & BOOST_SERIALIZATION_NVP(integrationCovariance);
83 ar & BOOST_SERIALIZATION_NVP(use2ndOrderCoriolis);
84 ar & BOOST_SERIALIZATION_NVP(n_gravity);
87 #ifdef GTSAM_USE_QUATERNIONS void print(const Matrix &A, const string &s, ostream &stream)
void setUse2ndOrderCoriolis(bool flag)
void setAccelerometerCovariance(const Matrix3 &cov)
const Vector3 & getGravity() const
bool getUse2ndOrderCoriolis() const
void serialize(ARCHIVE &ar, const unsigned int)
Matrix3 integrationCovariance
continuous-time "Covariance" describing integration uncertainty
void setIntegrationCovariance(const Matrix3 &cov)
const Matrix3 & getAccelerometerCovariance() const
void g(const string &key, int i)
PreintegrationParams(const Vector3 &n_gravity)
Vector3 n_gravity
Gravity vector in nav frame.
bool use2ndOrderCoriolis
Whether to use second order Coriolis integration.
static boost::shared_ptr< PreintegrationParams > MakeSharedU(double g=9.81)
Matrix3 accelerometerCovariance
#define GTSAM_MAKE_ALIGNED_OPERATOR_NEW
static boost::shared_ptr< PreintegrationParams > MakeSharedD(double g=9.81)
const Matrix3 & getIntegrationCovariance() const
PreintegrationParams()
Default constructor for serialization only.