Added default noise model argument in two crucial factors.
parent
5a0ef2caac
commit
1365a04b09
|
@ -56,7 +56,7 @@ namespace gtsam {
|
|||
|
||||
/** Constructor */
|
||||
BetweenFactor(Key key1, Key key2, const VALUE& measured,
|
||||
const SharedNoiseModel& model) :
|
||||
const SharedNoiseModel& model = nullptr) :
|
||||
Base(model, key1, key2), measured_(measured) {
|
||||
}
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ namespace gtsam {
|
|||
virtual ~PriorFactor() {}
|
||||
|
||||
/** Constructor */
|
||||
PriorFactor(Key key, const VALUE& prior, const SharedNoiseModel& model) :
|
||||
PriorFactor(Key key, const VALUE& prior, const SharedNoiseModel& model = nullptr) :
|
||||
Base(model, key), prior_(prior) {
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue