Skip to content

Commit 15d2909

Browse files
committed
update testSphereMani
1 parent 311ca51 commit 15d2909

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Factors/GenericFunctions.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ function getSample(cf::CalcFactor{<:ManifoldFactor}, N::Int=1)
6363
(ret, )
6464
end
6565

66-
function (cf::CalcFactor{<:ManifoldFactor{<:AbstractGroupManifold}})(Xc, p, q)
66+
# function (cf::CalcFactor{<:ManifoldFactor{<:AbstractGroupManifold}})(Xc, p, q)
67+
function (cf::CalcFactor{<:ManifoldFactor})(Xc, p, q)
6768
# function (cf::ManifoldFactor)(X, p, q)
6869
M = cf.factor.M
6970
# M = cf.M

test/testSphereMani.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ using Test
66

77
##
88

9-
@testset "Test Sphere(2) prior" begin
9+
@testset "Test Sphere(2) prior and relative (broken)" begin
1010
##
1111

1212
Base.convert(::Type{<:Tuple}, M::Sphere{2, ℝ}) = (:Euclid, :Euclid)
@@ -26,7 +26,7 @@ fg = initfg()
2626

2727
v0 = addVariable!(fg, :x0, Sphere2)
2828

29-
mp = ManifoldPrior(Sphere(2), SA[1., 0, 0], MvNormal([0.01, 0.01]))
29+
mp = ManifoldPrior(Sphere(2), SA[1., 0, 0], MvNormal([0.01, 0.01]), DefaultOrthonormalBasis(), ExponentialRetraction())
3030
p = addFactor!(fg, [:x0], mp)
3131

3232
doautoinit!(fg, :x0)

0 commit comments

Comments
 (0)