File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 1
1
name = " DistributedFactorGraphs"
2
2
uuid = " b5cc3c7e-6572-11e9-2517-99fb8daf2f04"
3
- version = " 0.14.1 "
3
+ version = " 0.14.2 "
4
4
5
5
[deps ]
6
6
Base64 = " 2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
Original file line number Diff line number Diff line change @@ -32,6 +32,23 @@ getFactorType(data::GenericFunctionNodeData) = data.fnc.usrfnc!
32
32
getFactorType (fct:: DFGFactor ) = getFactorType (getSolverData (fct))
33
33
getFactorType (dfg:: AbstractDFG , lbl:: Symbol ) = getFactorType (getFactor (dfg, lbl))
34
34
35
+ """
36
+ $SIGNATURES
37
+
38
+ If you know a variable is `::Type{<:Pose2}` but want to find its default prior `::Type{<:PriorPose2}`.
39
+
40
+ Assumptions
41
+ - The prior type will be defined in the same module as the variable type.
42
+ - Not exported per default, but can be used with knowledge of the caveats.
43
+
44
+ Example
45
+ ```julia
46
+ using RoME
47
+ @assert RoME.PriorPose2 == DFG._getPriorType(Pose2)
48
+ ```
49
+ """
50
+ _getPriorType (_type:: Type{<:InferenceVariable} ) = getfield (_type. name. module, Symbol (:Prior , _type. name. name))
51
+
35
52
36
53
# #==============================================================================
37
54
# # Factors
You can’t perform that action at this time.
0 commit comments