Main Content

roadrunner.hdmap.StaticObject

Create static objects for RoadRunner HD Map using MATLAB

    Description

    A roadrunner.hdmap.StaticObject object enables you to define the static object instances in a RoadRunner HD Map scene model. This object is used for props and road furniture that do not move.

    Creation

    Description

    aStaticObject = roadrunner.hdmap.StaticObject() creates an empty StaticObject.

    example

    aStaticObject = roadrunner.hdmap.StaticObject(Name=Value) sets the properties of the StaticObject using name-value pairs.

    Properties

    expand all

    ID of the StaticObject element, specified as a character vector or string scalar.

    Example: rrMap.StaticObjects= roadrunner.hdmap.StaticObject(ID="StaticObject1") creates a StaticObject with id StaticObject1 in a RoadRunner HD Map.

    Data Types: char | string

    Geometry of the StaticObject, specified as a GeoOrientedBoundingBox (RoadRunner). Static objects fit within an oriented bounding box. Objects should be scaled to fit the bound and then rotated. See GeoOrientation3 (RoadRunner) for how to handle rotations of objects.

    Data Types: vector

    Type of StaticObject , specified as a roadrunner.hdmap.Reference (RoadRunner) object.

    Examples

    collapse all

    Create an empty RoadRunner HD Map by calling the roadrunnerHDMap object.

    rrMap = roadrunnerHDMap()
    rrMap = 
      roadrunnerHDMap with properties:
    
                    Author: ""
                Projection: ""
        GeographicBoundary: [0×3 double]
                     Lanes: [0×1 roadrunner.hdmap.Lane]
            LaneBoundaries: [0×1 roadrunner.hdmap.LaneBoundary]
                LaneGroups: [0×1 roadrunner.hdmap.LaneGroup]
              LaneMarkings: [0×1 roadrunner.hdmap.LaneMarking]
                 Junctions: [0×1 roadrunner.hdmap.Junction]
              BarrierTypes: [0×1 roadrunner.hdmap.BarrierType]
                  Barriers: [0×1 roadrunner.hdmap.Barrier]
                 SignTypes: [0×1 roadrunner.hdmap.SignType]
                     Signs: [0×1 roadrunner.hdmap.Sign]
         StaticObjectTypes: [0×1 roadrunner.hdmap.StaticObjectType]
             StaticObjects: [0×1 roadrunner.hdmap.StaticObject]
    
    

    Create a static object using the roadrunner.hdmap.StaticObject object. Specify the static object information for the object id.

    rrMap.StaticObjects = roadrunner.hdmap.StaticObject(ID="StaticObject1")
    rrMap = 
      roadrunnerHDMap with properties:
    
                    Author: ""
                Projection: ""
        GeographicBoundary: [0×3 double]
                     Lanes: [0×1 roadrunner.hdmap.Lane]
            LaneBoundaries: [0×1 roadrunner.hdmap.LaneBoundary]
                LaneGroups: [0×1 roadrunner.hdmap.LaneGroup]
              LaneMarkings: [0×1 roadrunner.hdmap.LaneMarking]
                 Junctions: [0×1 roadrunner.hdmap.Junction]
              BarrierTypes: [0×1 roadrunner.hdmap.BarrierType]
                  Barriers: [0×1 roadrunner.hdmap.Barrier]
                 SignTypes: [0×1 roadrunner.hdmap.SignType]
                     Signs: [0×1 roadrunner.hdmap.Sign]
         StaticObjectTypes: [0×1 roadrunner.hdmap.StaticObjectType]
             StaticObjects: [1×1 roadrunner.hdmap.StaticObject]
    
    

    Version History

    Introduced in R2022b