Skip to content

Guard rails and barriers in curves #14

@ClemensLinnhoff

Description

@ClemensLinnhoff

I have an OpenDRIVE file with a guard rail on the side of the road and a barrier in the center as a divider.
They are defined in the OpenDRIVE as objects with an outline, like this:

<object id="25" name="GuardRail" s="8.9425250584115815e+01" t="2.1041273659654401e+01" zOffset="3.3019998669624329e-01" hdg="-3.1415926530054130e+00" roll="0.0000000000000000e+00" pitch="0.0000000000000000e+00" orientation="-" type="barrier" subtype="guardRail" height="3.0480000000000002e-01" width="8.4376949871511897e-15" length="1.7885050846499973e+02" validLength="0.0000000000000000e+00" dynamic="no">
    <outlines>
        <outline id="1" outer="true" closed="false">
            <cornerLocal u="-8.9425257880883933e+01" v="-1.2880872333198568e-06" z="1.3303756707383485e-08" height="3.0480000000000002e-01" id="1"/>
            <cornerLocal u="-8.6299565230264136e+01" v="-1.2899138113198205e-06" z="1.3303756707383485e-08" height="3.0480000000000002e-01" id="2"/>
            <cornerLocal u="-8.0808164736064754e+01" v="-1.2931228781098980e-06" z="1.3303756707383485e-08" height="3.0480000000000002e-01" id="3"/>
            <cornerLocal u="-7.5316764241865386e+01" v="-1.2963319448999755e-06" z="1.3303756707383485e-08" height="3.0480000000000002e-01" id="4"/>
            <cornerLocal u="-6.9825363747666017e+01" v="-1.2995410259009077e-06" z="1.3303756707383485e-08" height="3.0480000000000002e-01" id="5"/>
            ...
        </outline>
    </outlines>
</object>

On a straight section of the road, the visualization works as expected:

Image

But in curves it does not work:

Image

Here is my example file: test_scene.xodr.zip

Is this a bug in the visualization or is there something wrong with my OpenDRIVE file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions