An error occurred while propagating data type 'BusDetectionConcatenation2' : Expected the number of position dimension to be 1, 2, or 3.
11 views (last 30 days)
Show older comments
Hello Guys, I have following the tutorial : "Sensor Fusion Using Synthetic Radar and Vision Data in Simulink" to view my road case scenario in bird eyes view.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/402340/image.jpeg)
I have generated my scenario using driving scenario tool box and exported the simulink model. I have connected the blocks just as above in tutorial. I am using 1 camera and 4 radars.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/402345/image.jpeg)
I am having error when I run the simulink model as follows:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/402350/image.jpeg)
Can anyone please exaplin what exactly this error means and how to solve it?
I am also attaching my driving case scenario.
0 Comments
Answers (1)
Tarunbir Gambhir
on 2 Dec 2020
Edited: Tarunbir Gambhir
on 2 Dec 2020
In the example on "Sensor Fusion Using Synthetic Radar and Vision Data in Simulink", the Filter Initialization function used for the Multi-Object Tracker block is "helperInitSimulinkDemoFilter" (you can go through this function by opening the example location in MATLAB).
This helper function uses a discrete-time linear Kalman filter, trackingKF rather than initcvkf used in your model. The initcvkf function generates the same trackingKF object, however the input arguments (the detection report) needs to be modified to match the property requirements of this function. Please refer its MATLAB documentation for more information.
On the other hand, I was able to run your simulation by using the "helperInitSimulinkDemoFilter" function for Filter Initialization. You can create your own filter initialization function with custom properties for trackingKF as done in the helper function. For more information on the properties of this Linear Kalman filter, please refer the MATLAB documentation here.
0 Comments
See Also
Categories
Find more on Tracking and Sensor Fusion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!