Skip to content

Quirky addVariable snag on basic graph build #296

Description

@dehann

Criteria

  • Resolve with dispatch as part of DFG v1 (there should be only one signature, regardless if using in-memory or network)

Description

using NavAbilitySDK
using RoME

fg = NavAbilityDFG(auth_token, fglb, aglb; apiUrl, orgLabel=orlb, addAgentIfAbsent=false, addGraphIfAbsent=true)
# NavAbilityDFG{VariableDFG, FactorDFG}
#   FactorGraph: FG_9999
#   Agent: BOT_01
#   BlobStores: [:default]


addVariable!(fg, :x0, Pose2)
# ERROR: type NavAbilityDFG has no field solverParams
# Stacktrace:
#  [1] getproperty
#    @ ./Base.jl:49 [inlined]
#  [2] getSolverParams(dfg::NavAbilityDFG{VariableDFG, FactorDFG})
#    @ DistributedFactorGraphs ~/.julia/packages/DistributedFactorGraphs/lIoPH/src/services/AbstractDFG.jl:98
#  [3] addVariable!(dfg::NavAbilityDFG{VariableDFG, FactorDFG}, label::Symbol, varTypeU::Type{Pose2})
#    @ IncrementalInference ~/.julia/dev/IncrementalInference/src/services/FactorGraph.jl:587
#  [4] top-level scope
#    @ REPL[16]:1

Likely part of the transition period into DFG v1, perhaps there is a temporary workaround that is not too destructive.


pre DFG v1 status (FYI dont want to use types as symbols, just the history):

addVariable!(cfg, :x0, :Pose2)
# VariableDFG(UUID("be758c75-2157-5644-bd7d-bc865e2197be"), :x0, [:VARIABLE], TimeZones.ZonedDateTime(2025, 7, 5, 19, 6, 57, 774, tz"Z"), "0", MeanMaxPPE[], BlobEntry[], "Pose2", "0.26.0", "e30=", 1, PackedVariableNodeData[])

Aka Violation of Dispatch

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions