Skip to content

Commit c1aa69e

Browse files
authored
Merge pull request #347 from JuliaRobotics/hotfix/1Q20/dfgnodeparamswhat
better inner constructor
2 parents 581e3ae + b2dbbac commit c1aa69e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/entities/AbstractDFG.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ The common node parameters for variables and factors.
2727
mutable struct DFGNodeParams
2828
solvable::Int
2929
_internalId::Int64
30+
DFGNodeParams(s1=0,s2=0) = new(s1,s2)
3031
end
31-
DFGNodeParams() = DFGNodeParams(0, 0)
3232

3333
"""
3434
$(TYPEDEF)

src/services/CommonAccessors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ getSolvable(var::Union{DFGVariable, DFGFactor})::Int = var._dfgNodeParams.solvab
106106
107107
Get 'solvable' parameter for either a variable or factor.
108108
"""
109-
function getSolvable(dfg::AbstractDFG, sym::Symbol)
109+
function getSolvable(dfg::AbstractDFG, sym::Symbol)::Int
110110
if isVariable(dfg, sym)
111111
return getVariable(dfg, sym)._dfgNodeParams.solvable
112112
elseif isFactor(dfg, sym)

0 commit comments

Comments
 (0)