Skip to content

Commit e0c441c

Browse files
authored
Merge pull request #771 from JuliaRobotics/master
v0.14.3-rc2
2 parents 3d5548f + c03daf0 commit e0c441c

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ DocStringExtensions = "0.8, 0.9, 0.10, 1"
3030
JSON = "0.21"
3131
JSON2 = "0.3.1"
3232
LightGraphs = "1.2, 1.3"
33-
ManifoldsBase = "0.10, 0.11"
33+
ManifoldsBase = "0.11"
3434
Neo4j = "2"
3535
Pkg = "1.4, 1.5"
3636
Reexport = "0.2, 0.3, 0.4, 0.5, 1"

src/DistributedFactorGraphs.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ using Pkg
3131

3232
# used for @defVariable
3333
import ManifoldsBase
34-
import ManifoldsBase: Manifold, manifold_dimension
35-
export Manifold, manifold_dimension
34+
import ManifoldsBase: AbstractManifold, manifold_dimension
35+
export AbstractManifold, manifold_dimension
3636

3737
import Base: getindex
3838

src/services/DFGVariable.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Interface function to return the `variableType` dimension of an InferenceVariabl
7070
function getDimension end
7171
"""
7272
$SIGNATURES
73-
Interface function to return the `<:ManifoldsBase.Manifold` object of `variableType<:InferenceVariable`, extend this function for all `Types<:InferenceVariable`.
73+
Interface function to return the `<:ManifoldsBase.AbstractManifold` object of `variableType<:InferenceVariable`, extend this function for all `Types<:InferenceVariable`.
7474
"""
7575
getManifold(vari::DFGVariable) = getVariableType(vari) |> getManifold
7676

@@ -80,16 +80,16 @@ getManifold(vari::DFGVariable) = getVariableType(vari) |> getManifold
8080
# """
8181
# function getManifolds end
8282

83-
# getManifolds(::Type{<:T}) where {T <: ManifoldsBase.Manifold} = convert(Tuple, T)
84-
# getManifolds(::T) where {T <: ManifoldsBase.Manifold} = getManifolds(T)
83+
# getManifolds(::Type{<:T}) where {T <: ManifoldsBase.AbstractManifold} = convert(Tuple, T)
84+
# getManifolds(::T) where {T <: ManifoldsBase.AbstractManifold} = getManifolds(T)
8585

86-
getDimension(t_::T) where {T <: ManifoldsBase.Manifold} = manifold_dimension(t_)
86+
getDimension(t_::T) where {T <: ManifoldsBase.AbstractManifold} = manifold_dimension(t_)
8787

8888
"""
89-
@defVariable StructName manifolds<:ManifoldsBase.Manifold
89+
@defVariable StructName manifolds<:ManifoldsBase.AbstractManifold
9090
9191
A macro to create a new variable with name `StructName` and manifolds. Note that
92-
the `manifolds` is an object and *must* be a subtype of `ManifoldsBase.Manifold`.
92+
the `manifolds` is an object and *must* be a subtype of `ManifoldsBase.AbstractManifold`.
9393
See documentation in [Manifolds.jl on making your own](https://juliamanifolds.github.io/Manifolds.jl/stable/examples/manifold.html).
9494
9595
Example:
@@ -101,10 +101,10 @@ macro defVariable(structname, manifold)
101101
return esc(quote
102102
Base.@__doc__ struct $structname <: InferenceVariable end
103103

104-
@assert ($manifold isa Manifold) "@defVariable of "*string($structname)*" requires that the "*string($manifold)*" be a subtype of `ManifoldsBase.Manifold`"
104+
@assert ($manifold isa AbstractManifold) "@defVariable of "*string($structname)*" requires that the "*string($manifold)*" be a subtype of `ManifoldsBase.AbstractManifold`"
105105

106106
# user manifold must be a <:Manifold
107-
Base.convert(::Type{<:Manifold}, ::Union{<:T, Type{<:T}}) where {T <: $structname} = $manifold
107+
Base.convert(::Type{<:AbstractManifold}, ::Union{<:T, Type{<:T}}) where {T <: $structname} = $manifold
108108

109109
getManifold(::Type{M}) where {M <: $structname} = $manifold
110110
getManifold(::M) where {M <: $structname} = getManifold(M)

test/test_defVariable.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ macro defVariable(structname, manifold)
1616
return esc(quote
1717
Base.@__doc__ struct $structname <: InferenceVariable end
1818

19-
@assert ($manifold isa Manifold) "@defVariable of "*string($structname)*" requires that the "*string($manifold)*" be a subtype of `ManifoldsBase.Manifold`"
19+
@assert ($manifold isa AbstractManifold) "@defVariable of "*string($structname)*" requires that the "*string($manifold)*" be a subtype of `ManifoldsBase.AbstractManifold`"
2020

2121
# manifold must be is a <:Manifold
22-
Base.convert(::Type{<:Manifold}, ::Union{<:T, Type{<:T}}) where {T <: $structname} = $manifold
22+
Base.convert(::Type{<:AbstractManifold}, ::Union{<:T, Type{<:T}}) where {T <: $structname} = $manifold
2323

2424
getManifold(::Type{M}) where {M <: $structname} = $manifold
2525
getManifold(::M) where {M <: $structname} = getManifold(M)

0 commit comments

Comments
 (0)