Error in simulation of Autonomous Emergency Braking (AEB) with RoadRunner Scenario
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Ajith Pola
il 17 Ott 2022
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();
Risposte (0)
Vedere anche
Categorie
Scopri di più su Programmatic Scene and Scenario Management in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!