@@ -48,7 +48,7 @@ p = addFactor!(fg, [:x0], mp)
4848doautoinit! (fg, :x0 )
4949
5050# #
51- vnd = getVariableSolverData (fg, :x0 )
51+ vnd = getVariableState (fg, :x0 , :default )
5252@test all (isapprox .(mean (vnd. val), ArrayPartition (SA[0.0 ,0.0 ], SA[1.0 0.0 ; 0.0 1.0 ]), atol= 0.1 ))
5353@test all (is_point .(Ref (M), vnd. val))
5454
@@ -59,7 +59,7 @@ f = addFactor!(fg, [:x0, :x1], mf)
5959
6060doautoinit! (fg, :x1 )
6161
62- vnd = getVariableSolverData (fg, :x1 )
62+ vnd = getVariableState (fg, :x1 , :default )
6363@test all (isapprox (M, mean (M,vnd. val), ArrayPartition (SA[1.0 ,2.0 ], SA[0.7071 - 0.7071 ; 0.7071 0.7071 ]), atol= 0.1 ))
6464@test all (is_point .(Ref (M), vnd. val))
6565
@@ -68,11 +68,11 @@ smtasks = Task[]
6868solveTree! (fg; smtasks, verbose= true ) # , recordcliqs=ls(fg))
6969# hists = fetchCliqHistoryAll!(smtasks);
7070
71- vnd = getVariableSolverData (fg, :x0 )
71+ vnd = getVariableState (fg, :x0 , :default )
7272@test all (isapprox .(mean (vnd. val), ArrayPartition (SA[0.0 ,0.0 ], SA[1.0 0.0 ; 0.0 1.0 ]), atol= 0.1 ))
7373@test all (is_point .(Ref (M), vnd. val))
7474
75- vnd = getVariableSolverData (fg, :x1 )
75+ vnd = getVariableState (fg, :x1 , :default )
7676@test all (isapprox .(mean (vnd. val), ArrayPartition (SA[1.0 ,2.0 ], SA[0.7071 - 0.7071 ; 0.7071 0.7071 ]), atol= 0.1 ))
7777@test all (is_point .(Ref (M), vnd. val))
7878
@@ -194,13 +194,13 @@ addFactor!(fg, [:x6; :l1], mf)
194194smtasks = Task[]
195195solveTree! (fg; smtasks);
196196
197- vnd = getVariableSolverData (fg, :x0 )
197+ vnd = getVariableState (fg, :x0 , :default )
198198@test isapprox (M, mean (M, vnd. val), ArrayPartition ([10.0 ,10.0 ], [- 1.0 0.0 ; 0.0 - 1.0 ]), atol= 0.2 )
199199
200- vnd = getVariableSolverData (fg, :x1 )
200+ vnd = getVariableState (fg, :x1 , :default )
201201@test isapprox (M, mean (M, vnd. val), ArrayPartition ([0.0 ,10.0 ], [- 0.5 0.866 ; - 0.866 - 0.5 ]), atol= 0.4 )
202202
203- vnd = getVariableSolverData (fg, :x6 )
203+ vnd = getVariableState (fg, :x6 , :default )
204204@test isapprox (M, mean (M, vnd. val), ArrayPartition ([10.0 ,10.0 ], [- 1.0 0.0 ; 0.0 - 1.0 ]), atol= 0.5 )
205205
206206# # Special test for manifold based messages
@@ -310,18 +310,18 @@ f = addFactor!(fg, [:x0, :x1], mf)
310310
311311doautoinit! (fg, :x1 )
312312
313- vnd = getVariableSolverData (fg, :x1 )
313+ vnd = getVariableState (fg, :x1 , :default )
314314@test all (isapprox .(mean (vnd. val), [1.0 ,2.0 ], atol= 0.1 ))
315315
316316# #
317317smtasks = Task[]
318318solveTree! (fg; smtasks, verbose= true , recordcliqs= ls (fg))
319319# # hists = fetchCliqHistoryAll!(smtasks);
320320
321- vnd = getVariableSolverData (fg, :x0 )
321+ vnd = getVariableState (fg, :x0 , :default )
322322@test isapprox (mean (getManifold (fg,:x0 ),vnd. val), ArrayPartition ([0.0 ,0.0 ], [1.0 0.0 ; 0.0 1.0 ]), atol= 0.1 )
323323
324- vnd = getVariableSolverData (fg, :x1 )
324+ vnd = getVariableState (fg, :x1 , :default )
325325@test all (isapprox .(mean (vnd. val), [1.0 ,2.0 ], atol= 0.1 ))
326326
327327# #
@@ -551,7 +551,7 @@ f = addFactor!(fg, [:x0, :x1a, :x1b], mf; multihypo=[1,0.5,0.5])
551551
552552solveTree! (fg)
553553
554- vnd = getVariableSolverData (fg, :x0 )
554+ vnd = getVariableState (fg, :x0 , :default )
555555@test isapprox (SpecialEuclidean (2 ; vectors= HybridTangentRepresentation ()), mean (SpecialEuclidean (2 ; vectors= HybridTangentRepresentation ()), vnd. val), ArrayPartition ([0.0 ,0.0 ], [1.0 0 ; 0 1 ]), atol= 0.1 )
556556
557557# FIXME I would expect close to 50% of particles to land on the correct place
@@ -622,7 +622,7 @@ f = addFactor!(fg, [:x0, :x1a, :x1b], mf; multihypo=[1,0.5,0.5])
622622
623623solveTree! (fg)
624624
625- vnd = getVariableSolverData (fg, :x0 )
625+ vnd = getVariableState (fg, :x0 , :default )
626626@test isapprox (SpecialEuclidean (2 ; vectors= HybridTangentRepresentation ()), mean (SpecialEuclidean (2 ; vectors= HybridTangentRepresentation ()), vnd. val), ArrayPartition ([0.0 ,0.0 ], [1.0 0 ; 0 1 ]), atol= 0.1 )
627627
628628# FIXME I would expect close to 50% of particles to land on the correct place
0 commit comments