Skip to content

Commit 259cf8a

Browse files
committed
more factor printing and tests
1 parent 674d9b6 commit 259cf8a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/services/CustomPrinting.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ function Base.show(io::IO, ::MIME"text/plain", f::DFGFactor)
1010
println(io, "$(typeof(f))")
1111
println(io, " Name: $(f.label)")
1212
println(io, " VariableOrder: $(getVariableOrder(f))")
13-
println(io, " Multihypo: $(getSolverData(f).multihypo)") # FIXME #477
14-
println(io, " Nullhypo: TBD")
13+
println(io, " multihypo: $(getSolverData(f).multihypo)") # FIXME #477
14+
println(io, " nullhypo: TBD")
15+
println(io, " solvable: $(f.solvable)")
16+
println(io, " timestamp: $(f.timestamp)")
17+
println(io, " nstime: $(f.nstime)")
18+
println(io, " tags: $(f.tags)")
1519
println(io, " Type: $(typeof(fctt))")
1620
println(io, " Fields: $(fieldnames(typeof(fctt)))")
1721
show(IOContext(io, :limit=>true, :compact=>true), fctt)

test/iifInterfaceTests.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ end
1313
v1 = addVariable!(dfg, :a, ContinuousScalar, labels = [:POSE], solvable=0)
1414
v2 = addVariable!(dfg, :b, ContinuousScalar, labels = [:LANDMARK], solvable=1)
1515
f1 = addFactor!(dfg, [:a; :b], LinearConditional(Normal(50.0,2.0)), solvable=0)
16+
17+
@show dfg
18+
@show f1
19+
@show v1
1620
end
1721

1822
#test before anything changes

0 commit comments

Comments
 (0)