API を使用して RoadRunner シミュレーションからアクター軌跡をエクスポートするにはどうすればよいですか。
이전 댓글 표시
RoadRunner API を使用して、RoadRunner シナリオ内の Sedan アクターの軌跡をエクスポートしたいと考えています。以下のワークフローを使用しました。
rrApp = roadrunner(projectFolder);
rrApi = roadrunnerAPI(rrApp);
openScene(rrApp, sceneFile);
openScenario(rrApp, scenarioFile);
rrSim = createSimulation(rrApp);
set(rrSim、「MaxSimulationTime」、10);
set(rrSim、「SimulationCommand」、「Start」);
間(15)
exportActorTrajectoryToCSV(rrApp, 'FolderPath', outputFolderPath, 'FolderName', outputFolderName);
シミュレーション自体は実行されますが、エクスポート時に次のエラーが発生します。
Unable to export CSV file. Set the value of 'enable_runtime_log' field of the 'SimulateScenario' method to 'true' to enable simulation logging.
また、"simulateScenario(rrApp,'EnableLogging',true)" によってロギングを有効にすることも試しましたが、"set" コマンドで指定した "MaxSimulationTime" を無効にしてしまいます。
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MATLAB Functions for Scenarios에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!