Skip to content

Commit 22553ea

Browse files
committed
udpate Pose2AprilTag4Corners
1 parent 1b7407a commit 22553ea

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/images/Pose2AprilTag4Corners.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ function (pat4c::CalcFactor{<:Pose2AprilTag4Corners})(X,
258258

259259
# @assert X isa ProductRepr "Pose2AprilTag4Corners expects measurement sample X to be a Manifolds tangent vector, not coordinate or point representation. Got X=$X"
260260
M = getManifold(pat4c.factor.Z)
261-
= Manifolds.compose(M, p, exp(M, getPointIdentity(M, p), X)) #for groups
261+
= Manifolds.compose(M, p, exp(M, getPointIdentity(M), X)) #for groups
262262
#TODO allocalte for vee! see Manifolds #412, fix for AD
263263
Xc = zeros(3)
264264
vee!(M, Xc, q, log(M, q, q̂))

test/testPose2AprilTag4Corner.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,16 @@ meas = sampleFactor(IIF._getCCW(atf),2)
7373

7474
@error "restore type checking for AprilTags4Corners Factor"
7575
@test meas isa Vector
76-
@test meas[1] isa ProductRepr # TBD likely to change to new Manifolds.jl type
76+
@test meas[1] isa ArrayPartition # TBD likely to change to new Manifolds.jl type
7777

7878
##
7979

8080

8181
pts = approxConv(fg, DFG.ls(fg,:tag17)[1], :tag17)
8282

8383
@test 1 < length(pts)
84-
@test length(pts[1].parts[1]) == 2
85-
@test size(pts[1].parts[2]) == (2,2)
84+
@test length(submanifold_component(pts[1],1)) == 2
85+
@test size(submanifold_component(pts[1],2)) == (2,2)
8686

8787

8888
## test packing of factor
@@ -136,8 +136,8 @@ uf4_ = getFactorType(fg_, DFG.ls(fg_, :tag17)[1])
136136
pred, meas = approxDeconv(fg, DFG.ls(fg, :tag17)[1])
137137

138138
M = Manifolds.SpecialEuclidean(2)
139-
pred_ = exp.(Ref(M), Ref(identity_element(M)), pred)
140-
meas_ = exp.(Ref(M), Ref(identity_element(M)), meas)
139+
pred_ = exp.(Ref(M), Ref(getPointIdentity(M)), pred)
140+
meas_ = exp.(Ref(M), Ref(getPointIdentity(M)), meas)
141141

142142
@test isapprox( M, mean(M,pred_), mean(M, meas_), atol=0.5)
143143

0 commit comments

Comments
 (0)