Skip to content

Commit 213588c

Browse files
authored
Merge pull request #676 from JuliaRobotics/23Q2/test/cleanup
clean up tests, compat
2 parents 2370a84 + b7c9ac3 commit 213588c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

test/testPartialPose3.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ mpts = getPoints(fg, :x1)
4242
mu = mean(M, mpts)
4343
mucrd = getCoordinates(Pose3, mu)
4444

45-
@test isapprox(mucrd[1:3], [0, 5, 10], atol=1.0)
45+
@test isapprox(mucrd[1:3], [0, 5, 10], atol=1.5)
4646
@test isapprox(mucrd[4:6], [0, 0, pi/2], atol=0.3)
4747

4848
##

test/testScalarFields.jl

+6-6
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ end
5959

6060
# 0. init empty FG w/ datastore
6161
fg = initfg()
62+
# ensure specific solve settings
63+
getSolverParams(fg).useMsgLikelihoods = true
64+
getSolverParams(fg).graphinit = false
65+
# getSolverParams(fg).treeinit = true
66+
6267
storeDir = joinLogPath(fg,"data")
6368
mkpath(storeDir)
6469
datastore = FolderStore{Vector{UInt8}}(:default_folder_store, storeDir)
@@ -82,15 +87,10 @@ end
8287
# 2. generate trajectory
8388

8489
μ0 = [-7000;-2000.0;pi/2]
85-
@time generateGraph_Helix2DSlew!(10, posesperturn=30, radius=1500, dfg=fg, μ0=μ0, graphinit=false, postpose_cb=cb) #, slew_x=1/20)
90+
@time generateGraph_Helix2DSlew!(10, posesperturn=30, radius=1500, dfg=fg, μ0=μ0, postpose_cb=cb) # , graphinit=false , slew_x=1/20)
8691
deleteFactor!(fg, :x0f1)
8792

88-
##
8993

90-
# ensure specific solve settings
91-
getSolverParams(fg).useMsgLikelihoods = true
92-
getSolverParams(fg).graphinit = false
93-
getSolverParams(fg).treeinit = true
9494

9595
## optional prior at start
9696

0 commit comments

Comments
 (0)