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