Skip to content

Commit ff01cc0

Browse files
committed
Merge branch 'master' of https://github.com/JuliaRobotics/DistributedFactorGraphs.jl into feature/149_DFGVariableSofttype
2 parents 6f740d1 + c31baa5 commit ff01cc0

35 files changed

+1294
-660
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,23 @@ jobs:
2222
include:
2323
- julia: 1.2
2424
env: IIF_TEST=true
25+
if: NOT branch =~ ^release.*$
2526
- stage: "Documentation"
2627
julia: 1.0
2728
os: linux
2829
script:
29-
- julia -e 'import Pkg; Pkg.add("Documenter"); Pkg.add("Neo4j"); Pkg.add("GraphPlot")'
30-
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
31-
Pkg.instantiate()'
30+
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
3231
- julia --project=docs/ docs/make.jl
3332
after_success: skip
33+
fast_finish: true
3434

3535
notifications:
3636
email: false
3737

3838
matrix:
3939
allow_failures:
4040
- julia: nightly
41-
- env: IIF_TEST=true
41+
# - env: IIF_TEST=true
4242

4343
# Set the password for Neo4j to neo4j:test
4444
before_script:

Project.toml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name = "DistributedFactorGraphs"
22
uuid = "b5cc3c7e-6572-11e9-2517-99fb8daf2f04"
3-
version = "0.4.1"
3+
version = "0.5.0"
44

55
[deps]
6+
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
67
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
78
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
89
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
@@ -13,24 +14,25 @@ JSON2 = "2535ab7d-5cd8-5a07-80ac-9b1792aadce3"
1314
LightGraphs = "093fc24a-ae57-5d10-9952-331d41423f4d"
1415
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1516
MetaGraphs = "626554b9-1ddb-594c-aa3c-2596fe9399a5"
17+
Neo4j = "d2adbeaf-5838-5367-8a2f-e46d570981db"
1618
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
1719
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
1820
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1921

2022
[compat]
21-
Distributions = "≥ 0.18"
22-
DocStringExtensions = "≥ 0.7"
23-
Graphs = "≥ 0.10.3"
24-
MetaGraphs = "≥ 0.6.4"
25-
Reexport = "≥ 0.2"
26-
Requires = "≥ 0.5"
23+
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"
25+
Graphs = "0.10.2, 0.11, 1"
26+
MetaGraphs = "^0.6.3"
27+
Neo4j = "2"
28+
Reexport = "0.2, 0.3, 0.4, 0.5, 1"
29+
Requires = "0.5, 0.6, 0.7, 0.8, 0.9, 0.10, 1"
2730
julia = "0.7, 1"
2831

2932
[extras]
30-
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
3133
GraphPlot = "a2cc645c-3eea-5389-862e-a155d0052231"
32-
Neo4j = "d2adbeaf-5838-5367-8a2f-e46d570981db"
3334
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
35+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
3436

3537
[targets]
36-
test = ["Test", "GraphPlot", "Neo4j", "Pkg"]
38+
test = ["Test", "GraphPlot", "Pkg"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ docker pull neo4j
6969
To run the image with user `neo4j` and password `test`:
7070

7171
```bash
72-
docker run --publish=7474:7474 --publish=7687:7687 --env NEO4J_AUTH=neo4j/test neo4j
72+
docker run -d --publish=7474:7474 --publish=7687:7687 --env NEO4J_AUTH=neo4j/test neo4j
7373
```
7474

7575
> **Note** If you just installed docker and having permission issues, please see [this ask Ubuntu forum](https://askubuntu.com/questions/941816/permission-denied-when-running-docker-after-installing-it-as-a-snap).

docs/Project.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3-
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
43

54
[compat]
6-
Documenter = "~0.21"
5+
Documenter = "0.23"

docs/make.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Documenter
2-
using DataFrames
32
using DistributedFactorGraphs
43

54
makedocs(

src/CloudGraphsDFG/CloudGraphsDFG.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
11
using Neo4j
2+
using Base64
23

34
# Entities
45
include("entities/CloudGraphsDFG.jl")
6+
include("entities/CGStructure.jl")
57

68
# Services
79
include("services/CommonFunctions.jl")
10+
include("services/CGStructure.jl")
811
include("services/CloudGraphsDFG.jl")
912

1013
# Exports
1114
export Neo4jInstance, CloudGraphsDFG
1215
export exists
1316
export clearSession!
14-
export getLabelDict, getDescription, setDescription, getInnerGraph, getAddHistory, getSolverParams, setSolverParams
17+
export getLabelDict, getDescription, setDescription, getAddHistory, getSolverParams, setSolverParams
1518

1619
export getAddHistory, getDescription, getLabelDict
1720
export addVariable!, addFactor!
1821
export ls, lsf, getVariables, getFactors, getVariableIds, getFactorIds
1922
export getVariable, getFactor
20-
export updateVariable!, updateFactor!, updateVariableSolverData!
23+
export updateVariable!, updateFactor!, mergeUpdateVariableSolverData!
2124
export deleteVariable!, deleteFactor!
2225
export getAdjacencyMatrix
2326
export getNeighbors
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Very simple initial sentinel structure for Graff elements in DFG.
2+
# TODO: Need to flesh out further in next release.
3+
4+
export User, Robot, Session
5+
6+
abstract type AbstractCGNode
7+
end
8+
9+
mutable struct User <: AbstractCGNode
10+
id::Symbol
11+
name::String
12+
description::String
13+
# labels::Vector{Symbol}
14+
data::Dict{Symbol, String}
15+
end
16+
17+
mutable struct Robot <: AbstractCGNode
18+
id::Symbol
19+
userId::Symbol
20+
name::String
21+
description::String
22+
# labels::Vector{Symbol}
23+
data::Dict{Symbol, String}
24+
end
25+
26+
mutable struct Session <: AbstractCGNode
27+
id::Symbol
28+
robotId::Symbol
29+
userId::Symbol
30+
name::String
31+
description::String
32+
# labels::Vector{Symbol}
33+
data::Dict{Symbol, String}
34+
end

0 commit comments

Comments
 (0)