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

7 visualizaciones (últimos 30 días)
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 comentarios
Ajith Pola
Ajith Pola el 17 de Oct. de 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 el 18 de Oct. de 2022
Editada: MANISH R el 18 de Oct. de 2022
Thank you @Ajith Pola will try this. I was running only the simulations multiple times not the entire code.

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by