Error in simulation of Autonomous Emergency Braking (AEB) with RoadRunner Scenario
5 ビュー (過去 30 日間)
古いコメントを表示
I am trying to run the matlab example of Autonomous Emergency Braking (AEB) with Roadrunner scenario but facing an error "ERROR: Client 'MATLAB_Client' (id: {4f3fdfb0-583c-46d2-a9f3-a7f06409282f}) timed out on event SimulationStepEvent." The same code was run without an issue yesterday but now im facing this problem and also a warning comes "Unable to locate a simulator for actor behavior '{c9b9931f-f26b-4a24-b47d-039f068a3696}', applying RoadRunner default behavior to this actor". And in the simulink a warning occurs as
Code
rrAppPath = "C:\Program Files\RoadRunner R2022b\bin\win64";
rrProjectPath = "E:\RoadRunner\Project\RR project";
s = settings;
s.roadrunner.application.InstallationFolder.TemporaryValue = rrAppPath;
rrApp = roadrunner(rrProjectPath);
helperDrivingProjectSetup("AEBWithRRScenario.zip",workDir=pwd)
copyfile("AEBWithRRScenario/AEBTestScenarios/RoadRunner/Scenes",fullfile(rrProjectPath,"Scenes"))
copyfile("AEBWithRRScenario/AEBTestScenarios/RoadRunner/Scenarios",fullfile(rrProjectPath,"Scenarios"))
copyfile("AEBWithRRScenario/AEBWithRRScenario/TestBench/AEB.rrbehavior.rrmeta",fullfile(rrProjectPath,"Assets","Behaviors"))
openScene(rrApp,"HighwayStraightRoad.rrscene")
openScenario(rrApp,"scenario_03_CarToPedestrian_NearSide_Adult.rrscenario")
rrSim = createSimulation(rrApp);
set(rrSim,Logging="on")
Ts = 0.05;
set(rrSim,StepSize=Ts)
modelName = "AEBWithRRTestBench";
open_system(modelName)
open_system("AEBWithRRTestBench/Sensors")
helperSLAEBWithRRSetup(rrApp,rrSim,scenarioFileName="scenario_03_CarToPedestrian_NearSide_Adult")
set(rrSim,SimulationCommand="Start")
while strcmp(rrSim.get("SimulationStatus"),"Running")
pause(1)
end
helperPlotAEBResults(logsout,"scenario_03_CarToPedestrian_NearSide_Adult")
2 件のコメント
Ajith Pola
2022 年 10 月 17 日
Hi Manish,
Are you running the above code for every simulation or you have connected to RoadRunner from MATLAB and ran multiple simulations?
If you have connected to RoadRunner once and ran multiple simulaitons.and after some time if you are seeing above issue. Try below steps and see if that helps.
% Remove existing connection
delete(rrSim);
% Connect to RoadRunner
rrSim = rrApp.createSimulation();
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Design and Simulate Scenarios についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!