trackerSensorSpec
Sensor specification for multi-target multi-sensor specification-based tracker
Since R2024b
Description
creates a sensor specification based on the input application. You can use tab-completion at
each input argument to view the available applications. This hierarchy shows the list of
pre-built sensor specifications available in the toolbox.spec
= trackerSensorSpec(domain
,category
,subcategory
)
Examples
Create and Configure Specification for Vehicle-Mounted Camera
Create a specification for a camera mounted on an ego vehicle.
cameraSpec = trackerSensorSpec("automotive","camera","bounding-boxes")
cameraSpec = AutomotiveCameraBoxes with properties: ReferenceFrame: 'ego' MaxNumMeasurements: 64 MountingLocation: [0 0 0] m MountingAngles: [0 1 0] deg EgoOriginHeight: 0.3 m Intrinsics: [3⨯3 double] ImageSize: [480 640] pixels MaxRange: 100 m CenterAccuracy: 10 pixels HeightAccuracy: 10 pixels WidthAccuracy: 10 pixels DetectionProbability: 0.9 NumFalsePositivesPerImage: 0.01 NumNewTargetsPerImage: 0.01
Configure the camera specification based on your application. In this example, the camera of interest is mounted at [3.7920 0 1.1]
meters with respect to the ego vehicle origin and is pointing downward with a pitch angle of 1 degree. The resolution of the camera is 640 pixels in width and 480 pixels in height. Its intrinsics matrix is [800 0 320; 0 600 240; 0 0 1]
and the maximum range is 80 meters. The height of the ego vehicle frame origin with respect to ground is 0.4 meters.
cameraSpec.MountingLocation = [3.7920 0 1.1]; cameraSpec.MountingAngles = [0 1 0]; cameraSpec.ImageSize = [480 640]; cameraSpec.Intrinsics = [800 0 320 0 600 240 0 0 1]; cameraSpec.MaxRange = 80; cameraSpec.EgoOriginHeight = 0.4;
You can use the camera specification as an input to the multiSensorTargetTracker
function along with your target specifications to create a JIPDAtracker
.
carSpec = trackerTargetSpec("automotive","car","highway-driving"); tracker = multiSensorTargetTracker(carSpec,cameraSpec,"jipda")
tracker = fusion.tracker.JIPDATracker with properties: TargetSpecifications: {[1x1 HighwayCar]} SensorSpecifications: {[1x1 AutomotiveCameraBoxes]} MaxMahalanobisDistance: 5 ConfirmationExistenceProbability: 0.9000 DeletionExistenceProbability: 0.1000
Use the dataFormat
function to determine the format of inputs required by the tracker.
The camera requires bounding boxes in the image space.
cameraData = dataFormat(cameraSpec)
cameraData = struct with fields:
Time: 0
BoundingBox: [4x64 double]
Input Arguments
domain
— Sensor domain
"aerospace" | "automotive"
Sensor domain, specified as "aerospace"
or
"automotive"
.
category
— Sensor category
"radar"
| "infrared"
| "camera"
| "lidar"
Sensor category, specified as one of these:
"radar"
or"infrared"
if the domain is"aerospace"
"radar"
,"camera"
or"lidar"
if the domain is"automotive"
subcategory
— Sensor subcategory
"monostatic"
| "direction-finder"
| "angle-only"
| "bounding-boxes"
| "clustered-points"
Sensor subcategory, specified as one of these:
"monostatic"
or"direction-finder"
if the domain is"aerospace"
and category is"radar"
"angle-only"
if the domain is"aerospace"
and category is"infrared"
"clustered-points"
if the domain is"automotive"
and category is"radar"
"bounding-boxes"
if the domain is"automotive"
and category is"camera"
or"lidar"
Output Arguments
spec
— Sensor specification
object
Sensor specification, returned as one of the objects in this table based on the input arguments.
Input Arguments | Target Specification Object |
---|---|
"aerospace","radar","monostatic" | AerospaceMonostaticRadar |
"aerospace","radar","direction-finder" | AerospaceESMRadar |
"aerospace","infrared","angle-only" | AerospaceAngleOnlyIR |
"automotive","radar","clustered-points" | AutomotiveRadarClusteredPoints |
"automotive","camera","bounding-boxes" | AutomotiveCameraBoxes |
"automotive","lidar","bounding-boxes" | AutomotiveLidarBoxes |
You can use this sensor specification object to define a tracker using the multiSensorTargetTracker
function. You can use the dataFormat
function on the spec
object to determine the data format required
by the tracker.
Version History
Introduced in R2024b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)