Skip to content

Commit 69b85b0

Browse files
committed
It's working!
1 parent b8e76e4 commit 69b85b0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/CloudGraphsDFG/services/CloudGraphsDFG.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ function getFactor(dfg::CloudGraphsDFG, factorId::Int64)::DFGFactor
343343

344344
# Lastly, rebuild the metadata
345345
factor = dfg.rebuildFactorMetadata!(dfg, factor)
346+
# GUARANTEED never to bite us in the ass in the future...
347+
# ... TODO: refactor if changed: https://github.com/JuliaRobotics/IncrementalInference.jl/issues/350
348+
getData(factor).fncargvID = _variableOrderSymbols
346349

347350
# Add to cache
348351
push!(dfg.factorCache, factor.label=>factor)

test/HexagonalCloud.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ cloudFg = CloudGraphsDFG{SolverParams}("localhost", 7474, "neo4j", "test",
1414
IncrementalInference.rebuildFactorMetadata!,
1515
solverParams=SolverParams())
1616
# cloudFg = GraphsDFG{SolverParams}(params=SolverParams())
17+
# cloudFg = GraphsDFG{SolverParams}(params=SolverParams())
1718
clearSession!!(cloudFg)
1819
# cloudFg = initfg()
1920

@@ -58,6 +59,8 @@ toDotFile(localFg, "/tmp/localfg.dot")
5859
# perform inference, and remember first runs are slower owing to Julia's just-in-time compiling
5960
# Can do with graph too!
6061
tree, smt, hist = solveTree!(localFg)
62+
63+
wipeBuildNewTree!(localFg)
6164
tree, smt, hist = solveTree!(localFg, tree) # Recycle
6265
# batchSolve!(localFg, drawpdf=true, show=true)
6366
# Erm, whut? Error = mcmcIterationIDs -- unaccounted variables

0 commit comments

Comments
 (0)