How to include road markings created with the marking curve tool in an OpenDRIVE export-file correctly with RoadRunner?
조회 수: 8 (최근 30일)
이전 댓글 표시
Dear Roadrunner-Team,
I´ve created the following junction in RoadRunner:

Therefore, I created many road markings, which a not directly placed on the borders of lanes "manually" at the specific positions using the marking curve tool. After exporting the scenery to an OpenDRIVE-file (with all options toggled on) no warning or errors appear (see the view within the OpenDrive Export Preview Tool):

When trying to import the same .xodr-file through the "build scene" button with options "import signals" and "Import props" toggled on, I get a lot of warnings concerning these object made with the marking curve tools and in addition for signals and stencils "not mapped to Asset" and all these object are not displayed:


I tried the .xodr-file with other simulators and the road markings arent displayed as well. So the error seems to come within the export-step or even before while creating this markings and what leads to a wrong .xodr-file at the end. Do you know how to solve this problem, or, is there at least a workaround to incorporate the markings as near to reality as possible?
Best regards,
Nico
댓글 수: 0
채택된 답변
John Pallag
2021년 7월 1일
Props, markings, and signals need to have an entry in the OpenDriveAssetData.xml file located in your Project folder in order to define proper "type" and "subtype" values for the corresponding <object> and <signal> entries.
In your case, you would need to add the following entries to the <Objects> section of the OpenDriveAssetData.xml file:
<Object>
<Type>roadmark</Type>
<Name>SolidSingle</Name>
<FilePath>Markings/SolidSingle.rrlms</FilePath>
</Object>
<Object>
<Type>roadmark</Type>
<Name>Stencil_LeftTurnArrow</Name>
<FilePath>Stencils/Stencil_LeftTurnArrow.svg_rrx</FilePath>
</Object>
<Object>
<Type>roadmark</Type>
<Name>Stencil_ThroughAndRightLaneArrow</Name>
<FilePath>Stencils/Stencil_ThroughAndRightLaneArrow.svg_rrx</FilePath>
</Object>
<Object>
<Type>pole</Type>
<Height>3</Height>
<Name>SignPost_10ft</Name>
<FilePath>Props/Signals/SignPost_10ft.fbx_rrx</FilePath>
</Object>
<Object>
<Type>roadmark</Type>
<Name>StopLine</Name>
<FilePath>Markings/StopLine.rrlms</FilePath>
</Object>
Note that my <FilePath> values here may be slightly different than the ones you use.
Similarly, you would need to add the following entries to the <Signals> section of the OpenDriveAssetData.xml file:
<Signal>
<Type>205</Type>
<FilePath>Signs/Sign_Yield.svg_rrx</FilePath>
</Signal>
<Signal>
<Type>206</Type>
<FilePath>Signs/Sign_Stop.svg_rrx</FilePath>
</Signal>
<Signal>
<Type>301</Type>
<FilePath>Signs/Sign_PriorityThroughTraffic.svg_rrx</FilePath>
</Signal>
Note, that similar to the <Object> entries, my <FilePath> values may be slightly different.
You can find further details on this XML file here: Export to OpenDRIVE - MATLAB & Simulink (mathworks.com)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Export Scenes에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!