Skip to content

Commit

Permalink
Meas from review and move FluzModels to attic
Browse files Browse the repository at this point in the history
  • Loading branch information
Affie committed Feb 15, 2021
1 parent f41342d commit 489d78c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
File renamed without changes.
1 change: 0 additions & 1 deletion src/RoME.jl
Expand Up @@ -297,7 +297,6 @@ function __init__()
@info "RoME is adding Flux related functionality."
include("factors/flux/models/Pose2OdoNN_01.jl") # until a better way is found to deserialize
include("factors/flux/MixtureFluxPose2Pose2.jl")
# include("factors/flux/FluxModelsPose2Pose2.jl")
end
end

Expand Down
5 changes: 2 additions & 3 deletions src/factors/flux/MixtureFluxPose2Pose2.jl
Expand Up @@ -134,10 +134,9 @@ function (cfo::CalcFactor{<:MixtureFluxPose2Pose2})(meas1, meas2, Xi, Xj)
userdata = cfo.metadata
nfb = cfo.factor
fmd = cfo.metadata
meas = (meas1, meas2)

# if, use prediction sample
if meas[2] == 2
if meas2 == 2
# get live velocity estimate for each sample (nfb.joyVelData[:,3:4])
calcVelocityInterPose2!(nfb, Xi, Xj)
# predict odom for this sample from a specific prediction model
Expand All @@ -149,7 +148,7 @@ function (cfo::CalcFactor{<:MixtureFluxPose2Pose2})(meas1, meas2, Xi, Xj)
#TODO
cfZij = CalcFactor( cfo.factor.Zij.mechanics, cfo.metadata, 0, length(cfo._legacyMeas), cfo._legacyMeas, cfo._legacyParams)

return cfZij(meas[1], Xi, Xj)
return cfZij(meas1, Xi, Xj)

end

Expand Down

0 comments on commit 489d78c

Please sign in to comment.