Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mv partial pose test to partial pose file #684

Merged
merged 1 commit into from
Jul 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions test/testPartialPose3.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,24 @@ using Rotations

##


@testset "Test (partial) priors on Pose3" begin
## there was a problem with partials and staticarrays where asigning PriorPoint3 to Pose3 stopped working, here is an explicit test

fg = initfg()
getSolverParams(fg).graphinit = false

addVariable!(fg, :x0, Pose3)

mv3 = MvNormal(SA[0.0; 0.0; 0.0], SMatrix{3,3}(1,0,0,0,1,0,0,0,1.))
f = addFactor!(fg, [:x0;], PriorPoint3(mv3))

approxConvBelief(fg, getLabel(f), :x0)

##
end


@testset "Testing basic PriorPose3ZRP" begin
##

Expand Down
15 changes: 0 additions & 15 deletions test/testPose3.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,6 @@ C_ = homography_to_coordinates(M, H)
##
end

@testset "Test (partial) priors on Pose3" begin
## there was a problem with partials and staticarrays where asigning PriorPoint3 to Pose3 stopped working, here is an explicit test

fg = initfg()
getSolverParams(fg).graphinit = false

addVariable!(fg, :x0, Pose3)

mv3 = MvNormal(SA[0.0; 0.0; 0.0], SMatrix{3,3}(1,0,0,0,1,0,0,0,1.))
f = addFactor!(fg, [:x0;], PriorPoint3(mv3))

approxConvBelief(fg, getLabel(f), :x0)

##
end

##
@testset "Test Basic Pose3 :parametric and :default" begin
Expand Down