Skip to content

Commit 9664ff9

Browse files
authored
Merge pull request #291 from JuliaRobotics/dev/dfg06
Development updates for DFG v0.6
2 parents 478b67f + 86cd219 commit 9664ff9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+5485
-2353
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ os:
77

88
arch:
99
- amd64
10-
- arm64
1110

1211
services:
1312
- neo4j
@@ -26,6 +25,7 @@ jobs:
2625
- julia: 1.2
2726
env: IIF_TEST=true
2827
if: NOT branch =~ ^release.*$
28+
- arch: arm64
2929
- stage: "Documentation"
3030
julia: 1.2
3131
os: linux
@@ -50,4 +50,4 @@ before_script:
5050
- curl -v POST http://neo4j:neo4j@localhost:7474/user/neo4j/password -d"password=test"
5151

5252
after_success:
53-
- julia -e 'using Pkg; cd(Pkg.dir("DistributedFactorGraphs")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder()); Coveralls.submit(process_folder())'
53+
- julia -e 'using Pkg; cd(Pkg.dir("DistributedFactorGraphs")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'

Project.toml

Lines changed: 2 additions & 2 deletions
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.5.4"
3+
version = "0.6.0"
44

55
[deps]
66
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
@@ -21,7 +21,7 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
2121
[compat]
2222
Colors = "0.8, 0.9, 0.10, 0.11"
2323
Distributions = "0.18, 0.19, 0.20, 0.21, 0.22, 0.23, 0.24, 0.25, 1"
24-
DocStringExtensions = "0.7, 0.8, 0.9, 0.10, 1"
24+
DocStringExtensions = "0.8, 0.9, 0.10, 1"
2525
GraphPlot = "0.3.1, 0.4"
2626
Graphs = "0.10.2, 0.11, 1"
2727
JSON2 = "0.3.1"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Release | Dev | Coverage | Docs
44
---------|-----|----------|------
5-
[![Build Status](https://travis-ci.org/JuliaRobotics/DistributedFactorGraphs.jl.svg?branch=release/v0.5)](https://travis-ci.org/JuliaRobotics/DistributedFactorGraphs.jl) | [![Build Status](https://travis-ci.org/JuliaRobotics/DistributedFactorGraphs.jl.svg?branch=master)](https://travis-ci.org/JuliaRobotics/DistributedFactorGraphs.jl) | [![Codecov Status](https://codecov.io/gh/JuliaRobotics/DistributedFactorGraphs.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaRobotics/DistributedFactorGraphs.jl) [![Coverage Status](https://img.shields.io/coveralls/JuliaRobotics/DistributedFactorGraphs.jl.svg)](https://coveralls.io/r/JuliaRobotics/DistributedFactorGraphs.jl?branch=master) | [![docs](https://img.shields.io/badge/docs-latest-blue.svg)](http://juliarobotics.github.io/DistributedFactorGraphs.jl/latest/)
5+
[![Build Status](https://travis-ci.org/JuliaRobotics/DistributedFactorGraphs.jl.svg?branch=release/v0.5)](https://travis-ci.org/JuliaRobotics/DistributedFactorGraphs.jl) | [![Build Status](https://travis-ci.org/JuliaRobotics/DistributedFactorGraphs.jl.svg?branch=master)](https://travis-ci.org/JuliaRobotics/DistributedFactorGraphs.jl) | [![Codecov Status](https://codecov.io/gh/JuliaRobotics/DistributedFactorGraphs.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaRobotics/DistributedFactorGraphs.jl) | [![docs](https://img.shields.io/badge/docs-latest-blue.svg)](http://juliarobotics.github.io/DistributedFactorGraphs.jl/latest/)
66

77
DistributedFactorGraphs.jl provides a flexible factor graph API for use in the [Caesar.jl](https://github.com/JuliaRobotics/Caesar.jl) ecosystem. The package supplies:
88
* A standardized API for interacting with factor graphs
File renamed without changes.

src/attic/MetaGraphsDFG/MetaGraphsDFG.jl renamed to attic/MetaGraphsDFG/MetaGraphsDFG.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export ls, lsf, getVariables, getFactors, getVariableIds, getFactorIds
1818
export getVariable, getFactor
1919
export updateVariable!, updateFactor!
2020
export deleteVariable!, deleteFactor!
21-
export getAdjacencyMatrix, getAdjacencyMatrixSparse
21+
export getIncidenceMatrix, getIncidenceMatrixSparse
2222
export getNeighbors
2323
export getSubgraphAroundNode
2424
export getSubgraph

src/attic/MetaGraphsDFG/services/MetaGraphsDFG.jl renamed to attic/MetaGraphsDFG/services/MetaGraphsDFG.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ Get an adjacency matrix for the DFG, returned as a Matrix{Union{Nothing, Symbol}
506506
Rows are all factors, columns are all variables, and each cell contains either nothing or the symbol of the relating factor.
507507
The first row and first column are factor and variable headings respectively.
508508
"""
509-
function getAdjacencyMatrix(dfg::MetaGraphsDFG)::Matrix{Union{Nothing, Symbol}}
509+
function getIncidenceMatrix(dfg::MetaGraphsDFG)::Matrix{Union{Nothing, Symbol}}
510510
varLabels = map(v->v.label, getVariables(dfg))
511511
factLabels = map(f->f.label, getFactors(dfg))
512512
vDict = Dict(varLabels .=> [1:length(varLabels)...].+1)
@@ -522,7 +522,7 @@ function getAdjacencyMatrix(dfg::MetaGraphsDFG)::Matrix{Union{Nothing, Symbol}}
522522
return adjMat
523523
end
524524

525-
function getAdjacencyMatrixSparse(dfg::MetaGraphsDFG)::Tuple{LightGraphs.SparseMatrixCSC, Vector{Symbol}, Vector{Symbol}}
525+
function getIncidenceMatrixSparse(dfg::MetaGraphsDFG)::Tuple{LightGraphs.SparseMatrixCSC, Vector{Symbol}, Vector{Symbol}}
526526
adj = LightGraphs.adjacency_matrix(dfg.g)
527527
v_labels = getVariableIds(dfg)
528528
f_labels = getFactorIds(dfg)

src/SymbolDFG/SymbolDFG.jl renamed to attic/SymbolDFG/SymbolDFG.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ import ...DistributedFactorGraphs: setSolverParams,
3434
getNeighbors,
3535
getSubgraphAroundNode,
3636
getSubgraph,
37-
getAdjacencyMatrix,
38-
getAdjacencyMatrixSparse,
37+
getIncidenceMatrix,
38+
getIncidenceMatrixSparse,
3939
_getDuplicatedEmptyDFG
4040

4141
include("SymbolFactorGraphs/SymbolFactorGraphs.jl")

0 commit comments

Comments
 (0)