How do I create "Junction ID" & "Road ID" in RoadRunner?

9 次查看(过去 30 天)
I am using RoadRunner R2024a right now, and I want to assign road IDs to the roads I generate and junction IDs to the junctions.
If you look at the link below,
at 4:42, you can see junction IDs and road IDs in the attributes.
Even if I follow the video exactly, nothing appears in my attributes.
So I looked at the answer of other person who asked similar question.
It says I have to buy matlab and automated driving toolbox, but that costs too much money.
I just want to add something simple like an ID to the attributes.
Is there really no way other than buying matlab and the toolbox?
  9 个评论
예은
예은 2024-7-19
I'm sorry, I think I'm lost here.
Firstly, I didn't use "addpath('full_path_to_directory_containing_multiply_numbers.m');" exactly.
Instead, I used the path where the multiply_numbers.m file is located, which in my case is USERS/documents/MATLAB.
So, if I understand correctly, after moving the multiply_numbers.m file to where RoadRunner is located, I should use the path of multiply_numbers.m inside RoadRunner as the parameter for addpath.
I tried moving multiply_numbers.m to C:\Program Files\RoadRunner R2024a, where RoadRunner is installed, and then executed "addpath" in MATLAB before running "rr = RoadRunner();", but I'm still experiencing the same error.
Did I misunderstand something?
Sorry to bother you with this again.
Umar
Umar 2024-7-19
Hi 예은,
Make sure to include the directory where multiply_numbers.m is located, not just the RoadRunner installation directory.Here is an example of how you can add the path correctly:
addpath('C:\Program Files\RoadRunner R2024a'); % Add RoadRunner directory to the path
addpath('C:\Program Files\RoadRunner R2024a\YOUR_SCRIPT_DIRECTORY'); % Add the directory containing multiply_numbers.m
By adding both the RoadRunner directory and the specific directory containing your script, Matlab will be able to locate and execute multiply_numbers.m successfully.

请先登录,再进行评论。

采纳的回答

Angelo Yeo
Angelo Yeo 2024-7-19
编辑:Angelo Yeo 2024-7-19
Showing Junction ID, etc. in the attribute panel shown in the video is a function that can only be seen with RoadRunner's developer license, and is not available to end users as of now.
End users can use the OpenDRIVE Export Preview Tool to view Lane Id, Road Id, and Junction Id.
  1. With any "rrscene" file open, click the OpenDRIVE Export Preview Tool to “Export” it. (There is no need to change any special settings.)
  2. With the OpenDRIVE Export Preview Tool activated, you can check the Id values by clicking on a road, etc.
  2 个评论
예은
예은 2024-7-19
Thank you Angelo!
This information is really valuable to me as well.
Being able to check, junction, lane, and road IDs is a significant development for me.
However, I've noticed that these IDs change every time I export.
Furthermore, I can't change these IDs.
Is there any way for me to change(set) these IDs?
Angelo Yeo
Angelo Yeo 2024-7-19
@예은, I don't think the IDs are changing for every export for me. Can you show your issue with screenshots? Also, can you let me reproduce the issue with given example scenes in RR?
Also, unfortunately, the IDs are shown as "read-only" in Open DRIVE Export Preview Tool. If you want to change this, please reach out to MW technical support and apply for an enhancement reqruest.

请先登录,再进行评论。

更多回答(0 个)

产品


版本

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by