JuliaRobotics / DistributedFactorGraphs.jl

Abstraction layer for spanning factor graphs over various technologies
Apache License 2.0
22 stars 2 forks source link

Consolidate ls and listVariable #612

Open dehann opened 4 years ago

dehann commented 4 years ago

all the list functions should support a common permutation set of arguments with which to filter the results.

ls(dfg::G, node::Union{InferenceVariable, FunctorInferenceType})

# and
listVariables(dfg::G, regexFilter::Union{Nothing, Regex}=nothing; tags::Vector{Symbol}=Symbol[], solvable::Int=0)

List of desired filters

dehann commented 4 years ago

Should a separate filterDFG verb be added, then that function can still be used inside the list functions for user convenience. Dispatch provides plenty of room for flexibility in the list verb API.

Affie commented 2 weeks ago

xref #1085