From 9f055fc81238bf11fe1a5a9976991b2502177984 Mon Sep 17 00:00:00 2001 From: Duy-Nguyen Ta Date: Mon, 6 Feb 2012 03:33:40 +0000 Subject: [PATCH] bug fix in advanced example. Question: Currently, pose2SLAMOptimizer is in fact useless! Is it needed? Why don't we add more functionalities for it? --- examples/matlab/Pose2SLAMExample_advanced.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/matlab/Pose2SLAMExample_advanced.m b/examples/matlab/Pose2SLAMExample_advanced.m index 7a7e10802..ce29119c6 100644 --- a/examples/matlab/Pose2SLAMExample_advanced.m +++ b/examples/matlab/Pose2SLAMExample_advanced.m @@ -55,19 +55,19 @@ initialEstimate.insertPose(x3, gtsamPose2(4.1, 0.1, 0.1)); initialEstimate.print('initial estimate'); %% set up solver, choose ordering and optimize -params = NonlinearOptimizationParameters_newDrecreaseThresholds(1e-15, 1e-15); +params = gtsamNonlinearOptimizationParameters_newDecreaseThresholds(1e-15, 1e-15); ord = graph.orderingCOLAMD(initialEstimate); -result = pose2SLAMOptimizer(graph,initialEstimate,ord,params); - -result.print('final result'); +%result = pose2SLAMOptimizer(graph,initialEstimate,ord,params); +%result.print('final result'); + % % % % disp('\\\'); % % % % %% Optimize using Levenberg-Marquardt optimization with an ordering from colamd -% % result = graph.optimize(initialEstimate); -% % result.print('final result'); +result = graph.optimize(initialEstimate); +result.print('final result'); %% Get the corresponding dense matrix ord = graph.orderingCOLAMD(result);