added measured function
parent
190e87afb9
commit
23986349de
|
|
@ -46,6 +46,11 @@ namespace gtsam {
|
|||
Rot2 hx = bearing(pose, point, H1, H2);
|
||||
return logmap(between(z_, hx));
|
||||
}
|
||||
|
||||
/** return the measured */
|
||||
inline const Rot2 measured() const {
|
||||
return z_;
|
||||
}
|
||||
}; // BearingFactor
|
||||
|
||||
/**
|
||||
|
|
@ -75,6 +80,11 @@ namespace gtsam {
|
|||
double hx = gtsam::range(pose, point, H1, H2);
|
||||
return Vector_(1, hx - z_);
|
||||
}
|
||||
|
||||
/** return the measured */
|
||||
inline const double measured() const {
|
||||
return z_;
|
||||
}
|
||||
}; // RangeFactor
|
||||
|
||||
// Use planarSLAM namespace for specific SLAM instance
|
||||
|
|
|
|||
Loading…
Reference in New Issue