How to create a bus for the scenario reader?
5 次查看(过去 30 天)
显示 更早的评论
I have the following:
P2HEV model, that I'm trying to simulate using the autonomous driving toolbox, using some bulit-in MatLab examples, I'm able to extract the relevant info from the egoVehicle, and form a struct as an input to the scenario reader. but I'm getting errors related to bus namings
In port settings of the scenario reader, I'm setting the source as Property, and the name as "BusActor"
similarly, in the data of the MatLab function, the output port "egoActor" is set to bus<BusActor>
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/362125/image.png)
There is a probem in creating the bus, and I don't know how to create one manually for this task, any help is appreciated.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/362119/image.png)
0 个评论
采纳的回答
Fangjun Jiang
2020-9-17
To resolve the error, open the MATLAB Function, click "Edit Data",
Select "Bus: <object name>" from the dropdown list for "type" to set the data type. Bus object "egoActor" must be defined.
1 个评论
Fangjun Jiang
2020-9-18
Follow this link to Bus Editor
https://www.mathworks.com/help/releases/R2020a/simulink/slref/buseditor.html
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Aerospace Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!