Skip to content

Commit

Permalink
Merge pull request #35 from JuliaRobotics/feature/examplesasproject
Browse files Browse the repository at this point in the history
Feature/examplesasproject
  • Loading branch information
Affie authored Jan 10, 2019
2 parents 125b4e9 + e8416d3 commit f2fc544
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@ Pkg.add("AprilTags")
Please see v0.0.2 for julia 0.6 support.

See [documentation](https://juliarobotics.github.io/AprilTags.jl/latest/), examples, and test folder for usage.

## Examples

To run the examples cd to the project directory and call:

`(v1.0) pkg> activate .`

`(AprilTags Examples) pkg> instantiate`
14 changes: 14 additions & 0 deletions examples/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name = "AprilTags Examples"

[deps]
AprilTags = "f0fec3d5-a81e-5a6a-8c28-d2b34f3659de"
ImageDraw = "4381153b-2b60-58ae-a1ba-fd683676385f"
ImageMagick = "6218d12a-5da1-5696-b52f-db25d2ecc6d1"
Images = "916415d5-f1e6-5110-898d-aaa5f9f070e0"

[compat]
AprilTags = "^0.7"
ImageDraw = "^0.1"
ImageMagick = "^0.7"
Images = "^0.16"
julia = ">=0.7"
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 f2fc544

Please sign in to comment.