CSV形式の軌跡デー​タを歩行者(Pede​strian)Act​orとしてRoadR​unnerのシーンに​インポートすることは​可能でしょうか?

6 views (last 30 days)
CSV形式の軌跡データを歩行者(Pedestrian)ActorとしてRoadRunnerのシーンにインポートする方法を教えてください。

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 1 Feb 2026 at 0:00
はい、コマンドを使用することで可能です。
以下は、CSV形式の軌跡データをインポートし、歩行者(Pedestrian)Actor を作成するためのコマンド例です。
CmdRoadRunnerApi.exe -c "Import(file_path='path_to_csv_file' format_name='CSV Trajectory' csv_trajectory_settings.actor_attributes.asset_path='Characters/Citizen_Male.rrchar' csv_trajectory_settings.actor_attributes.name='Ped1')"
関連ドキュメント:Import Trajectories from CSV Files
https://jp.mathworks.com/help/roadrunner-scenario/ug/import-trajectories-from-csv-files.html?s_tid=ai_sources_3_Roadrunner+scenario+import+csv​
​​
また、MATLABからRoadRunnerを起動して、歩行者アクターのCSV軌跡をインポートすることも可能です。
添付のdemo_importcsv_ped.mlx(R2024b以降)を実行することで、下図の結果を得ることができます。

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!