Skip to content

Commit 2ff7bc5

Browse files
authored
Merge pull request #1352 from JuliaRobotics/21Q3/refac/mvapproxconvcirc
comments for future work
2 parents 974e4a7 + 14ecb16 commit 2ff7bc5

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/SolverUtilities.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ Notes
135135
- Often used to quickly generate temporary graphs for a variety of local calculations.
136136
- does not yet support split `_` characters in auto-find `lastVar` from `varPattern`.
137137
- Will always add a factor, but will skip adding variable labels that already exist in `dfg`.
138+
139+
DevNotes
140+
- TODO allow pts to be full MKD beliefs, part of replacing old `approxConvCircular`, see #1351
138141
"""
139142
function _buildGraphByFactorAndTypes!(fct::AbstractFactor,
140143
varTypes::Tuple,
@@ -158,6 +161,7 @@ function _buildGraphByFactorAndTypes!(fct::AbstractFactor,
158161
# add the necessary variables
159162
exists(dfg, vars[s_]) ? nothing : addVariable!(dfg, vars[s_], vTyp)
160163
# set the numerical values if available
164+
# TODO allow pts to come in as full MKD beliefs, not just one point
161165
((0 < length(pts)) && (pts[s_] isa Nothing)) ? nothing : initManual!(dfg, vars[s_], [pts[s_],], solveKey, bw=ones(getDimension(vTyp)))
162166
end
163167
# if newFactor then add the factor on vars, else assume only one existing factor between vars

src/services/ApproxConv.jl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,16 @@ end
239239
# group partial dimension factors by selected dimensions -- i.e. [(1,)], [(1,2),(1,2)], [(2,);(2;)]
240240

241241

242-
242+
# WIP, see `_buildGraphByFactorAndTypes!` where pts are full MKD Beliefs, following #1351
243+
# Legacy use in RoMEPlotting: plotFactor
244+
# function approxConvBelief(fct::AbstractFactorRelative,
245+
# varTypes::Union{<:Tuple,<:AbstractVector{<:InstanceType{T}}},
246+
# mkds::Union{<:Tuple,<:AbstractVector{<:InstanceType{T}}};
247+
# tfg::AbstractDFG=_buildGraphByFactorAndTypes!(fct,)
248+
# ) where {T <: InferenceVariable}
249+
# #
250+
251+
# end
243252

244253

245254

0 commit comments

Comments
 (0)