From f75f26fb637f3fbaa3f108f70ab3aa3e09c12757 Mon Sep 17 00:00:00 2001 From: cbeall3 Date: Tue, 22 Jul 2014 22:00:33 -0400 Subject: [PATCH] Fix for Mac --- gtsam_unstable/examples/SmartStereoProjectionFactorExample.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam_unstable/examples/SmartStereoProjectionFactorExample.cpp b/gtsam_unstable/examples/SmartStereoProjectionFactorExample.cpp index 7950bdb23..841092ec9 100644 --- a/gtsam_unstable/examples/SmartStereoProjectionFactorExample.cpp +++ b/gtsam_unstable/examples/SmartStereoProjectionFactorExample.cpp @@ -83,7 +83,7 @@ int main(int argc, char** argv){ pose_file >> m.data()[i]; } if(add_initial_noise){ - m(1,3) += (pose_id % 10)/10; + m(1,3) += (pose_id % 10)/10.0; } initial_estimate.insert(Symbol('x', pose_id), Pose3(m)); }