@@ -53,9 +53,9 @@ Each variable or factor can have a timestamp associated with it.
5353
5454Tags are a set of symbols that contain identifiers for the variable or factor.
5555
56- - [ ` getTags ` ] ( @ref )
56+ - [ ` listTags ` ] ( @ref )
5757- [ ` mergeTags! ` ] ( @ref )
58- - [ ` removeTags !` ] ( @ref )
58+ - [ ` deleteTags !` ] ( @ref )
5959- [ ` emptyTags! ` ] ( @ref )
6060
6161
@@ -72,52 +72,11 @@ The solvable flag indicates whether the solver should make use of the variable o
7272
7373#### Variable Type
7474
75- The ` variableType ` is the underlying inference variable type, such as a Pose2.
75+ The ` AbstractStateType ` is the underlying inference variable type, such as a Pose2.
7676
77- - [ ` getVariableType ` ] ( @ref )
77+ - [ ` getStateKind ` ] ( @ref )
7878
7979
80- #### Packed Parametric Estimates
81-
82- Solved graphs contain packed parametric estimates for the variables, which are keyed by the solution (the default is saved as : default ).
83-
84- For each PPE structure, there are accessors for getting individual values:
85-
86- - [ ` getPPEMax ` ] ( @ref )
87- - [ ` getPPEMean ` ] ( @ref )
88- - [ ` getPPESuggested ` ] ( @ref )
89-
90-
91- Related functions for getting, adding/updating, and deleting PPE structures:
92-
93-
94- - [ ` listPPEs ` ] ( @ref )
95- - [ ` getPPE ` ] ( @ref )
96- - [ ` addPPE! ` ] ( @ref )
97- - [ ` updatePPE! ` ] ( @ref )
98- - [ ` deletePPE! ` ] ( @ref )
99- - [ ` mergePPEs! ` ] ( @ref )
100-
101-
102- Example of PPE operations:
103-
104- ``` julia
105- # Add a new PPE of type MeanMaxPPE to :x0
106- ppe = MeanMaxPPE (:default , [0.0 ], [0.0 ], [0.0 ])
107- addPPE! (dfg, :x0 , ppe)
108- @show listPPEs (dfg, :x0 )
109- # Get the data back - note that this is a reference to above.
110- v = getPPE (dfg, :x0 , :default )
111- # Delete it
112- deletePPE! (dfg, :x0 , :default )
113- # Update add it
114- updatePPE! (dfg, :x0 , ppe, :default )
115- # Update update it
116- updatePPE! (dfg, :x0 , ppe, :default )
117- # Bulk copy PPE's for x0 and x1
118- updatePPE! (dfg, [x0], :default )
119- ```
120-
12180#### Variable States (Solver Data)
12281
12382Variable ` State ` s are used by the IncrementalInference/RoME/Caesar solver.
@@ -147,23 +106,23 @@ stateBack = getState(dfg, :x0, :parametric)
147106deleteState! (dfg, :x0 , :parametric )
148107```
149108
150- #### Metadata
109+ #### Bloblets
151110
152- Metadata (small data) allows you to assign a dictionary to variables . It is a useful way to
153- keep small amounts of primative (Strings, Integers, Floats, Bool) data in a variable . As it is stored in the graph
111+ Bloblets allow you to assign a dictionary of key-value [ Symbol-String ] pairs to nodes . It is a useful way to
112+ keep small amounts of primitive (Strings, Integers, Floats, Bool) data that is stored as a string in a node . As it is stored in the graph
154113itself, large entries will slow the graph down, so if data should exceed a
155114few bytes/kb, it should rather be saved in Blobs.
156115
157116
158- - [ ` getMetadata ` ] ( @ref )
159- - [ ` setMetadata !` ] ( @ref )
117+ - [ ` getVariableBloblet ` ] ( @ref )
118+ - [ ` addVariableBloblet !` ] ( @ref )
160119
161120
162121Example:
163122
164123``` julia
165- setMetadata! ( x0, Dict ( " entry " => " entry value" ))
166- getMetadata ( x0)
124+ addVariableBloblet! (dfg, : x0 , Bloblet ( :bloblet_label , " bloblet value" ))
125+ getVariableBloblet (dfg, : x0 )
167126```
168127
169128#### Big Data
@@ -179,23 +138,25 @@ you are working with an in-memory graph, the DFG structure contains the graph it
179138
180139Graphs reside inside a hierarchy made up in the following way:
181140- Agent
182- - Metadata
141+ - Bloblets
183142 - Blobentries
184143- Graph
185- - Metadata
144+ - Bloblets
186145 - Blobentries
187146
188- This data can be retrieved with the follow functions:
189-
190- - [ ` getAgentMetadata ` ] ( @ref )
191- - [ ` getGraphMetadata ` ] ( @ref )
147+ Agent and Graph bloblets are useful for storing data that is related to the entire graph, and support CRUD operations:
192148
149+ - [ ` getAgentBloblet ` ] ( @ref )
150+ - [ ` getGraphBloblet ` ] ( @ref )
193151
194- It can be set using the following functions:
152+ - [ ` addAgentBloblet! ` ] ( @ref )
153+ - [ ` addGraphBloblet! ` ] ( @ref )
195154
196- - [ ` setAgentMetadata !` ] ( @ref )
197- - [ ` setGraphMetadata !` ] ( @ref )
155+ - [ ` mergeAgentBloblet !` ] ( @ref )
156+ - [ ` mergeGraphBloblet !` ] ( @ref )
198157
158+ - [ ` deleteAgentBloblet! ` ] ( @ref )
159+ - [ ` deleteGraphBloblet! ` ] ( @ref )
199160
200161Example of using graph-level data:
201162
0 commit comments