Added missing const that was causing method hiding

release/4.3a0
Richard Roberts 2012-02-21 22:18:36 +00:00
parent 8638683951
commit 2213391b4c
1 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ struct PointPrior3D: public NoiseModelFactor1<Point3> {
* @return Vector error between prior value and x (Dimension: 3)
*/
Vector evaluateError(const Point3& x, boost::optional<Matrix&> H =
boost::none) {
boost::none) const {
return (prior(x, H) - measured_).vector();
}
};
@ -118,7 +118,7 @@ struct Simulated3DMeasurement: public NoiseModelFactor2<Point3, Point3> {
* @return vector error between measurement and prediction (Dimension: 3)
*/
Vector evaluateError(const Point3& x1, const Point3& x2,
boost::optional<Matrix&> H1 = boost::none, boost::optional<Matrix&> H2 = boost::none) {
boost::optional<Matrix&> H1 = boost::none, boost::optional<Matrix&> H2 = boost::none) const {
return (mea(x1, x2, H1, H2) - measured_).vector();
}
};