22
22
struct TestFunctorInferenceType1 <: FunctorInferenceType end
23
23
struct TestFunctorInferenceType2 <: FunctorInferenceType end
24
24
25
- struct TestFunctorSingleton <: FunctorSingleton end
26
- struct TestFunctorPairwise <: FunctorPairwise end
27
- struct TestFunctorPairwiseMinimize <: FunctorPairwiseMinimize end
25
+ struct TestAbstractPrior <: AbstractPrior end
26
+ struct TestAbstractRelativeFactor <: AbstractRelativeFactor end
27
+ struct TestAbstractRelativeFactorMinimize <: AbstractRelativeFactorMinimize end
28
28
29
29
struct PackedTestFunctorInferenceType1 <: PackedInferenceType
30
30
s:: String
@@ -41,19 +41,19 @@ function Base.convert(::Type{TestFunctorInferenceType1}, d::PackedTestFunctorInf
41
41
TestFunctorInferenceType1 ()
42
42
end
43
43
44
- struct PackedTestFunctorSingleton <: PackedInferenceType
44
+ struct PackedTestAbstractPrior <: PackedInferenceType
45
45
s:: String
46
46
end
47
- PackedTestFunctorSingleton () = PackedTestFunctorSingleton (" " )
47
+ PackedTestAbstractPrior () = PackedTestAbstractPrior (" " )
48
48
49
- function Base. convert (:: Type{PackedTestFunctorSingleton } , d:: TestFunctorSingleton )
50
- # @info "convert(::Type{PackedTestFunctorSingleton }, d::TestFunctorSingleton )"
51
- PackedTestFunctorSingleton ()
49
+ function Base. convert (:: Type{PackedTestAbstractPrior } , d:: TestAbstractPrior )
50
+ # @info "convert(::Type{PackedTestAbstractPrior }, d::TestAbstractPrior )"
51
+ PackedTestAbstractPrior ()
52
52
end
53
53
54
- function Base. convert (:: Type{TestFunctorSingleton } , d:: PackedTestFunctorSingleton )
55
- # @info "onvert(::Type{TestFunctorSingleton }, d::PackedTestFunctorSingleton )"
56
- TestFunctorSingleton ()
54
+ function Base. convert (:: Type{TestAbstractPrior } , d:: PackedTestAbstractPrior )
55
+ # @info "onvert(::Type{TestAbstractPrior }, d::PackedTestAbstractPrior )"
56
+ TestAbstractPrior ()
57
57
end
58
58
59
59
struct TestCCW{T} <: FactorOperationalMemory where {T<: FunctorInferenceType }
@@ -315,7 +315,7 @@ function DFGFactorSCA()
315
315
f1_tags = Set ([:FACTOR ])
316
316
testTimestamp = now ()
317
317
318
- gfnd_prior = GenericFunctionNodeData (false , false , Int[], TestCCW (TestFunctorSingleton ()))
318
+ gfnd_prior = GenericFunctionNodeData (false , false , Int[], TestCCW (TestAbstractPrior ()))
319
319
320
320
gfnd = GenericFunctionNodeData (false , false , Int[], TestCCW (TestFunctorInferenceType1 ()))
321
321
513
513
514
514
# simple broadcast test
515
515
if f0 isa DFGFactor
516
- @test issetequal (getFactorType .(fg, lsf (fg)), [TestFunctorInferenceType1 (), TestFunctorSingleton ()])
516
+ @test issetequal (getFactorType .(fg, lsf (fg)), [TestFunctorInferenceType1 (), TestAbstractPrior ()])
517
517
end
518
518
@test getVariable .(fg, [:a ]) == [getVariable (fg, :a )]
519
519
end
@@ -836,15 +836,15 @@ function testGroup!(fg, v1, v2, f0, f1)
836
836
@test isPrior (fg, :af1 ) # if f1 is prior
837
837
@test lsfPriors (fg) == [:af1 ]
838
838
839
- @test issetequal ([:TestFunctorInferenceType1 , :TestFunctorSingleton ], lsfTypes (fg))
839
+ @test issetequal ([:TestFunctorInferenceType1 , :TestAbstractPrior ], lsfTypes (fg))
840
840
841
841
facTypesDict = lsfTypesDict (fg)
842
842
@test issetequal (collect (keys (facTypesDict)), lsfTypes (fg))
843
843
@test issetequal (facTypesDict[:TestFunctorInferenceType1 ], [:abf1 ])
844
- @test issetequal (facTypesDict[:TestFunctorSingleton ], [:af1 ])
844
+ @test issetequal (facTypesDict[:TestAbstractPrior ], [:af1 ])
845
845
846
846
@test ls (fg, TestFunctorInferenceType1) == [:abf1 ]
847
- @test lsf (fg, TestFunctorSingleton ) == [:af1 ]
847
+ @test lsf (fg, TestAbstractPrior ) == [:af1 ]
848
848
@test lsfWho (fg, :TestFunctorInferenceType1 ) == [:abf1 ]
849
849
850
850
@test getSofttype (v1) == TestSofttype1 ()
@@ -899,7 +899,7 @@ function testGroup!(fg, v1, v2, f0, f1)
899
899
@test issetequal (ls (fg, tags= [:POSE , :LANDMARK ]), ls (fg, tags= [:VARIABLE ]))
900
900
901
901
@test lsf (fg, tags= [:NONE ]) == []
902
- @test lsf (fg, tags= [:PRIOR ]) == [:af1 ]
902
+ @test lsf (fg, tags= [:PRIOR ]) == [:af1 ]
903
903
904
904
# Regexes
905
905
@test ls (fg, r" a" ) == [v1. label]
0 commit comments