API コマンドを使用して RoadRunner シミュレーションを実​行する際に、シミュレ​ーションの終了点を確​認するにはどうすれば​よいでしょうか

以下の標準的なワークフローで API コマンドを使用して RoadRunner シミュレーションを実行する場合、シミュレーションの終了点を確認したいと考えています。これを行うには、どのようなプログラムになりますか。
rrApp = roadrunner(projectFolder);
rrApi = roadrunnerAPI(rrApp);
openScene(rrApp, sceneFile);
openScenario(rrApp, scenarioFile);
set(rrSim、「SimulationCommand」、「Start);

 Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 1 Sep. 2026 um 0:00

0 Stimmen

"set"コマンドでシミュレーションを開始した後は、"SimulationStatus"プロパティを使用して、次のコマンドにより終了点を確認できます。
while strcmp(get(rrSim,"SimulationStatus"),"Running")
pause(1);
end
終了後には、exportActorTrajectoryToCSV などのファイル出力コマンドを実行できます。

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!