Skip to content

Commit 697b3ea

Browse files
committed
drop AbstractRelativeRoots
1 parent 213588c commit 697b3ea

9 files changed

+12
-12
lines changed

attic/FluxModelsPose2Pose2.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import Base: convert
2626
import IncrementalInference: getSample, calcZDim
2727

2828

29-
struct FluxModelsPose2Pose2{P,D<:AbstractArray,M<:SamplableBelief} <: AbstractRelativeRoots
29+
struct FluxModelsPose2Pose2{P,D<:AbstractArray,M<:SamplableBelief} <: AbstractRelativeMinimize
3030
allPredModels::Vector{P}
3131
joyVelData::D
3232
naiveModel::M
@@ -125,7 +125,7 @@ FluxModelsPose2Pose2( allModels::Vector,
125125
Ref(DT),
126126
Ref(shuffle) )
127127
#
128-
# struct FluxModelsPose2Pose2{P,D<:AbstractArray,M<:SamplableBelief} <: AbstractRelativeRoots
128+
# struct FluxModelsPose2Pose2{P,D<:AbstractArray,M<:SamplableBelief} <: AbstractRelativeMinimize
129129
# allPredModels::Vector{P}
130130
# joyVelData::D
131131
# naiveModel::M

examples/KinematicJoints.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import IncrementalInference: getSample
66
using TransformUtils
77

88

9-
mutable struct ZJoint <: AbstractRelativeRoots
9+
mutable struct ZJoint <: AbstractRelativeMinimize
1010
Zij::Distribution
1111
end
1212
function getSample(el::ZJoint, N=1)
@@ -33,7 +33,7 @@ function (el::ZJoint)(res, userdata, idx, meas, xi, xj)
3333
nothing
3434
end
3535

36-
mutable struct XJoint <: AbstractRelativeRoots
36+
mutable struct XJoint <: AbstractRelativeMinimize
3737
Zij::Distribution
3838
end
3939
function getSample(el::XJoint, N=1)

src/factors/DynPose2D.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ end
5757
"""
5858
$(TYPEDEF)
5959
"""
60-
mutable struct DynPose2Pose2{T <: IIF.SamplableBelief} <: IIF.AbstractRelativeRoots
60+
mutable struct DynPose2Pose2{T <: IIF.SamplableBelief} <: IIF.AbstractRelativeMinimize
6161
Zpose::Pose2Pose2{T} #Zpose::T1
6262
partial::Tuple{Int,Int,Int}
6363
end
@@ -141,7 +141,7 @@ end
141141
"""
142142
$(TYPEDEF)
143143
"""
144-
Base.@kwdef struct DynPose2DynPose2{T <: IIF.SamplableBelief} <: AbstractRelativeRoots
144+
Base.@kwdef struct DynPose2DynPose2{T <: IIF.SamplableBelief} <: AbstractRelativeMinimize
145145
Z::T = MvNormal(zeros(5), diagm([0.01;0.01;0.001;0.1;0.1].^2))
146146
end
147147
preambleCache(::AbstractDFG, ::AbstractVector{<:DFGVariable}, ::DynPose2DynPose2) = zeros(5)

src/factors/InertialPose3.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ $(TYPEDEF)
135135
136136
Inertial Odometry version of preintegration procedure and used as a factor between InertialPose3 types for inertial navigation in factor graphs.
137137
"""
138-
mutable struct InertialPose3 <: AbstractRelativeRoots
138+
mutable struct InertialPose3 <: AbstractRelativeMinimize
139139
# Zij is entropy of veeLie15, pioc is preintegral measurements, pido is compensation gradients.
140140
# TODO, expand to <:SamplableBelief
141141
Z::Distribution

src/factors/Point3Point3.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
$(TYPEDEF)
55
"""
6-
Base.@kwdef struct Point3Point3{D <: IIF.SamplableBelief} <: AbstractRelativeRoots
6+
Base.@kwdef struct Point3Point3{D <: IIF.SamplableBelief} <: AbstractRelativeMinimize
77
Z::D = MvNormal(zeros(3),diagm([0.1;0.1;0.1]))
88
end
99

src/factors/Polar.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ end
3232
3333
Linear offset factor of `IIF.SamplableBelief` between two `Polar` variables.
3434
"""
35-
Base.@kwdef struct PolarPolar{T1<:IIF.SamplableBelief, T2<:IIF.SamplableBelief} <: IIF.AbstractRelativeRoots
35+
Base.@kwdef struct PolarPolar{T1<:IIF.SamplableBelief, T2<:IIF.SamplableBelief} <: IIF.AbstractRelativeMinimize
3636
Zrange::T1 = Normal(1,1)
3737
Zangle::T2 = Normal(0,0.1)
3838
end

src/factors/flux/MixtureFluxPose2Pose2.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import IncrementalInference: getSample
88
export MixtureFluxPose2Pose2, PackedMixtureFluxPose2Pose2
99

1010

11-
struct MixtureFluxPose2Pose2{F <: AbstractFactor} <: AbstractRelativeRoots
11+
struct MixtureFluxPose2Pose2{F <: AbstractFactor} <: AbstractRelativeMinimize
1212
Z::F
1313
# delta time between variables
1414
DT::Base.RefValue{Float64}

test/testhigherdimroots.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import IncrementalInference: getSample, getManifold
77
using TransformUtils: Euler
88
##
99

10-
mutable struct RotationTest <: IncrementalInference.AbstractRelativeRoots
10+
mutable struct RotationTest <: IncrementalInference.AbstractRelativeMinimize
1111
z::MvNormal
1212
end
1313

test/testpackingconverters.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ global unpackeddata = reconstFactorData(fg, getVariableOrder(f1), IncrementalInf
163163

164164
# TODO -- fix ambibuity in compare function
165165
@test compareAll(DFG.getSolverData(f1), unpackeddata, skip=[:fnc;])
166-
@test_broken compareAll(DFG.getSolverData(f1).fnc, unpackeddata.fnc, skip=[:params;:threadmodel;:cpt;:usrfnc!;:vartypes;:particleidx;:varidx])
166+
@test compareAll(DFG.getSolverData(f1).fnc, unpackeddata.fnc, skip=[:params;:threadmodel;:cpt;:usrfnc!;:vartypes;:particleidx;:varidx])
167167
@test compareAll(DFG.getSolverData(f1).fnc.usrfnc!, unpackeddata.fnc.usrfnc!, skip=[:Zi;:Z;:p])
168168

169169
# deprecated p

0 commit comments

Comments
 (0)