Skip to content

Commit 724b5bf

Browse files
committed
Point type parameter in DFGVariable
1 parent 971b70f commit 724b5bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/entities/DFGVariable.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ Complete variable structure for a DistributedFactorGraph variable.
209209
Fields:
210210
$(TYPEDFIELDS)
211211
"""
212-
Base.@kwdef struct DFGVariable{T<:InferenceVariable} <: AbstractDFGVariable
212+
Base.@kwdef struct DFGVariable{T<:InferenceVariable, P} <: AbstractDFGVariable
213213
"""The ID for the variable"""
214214
id::Union{UUID, Nothing}
215215
"""Variable label, e.g. :x1.
@@ -228,7 +228,7 @@ Base.@kwdef struct DFGVariable{T<:InferenceVariable} <: AbstractDFGVariable
228228
ppeDict::Dict{Symbol, <: AbstractPointParametricEst}
229229
"""Dictionary of solver data. May be a subset of all solutions if a solver key was specified in the get call.
230230
Accessors: [`addVariableSolverData!`](@ref), [`updateVariableSolverData!`](@ref), and [`deleteVariableSolverData!`](@ref)"""
231-
solverDataDict::Dict{Symbol, <: VariableNodeData{T}}
231+
solverDataDict::Dict{Symbol, VariableNodeData{T,P}}
232232
"""Dictionary of small data associated with this variable.
233233
Accessors: [`getSmallData`](@ref), [`setSmallData!`](@ref)"""
234234
smallData::Dict{Symbol, SmallDataTypes}
@@ -258,7 +258,7 @@ function DFGVariable(label::Symbol, variableType::Type{T};
258258
dataDict::Dict{Symbol, BlobEntry}=Dict{Symbol,BlobEntry}(),
259259
solvable::Int=1) where {T <: InferenceVariable, P}
260260
#
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))
262262
end
263263

264264
DFGVariable(label::Symbol,

0 commit comments

Comments
 (0)