Skip to content

Commit

Permalink
Merge pull request #1023 from JuliaRobotics/23Q3/enh/getvars
Browse files Browse the repository at this point in the history
getVariables from labels
  • Loading branch information
Affie authored Jul 13, 2023
2 parents 4edbe89 + 35181de commit 311fa2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/services/AbstractDFG.jl
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@ function getVariables(dfg::G, regexFilter::Union{Nothing, Regex}=nothing; tags::
error("getVariables not implemented for $(typeof(dfg))")
end

function getVariables(dfg::AbstractDFG, labels::Vector{Symbol})
return map(label->getVariable(dfg, label), labels)
end

"""
$(SIGNATURES)
List the DFGFactors in the DFG.
Expand Down

0 comments on commit 311fa2a

Please sign in to comment.