Skip to content

Commit

Permalink
better IPC on ARel partial, towards #1394,
Browse files Browse the repository at this point in the history
xref #1010
  • Loading branch information
dehann committed Sep 29, 2021
1 parent eaed034 commit 5abf1ca
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/GraphProductOperations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function propagateBelief( dfg::AbstractDFG,
# few more data requirements
varType = getVariableType(destvar)
M = getManifold(varType)
# @info "BUILDING MKD" varType M
# @info "BUILDING MKD" varType M isPartial.(dens)

# take the product
mkd = AMP.manifoldProduct(dens, M, Niter=1, oldPoints=oldpts, N=N)
Expand Down
1 change: 1 addition & 0 deletions src/services/ApproxConv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ function calcProposalBelief(dfg::AbstractDFG,
end


# specifically the PartialPriorPassThrough dispatch
function calcProposalBelief(dfg::AbstractDFG,
fct::DFGFactor{<:CommonConvWrapper{<:PartialPriorPassThrough}},
target::Symbol,
Expand Down
9 changes: 8 additions & 1 deletion src/services/EvalFactor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,16 @@ function evalPotentialSpecific( Xi::AbstractVector{<:DFGVariable},
inflateCycles=inflateCycles, skipSolve=skipSolve,
_slack=_slack )
#
# ## do info per coord
# FIXME do info per coord
# ipc_ = _calcIPCRelative(Xi, ccwl, hyporecipe, sfidx)
ipc = ones(getDimension(Xi[sfidx]))
if isPartial(ccwl)
# FIXME this is a workaround until better _calcIPCRelative can be used
msk_ = setdiff(1:length(ipc), ccwl.usrfnc!.partial)
for _i in msk_
ipc[_i] = 0.0
end
end

# return the found points, and info per coord
return ccwl.params[ccwl.varidx], ipc
Expand Down

0 comments on commit 5abf1ca

Please sign in to comment.