Skip to content

Commit

Permalink
add test and NEWS.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dehann committed Sep 26, 2022
1 parent b6ca5c5 commit 700e20b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ RoME.jl follows semver, with only a few case specific exceptions. Please see re

- Add `SnoopPrecompile` and Julia v1.8 min compat.
- Remove `FactorMetadata` and `ConvPerThread` usage as per IIF v0.31.
- Move code and files to subfolders `services`, `entities`, and `legacy`.
- Added new features `homograph_to_coordinates` and `coordinates_to_homography`.

## v0.20

Expand Down
2 changes: 1 addition & 1 deletion src/RoME.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ using SnoopPrecompile

# to avoid name conflicts
import Manifolds
using Manifolds: hat, ProductGroup, ProductManifold, SpecialEuclidean, ProductRepr, SpecialOrthogonal, TranslationGroup, identity_element, submanifold_component
using Manifolds: hat, ProductGroup, ProductManifold, SpecialEuclidean, ProductRepr, SpecialOrthogonal, TranslationGroup, identity_element, submanifold_component, Identity, affine_matrix

import Manifolds: project, project!

Expand Down
20 changes: 20 additions & 0 deletions test/testPose3.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
using RoME
using Manifolds
using Test

##
@testset "test SE(3) coordinates to homography and back" begin
##

M = getManifold(Pose3)

@test M == Manifolds.SpecialEuclidean(3)

C = randn(6)
H = coordinates_to_homography(M, C)
C_ = homography_to_coordinates(M, H)

@test isapprox(C, C_)

##
end


##
@testset "Test Basic Pose3 :parametric and :default" begin
fg = initfg()
Expand Down

0 comments on commit 700e20b

Please sign in to comment.