@@ -50,23 +50,39 @@ function setSolverParams(dfg::G, solverParams::T) where {G <: AbstractDFG, T <:
50
50
end
51
51
52
52
# Get user, robot, and session "small" data.
53
- function getUserData (dfg:: G ):: Dict{Symbol, String} where {G <: AbstractDFG }
54
- error (" getUserData not implemented for $(typeof (dfg)) " )
55
- end
56
- function setUserData (dfg:: G , data:: Dict{Symbol, String} ):: Bool where {G <: AbstractDFG }
57
- error (" setUserData not implemented for $(typeof (dfg)) " )
58
- end
59
- function getRobotData (dfg:: G ):: Dict{Symbol, String} where {G <: AbstractDFG }
60
- error (" getRobotData not implemented for $(typeof (dfg)) " )
61
- end
62
- function setRobotData (dfg:: G , data:: Dict{Symbol, String} ):: Bool where {G <: AbstractDFG }
63
- error (" setRobotData not implemented for $(typeof (dfg)) " )
64
- end
65
- function getSessionData (dfg:: G ):: Dict{Symbol, String} where {G <: AbstractDFG }
66
- error (" getSessionData not implemented for $(typeof (dfg)) " )
67
- end
68
- function setSessionData (dfg:: G , data:: Dict{Symbol, String} ):: Bool where {G <: AbstractDFG }
69
- error (" setSessionData not implemented for $(typeof (dfg)) " )
53
+ # function getUserData(dfg::G)::Dict{Symbol, String} where {G <: AbstractDFG}
54
+ # error("getUserData not implemented for $(typeof(dfg))")
55
+ # end
56
+ # function setUserData(dfg::G, data::Dict{Symbol, String})::Bool where {G <: AbstractDFG}
57
+ # error("setUserData not implemented for $(typeof(dfg))")
58
+ # end
59
+ # function getRobotData(dfg::G)::Dict{Symbol, String} where {G <: AbstractDFG}
60
+ # error("getRobotData not implemented for $(typeof(dfg))")
61
+ # end
62
+ # function setRobotData(dfg::G, data::Dict{Symbol, String})::Bool where {G <: AbstractDFG}
63
+ # error("setRobotData not implemented for $(typeof(dfg))")
64
+ # end
65
+ # function getSessionData(dfg::G)::Dict{Symbol, String} where {G <: AbstractDFG}
66
+ # error("getSessionData not implemented for $(typeof(dfg))")
67
+ # end
68
+ # function setSessionData(dfg::G, data::Dict{Symbol, String})::Bool where {G <: AbstractDFG}
69
+ # error("setSessionData not implemented for $(typeof(dfg))")
70
+ # end
71
+
72
+ getUserData (dfg:: AbstractDFG ):: Dict{Symbol, String} = return dfg. userData
73
+ function setUserData (dfg:: AbstractDFG , data:: Dict{Symbol, String} ):: Bool
74
+ dfg. userData = data
75
+ return true
76
+ end
77
+ getRobotData (dfg:: AbstractDFG ):: Dict{Symbol, String} = return dfg. robotData
78
+ function setRobotData (dfg:: AbstractDFG , data:: Dict{Symbol, String} ):: Bool
79
+ dfg. robotData = data
80
+ return true
81
+ end
82
+ getSessionData (dfg:: AbstractDFG ):: Dict{Symbol, String} = return dfg. sessionData
83
+ function setSessionData (dfg:: AbstractDFG , data:: Dict{Symbol, String} ):: Bool
84
+ dfg. sessionData = data
85
+ return true
70
86
end
71
87
72
88
"""
0 commit comments