Skip to content

Commit

Permalink
Merge pull request #162 from JuliaRobotics/factors/polar19Q1
Browse files Browse the repository at this point in the history
Factors/polar19 q1
  • Loading branch information
dehann authored Mar 5, 2019
2 parents b238f02 + b406b82 commit 533ef89
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/RoME.jl
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ export
addPose2Pose2,

# Polar types
Polar,
PolarPolar,
PriorPolar,

Expand Down
2 changes: 1 addition & 1 deletion src/factors/Polar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function getSample(pp2i::PriorPolar, N::Int=1)
end


mutable struct PolarPolar{T1<:IIF.SamplableBelief, T2<:IIF.SamplableBelief} <: IIF.FunctorSingleton
mutable struct PolarPolar{T1<:IIF.SamplableBelief, T2<:IIF.SamplableBelief} <: IIF.FunctorPairwise
Zrange::T1
Zangle::T2
PolarPolar{T1,T2}() where {T1,T2} = new{T1,T2}()
Expand Down
8 changes: 4 additions & 4 deletions test/testPoint2Point2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ inferOverTree!(fg, tree, N=N)
@test sum( 90 .< getVal(fg, :l1)[2,:] .< 110 ) > 32

global voidsel1 = 10.0 .< getVal(fg, :l1)[1,:]
@test sum( getVal(fg, :l1)[2,voidsel1] .< 80 ) < 15
@test sum( getVal(fg, :l1)[2,voidsel1] .< 80 ) < 25

global voidsel2 = 10.0 .< getVal(fg, :l1)[2,:]
@test sum( getVal(fg, :l1)[1,voidsel2] .< 80 ) < 15
@test sum( getVal(fg, :l1)[1,voidsel2] .< 80 ) < 25

@test sum( 120 .< abs.(getVal(fg, :l1)[1,:]) ) < 15
@test sum( 120 .< abs.(getVal(fg, :l1)[2,:]) ) < 15
@test sum( 120 .< abs.(getVal(fg, :l1)[1,:]) ) < 25
@test sum( 120 .< abs.(getVal(fg, :l1)[2,:]) ) < 25


end
Expand Down

0 comments on commit 533ef89

Please sign in to comment.