From 3208395b843380671a7b987300b0d061cdb705d1 Mon Sep 17 00:00:00 2001 From: dellaert Date: Fri, 26 Dec 2014 20:56:34 +0100 Subject: [PATCH] Fixed issue with retract/between --- matlab.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab.h b/matlab.h index c4891a615..349cdeea4 100644 --- a/matlab.h +++ b/matlab.h @@ -143,7 +143,7 @@ void perturbPoint2(Values& values, double sigma, int32_t seed = 42u) { sigma); Sampler sampler(model, seed); BOOST_FOREACH(const Values::ConstFiltered::KeyValuePair& key_value, values.filter()) { - values.update(key_value.key, key_value.value.retract(sampler.sample())); + values.update(key_value.key, key_value.value + Point2(sampler.sample())); } } @@ -164,7 +164,7 @@ void perturbPoint3(Values& values, double sigma, int32_t seed = 42u) { sigma); Sampler sampler(model, seed); BOOST_FOREACH(const Values::ConstFiltered::KeyValuePair& key_value, values.filter()) { - values.update(key_value.key, key_value.value.retract(sampler.sample())); + values.update(key_value.key, key_value.value + Point3(sampler.sample())); } }