필터 지우기
필터 지우기

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

조회 수: 3 (최근 30일)
MANISH R
MANISH R 2022년 10월 14일
편집: MANISH R 2022년 10월 18일
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
Ajith Pola
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();
MANISH R
MANISH R 2022년 10월 18일
편집: MANISH R 2022년 10월 18일
Thank you @Ajith Pola will try this. I was running only the simulations multiple times not the entire code.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Design and Simulate Scenarios에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by