Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dehann committed Aug 21, 2023
1 parent 078ccbd commit f9f517f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Legacy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,13 @@ Base.convert(::Type{<:Tuple}, ::Manifolds.Euclidean{Tuple{N}, ℝ} ) where N = t
Base.convert(::Type{<:Tuple}, ::Manifolds.Circle{ℝ}) = error("#FIXME")#(:Circular,)
Base.convert(::Type{<:Tuple}, ::Manifolds.RealCircleGroup) = (:Circular,)

# included separately downstream as needed
# Base.convert(::Type{<:Tuple}, ::Manifolds.SpecialOrthogonal{2}) = (:Circular,)
# Base.convert(::Type{<:Tuple}, ::Manifolds.SpecialOrthogonal{3}) = tuple([:Circular for _ in 1:3]...)

Base.convert(::Type{<:Tuple}, ::Type{<: typeof(Euclid)}) = (:Euclid,)
Base.convert(::Type{<:Tuple}, ::Type{<: typeof(Euclid2)}) = (:Euclid,:Euclid)
Base.convert(::Type{<:Tuple}, ::Type{<: typeof(Euclid3)}) = (:Euclid,:Euclid,:Euclid)
Base.convert(::Type{<:Tuple}, ::Type{<: typeof(Euclid4)}) = (:Euclid,:Euclid,:Euclid,:Euclid)
Base.convert(::Type{<:Tuple}, ::Type{<: typeof(SE2_Manifold)}) = (:Euclid,:Euclid,:Circular)
Base.convert(::Type{<:Tuple}, ::Type{<: typeof(SE3_Manifold)}) = (:Euclid,:Euclid,:Euclid,:Circular,:Circular,:Circular)
Base.convert(::Type{<:Tuple}, ::Type{<: typeof{Manifolds.SpecialOrthogonal(2)}}) = (:Circular,)
Base.convert(::Type{<:Tuple}, ::Type{<: typeof(Manifolds.SpecialOrthogonal(3))}) = (:Circular,:Circular,:Circular)

Base.convert(::Type{<:Tuple}, ::typeof(Euclid)) = (:Euclid,)
Expand Down

0 comments on commit f9f517f

Please sign in to comment.