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

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

 採用された回答

MathWorks Support Team
MathWorks Support Team 約1時間 前

0 投票

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!