generateNodeID
Syntax
Description
The generateNodeID
function generates new node IDs for
creating new factors for a factor graph.
specifies the number of new node IDs to generate as the number of elements in a matrix
with the specified dimensions IDs
= generateNodeID(fg
,nodeMatrixSize
)nodeMatrixSize
. The IDs increment in
row-major order.
For example, generateNodeID(graph,[3 2])
creates new node IDs as a
matrix in this format.
generates new node IDs for the specified number of factors
IDs
= generateNodeID(fg
,numFactors
,factorType
)numFactors
. The size of the generated node IDs and how the IDs
increment depends on the number of factors and the factor type
factorType
Note
The generateNodeID
can only generate node IDs for creating one
factor using this syntax for the factorIMU
and
factorGPS
objects. To use this syntax to generate node IDs for the factorIMU
and
factorGPS
objects, numFactors
must be 1
.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2023a