How to generate a stationary car and define the direction of the vehicle via matlab in Roadrunner

5 ビュー (過去 30 日間)
Xinyu
Xinyu 2024 年 11 月 20 日
編集済み: MULI 2024 年 12 月 4 日
Hello everyone,
I want to import stationary car in Roadrunner, and define the direction of the car, how can I realize it, I tried like this picture, but Roadrunner reminds me that I can't use this
" filename = fullfile(pwd,filenamecsv);
importScenario(rrApp,filename,format,option);"
to import a stationay things, after that I write a CSV, here the coordinates of this car are stationary at all times, and import CSV in Roadrunner, got this result. Vehicles on both sides of the road are stationary, but they should be orientated parallel to the road instead.
Best regards,
Xinyu
  2 件のコメント
Raghava S N
Raghava S N 2024 年 11 月 21 日
Could you share the CSV file you are working with via an attachment? That would help us in reproducing the issue at our end.
Thanks
Xinyu
Xinyu 2024 年 11 月 27 日
Hi Raghava,
there is the CSV file
Best regards,
Xinyu

サインインしてコメントする。

回答 (1 件)

MULI
MULI 2024 年 12 月 4 日
編集済み: MULI 2024 年 12 月 4 日
I understand that you want to import stationary vehicles into RoadRunner and ensure they are oriented parallel to the road.
  • To achieve this your CSV file should include columns for position (x, y, z) and orientation (yaw in radians). The yaw column specifies the direction of each vehicle relative to the road.
  • For example, vehicles parallel to a straight road might have yaw values of 0 (eastward) or 1.57 (northward).
  • You can import this CSV interactively via File → Import → CSV Trajectory in RoadRunner or programmatically using MATLAB. Ensure the yaw values correctly align with the road's direction for accurate orientation.
For more information on importing trajectories using CSV file you can refer to below documentation links:

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by