Skip to content

Commit

Permalink
Merge pull request #137 from JuliaRobotics/maintenance/oct18
Browse files Browse the repository at this point in the history
improve test tolerance
  • Loading branch information
dehann committed Oct 25, 2018
2 parents 49cdff0 + 142e9ce commit 5ec881e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions test/testDynPose2D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ using Test

@testset "test DynPose2 and velocity..." begin

global N = 75
global N = 100
global fg = initfg()

# add first pose locations
Expand Down Expand Up @@ -88,7 +88,7 @@ end

@testset "test many DynPose2 chain stationary and 'pulled'..." begin

global N = 75
global N = 100
global fg = initfg()

# add first pose locations
Expand Down Expand Up @@ -211,7 +211,7 @@ end

@testset "test many DynPose2 sideways velocity..." begin

global N = 75
global N = 100
global fg = initfg()

# add first pose locations
Expand Down
8 changes: 4 additions & 4 deletions test/testpartialpose3.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,18 @@ end
global xi = zeros(6,1)
global xja = zeros(6,1)
xyy(res, nothing, idx, meas, xi, xja)
@test abs(res[1]-mu2[1]) < 0.2
@test abs(res[2]-mu2[2]) < 0.2
@test abs(res[1]-mu2[1]) < 0.3
@test abs(res[2]-mu2[2]) < 0.3
@test abs(res[3]-mu2[3]) < 0.2

global xjb = zeros(6,1)
xjb[collect(xyy.partial),1] = mu2
global res = zeros(3)
xyy(res, nothing, idx, meas, xi, xjb)
@test 0.0 < norm(res) < 0.2
@test 0.0 < norm(res) < 0.3

global meas = getSample(xyy,100)
@test norm(Statistics.std(meas[1],dims=2) - [0.01;0.01;0.002]) < 0.005
@test norm(Statistics.std(meas[1],dims=2) - [0.01;0.01;0.002]) < 0.01
end


Expand Down

0 comments on commit 5ec881e

Please sign in to comment.