I created a scenario in driving scenario designer, How to get Simulink Model of senario that gives output as Yaw Angle, Reference Pose, Curvature, Direction?

4 次查看(过去 30 天)

回答(1 个)

Naman Kaushik
Naman Kaushik 2023-7-6
编辑:Naman Kaushik 2023-7-6
Hi Raman!
I understand that you wish to read the output of the drivingScenario block in Simulink
The first step would be exactly what you have done, i.e. click on the 'Export' button on the top bar of the drivingScenarioDesigner applications and them "Export as Simulink model".
Now once your simulink file gets up and running you can now access the info required by attaching a "MATLAB System" block. You can connect the output arrow of the drivingScenario block to the input of this MATLAB system block.
Now double-clicking this would show you the class file for this block and you can then access the required information as the input variable to the "stepImpl" function.
To read more about the "MATLAB systems block":

Community Treasure Hunt

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

Start Hunting!

Translated by