Skip to content

Commit 6575242

Browse files
authored
Merge pull request #777 from JuliaRobotics/master
v0.14.4-rc1
2 parents f7913bc + 572b94f commit 6575242

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
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.3"
3+
version = "0.14.4"
44

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ dfg = initfg()
5050
# add 2 ContinuousScalar variable types to the new factor graph
5151
addVariable!(dfg, :a, ContinuousScalar)
5252
addVariable!(dfg, :b, ContinuousScalar)
53-
# add a LinearConditional factor
54-
addFactor!(dfg, [:a, :b], LinearConditional(Normal(10.0,1.0)))
53+
# add a LinearRelative factor
54+
addFactor!(dfg, [:a, :b], LinearRelative(Normal(10.0,1.0)))
5555
```
5656

src/services/CustomPrinting.jl

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,20 @@ function printVariable( io::IO, vert::DFGVariable;
3434
solk = listSolveKeys(vert) |> collect
3535
lsolk = length(solk)
3636
smsk = (rand(1:lsolk,100) |> unique)[1:minimum([4,lsolk])]
37-
println(ioc, " Nr SolveKeys=$(lsolk): ", solk[smsk], 4<lsolk ? "..." : "")
38-
printstyled(ioc, " :default", "\n", bold=true)
37+
println(ioc, " Nr solveKeys=$(lsolk): ", solk[smsk], 4<lsolk ? "..." : "")
38+
printstyled(ioc, " :default <-- VariableNodeData", "\n", bold=true)
3939
println(ioc, " size marginal samples: ", size(vnd.val))
4040
println(ioc, " kde bandwidths: ", round.((vnd.bw)[:,1], digits=4))
41-
if 0 < length(getPPEDict(vert))
42-
println(ioc, " PPE.suggested: ", round.(getPPE(vert).suggested,digits=4) )
43-
else
44-
println(ioc, " No PPEs yet")
41+
if haskey(getPPEDict(vert), :default)
42+
printstyled(ioc, " :default ", bold=true)
43+
println(ioc, "<-- PPE.suggested: ", round.(ppe.suggested,digits=4) )
44+
end
45+
maxkeys = 3
46+
for (key, ppe) in getPPEDict(vert)
47+
maxkeys -= 1
48+
maxkeys == 0 && break
49+
printstyled(ioc, " :$key ", bold=true)
50+
println(ioc, "<-- PPE.suggested: ", round.(ppe.suggested,digits=4) )
4551
end
4652
printstyled(ioc, " TYPE: ", bold=true, color=:blue)
4753
println(ioc, vari)

0 commit comments

Comments
 (0)