36 accelerometerCovariance(I_3x3),
37 integrationCovariance(I_3x3),
38 use2ndOrderCoriolis(false),
39 n_gravity(0, 0, -1) {}
45 accelerometerCovariance(I_3x3),
46 integrationCovariance(I_3x3),
47 use2ndOrderCoriolis(false),
48 n_gravity(n_gravity_) {}
51 static std::shared_ptr<PreintegrationParams>
MakeSharedD(
double g = 9.81) {
56 static std::shared_ptr<PreintegrationParams>
MakeSharedU(
double g = 9.81) {
60 void print(
const std::string&
s=
"")
const override;
74 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION 76 friend class boost::serialization::access;
77 template<
class ARCHIVE>
78 void serialize(ARCHIVE & ar,
const unsigned int ) {
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);
88 #ifdef GTSAM_USE_QUATERNIONS void print(const Matrix &A, const string &s, ostream &stream)
const Matrix3 & getAccelerometerCovariance() const
void setUse2ndOrderCoriolis(bool flag)
void setAccelerometerCovariance(const Matrix3 &cov)
Matrix3 integrationCovariance
continuous-time "Covariance" describing integration uncertainty
std::string serialize(const T &input)
serializes to a string
void setIntegrationCovariance(const Matrix3 &cov)
bool getUse2ndOrderCoriolis() const
void g(const string &key, int i)
const Matrix3 & getIntegrationCovariance() const
static std::shared_ptr< PreintegrationParams > MakeSharedD(double g=9.81)
Vector3 n_gravity
Gravity vector in nav frame.
bool use2ndOrderCoriolis
Whether to use second order Coriolis integration.
Matrix3 accelerometerCovariance
const Vector3 & getGravity() const
PreintegrationParams(const Vector3 &n_gravity_)
#define GTSAM_MAKE_ALIGNED_OPERATOR_NEW
static std::shared_ptr< PreintegrationParams > MakeSharedU(double g=9.81)
PreintegrationParams()
Default constructor for serialization only.