Skip to content

Commit

Permalink
Untested PriorPose3Ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Affie committed Aug 30, 2022
1 parent 90a31cc commit 6889740
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/factors/PartialPose3.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,25 @@ function compare(a::PriorPose3ZRP, b::PriorPose3ZRP; tol::Float64=1e-10)
end


"""
$(TYPEDEF)
Prior for vector measurements on Pose3.
"""
Base.@kwdef struct PriorPose3Ref{T<:SamplableBelief} <: IncrementalInference.AbstractPrior
Z::T
ref::SVector{3, Float64}
end

getManifold(::PriorPose3Ref) = TranslationGroup(3)

function (cf::CalcFactor{<:PriorPose3Ref})(p_m, p)
n_r = cf.factor.ref
nRp = p.x[2]
n_m = nRp * p_m
return n_r - n_m
end


##==============================================================================
## Partial Pose3 Pose3 Factors
Expand Down

0 comments on commit 6889740

Please sign in to comment.