Main Content


Get node type of node in factor graph


type = nodeType(graph,nodeID) returns the type type of the specified node nodeID, in the factor graph graph.

Input Arguments

collapse all

Factor graph, specified as a factorGraph object.

ID of node to check, specified as a nonnegative integer.

Output Arguments

collapse all

Type of the node, returned as a string scalar. The supported node types are:

  • "POSE_SE2"

  • "POSE_SE3"

  • "VEL3"

  • "POINT_XY"


  • "IMU_BIAS"

Version History

Introduced in R2022a

See Also