Main Content

Radar Data Generator

Generate radar sensor detections and tracks

Since R2021b

  • Radar Data Generator block

Libraries:
Radar Toolbox

Description

The Radar Data Generator block reads target poses and time from a scenario reader and generates detection and track reports of targets from a radar sensor model. Use this block to generate sensor data from a scenario containing targets, sensors, and trajectories, which you can read from a Scenario Reader (Automated Driving Toolbox) block or Tracking Scenario Reader (Sensor Fusion and Tracking Toolbox).

The Radar Data Generator block can generate clustered or unclustered detections with added random noise and can also generate false alarm detections. You can also generate tracks from the Radar Data Generator block. Use the Target reporting format parameter to specify whether targets are output as clustered detections, unclustered detections, or tracks.

Examples

Ports

Input

expand all

Target poses in platform coordinates, specified as a Simulink bus containing a MATLAB structure. The Targets input port can accept output from the Actors output port of the Scenario Reader (Automated Driving Toolbox) block in the Automated Driving Toolbox™ or from the Platforms output port of the Tracking Scenario Reader (Sensor Fusion and Tracking Toolbox) in the Sensor Fusion and Tracking Toolbox™.

The Scenario Reader block and the Tracking Scenario Reader block output pose data in different formats. The Radar Data Generator reads data from either block. In each case, the data consists of two data fields followed by an array of structures. These structures define the number of Platforms or the number of Actors. Platforms and Actors are collectively called Targets.

FieldDescriptionType

Input blockField name
Scenario Reader (Automated Driving Toolbox)NumActors
Tracking Scenario Reader (Sensor Fusion and Tracking Toolbox)NumPlatforms

Number of valid target poses

Nonnegative integer

TimeCurrent simulation time (optional). If missing, the current Simulink simulation time is used.Real-valued scalar

Input blockField name
Scenario Reader (Automated Driving Toolbox)Actors
Tracking Scenario Reader (Sensor Fusion and Tracking Toolbox)Platforms

Valid target posesArray of target pose structures

The Actors structure is described in the output port of the Scenario Reader (Automated Driving Toolbox) block and the Platforms structure is described in the output port of the Tracking Scenario Reader (Sensor Fusion and Tracking Toolbox) block.

Radar pose information from an inertial navigation system (INS), specified as a Simulink bus containing a single MATLAB structure. The structure includes pose information for the radar platform that is provided by the INS. The INS information can then be used to estimate the target positions in the NED frame. INS is a struct with the following fields:

FieldDefinition
Position

Position in the scenario frame specified as a real-valued 1-by-3 vector. Units are in meters.

Velocity

Velocity in the scenario frame specified as a real-valued 1-by-3 vector. Units are in m/s.

Orientation

Orientation with respect to the scenario frame, specified as a 3-by-3 real-valued rotation matrix. The rotation is from the navigation frame to the current INS body frame. This is also referred to as a "parent to child" rotation.

Dependencies

To enable this port, select the Enable INS check box.

Current simulation time, specified as a nonnegative scalar. The sensor only generates reports at simulation times corresponding to integer multiples of the update interval, which is given by the reciprocal of the Update rate (Hz) parameter. Units are in seconds.

Dependencies

To enable this port, set the Source of target truth time to Input port.

If this port is not enabled, then the time is taken from the time on the Target poses input bus. If time is not on this bus, then the current Simulink simulation time is used.

Data Types: double

Output

expand all

Clustered object detections, returned as a Simulink bus containing a MATLAB structure. For more details about buses, see Create Nonvirtual Buses (Simulink).

With clustered detections, the block outputs a single detection per target, where each detection is the centroid of the unclustered detections for that target.

You can pass object detections from these sensors and other sensors to a tracker, such as the Global Nearest Neighbor Multi Object Tracker (Sensor Fusion and Tracking Toolbox) block in the Sensor Fusion and Tracking Toolbox.

The structure contains these fields.

FieldDescriptionType
NumDetectionsNumber of valid detectionsNonnegative integer
IsValidTimeFalse when updates are requested at times that are between block invocation intervalsBoolean
DetectionsObject detectionsArray of object detection structures of length set by the Maximum number of target reports parameter. Only NumDetections of these are actual detections.

Each object detection structure contains these properties.

PropertyDefinition
TimeMeasurement time
MeasurementObject measurements
MeasurementNoiseMeasurement noise covariance matrix
SensorIndexUnique ID of the sensor
ObjectClassIDObject classification
ObjectAttributesAdditional information passed to tracker
MeasurementParametersParameters used by initialization functions of nonlinear Kalman tracking filters

  • For rectangular coordinates, Measurement and MeasurementNoise are reported in the rectangular coordinate system specified by the Coordinate system parameter.

  • For spherical coordinates, Measurement and MeasurementNoise are reported in the spherical coordinate system, which is based on the sensor rectangular coordinate system.

Measurement and MeasurementNoise

Coordinate SystemMeasurement and MeasurementNoise Coordinates
Scenario

This table shows how coordinates are affected by the Enable range rate measurements parameter.

Enable range rate measurementsCoordinates
on[x;y;z;vx;vy;vz]
off[x;y;z]
Body
Sensor rectangular
Sensor spherical

This table shows how coordinates are affected by the Enable elevation angle measurements and Enable range rate measurements parameters.

Enable range rate measurementsEnable elevation angle measurementsCoordinates
onon[az;el;rng;rr]
onoff[az;rng;rr]
offon[az;el;rng]
offoff[az;rng]

For ObjectAttributes, this table describes the additional information used for tracking.

ObjectAttributes

AttributeDefinition
TargetIndexIdentifier of the ActorID or PlatformID of the target that generated the detection. For false alarms, this value is negative.
SNRSignal-to-noise ratio of the detection. Units are in dB.
BounceTargetIndexIdentifier of the target generating the multipath bounce that produced the ghost target report. Only present when HasGhosts is true.
BouncePathIndex

Index of the bounce path associated with the target report. Only present when HasGhosts is true.

Bounce-Path Index

BouncePathIndexDescription
0Direct-path target report
1First 2-bounce path detection
2Second 2-bounce path
33-bounce path

For MeasurementParameters, the measurements are relative to the parent frame. When you set the Coordinate system parameter to Body, the parent frame is the platform body. When you set Coordinate system to Sensor rectangular or Sensor spherical, the parent frame is the sensor.

MeasurementParameters

ParameterDefinition
Frame Enumerated type indicating the frame used to report measurements. When Frame is set to 'rectangular', detections are reported in Cartesian coordinates. When Frame is set to 'spherical', detections are reported in spherical coordinates.
OriginPosition3-D vector offset of the sensor origin from the parent frame origin.
OrientationOrientation of the radar sensor coordinate system with respect to the parent frame.
HasVelocityIndicates whether measurements contain velocity or range rate components.
HasElevationIndicates whether measurements contain elevation components.

Dependencies

To enable this port, select the Target reporting format pull-down menu as Clustered detections.

Object tracks, returned as a Simulink bus containing a MATLAB structure. See Create Nonvirtual Buses (Simulink).

This table shows the structure fields.

FieldDescription
NumTracksNumber of tracks
IsValidTimeFalse when updates are requested at times that are between block invocation intervals
TracksArray of track structures of a length set by the Maximum number of target reports parameter. Only the first NumTracks of these are actual tracks.

This table shows the fields of each track structure.

FieldDefinition
TrackIDUnique track identifier used to distinguish multiple tracks.
BranchIDUnique track branch identifier used to distinguish multiple track branches.
SourceIndexUnique source index used to distinguish tracking sources in a multiple tracker environment.
UpdateTimeTime at which the track is updated. Units are in seconds.
AgeNumber of times the track was updated.
State

Value of state vector at the update time.

StateCovariance

Uncertainty covariance matrix.

ObjectClassIDInteger value representing the object classification. The value 0 represents an unknown classification. Nonzero classifications apply only to confirmed tracks.
TrackLogicConfirmation and deletion logic type. This value is always 'History' for radar sensors, to indicate history-based logic.
TrackLogicState

Current state of the track logic type, returned as a 1-by-K logical array. K is the number of latest track logical states recorded. In the array, 1 denotes a hit and 0 denotes a miss.

IsConfirmedConfirmation status. This field is true if the track is confirmed to be a real target.
IsCoastedCoasting status. This field is true if the track is updated without a new detection.
IsSelfReported

Indicate if the track is reported by the tracker. This field is used in a track fusion environment. It is returned as true by default.

ObjectAttributesAdditional information about the track.

For more details about these fields, see objectTrack.

The block outputs only confirmed tracks, which are tracks to which the block assigns at least M detections during the first N updates after track initialization. To specify the values M and N, use the M and N for the M-out-of-N confirmation parameter.

Dependencies

To enable this port, on the Parameters tab, set the Target reporting format parameter to Tracks.

Unclustered object detections, returned as a Simulink bus containing a MATLAB structure. For more details about buses, see Create Nonvirtual Buses (Simulink).

With unclustered detections, the block outputs all detections, and a target can have multiple detections.

You can pass object detections from these sensors and other sensors to a tracker, such as a Multi-Object Tracker (Automated Driving Toolbox) block, and generate tracks.

The structure must contain these fields:

FieldDescriptionType
NumDetectionsNumber of valid detectionsinteger
IsValidTimeFalse when updates are requested at times that are between block invocation intervalsBoolean
DetectionsObject detectionsArray of object detection structures of length set by the Maximum number of target reports parameter. Only NumDetections of these are actual detections.

Each object detection structure contains these properties.

PropertyDefinition
TimeMeasurement time
MeasurementObject measurements
MeasurementNoiseMeasurement noise covariance matrix
SensorIndexUnique ID of the sensor
ObjectClassIDObject classification
ObjectAttributesAdditional information passed to tracker
MeasurementParametersParameters used by initialization functions of nonlinear Kalman tracking filters

  • For rectangular coordinates, Measurement and MeasurementNoise are reported in the rectangular coordinate system specified by the Coordinate system parameter.

  • For spherical coordinates, Measurement and MeasurementNoise are reported in the spherical coordinate system, which is based on the sensor rectangular coordinate system.

Measurement and MeasurementNoise

Coordinate SystemMeasurement and MeasurementNoise Coordinates
Scenario

This table shows how coordinates are affected by the Enable range rate measurements parameter.

Enable range rate measurementsCoordinates
on[x;y;z;vx;vy;vz]
off[x;y;z]
Body
Sensor rectangular
Sensor spherical

This table shows how coordinates are affected by the Enable elevation angle measurements and Enable range rate measurements parameters.

Enable range rate measurementsEnable elevation angle measurementsCoordinates
onon[az;el;rng;rr]
onoff[az;rng;rr]
offon[az;el;rng]
offoff[az;rng]

For ObjectAttributes, this table describes the additional information used for tracking.

ObjectAttributes

AttributeDefinition
TargetIndexIdentifier of the ActorID or PlatformID of the target that generated the detection. For false alarms, this value is negative.
SNRSignal-to-noise ratio of the detection. Units are in dB.
BounceTargetIndexIdentifier of the target generating the multipath bounce that produced the ghost target report. Only present when HasGhosts is true.
BouncePathIndex

Index of the bounce path associated with the target report. Only present when HasGhosts is true.

Bounce-Path Index

BouncePathIndexDescription
0Direct-path target report
1First 2-bounce path detection
2Second 2-bounce path
33-bounce path

For MeasurementParameters, the measurements are relative to the parent frame. When you set the Coordinate system parameter to Body, the parent frame is the platform body. When you set Coordinate system to Sensor rectangular or Sensor spherical, the parent frame is the sensor.

MeasurementParameters

ParameterDefinition
Frame Enumerated type indicating the frame used to report measurements. When Frame is set to 'rectangular', detections are reported in Cartesian coordinates. When Frame is set to 'spherical', detections are reported in spherical coordinates.
OriginPosition3-D vector offset of the sensor origin from the parent frame origin.
OrientationOrientation of the radar sensor coordinate system with respect to the parent frame.
HasVelocityIndicates whether measurements contain velocity or range rate components.
HasElevationIndicates whether measurements contain elevation components.

Dependencies

To enable this port, set the Target reporting format parameter to Detections.

Configuration, returned as a Simulink bus containing a MATLAB structure. This output can be used to determine which objects fall within the radar beam during object execution. The structure fields are:

FieldDescriptionType
NumConfigurationsNumber of valid configurationsinteger
ConfigurationsConfiguration structureArray of NumConfigurations configuration structures

The configuration structure hast these fields:

FieldDescription
SensorIndex

Unique sensor index, returned as a positive integer.

IsValidTime

Valid detection time, returned as true or false. IsValidTime is false when detection updates are requested between update intervals specified by the update rate.

IsScanDone

IsScanDone is true when the sensor has completed a scan.

FieldOfView

Field of view of the sensor, returned as a 2-by-1 vector of positive real values, [azfov;elfov]. azfov and elfov represent the field of view in azimuth and elevation, respectively.

RangeLimits

Minimum and maximum range of sensor, in meters, specified as a 1-by-2 nonnegative real-valued vector of the form [rmin,rmax].

RangeRateLimits

Minimum and maximum range rate of sensor, in meters per second, specified as a 1-by-2 real-valued vector of the form [rrmin,rrmax].

MeasurementParameters

Sensor measurement parameters, returned as an array of structures containing the coordinate frame transforms needed to transform positions and velocities in the top-level frame to the current sensor frame. For details on MeasurementParameters, see Measurement Parameters.

Dependencies

To enable this port, select the Enable radar configuration output check box.

Parameters

expand all

Parameters

Sensor Identification

Unique sensor identifier, specified as a positive integer. Use this parameter to distinguish between detections or tracks that come from different sensors in a multisensor system. Specify a unique value for each sensor. If you do not update Unique identifier of sensor from the default value of 0, then the radar returns an error at the start of simulation.

Update rate, specified as a positive real scalar. The radar generates new reports at intervals defined by this reciprocal value. Any sensor update requested between update intervals contains no detections or tracks. Units are in Hz.

Sensor Mounting

Sensor location on the radar on the platform, specified as a 1-by-3 real-valued vector of the form [x,y,z]. This parameter defines the coordinates of the sensor along the x-axis, y-axis, and z-axis relative to the platform origin. Units are in meters.

Mounting rotation angles of the radar, specified as a 1-by-3 real-valued vector of form [zyaw ypitch xroll]. This parameter defines the intrinsic Euler angle rotation of the sensor around the z-axis, y-axis, and x-axis with respect to the platform frame, where:

  • zyaw, or yaw angle, rotates the sensor around the z-axis of the platform frame.

  • ypitch, or pitch angle, rotates the sensor around the y-axis of the platform frame. This rotation is relative to the sensor position that results from the zyaw rotation.

  • xroll, or roll angle, rotates the sensor about the x-axis of the platform frame. This rotation is relative to the sensor position that results from the zyaw and ypitch rotations.

These angles are clockwise-positive when looking in the forward direction of the z-axis, y-axis, and x-axis, respectively. Units are in degrees.

Detection Reporting

Select this check box to model a radar sensor that can estimate target elevation.

Select this check box to enable the radar to measure range rates from target detections.

Select this parameter to add noise to the radar measurements. Otherwise, the measurements have no noise. Even if you clear this parameter, the measurement noise covariance matrix, which is reported in the MeasurementNoise field of the generated detections output, represents the measurement noise that is added when Add noise to measurements is selected.

Select this parameter to enable creating false alarm radar measurements. If you clear this parameter, the radar reports only actual detections.

Select this parameter to enable line-of-sight occlusion, where the radar generates detection only from objects for which the radar has a direct line of sight. For example, with this parameter enabled, the radar does not generate a detection for an object that is behind another object and blocked from view.

Select this parameter to generate ghost targets for multipath propagation paths having up to three reflections between transmission and reception of the radar signal.

Maximum number of detections or tracks that the sensor reports, specified as a positive integer. The sensor reports detections in order of increasing distance from the sensor until reaching this maximum number.

Format of generated target reports, specified as one of these options:

  • Clustered detections — The block generates target reports as clustered detections, where each target is reported as a single detection that is the centroid of the unclustered target detections. The block returns clustered detections at the Clustered detections output port.

  • Tracks — The block generates target reports as tracks, which are clustered detections that have been processed by a tracking filter. The block returns clustered detections at the Tracks output port.

  • Detections — The block generates target reports as unclustered detections, where each target can have multiple detections. The block returns clustered detections at the Detections output port.

Coordinate system of reported detections, specified as one of these options:

  • Body — Detections are reported in the rectangular body system of the sensor platform.

  • Sensor rectangular — Detections are reported in the sensor rectangular body coordinate system.

  • Sensor spherical — Detections are reported in a spherical coordinate system that is centered at the radar sensor and aligned with the orientation of the radar on the platform.

  • Scenario — Detections are reported in the rectangular scenario coordinate frame. The scenario coordinate system is defined as the local navigation frame at simulation start time.

Port Settings

Source of output truth time, specified as one of these options:

  • Auto — The block uses the time provided on the target bus, or if not present, the current Simulink simulation time.

  • Input port — The block uses the time provided on the Time input port of the block.

Select this parameter to allow input of INS data using the INS input port.

Source of output target report bus name, specified as one of these options:

  • Auto — The block automatically creates a bus name.

  • Property — Specify the bus name by using the Specify an output target report bus name parameter.

This bus contains Clustered detections, Tracks, or Detections output port data.

Name of the target report bus to be returned in output port, specified as a valid bus name.

Dependencies

To enable this parameter, set the Source of output target report bus name parameter to Property.

Enable the Configuration output port.

Source of output config bus name, specified as one of these options:

  • Auto — The block automatically creates a bus name.

  • Property — Specify the bus name by using the Specify an output config bus name parameter.

Specify the name of the config bus returned in the output port.

Dependencies

To enable this parameter, set the Source of output config bus name parameter to Property.

Measurements

Resolution Settings

Azimuth resolution of the radar, specified as a positive scalar. The azimuth resolution defines the minimum separation in azimuth angle at which the radar can distinguish between two targets. The azimuth resolution is typically the 3 dB downpoint of the azimuth angle beamwidth of the radar. Units are in degrees.

Elevation resolution of the radar, specified as a positive scalar. The elevation resolution defines the minimum separation in elevation angle at which the radar can distinguish between two targets. The elevation resolution is typically the 3 dB downpoint of the elevation angle beamwidth of the radar. Units are in degrees.

Dependencies

To enable this parameter, select the Enable elevation angle measurements check box.

Range resolution of the radar in meters, specified as a positive real scalar. The range resolution defines the minimum separation in range at which the radar can distinguish between two targets. Units are in meters.

Range rate resolution of the radar, specified as a positive real scalar. The range rate resolution defines the minimum separation in range rate at which the radar can distinguish between two targets. Units are in meters per second.

Dependencies

To enable this parameter, on the Parameters tab, select the Enable range rate measurements check box.

Bias Settings

Azimuth bias fraction of the radar, specified as a nonnegative scalar. Azimuth bias is expressed as a fraction of the azimuth resolution specified in the Azimuth resolution (deg) parameter. This value sets a lower bound on the azimuthal accuracy of the radar and is dimensionless.

Elevation bias fraction of the radar, specified as a nonnegative scalar. Elevation bias is expressed as a fraction of the elevation resolution specified in the Elevation resolution (deg) parameter. This value sets a lower bound on the elevation accuracy of the radar and is dimensionless.

Dependencies

To enable this parameter, select the Enable elevation angle measurements check box.

Range bias fraction of the radar, specified as a nonnegative scalar. Range bias is expressed as a fraction of the range resolution specified by the Range resolution (m) property. This property sets a lower bound on the range accuracy of the radar and is dimensionless.

Range rate bias fraction of the radar, specified as a nonnegative scalar. Range rate bias is expressed as a fraction of the range rate resolution specified by the Range rate resolution (m/s) parameter. This property sets a lower bound on the range rate accuracy of the radar and is dimensionless.

Dependencies

To enable this parameter, select the Enable range rate measurements check box.

Detector Settings

Angular field of view of the radar, specified as a 1-by-2 positive real-valued vector of the form [azfov elfov]. The field of view defines the total angular extent spanned by the sensor. The azimuth field of view, azfov, must lie in the interval (0, 360]. The elevation field of view, elfov, must lie in the interval (0, 180]. Units are in degrees

Minimum and maximum range of the radar, specified as a 1-by-2 nonnegative real-valued vector of the form [min max]. The radar does not detect targets that are outside this range. The maximum range, max, must be greater than the minimum range, min. Units are in meters.

Minimum and maximum range rate of radar as a 1-by-2 real-valued vector of the form [min max]. The radar does not detect targets that are outside this range rate. The maximum range rate, max, must be greater than the minimum range rate, min. Units are in meters per second.

Dependencies

To enable this parameter, select the Enable range rate measurements check box.

Probability of detecting a target as a scalar, specified as a scalar in the range (0, 1]. This quantity defines the probability of detecting a target with a radar cross-section, with the radar cross-section specified by the Reference target RCS (dBsm) parameter at the reference detection range specified by the Reference target range (m) parameter. Units are dimensionless.

False alarm report rate within each radar resolution cell, specified as a positive real scalar in the range [10–7, 10–3]. The block determines resolution cells from the Azimuth resolution (deg) and Range resolution (m) parameters and, when enabled, from the Elevation resolution (deg) and Range rate resolution (m/s) parameters. Units are dimensionless.

Reference range for the given probability of detection and the given reference radar cross-section (RCS) , specified as a positive real scalar. The reference range is the range at which a target having a radar cross-section specified by the Reference target RCS (dBsm) parameter is detected with a probability of detection specified by the Detection probability parameter. Units are in meters.

Reference radar cross-section (RCS) for a given probability of detection and reference range, specified as a real scalar. The reference RCS is the RCS value at which a target is detected with a probability specified by the Detection probability parameter at the specified Reference target range (m) parameter value. Values are expressed in dBsm.

Center frequency of the radar band, specified as a positive scalar. Units are in Hz.

Tracker Setting

Kalman filter initialization function, specified as a character vector or string scalar of the name of a valid Kalman filter initialization function.

The table shows the initialization functions that you can use to specify Filter initialization function name.

Initialization FunctionFunction Definition
initcaabfInitialize constant-acceleration alpha-beta Kalman filter
initcvabfInitialize constant-velocity alpha-beta Kalman filter
initcakfInitialize constant-acceleration linear Kalman filter.
initcvkfInitialize constant-velocity linear Kalman filter.
initcaekfInitialize constant-acceleration extended Kalman filter.
initctekf Initialize constant-turnrate extended Kalman filter.
initcvekfInitialize constant-velocity extended Kalman filter.
initcaukf Initialize constant-acceleration unscented Kalman filter.
initctukfInitialize constant-turnrate unscented Kalman filter.
initcvukfInitialize constant-velocity unscented Kalman filter.

You can also write your own initialization function. The function must have the following syntax:

filter = filterInitializationFcn(detection)
The input to this function is a detection report like those created by an objectDetection object. The output of this function must be a tracking filter object, such as trackingKF, trackingEKF, trackingUKF, or trackingABF.

To guide you in writing this function, you can examine the details of the supplied functions from within MATLAB. For example:

type initcvekf

Dependencies

To enable this parameter, set the Target reporting format parameter to 'Tracks'.

Threshold for track confirmation, specified as a 1-by-2 vector of positive integers of the form [M N]. A track is confirmed if it receives at least M detections in the last N updates. M must be less than or equal to N.

  • When setting M, take into account the probability of object detection for the sensors. The probability of detection depends on factors such as occlusion or clutter. You can reduce M when tracks fail to be confirmed or increase M when too many false detections are assigned to tracks.

  • When setting N, consider the number of times you want the tracker to update before it makes a confirmation decision. For example, if a tracker updates every 0.05 seconds, and you want to allow 0.5 seconds to make a confirmation decision, set N = 10.

Dependencies

To enable this parameter, set the Target reporting format parameter to 'Tracks'.

Threshold for track deletion, specified as a 1-by-2 vector of positive integers of the form [P R]. If a confirmed track is not assigned to any detection P times in the last R tracker updates, then the track is deleted. P must be less than or equal to R.

  • To reduce how long the radar maintains tracks, decrease R or increase P.

  • To maintain tracks for a longer time, increase R or decrease P.

Dependencies

To enable this parameter, set the Target reporting format parameter to 'Tracks'.

Random Number Generator Settings

Method to set the random number generator seed as one of the options in the table.

OptionDescription
Repeatable

The block generates a random initial seed for the first simulation and reuses this seed for all subsequent simulations. Select this parameter to generate repeatable results from the statistical sensor model. To change this initial seed, at the MATLAB command prompt, enter: clear all.

Specify seedSpecify your own random initial seed for reproducible results by using the Initial seed parameter.
Not repeatableThe block generates a new random initial seed after each simulation run. Select this parameter to generate nonrepeatable results from the statistical sensor model.

Random number generator seed, specified as a nonnegative integer less than 232.

Dependencies

To enable this parameter, set the Random number generation parameter to Specify seed.

Target Profiles

Method to specify target profiles, as one of Parameters, MATLAB expression, From Scenario Reader block. Profiles are the physical and radar characteristics of targets in the scenario.

  • Parameters — The block obtains the target profiles from these parameters:

    • Unique target identifiers

    • Target classification identifiers

    • Length of target cuboids (m)

    • Width of target cuboids (m)

    • Height of target cuboids (m)

    • Rotational center of target cuboids (m)

    • Target signatures

  • MATLAB expression — The block obtains the target profiles from the MATLAB expression specified by the MATLAB expression for target profiles parameter.

  • From Scenario Reader block — The block obtains the actor profiles from the scenario specified by a scenario reader block such as Scenario Reader (Automated Driving Toolbox).

Specify the MATLAB expression for target profiles, as a MATLAB structure, a MATLAB structure array, or a valid MATLAB expression that produces such a structure or structure array.

If your Scenario Reader block reads data from a drivingScenario (Automated Driving Toolbox) object, to obtain the actor profiles directly from this object, set this expression to call the actorProfiles (Automated Driving Toolbox) function on the object. For example: actorProfiles(scenario).

The default target profile expression produces a MATLAB structure and has this form:

struct('ClassID',0,'Length',4.7,'Width',1.8,'Height',1.4, ...
'OriginOffset',[-1.35 0 0],'RCSPattern',[10 10;10 10], ...
'RCSAzimuthAngles',[-180 180],'RCSElevationAngles',[-90 90])

Dependencies

To enable this parameter, set the Target profiles definition parameter to MATLAB expression.

Specify the scenario-defined target identifier as a positive integer or length-L vector of unique positive integers. L must equal the number of targets input into the Targets (Body Frame) input port. The vector elements must match TargetID values of the targets. You can specify Unique target identifiers as []. In this case, the same target profile parameters apply to all targets.

Example: [1 2]

Dependencies

To enable this parameter, set the Target profiles definition parameter to Parameters.

Specify the user-defined classification identifier as an integer or length-L vector of integers. When Unique target identifiers is a vector, this parameter is a vector of the same length with elements in one-to-one correspondence to the targets in Unique target identifiers. When Unique target identifiers is empty, [], you must specify this parameter as a single integer whose value applies to all targets.

Example: 2

Dependencies

To enable this parameter, set the Target profiles definition parameter to Parameters.

Specify the length of target cuboids as a positive real scalar or length-L vector of positive values. When Unique target identifiers is a vector, this parameter is a vector of the same length with elements in one-to-one correspondence to the targets in Unique target identifiers. When Unique target identifiers is empty, [], you must specify this parameter as a positive real scalar whose value applies to all targets. Units are in meters.

Example: 6.3

Dependencies

To enable this parameter, set the Target profiles definition parameter to Parameters.

Specify the width of target cuboids as a positive real scalar or length-L vector of positive values. When Unique target identifiers is a vector, this parameter is a vector of the same length with elements in one-to-one correspondence to the targets in Unique target identifiers. When Unique target identifiers is empty, [], you must specify this parameter as a positive real scalar whose value applies to all targets. Units are in meters.

Example: 4.7

Dependencies

To enable this parameter, set the Target profiles definition parameter to Parameters.

Specify the height of target cuboids as a positive real scalar or length-L vector of positive values. When Unique target identifiers is a vector, this parameter is a vector of the same length with elements in one-to-one correspondence to the targets in Unique target identifiers. When Unique target identifiers is empty, [], you must specify this parameter as a positive real scalar whose value applies to all targets. Units are in meters.

Example: 2.0

Dependencies

To enable this parameter, set the Target profiles definition parameter to Parameters.

Specify the rotational center of target cuboids as a length-L cell array of real-valued 1-by-3 vectors. Each vector represents the offset of the rotational center of a target cuboid from the center of the target. The center of rotation is defined according to the convention detailed in Dimensions. When Unique target identifiers is a vector, this parameter is a cell array of vectors with cells in one-to-one correspondence to the targets in Unique target identifiers. When Unique target identifiers is empty, [], you must specify this parameter as a cell array of one element containing an offset vector whose values apply to all targets. Units are in meters.

Example: {[-1.35, 0.2, 0.3]}

Dependencies

To enable this parameter, set the Target profiles definition parameter to Parameters.

Target signatures, specified as a cell array of rcsSignature objects, which specify the RCS signature of the target.

Dependencies

Dependencies

To enable this parameter, set the Target profiles definition parameter to Parameters.

Version History

Introduced in R2021b

expand all

See Also

| | | | (Automated Driving Toolbox) | (Sensor Fusion and Tracking Toolbox)