@@ -13,16 +13,32 @@ include("testBlocks.jl")
13
13
testDFGAPI = CloudGraphsDFG
14
14
15
15
# TODO maybe move to cloud graphs permanantly as standard easy to use functions
16
- function DFG. CloudGraphsDFG (; params= NoSolverParams ())
17
- cgfg = CloudGraphsDFG {typeof(params)} (" localhost" , 7474 , " neo4j" , " test" ,
18
- " testUser" , " testRobot" , " testSession_$(string (uuid4 ())[1 : 6 ]) " ,
19
- " description" ,
20
- nothing ,
21
- nothing ,
22
- (dfg,f)-> f,# IncrementalInference.decodePackedType,
23
- (dfg,f)-> f,# ncrementalInference.rebuildFactorMetadata!,
24
- solverParams= params)
25
- createDfgSessionIfNotExist (cgfg)
16
+ function DFG. CloudGraphsDFG (; hostname= " localhost" ,
17
+ port= 7474 ,
18
+ username= " neo4j" ,
19
+ password= " test" ,
20
+ params= NoSolverParams (),
21
+ description:: String = " CloudGraphsDFG implementation" ,
22
+ userId:: String = " DefaultUser" ,
23
+ robotId:: String = " DefaultRobot" ,
24
+ sessionId:: String = " Session_$(string (uuid4 ())[1 : 6 ]) " ,
25
+ userData:: Dict{Symbol, String} = Dict {Symbol, String} (),
26
+ robotData:: Dict{Symbol, String} = Dict {Symbol, String} (),
27
+ sessionData:: Dict{Symbol, String} = Dict {Symbol, String} ())
28
+
29
+ cgfg = CloudGraphsDFG {typeof(params)} (hostname,
30
+ port,
31
+ username,
32
+ password,
33
+ userId,
34
+ robotId,
35
+ sessionId,
36
+ description,
37
+ nothing ,
38
+ nothing ,
39
+ (dfg,f)-> f,# IncrementalInference.decodePackedType,
40
+ (dfg,f)-> f,# ncrementalInference.rebuildFactorMetadata!,
41
+ solverParams= params)
26
42
27
43
setUserData! (cgfg, Dict {Symbol, String} ())
28
44
setRobotData! (cgfg, Dict {Symbol, String} ())
@@ -59,7 +75,6 @@ function DFG.CloudGraphsDFG(description::String,
59
75
(dfg,f)-> f,# IncrementalInference.rebuildFactorMetadata!,
60
76
solverParams= solverParams)
61
77
62
- createDfgSessionIfNotExist (cdfg)
63
78
64
79
setUserData! (cdfg, userData)
65
80
setRobotData! (cdfg, robotData)
0 commit comments