Why am I getting a bus field size error message in the method 'getOutputDataTypeImpl' when using two Simulation 3D Lidar blocks?

I want to use more than one 'Simulation 3d Lidar' block with different Vertical fields of view for each of the lidar systems I am using. I am getting the following error in the Diagnostic Viewer:
The method 'stepImpl' of the System object 'Simulation3DLidarSensor' returns a bus type whose field BusPositionVelocity.
Position size does not match the field BusPositionVelocity.Position size defined in the method 'getOutputDataTypeImpl'.

 Accepted Answer

This is a current limitation as of R2020a. There can be only one 'Vertical field of view' in the parameters of the lidar blocks.
To achieve the desired result, please use the largest angle for both blocks. Then, post process the output of one of the 'Simulation 3d Lidar' blocks to remove the elements in the matrix which would be outside of the smaller field of view. 

More Answers (0)

Products

Release

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!