Error in simulation of Autonomous Emergency Braking (AEB) with RoadRunner Scenario

5 views (last 30 days)
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
The actor model 'AEBWithRRTestBench' does not have a fixed step solver assigned.
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 Comments
Ajith Pola
Ajith Pola on 17 Oct 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();
MANISH R
MANISH R on 18 Oct 2022
Edited: MANISH R on 18 Oct 2022
Thank you @Ajith Pola will try this. I was running only the simulations multiple times not the entire code.

Sign in to comment.

Answers (0)

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!