-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from dehann/feature/subgraphcopy
Feature/subgraphcopy
- Loading branch information
Showing
20 changed files
with
315 additions
and
74 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
## test subLocalGRaphCopy! function of cloudgraphs | ||
|
||
# 0. Load required packages | ||
using Caesar | ||
|
||
|
||
# 1. Get the authentication and session information | ||
include(joinpath(ENV["HOME"],"Documents","blandauthlocal.jl")) | ||
cg, addrdict = standardcloudgraphsetup(addrdict=addrdict) | ||
addrdict["sessionId"] = "Hackathon" | ||
addrdict["robotId"] = "PixieBot" | ||
|
||
|
||
# 2. Create a local empty factor graph object | ||
fg = Caesar.initfg(sessionname=addrdict["sessionId"], robotname=addrdict["robotId"], cloudgraph=cg) | ||
# fg.stateless = true # so that we don't update local elements | ||
|
||
|
||
# 3.a Fetch a portion of the graph | ||
Caesar.subLocalGraphCopy!(fg, ["x1";"x3";], neighbors=1, reqbackendset=false, reqready=false) | ||
|
||
# see what is going on | ||
Graphs.plot(fg.g) | ||
|
||
|
||
|
||
# ===========ALTERNATIVE======================================================== | ||
|
||
fg = Caesar.initfg(sessionname=addrdict["sessionId"], robotname=addrdict["robotId"], cloudgraph=cg) | ||
# 3.b Or fetch the entire factor graph | ||
Caesar.fullLocalGraphCopy!(fg, reqbackendset=false, reqready=false) | ||
|
||
|
||
|
||
|
||
# |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.