Skip to content

Commit

Permalink
updated homography tests to fix test bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Affie committed Dec 12, 2018
1 parent d34e6ad commit e8416d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/homography.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e8416d3

Please sign in to comment.