Skip to content

Commit a1b0fdb

Browse files
authored
Merge pull request #1866 from JuliaRobotics/25Q2/test/derelbackward
also test DERelative backward problem
2 parents 609ae05 + 0e25759 commit a1b0fdb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

IncrementalInference/test/testDERelative.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ x2_val_ref = sl(getVariable(fg, :x2) |> getTimestamp |> DateTime |> datetime2uni
8686
x3_val_ref = sl(getVariable(fg, :x3) |> getTimestamp |> DateTime |> datetime2unix)
8787

8888

89+
# sanity check that the backward problem runs through
90+
oder_.backwardProblem.u0 .= [0.049788]
91+
retcode = DifferentialEquations.solve(oder_.backwardProblem)
92+
93+
@test isapprox(1, retcode.u[end][1]; atol=1e-4)
94+
95+
8996
## one layer wrapped API test through IIFExt to DiffEq
9097

9198
f = getFactor(fg, intersect(ls(fg,:x0),ls(fg,:x1))[1] )

0 commit comments

Comments
 (0)