Skip to content

Commit ffd455b

Browse files
authored
Merge pull request #1337 from JuliaRobotics/21Q3/fix/facGrad_mani
add AbstractManifoldMinimize to factor gradients
2 parents 9410eda + b0246e2 commit ffd455b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/FactorGradients.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export checkGradientsToleranceMask, calcPerturbationFromVariable
66

77
# T_pt_args[:] = [(T1::Type{<:InferenceVariable}, point1); ...]
88
# FORCED TO START AT EITHER :x1
9-
function _prepFactorGradientLambdas(fct::Union{<:AbstractRelativeMinimize,<:AbstractRelativeRoots},
9+
function _prepFactorGradientLambdas(fct::Union{<:AbstractRelativeMinimize,<:AbstractRelativeRoots, <:AbstractManifoldMinimize},
1010
measurement::Tuple,
1111
varTypes::Tuple,
1212
pts::Tuple;
@@ -73,7 +73,7 @@ function _prepFactorGradientLambdas(fct::Union{<:AbstractRelativeMinimize,<:Abst
7373
end
7474

7575

76-
function FactorGradientsCached!(fct::Union{<:AbstractRelativeMinimize, <:AbstractRelativeRoots},
76+
function FactorGradientsCached!(fct::Union{<:AbstractRelativeMinimize, <:AbstractRelativeRoots, <:AbstractManifoldMinimize},
7777
varTypes::Tuple,
7878
meas_single::Tuple,
7979
pts::Tuple;

0 commit comments

Comments
 (0)