From e8416d3e76e75fd806d7b1d6639f868caa3afc74 Mon Sep 17 00:00:00 2001 From: Johannes Terblanche Date: Wed, 12 Dec 2018 10:54:28 +0200 Subject: [PATCH] updated homography tests to fix test bug --- test/homography.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/homography.jl b/test/homography.jl index 4ed75ff..044f57f 100644 --- a/test/homography.jl +++ b/test/homography.jl @@ -103,8 +103,8 @@ PixPos(pix::UInt8, pos::Array{Float64,1}) = PixPos(pix, (x=pos[1], y=pos[2], z=p pose = homographytopose(tags[1].H, fx, fy, cx, cy, taglength = 160.) display(pose) - @test pose[1:3,1:3] ≈ cTw[1:3,1:3] atol = 0.05 - @test pose[1:3,4] ≈ cTw[1:3,4] atol = 10. + @test all(isapprox.(pose[1:3,1:3], cTw[1:3,1:3], atol = 0.05)) + @test all(isapprox.(pose[1:3,4], cTw[1:3,4], atol = 10.)) end end