Skip to content

Commit d1f8ca2

Browse files
committed
compat DFG v0.15.1, and cleanup
1 parent 5c464be commit d1f8ca2

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ ApproxManifoldProducts = "0.4.11"
4747
BSON = "0.2, 0.3"
4848
Combinatorics = "1.0"
4949
DataStructures = "0.16, 0.17, 0.18"
50-
DistributedFactorGraphs = "0.15"
50+
DistributedFactorGraphs = "0.15.1"
5151
Distributions = "0.24, 0.25"
5252
DocStringExtensions = "0.8"
5353
FileIO = "1"

src/Factors/GenericFunctions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export ManifoldFactor
7171
# For now, `Z` is on the tangent space in coordinates at the point used in the factor.
7272
# For groups just the lie algebra
7373
# As transition it will be easier this way, we can reevaluate
74-
struct ManifoldFactor{M <: AbstractManifold, T <: SamplableBelief} <: AbstractManifoldMinimize#AbstractFactor
74+
struct ManifoldFactor{M <: AbstractManifold, T <: SamplableBelief} <: AbstractManifoldMinimize #AbstractFactor
7575
M::M
7676
Z::T
7777
end

src/NumericalCalculations.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ function _buildCalcFactorLambdaSample(ccwl::CommonConvWrapper,
199199
# slack is used to shift the residual away from the natural "zero" tension position of a factor,
200200
# this is useful when calculating factor gradients at a variety of param locations resulting in "non-zero slack" of the residual.
201201
# see `IIF.calcFactorResidualTemporary`
202+
# NOTE this minus operation assumes _slack is either coordinate or tangent vector element (not a manifold or group element)
202203
() -> cf( (_getindextuple(measurement_, smpid))..., (getindex.(varParams, smpid))... ) .- _slack
203204
end
204205

src/SolverUtilities.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ function _buildGraphByFactorAndTypes!(fct::AbstractFactor,
171171

172172
# TODO generalize beyond binary
173173
len = length(varTypes)
174-
vars = [Symbol(destPrefix, s_) for s_ in (currNumber .+ (1:len))]
174+
vars = Symbol[Symbol(destPrefix, s_) for s_ in (currNumber .+ (1:len))]
175175
for (s_, vTyp) in enumerate(varTypes)
176176
# add the necessary variables
177177
exists(dfg, vars[s_]) ? nothing : addVariable!(dfg, vars[s_], vTyp)

test/testSphereMani.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ using Manifolds
44
using StaticArrays
55
using Test
66

7+
##
8+
79
@testset "Test Sphere(2) prior" begin
10+
##
811

912
Base.convert(::Type{<:Tuple}, M::Sphere{2, ℝ}) = (:Euclid, :Euclid)
1013
Base.convert(::Type{<:Tuple}, ::IIF.InstanceType{Sphere{2, ℝ}}) = (:Euclid, :Euclid)
@@ -39,7 +42,8 @@ f = addFactor!(fg, [:x0, :x1], mf)
3942
##
4043
# Debugging Sphere error
4144
smtasks = Task[]
42-
solveTree!(fg; smtasks, verbose=true, recordcliqs=ls(fg))
45+
solveTree!(fg; smtasks) #, verbose=true, recordcliqs=ls(fg))
4346
# hists = fetchCliqHistoryAll!(smtasks);
4447

48+
##
4549
end

0 commit comments

Comments
 (0)