Skip to content

Commit 2af2629

Browse files
committed
rename VariableState -> State
1 parent 26312b7 commit 2af2629

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+147
-147
lines changed

IncrementalInference/ext/IncrInfrDiffEqFactorExt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ _maketuplebeyond2args = (w1 = nothing, w2 = nothing, w3_...) -> (w3_...,)
6767

6868
function DERelative(
6969
Xi::AbstractVector{<:VariableCompute},
70-
domain::Type{<:VariableStateType},
70+
domain::Type{<:StateType},
7171
f::Function,
7272
data = () -> ();
7373
dt::Real = 1,
@@ -94,7 +94,7 @@ end
9494
function DERelative(
9595
dfg::AbstractDFG,
9696
labels::AbstractVector{Symbol},
97-
domain::Type{<:VariableStateType},
97+
domain::Type{<:StateType},
9898
f::Function,
9999
data = () -> ();
100100
Xi::AbstractArray{<:VariableCompute} = getVariable.(dfg, labels),

IncrementalInference/ext/IncrInfrInteractiveUtilsExt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module IncrInfrInteractiveUtilsExt
44

55
using InteractiveUtils
66
using DocStringExtensions
7-
using IncrementalInference: VariableStateType, AbstractPrior, RelativeObservation
7+
using IncrementalInference: StateType, AbstractPrior, RelativeObservation
88
# using IncrementalInference: getCurrentWorkspaceFactors, getCurrentWorkspaceVariables, listTypeTree
99
import IncrementalInference: getCurrentWorkspaceFactors, getCurrentWorkspaceVariables, listTypeTree
1010

@@ -29,7 +29,7 @@ end
2929
Return all variables currently registered in the workspace.
3030
"""
3131
function getCurrentWorkspaceVariables()
32-
return InteractiveUtils.subtypes(VariableStateType)
32+
return InteractiveUtils.subtypes(StateType)
3333
end
3434

3535
function _listTypeTree(mytype, printlevel::Int)

IncrementalInference/src/CliqueStateMachine/services/CliqueStateMachine.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ function initUp_StateMachine(csmc::CliqStateMachineContainer)
362362
if init_for_differential
363363
frontal_vars = getVariable.(csmc.cliqSubFg, getCliqFrontalVarIds(csmc.cliq))
364364
filter!(!isInitialized, frontal_vars)
365-
foreach(fvar -> getVariableState(fvar, csmc.solveKey).initialized = true, frontal_vars)
365+
foreach(fvar -> getState(fvar, csmc.solveKey).initialized = true, frontal_vars)
366366
logCSM(
367367
csmc,
368368
"CSM-2b init_for_differential: ";
@@ -404,7 +404,7 @@ function initUp_StateMachine(csmc::CliqStateMachineContainer)
404404
## FIXME init to whatever is in frontals
405405
# set frontals init back to false
406406
if init_for_differential #experimental_sommer_init_to_whatever_is_in_frontals
407-
foreach(fvar -> getVariableState(fvar, csmc.solveKey).initialized = false, frontal_vars)
407+
foreach(fvar -> getState(fvar, csmc.solveKey).initialized = false, frontal_vars)
408408
if someInit
409409
solveStatus = UPSOLVED
410410
end

IncrementalInference/src/Deprecated.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function solveGraphParametric2(
120120
flatvar = FlatVariables(fg, varIds)
121121

122122
for vId in varIds
123-
p = getVariableState(fg, vId, solvekey).val[1]
123+
p = getState(fg, vId, solvekey).val[1]
124124
flatvar[vId] = getCoordinates(getVariableType(fg, vId), p)
125125
end
126126

IncrementalInference/src/ExportAPI.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export CSMHistory,
7171

7272
# general types for softtyping of variable nodes
7373
BeliefArray,
74-
VariableStateType,
74+
StateType,
7575
ContinuousScalar,
7676
SamplableBelief,
7777
PackedBelief,

IncrementalInference/src/Factors/GenericFunctions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ function convert(
239239
)
240240
#
241241

242-
# piggy back on serialization of VariableStateType rather than try serialize anything Manifolds.jl
242+
# piggy back on serialization of StateType rather than try serialize anything Manifolds.jl
243243
M = DFG.getTypeFromSerializationModule(obj.varType) |> getManifold
244244

245245
# TODO this is too excessive

IncrementalInference/src/Factors/PartialPrior.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Notes
99
- Future TBD, consider using `AMP.getManifoldPartial` for more general abstraction.
1010
"""
1111
struct PartialPrior{T <: SamplableBelief, P <: Tuple} <: AbstractPrior
12-
varType::Type{<:VariableStateType}
12+
varType::Type{<:StateType}
1313
Z::T
1414
partial::P
1515
end

IncrementalInference/src/NeedsResolution.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
# FIXME move to DFG
3-
getPointDefault(V::VariableStateType) = getPointIdentity(V)
3+
getPointDefault(V::StateType) = getPointIdentity(V)
44

55
function compare(c1::Channel, c2::Channel; skip::Vector{Symbol} = [])
66
#

IncrementalInference/src/Serialization/services/DispatchPackedConversions.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
function convert(
66
::Type{PackedFunctionNodeData{P}},
77
d::FunctionNodeData{T},
8-
) where {P <: AbstractPackedFactor, T <: FactorSolverCache}
8+
) where {P <: AbstractPackedFactor, T <: FactorCache}
99
error("TODO remove. PackedFunctionNodeData is obsolete")
1010
return PackedFunctionNodeData(
1111
d.eliminated,
@@ -143,7 +143,7 @@ function DFG.rebuildFactorCache!(
143143

144144
# factor__
145145
# else
146-
# mergeVariableState!(factor, new_solverData)
146+
# mergeState!(factor, new_solverData)
147147
# DFG.setCache!(factor, solvercache)
148148
# # We're not updating here because we don't want
149149
# # to solve cloud in loop, we want to make sure this flow works:

IncrementalInference/src/Serialization/services/SerializationMKD.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function DFG.packDistribution(mkd::ManifoldKernelDensity)
4949

5050
return PackedManifoldKernelDensity(
5151
"IncrementalInference.PackedManifoldKernelDensity",
52-
# piggy back on VariableStateType serialization rather than try serialize anything Manifolds.jl
52+
# piggy back on StateType serialization rather than try serialize anything Manifolds.jl
5353
DFG.typeModuleName(getVariableType(mkd.manifold)),
5454
[AMP.makeCoordsFromPoint(mkd.manifold, pt) for pt in pts],
5555
getBW(mkd.belief)[:, 1],
@@ -59,7 +59,7 @@ function DFG.packDistribution(mkd::ManifoldKernelDensity)
5959
end
6060

6161
function DFG.unpackDistribution(dtr::PackedManifoldKernelDensity)
62-
# find VariableStateType type from string (anything Manifolds.jl?)
62+
# find StateType type from string (anything Manifolds.jl?)
6363
M = DFG.getTypeFromSerializationModule(dtr.varType) |> getManifold
6464
vecP = [AMP.makePointFromCoords(M, pt) for pt in dtr.pts]
6565
bw = length(dtr.bw) === 0 ? nothing : dtr.bw

0 commit comments

Comments
 (0)