Skip to content

Commit 311fa2a

Browse files
authored
Merge pull request #1023 from JuliaRobotics/23Q3/enh/getvars
getVariables from labels
2 parents 4edbe89 + 35181de commit 311fa2a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/services/AbstractDFG.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,10 @@ function getVariables(dfg::G, regexFilter::Union{Nothing, Regex}=nothing; tags::
308308
error("getVariables not implemented for $(typeof(dfg))")
309309
end
310310

311+
function getVariables(dfg::AbstractDFG, labels::Vector{Symbol})
312+
return map(label->getVariable(dfg, label), labels)
313+
end
314+
311315
"""
312316
$(SIGNATURES)
313317
List the DFGFactors in the DFG.

0 commit comments

Comments
 (0)