@@ -209,7 +209,7 @@ Complete variable structure for a DistributedFactorGraph variable.
209
209
Fields:
210
210
$(TYPEDFIELDS)
211
211
"""
212
- Base. @kwdef struct DFGVariable{T<: InferenceVariable } <: AbstractDFGVariable
212
+ Base. @kwdef struct DFGVariable{T<: InferenceVariable , P } <: AbstractDFGVariable
213
213
""" The ID for the variable"""
214
214
id:: Union{UUID, Nothing}
215
215
""" Variable label, e.g. :x1.
@@ -228,7 +228,7 @@ Base.@kwdef struct DFGVariable{T<:InferenceVariable} <: AbstractDFGVariable
228
228
ppeDict:: Dict{Symbol, <: AbstractPointParametricEst}
229
229
""" Dictionary of solver data. May be a subset of all solutions if a solver key was specified in the get call.
230
230
Accessors: [`addVariableSolverData!`](@ref), [`updateVariableSolverData!`](@ref), and [`deleteVariableSolverData!`](@ref)"""
231
- solverDataDict:: Dict{Symbol, <: VariableNodeData{T}}
231
+ solverDataDict:: Dict{Symbol, VariableNodeData{T,P }}
232
232
""" Dictionary of small data associated with this variable.
233
233
Accessors: [`getSmallData`](@ref), [`setSmallData!`](@ref)"""
234
234
smallData:: Dict{Symbol, SmallDataTypes}
@@ -258,7 +258,7 @@ function DFGVariable(label::Symbol, variableType::Type{T};
258
258
dataDict:: Dict{Symbol, BlobEntry} = Dict {Symbol,BlobEntry} (),
259
259
solvable:: Int = 1 ) where {T <: InferenceVariable , P}
260
260
#
261
- DFGVariable {T} (id, label, timestamp, nstime, tags, estimateDict, solverDataDict, smallData, dataDict, Ref (solvable))
261
+ DFGVariable {T,P } (id, label, timestamp, nstime, tags, estimateDict, solverDataDict, smallData, dataDict, Ref (solvable))
262
262
end
263
263
264
264
DFGVariable (label:: Symbol ,
0 commit comments