Skip to content

Commit cc8f67f

Browse files
authored
Merge pull request #931 from JuliaRobotics/master
release v0.18.10-rc1
2 parents 785231d + af06f83 commit cc8f67f

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
version:
2121
- '1.6'
2222
- '1.8'
23+
- '~1.9.0-0'
2324
- 'nightly'
2425
os:
2526
- ubuntu-latest
@@ -81,7 +82,6 @@ jobs:
8182
fail-fast: false
8283
matrix:
8384
version:
84-
- '1.6'
8585
- '1.8'
8686
os:
8787
- ubuntu-latest

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "DistributedFactorGraphs"
22
uuid = "b5cc3c7e-6572-11e9-2517-99fb8daf2f04"
3-
version = "0.18.9"
3+
version = "0.18.10"
44

55
[deps]
66
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"

src/entities/DFGFactor.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ abstract type AbstractPackedFactor end
88

99
abstract type AbstractPrior <: AbstractFactor end
1010
abstract type AbstractRelative <: AbstractFactor end
11-
abstract type AbstractRelativeRoots <: AbstractRelative end
11+
abstract type AbstractRelativeRoots <: AbstractRelative end # NOTE Cannot be used for partials
1212
abstract type AbstractRelativeMinimize <: AbstractRelative end
1313
abstract type AbstractManifoldMinimize <: AbstractRelative end # FIXME move here from IIF
1414

src/services/CompareUtils.jl

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,9 @@ end
234234
$SIGNATURES
235235
236236
Compare that all fields are the same in a `::FactorGraph` factor.
237+
238+
DevNotes
239+
- TODO `getSolverData(A).fnc.varValsAll / varidx` are only defined downstream, so should should this function not be in IIF?
237240
"""
238241
function compareFactor(A::DFGFactor,
239242
B::DFGFactor;
@@ -250,17 +253,18 @@ function compareFactor(A::DFGFactor,
250253
if !TP || :fnc in skip
251254
return TP
252255
end
253-
TP = TP & compareAllSpecial(getSolverData(A).fnc, getSolverData(B).fnc, skip=union([:cpt;:measurement;:params;:varidx;:threadmodel;:_gradients], skip), show=show)
256+
TP = TP & compareAllSpecial(getSolverData(A).fnc, getSolverData(B).fnc, skip=union([:cpt;:measurement;:params;:varValsAll;:varidx;:threadmodel;:_gradients], skip), show=show)
254257
@debug "compareFactor 3/5" TP
255258
if !(:measurement in skip)
256259
TP = TP & (skipsamples || compareAll(getSolverData(A).fnc.measurement, getSolverData(B).fnc.measurement, show=show, skip=skip))
257260
end
258261
@debug "compareFactor 4/5" TP
259-
if !(:params in skip)
260-
TP = TP & (skipcompute || compareAll(getSolverData(A).fnc.params, getSolverData(B).fnc.params, show=show, skip=skip))
262+
if !(:varValsAll in skip) && hasfield(typeof(getSolverData(A).fnc), :varValsAll)
263+
TP = TP & (skipcompute || compareAll(getSolverData(A).fnc.varValsAll, getSolverData(B).fnc.varValsAll, show=show, skip=skip))
261264
end
262-
if !(:varidx in skip)
263-
TP = TP & (skipcompute || compareAll(getSolverData(A).fnc.varidx, getSolverData(B).fnc.varidx, show=show, skip=skip))
265+
@debug "compareFactor 5/5" TP
266+
if !(:varidx in skip) && hasfield(typeof(getSolverData(A).fnc), :varidx) && getSolverData(A).fnc.varidx isa Base.RefValue
267+
TP = TP & (skipcompute || compareAll(getSolverData(A).fnc.varidx[], getSolverData(B).fnc.varidx[], show=show, skip=skip))
264268
end
265269

266270
return TP

src/services/DFGVariable.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ function getDimension end
127127
getDimension(::Type{T}) where {T <: InferenceVariable} = manifold_dimension(getManifold(T))
128128
getDimension(::T) where {T <: InferenceVariable} = manifold_dimension(getManifold(T))
129129
getDimension(M::ManifoldsBase.AbstractManifold) = manifold_dimension(M)
130+
getDimension(p::Distributions.Distribution) = length(p)
130131
getDimension(var::DFGVariable) = getDimension(getVariableType(var))
131132

132-
133133
"""
134134
$SIGNATURES
135135
Interface function to return the manifold point type of an InferenceVariable, extend this function for all Types<:InferenceVariable.

0 commit comments

Comments
 (0)