Skip to content

Commit 9fdac6b

Browse files
committed
added softtype(v::DFGVariable)
1 parent 1c7d729 commit 9fdac6b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/entities/DFGVariable.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,14 @@ timestamp(v::DFGVariable) = v.timestamp
117117
tags(v::DFGVariable) = v.tags
118118
estimates(v::DFGVariable) = v.estimateDict
119119
estimate(v::DFGVariable, key::Symbol=:default) = haskey(v.estimateDict, key) ? v.estimateDict[key] : nothing
120+
121+
"""
122+
$SIGNATURES
123+
124+
Retrieve the soft type name symbol for a DFGVariable or DFGVariableSummary. ie :Point2, Pose2, etc.
125+
"""
126+
softtype(v::DFGVariable)::Symbol = Symbol(typeof(getSofttype(v)))
127+
120128
"""
121129
$SIGNATURES
122130

0 commit comments

Comments
 (0)