Main Content


Find edge ID of edge


edgeID = findEdgeID(poseGraph,nodePairs) finds the edge ID for a specified edge. Edges are defined by the IDs of the two nodes that connect them.

Input Arguments

collapse all

Pose graph, specified as a poseGraph or poseGraph3D object.

Edge node pairs in pose graph, specified as a two-element vector that lists the IDs of the two nodes that the edge connects.

Output Arguments

collapse all

Edge IDs, returned as a positive integer or vector of positive integers. The pose graph can contain multiple edges between each node pair, so multiple edge IDs may be returned for a single edge ID.

Extended Capabilities

Version History

Introduced in R2019b