nodeType
Description
Examples
Get Node Type of Nodes in Factor Graph
Create factor graph, and generate node IDs one factorPoseSE2AndPointXY
factor. Then create the factorPoseSE2AndPointXY
factor and add the factor to the factor graph.
fg = factorGraph;
ids = generateNodeID(fg,1,"factorPoseSE2AndPointXY")
ids = 1×2
0 1
f = factorPoseSE2AndPointXY(ids); addFactor(fg,f);
Get the types of node 0 and node 1.
nodeType(fg,0)
ans = "POSE_SE2"
nodeType(fg,1)
ans = "POINT_XY"
Get Node Type of Nodes Specified by Factor
Generate node IDs to create one factorPoseSE2AndPointXY
factor and then create the factorPoseSE2AndPointXY
factor.
f = factorPoseSE2AndPointXY([0 1]);
Get the types of node 0 and node 1.
nodeType(f,0)
ans = "POSE_SE2"
nodeType(f,1)
ans = "POINT_XY"
Input Arguments
graph
— Factor graph
factorGraph
object
Factor graph, specified as a factorGraph
object.
factor
— Factor
factor object
Factor, specified as any of these factor objects:
nodeID
— ID of node to check
nonnegative integer
ID of node to check, specified as a nonnegative integer.
Output Arguments
type
— Type of node
string scalar
Type of the node, returned as one of these node types:
"POSE_SE2"
— Pose in SE(2) state space"POSE_SE3"
— Pose in SE(3) state space"VEL3"
— 3-D velocity"POINT_XY"
— 2-D point"POINT_XYZ"
— 3-D point"IMU_BIAS"
— IMU gyroscope and accelerometer bias
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Version History
Introduced in R2022a
Ouvrir l'exemple
Vous possédez une version modifiée de cet exemple. Souhaitez-vous ouvrir cet exemple avec vos modifications ?
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)