-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from JuliaRobotics/21Q1/maint/prep020
move to ManifoldBase, bump v0.2.0
- Loading branch information
Showing
7 changed files
with
78 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
# Interface | ||
|
||
|
||
abstract type Manifold end | ||
|
||
|
||
mutable struct ManifoldBelief{M <: Manifold, B} | ||
mutable struct ManifoldBelief{M <: MB.Manifold{MB.ℝ}, B} | ||
manifold::Type{M} | ||
belief::B | ||
end | ||
ManifoldBelief(m::M,b::B) where {M <: Manifold, B} = ManifoldBelief{M,B} | ||
ManifoldBelief(m::M,b::B) where {M <: MB.Manifold{MB.ℝ}, B} = ManifoldBelief{M,B} | ||
|
||
const MB{M,B} = ManifoldBelief{M, B} | ||
const MB_{M,B} = ManifoldBelief{M, B} | ||
|
||
function *(PP::Vector{MB{M,B}}) where {M<:Manifold,B} | ||
function *(PP::Vector{MB_{M,B}}) where {M<:MB.Manifold{MB.ℝ},B} | ||
@info "taking manifold product of $(length(PP)) terms, $M, $B" | ||
@error "No known product definition" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters