Skip to content

Commit c8d265d

Browse files
committed
Update belief topology trait
1 parent 42e452c commit c8d265d

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

IncrementalInference/src/entities/BeliefTypes.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ function TreeBelief(
7878
end
7979

8080
function TreeBelief(vnd::State, solvDim::Real = 0)
81-
TreeBelief(DFG.getDensityKind(vnd), vnd, solvDim)
81+
TreeBelief(DFG.getTopologyKind(vnd), vnd, solvDim)
8282
end
8383

84-
function TreeBelief(::DFG.GaussianDensityKind, vnd::State, solvDim::Real = 0)
84+
function TreeBelief(::DFG.RootsOnlyTopology, vnd::State, solvDim::Real = 0)
8585
return TreeBelief(
8686
DFG.refMeans(vnd),
8787
DFG.refCovariances(vnd)[1],
@@ -92,7 +92,7 @@ function TreeBelief(::DFG.GaussianDensityKind, vnd::State, solvDim::Real = 0)
9292
)
9393
end
9494

95-
function TreeBelief(::DFG.NonparametricDensityKind, vnd::State, solvDim::Real = 0)
95+
function TreeBelief(::DFG.LeavesOnlyTopology, vnd::State, solvDim::Real = 0)
9696
return TreeBelief(
9797
DFG.refPoints(vnd),
9898
DFG.refBandwidth(vnd),

IncrementalInference/src/services/FactorGraph.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -396,11 +396,11 @@ function DefaultNodeDataParametric(
396396
# dims, false, :_null, Symbol[], variableType, true, 0.0, false, dontmargin)
397397
else
398398
ϵ = getPointIdentity(variableType)
399-
belief = DFG.BeliefRepresentation(
400-
DFG.GaussianDensityKind(),
399+
belief = DFG.StoredHomotopyBelief(
400+
DFG.RootsOnlyTopology(),
401401
variableType;
402402
means = [ϵ],
403-
covariances = [zeros(dims, dims)],
403+
shapes = [zeros(dims, dims)],
404404
)
405405
return State(solveKey, variableType; belief)
406406
end
@@ -468,11 +468,11 @@ function setDefaultNodeData!(
468468
(val, bw)
469469
end
470470

471-
belief = DFG.BeliefRepresentation(
472-
DFG.NonparametricDensityKind(),
471+
belief = DFG.StoredHomotopyBelief(
472+
DFG.LeavesOnlyTopology(),
473473
varType;
474474
points = val,
475-
bandwidth = bw,
475+
bandwidths = [bw],
476476
)
477477
# make and set the new solverData
478478
mergeState!(

0 commit comments

Comments
 (0)