Skip to content

Commit 0e7e6a6

Browse files
authored
Merge pull request #757 from JuliaRobotics/21Q2/maint/showmanif
show manifold on printVariable
2 parents 780a83e + 0234741 commit 0e7e6a6

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "DistributedFactorGraphs"
22
uuid = "b5cc3c7e-6572-11e9-2517-99fb8daf2f04"
3-
version = "0.14.0"
3+
version = "0.14.1"
44

55
[deps]
66
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"

src/services/CustomPrinting.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ function printVariable( io::IO, vert::DFGVariable;
2626
println(ioc, " initilized: ", isInitialized(vert))
2727
println(ioc, " tags: ", getTags(vert))
2828
try
29-
println(ioc, " manifold: ", getManifolds(vert))
29+
print(ioc, " manifold: ")
30+
show(ioc, getManifold(vert))
31+
println(ioc, "")
3032
catch e
3133
end
3234
solk = listSolveKeys(vert) |> collect

src/services/DFGVariable.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function getDimension end
7272
$SIGNATURES
7373
Interface function to return the `<:ManifoldsBase.Manifold` object of `variableType<:InferenceVariable`, extend this function for all `Types<:InferenceVariable`.
7474
"""
75-
function getManifold end
75+
getManifold(vari::DFGVariable) = getVariableType(vari) |> getManifold
7676

7777
# """
7878
# $SIGNATURES

0 commit comments

Comments
 (0)