Viewer Sequence

Viewer sequences are defined as arrays in JSON format.

Specifying viewer sequences is optional. You may leave out specifying this in your configuration file. However, if you're specifying them, you can define one or more viewer sequence. The name of each sequence must follow the format: viewer_sequence_number where number must be 1 for the first viewer sequence you define, and each subsequent sequence you specify, number is incremented by one. For example:

...
    "viewer_sequence_1": [
        {
            "instance": 1, 
            "visible": false
        },
        {
            "instance": 4, 
            "visible": false
        },
        {
            "instance": 2, 
            "view": "ADAS_VIEW_ISOMETRIC",
            "zoom_factor": 2
        },
        {
            "instance": 2, 
            "visible": true
        },
        {
            "instance": 3, 
            "visible": true,
            "sleep_ms": 10000
        },
        {
            "instance": 2, 
            "view": "ADAS_VIEW_ISOMETRIC",
            "zoom_factor": 4,
            "sleep_ms": 6000
        },
        {
            "instance": 2, 
            "view": "ADAS_VIEW_BIRDSEYE",
            "zoom_factor": 2,
            "sleep_ms": 6000
        },
        {
            "instance": 2, 
            "view": "ADAS_VIEW_BIRDSEYE",
            "zoom_factor": 1,
            "sleep_ms": 6000
        },
        {
            "instance": 2, 
            "visible": false
        },
        {
            "instance": 3, 
            "visible": false
        },
        {
            "instance": 1, 
            "view": "ADAS_VIEW_FORWARD",
            "zoom_factor": 1
        },
        {
            "instance": 1, 
            "visible": true
        },
        {
            "instance": 4, 
            "visible": true,
            "sleep_ms": 15000
        },
        {
            "instance": 1, 
            "view": "ADAS_VIEW_RADAR",
            "zoom_factor": 1,
            "sleep_ms": 6000
        },
        {
            "instance": 1, 
            "view": "ADAS_VIEW_NAVIGATION",
            "zoom_factor": 2,
            "sleep_ms": 6000
        }
    ],
...
           

Attributes:

There are the attributes that you can use to configure each entry of the list of a viewer sequence.

instance
(Required) The instance of a viewer. The value is the index of the viewer that's configured in the viewer array in your configuration file. The index is in range [1..n] where n is the total number of viewers in your viewer array. For example, if in your viewer array, you have these entries:
...
    "viewer": [
        {
            "type": "ADAS_VIEWER_CAMERA",
            ...
        },
        {
            "type": "ADAS_VIEWER_POINT_CLOUD",
            ...
        },
        {
            "type": "ADAS_VIEWER_OVERLAY",
            ...
        },
        {
            "type": "ADAS_VIEWER_OVERLAY",
            ...
    ],
...
                                    
then you can specify 1 (the viewer whose instance is ADAS_VIEWER_CAMERA) as the instance attribute. For example:
...
    "viewer_sequence_1": [
        {
            "instance": 1, 
            ...
        },
...
                        
sleep_ms
(Optional) The amount of time (in milliseconds) to wait before applying the next entry in the viewer sequence. For example:
...
        {
            "instance": 3, 
            "sleep_ms": 10000
        },
...
                        
view
(Optional)
Note: You must specify one of view or visible, but not both, attributes in an entry of the viewer sequence.
The new view that the viewer selects. Valid entries for this attribute are:
  • ADAS_VIEW_BIRDSEYE
  • ADAS_VIEW_MOSAIC_2X2
  • ADAS_VIEW_ISOMETRIC
  • ADAS_VIEW_FORWARD
  • ADAS_VIEW_BACKWARD
  • ADAS_VIEW_DRIVER
  • ADAS_VIEW_RADAR
  • ADAS_VIEW_NAVIGATION
See adas_view_t.
visible
(Optional)
Note: You must specify one of view or visible, but not both, attributes in an entry of the viewer sequence.
An indicator of whether the viewer is visible (true) or invisible (false). For example:
...
            "visible": true,
...
                        
zoom_factor
(Optional) The initial zoom factor to use if view was specified. If zoom_factor is not specified, the default is 1. For example:
...
            "zoom_factor": 1,
...