Main Content

copy

Create copy of pose graph

    Description

    poseGraph2 = copy(poseGraph1) creates a deep copy of the pose graph object with the same properties.

    example

    Examples

    collapse all

    Create a 2-D pose graph object.

    pg = poseGraph
    pg = 
      poseGraph with properties:
    
                   NumNodes: 1
                   NumEdges: 0
        NumLoopClosureEdges: 0
         LoopClosureEdgeIDs: [1x0 double]
            LandmarkNodeIDs: []
    
    

    Create copy of the pose graph object.

    pgNew = copy(pg)
    pgNew = 
      poseGraph with properties:
    
                   NumNodes: 1
                   NumEdges: 0
        NumLoopClosureEdges: 0
         LoopClosureEdgeIDs: [1x0 double]
            LandmarkNodeIDs: []
    
    

    Input Arguments

    collapse all

    Pose graph, specified as a poseGraph or poseGraph3D object.

    Output Arguments

    collapse all

    Copy of pose graph, returned as a poseGraph or poseGraph3D object.

    Version History

    Introduced in R2019b