64 Base(model, key), nT_(gpsIn) {
68 gtsam::NonlinearFactor::shared_ptr
clone()
const override {
69 return boost::static_pointer_cast<gtsam::NonlinearFactor>(
70 gtsam::NonlinearFactor::shared_ptr(
new This(*
this)));
75 DefaultKeyFormatter)
const override;
81 Vector evaluateError(
const Pose3& p,
82 boost::optional<Matrix&> H = boost::none)
const override;
84 inline const Point3 & measurementIn()
const {
93 static std::pair<Pose3, Vector3> EstimateState(
double t1,
const Point3& NED1,
94 double t2,
const Point3& NED2,
double timestamp);
99 friend class boost::serialization::access;
100 template<
class ARCHIVE>
101 void serialize(ARCHIVE & ar,
const unsigned int ) {
103 & boost::serialization::make_nvp(
"NoiseModelFactor1",
104 boost::serialization::base_object<Base>(*
this));
105 ar & BOOST_SERIALIZATION_NVP(nT_);
136 Base(model, key), nT_(gpsIn) {
140 gtsam::NonlinearFactor::shared_ptr
clone()
const override {
141 return boost::static_pointer_cast<gtsam::NonlinearFactor>(
142 gtsam::NonlinearFactor::shared_ptr(
new This(*
this)));
147 DefaultKeyFormatter)
const override;
153 Vector evaluateError(
const NavState& p,
154 boost::optional<Matrix&> H = boost::none)
const override;
156 inline const Point3 & measurementIn()
const {
163 friend class boost::serialization::access;
164 template<
class ARCHIVE>
165 void serialize(ARCHIVE & ar,
const unsigned int ) {
167 & boost::serialization::make_nvp(
"NoiseModelFactor1",
168 boost::serialization::base_object<Base>(*
this));
169 ar & BOOST_SERIALIZATION_NVP(nT_);
Navigation state composing of attitude, position, and velocity.
Non-linear factor base classes.
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
std::string serialize(const T &input)
serializes to a string
Definition: serialization.h:112
void print(const Matrix &A, const string &s, ostream &stream)
print without optional string, must specify cout yourself
Definition: Matrix.cpp:155
Vector3 Point3
As of GTSAM 4, in order to make GTSAM more lean, it is now possible to just typedef Point3 to Vector3...
Definition: Point3.h:35
noiseModel::Base::shared_ptr SharedNoiseModel
Note, deliberately not in noiseModel namespace.
Definition: NoiseModel.h:736
std::uint64_t Key
Integer nonlinear key type.
Definition: types.h:69
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Definition: Key.h:35
Template to create a binary predicate.
Definition: Testable.h:111
This is the base class for all factor types.
Definition: Factor.h:56
Definition: GPSFactor.h:35
GPSFactor This
Typedef to this class.
Definition: GPSFactor.h:49
GPSFactor()
default constructor - only use for serialization
Definition: GPSFactor.h:52
GPSFactor(Key key, const Point3 &gpsIn, const SharedNoiseModel &model)
Constructor from a measurement in a Cartesian frame.
Definition: GPSFactor.h:63
gtsam::NonlinearFactor::shared_ptr clone() const override
Definition: GPSFactor.h:68
boost::shared_ptr< GPSFactor > shared_ptr
shorthand for a smart pointer to a factor
Definition: GPSFactor.h:46
Definition: GPSFactor.h:113
gtsam::NonlinearFactor::shared_ptr clone() const override
Definition: GPSFactor.h:140
GPSFactor2 This
Typedef to this class.
Definition: GPSFactor.h:127
GPSFactor2(Key key, const Point3 &gpsIn, const SharedNoiseModel &model)
Constructor from a measurement in a Cartesian frame.
Definition: GPSFactor.h:135
boost::shared_ptr< GPSFactor2 > shared_ptr
shorthand for a smart pointer to a factor
Definition: GPSFactor.h:124
GPSFactor2()
default constructor - only use for serialization
Definition: GPSFactor.h:130
Navigation state: Pose (rotation, translation) + velocity NOTE(frank): it does not make sense to make...
Definition: NavState.h:34
Nonlinear factor base class.
Definition: NonlinearFactor.h:43
A convenient base class for creating your own NoiseModelFactor with 1 variable.
Definition: NonlinearFactor.h:285