Skip to content

Commit

Permalink
fix hms test, #1713
Browse files Browse the repository at this point in the history
  • Loading branch information
dehann committed Sep 5, 2023
1 parent 9e320bc commit e6530d7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/services/FactorGraph.jl
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ function setValKDE!(
end

function setBelief!(vari::DFGVariable, bel::ManifoldKernelDensity, setinit::Bool=true,ipc::AbstractVector{<:Real}=[0.0;])
setValKDE!(vari,getPoints(bel),setinit, ipc)
setValKDE!(vari,getPoints(bel, false),setinit, ipc)
end

"""
Expand Down
21 changes: 11 additions & 10 deletions test/testSpecialEuclidean2Mani.jl
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ end

@testset "test propagateBelief w HeatmapSampler and init for PartialPriorPassThrough w Priors" begin
##
@test_broken begin

fg = initfg()

v0 = addVariable!(fg, :x0, SpecialEuclidean2)
Expand Down Expand Up @@ -390,8 +390,8 @@ doautoinit!(fg, :x0)
@test length(getPoints(getBelief(fg, :x0))) == getSolverParams(fg).N # 120
# @info "PassThrough transfers the full point count to the graph, unless a product is calculated during the propagateBelief step."



##
# @test_broken begin
## check the partials magic

dens, ipc = propagateBelief(fg,:x0,:)
Expand Down Expand Up @@ -438,13 +438,13 @@ solveGraph!(fg);
## check saveDFG (check consistency of packing converters above)


saveDFG("/tmp/passthru", fg)
fg_ = loadDFG("/tmp/passthru.tar.gz")
Base.rm("/tmp/passthru.tar.gz")
saveDFG(joinpath(tempdir(),"passthru"), fg)
fg_ = loadDFG(joinpath(tempdir(),"passthru.tar.gz"))
Base.rm(joinpath(tempdir(),"passthru.tar.gz"))

@error "#FIXME test propagateBelief w HeatmapSampler ... broken on ci but not local"
return true
end
# @error "#FIXME test propagateBelief w HeatmapSampler ... broken on ci but not local"
# return true
# end

##
end
Expand Down Expand Up @@ -531,8 +531,8 @@ end


@testset "Test SpecialEuclidean(2) to TranslationGroup(2) multihypo" begin

##

fg = initfg()
# fg.solverParams.attemptGradients=false

Expand Down Expand Up @@ -603,6 +603,7 @@ end

@testset "Test SpecialEuclidean(2) to SpecialEuclidean(2) multihypo" begin
##

fg = initfg()
# fg.solverParams.attemptGradients=false

Expand Down

0 comments on commit e6530d7

Please sign in to comment.