Factor relating two SE(3) poses
factorTwoPoseSE3 object contains factors that relate pairs of
poses in the SE(3) state space for a
F = factorTwoPoseSE3(
F, with the
node identification numbers property
NodeID set to
specifies properties using one or more name-value arguments. For example,
F = factorTwoPoseSE3(
factorTwoPoseSE3([1 2],Measurement=[1 2 3 4 5 6 7]) sets the
Measurement property of the
[1 2 3 4 5 6 7].
NodeID — Node ID numbers
N-by-2 matrix of nonnegative integers
This property is read-only.
Node ID numbers, specified as an N-by-2 matrix of nonnegative
integers, where N is the total number of desired factors. Each row
represents a factor that connects to two nodes of type,
the specified node IDs in the factor graph. The rows are of the form
If a factor in the
factorTwoPoseSE3 object specifies an ID that does not
correspond to a node in the factor graph, the factor graph automatically creates a node
of the required type with that ID and adds it to the factor graph when adding the factor
to the factor graph.
You must specify this property at object creation.
For more information about the expected node types of all supported factors, see Expected Node Types of Factor Objects.
Measurement — Measured relative pose
zeros(N,3)] (default) | N-by-7 matrix
Measured relative pose, specified as a N-by-7 matrix, where each row is of the form [dx dy dz dqw dqx dqy dqz]. N is the total number of factors. dx, dy, and dz are the change in position in x, y, and z respectively. dqw, dqx, dqy, and dqz are the change in quaternion rotation in w, x, y, and z, respectively.
When you optimize the factor graph that this factor belongs to, the
function normalizes the quaternion measurement of the factor before the
Information — Information matrices associated with measurements
eye(6) (default) | 6-by-6 matrix | 6-by-6-by-N array
Information matrices associated with the measurements, specified as a 6-by-6 matrix
or a 6-by-6-by-N array. N is the total number of
factors specified by the
factorTwoPoseSE3 object. Each information matrix
corresponds to the measurements of the corresponding node in
If you specify this property as a 6-by-6 matrix when
contains more than one row, the information matrix corresponds to all measurements in
|Get node type of node in factor graph|
Expected Node Types of Factor Objects
These are the node types that the
NodeID property of each factor object specifies and connects to:
|Factor Object||Expected Node Types of Specified Node IDs|
factorPoseSE2AndPointXY([1 2]) creates a 2-D landmark factor connecting to node IDs 1 and 2. If you try to add that factor to a factor graph that already contains nodes 1 and 2, the factor expects nodes 1 and 2 to be of types
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Version HistoryIntroduced in R2022a
R2023a: Specify multiple factors
Information properties now accept additional rows to specify