Skip to content

Commit

Permalink
Add sample files (#106)
Browse files Browse the repository at this point in the history
Signed-off-by: hoangtungdinh <[email protected]>
Co-authored-by: hoangtungdinh <[email protected]>
  • Loading branch information
hoangtungdinh and hoangtungdinh committed Sep 26, 2024
1 parent cefa406 commit 8ffb846
Show file tree
Hide file tree
Showing 60 changed files with 11,911 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,9 @@ You need to have pre-commit installed and install the hooks:
```
pre-commit install
```

[This folder](tests/data/examples/) contains the valid and invalid sample OpenDrive files of the
rules that need to be implemented in the future. It can be used as a reference for anyone who
wants to contribute to the implementation of the rules.

Contributions of valid and invalid OpenDrive sample files are also welcome. New sample files can be added to [the same folder](tests/data/examples/).
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
<?xml version="1.0" standalone="yes"?>
<OpenDRIVE>
<header revMajor="1" revMinor="8" name="" version="1.00" date="Mon Oct 28 14:01:57 2019" north="0.0000000000000000e+00" south="0.0000000000000000e+00" east="0.0000000000000000e+00" west="0.0000000000000000e+00">
</header>
<road rule="RHT" name="" length="1.0000000000000000e+02" id="1" junction="-1">
<link>
</link>
<planView>
<geometry s="0.0000000000000000e+00" x="0.0000000000000000e+00" y="0.0000000000000000e+00" hdg="0.0000000000000000e+00" length="1.0000000000000000e+02">
<line/>
</geometry>
</planView>
<lateralProfile>
</lateralProfile>
<lanes>
<laneOffset s="0.0000000000000000e+00" a="1.2500000000000000e+00" b="0.0000000000000000e+00" c="0.0000000000000000e+00" d="0.0000000000000000e+00"/>
<laneSection s="0.0000000000000000e+00">
<left>
<lane id="1" type="driving" level="false">
<link>
<successor id="1"/>
</link>
<border sOffset="0.0000000000000000e+00" a="3.5699999999999998e+00" b="0.0000000000000000e+00" c="0.0000000000000000e+00" d="0.0000000000000000e+00"/>
<roadMark sOffset="0.0000000000000000e+00" type="solid" weight="standard" color="standard" width="1.2000000000000000e-01" laneChange="none" height="1.9999999552965164e-02">
<type name="solid" width="1.2000000000000000e-01">
<line length="0.0000000000000000e+00" space="0.0000000000000000e+00" tOffset="0.0000000000000000e+00" sOffset="0.0000000000000000e+00" rule="no passing" width="1.2000000000000000e-01"/>
</type>
</roadMark>
</lane>
</left>
<center>
<lane id="0">
<link>
</link>
<roadMark sOffset="0.0000000000000000e+00" type="broken" weight="standard" color="standard" width="1.2000000000000000e-01" laneChange="both" height="1.9999999552965164e-02">
<type name="broken" width="1.2000000000000000e-01">
<line length="4.0000000000000000e+00" space="8.0000000000000000e+00" tOffset="0.0000000000000000e+00" sOffset="0.0000000000000000e+00" rule="caution" width="1.2000000000000000e-01"/>
</type>
</roadMark>
</lane>
</center>
<right>
<lane id="-1" type="driving" level="false">
<link>
<successor id="-1"/>
</link>
<border sOffset="0.0000000000000000e+00" a="-3.5699999999999998e+00" b="-0.0000000000000000e+00" c="-0.0000000000000000e+00" d="-0.0000000000000000e+00"/>
<roadMark sOffset="0.0000000000000000e+00" type="solid" weight="standard" color="standard" width="1.2000000000000000e-01" laneChange="none" height="1.9999999552965164e-02">
<type name="solid" width="1.2000000000000000e-01">
<line length="0.0000000000000000e+00" space="0.0000000000000000e+00" tOffset="0.0000000000000000e+00" sOffset="0.0000000000000000e+00" rule="no passing" width="1.2000000000000000e-01"/>
</type>
</roadMark>
</lane>
</right>
</laneSection>
<laneSection s="5.0000000000000000e+01">
<left>
<lane id="1" type="driving" level="false">
<link>
<predecessor id="1"/>
</link>
<border sOffset="0.0000000000000000e+00" a="3.5699999999999998e+00" b="0.0000000000000000e+00" c="0.0000000000000000e+00" d="0.0000000000000000e+00"/>
<roadMark sOffset="0.0000000000000000e+00" type="solid" weight="standard" color="standard" width="1.2000000000000000e-01" laneChange="none" height="1.9999999552965164e-02">
<type name="solid" width="1.2000000000000000e-01">
<line length="0.0000000000000000e+00" space="0.0000000000000000e+00" tOffset="0.0000000000000000e+00" sOffset="0.0000000000000000e+00" rule="no passing" width="1.2000000000000000e-01"/>
</type>
</roadMark>
</lane>
</left>
<center>
<lane id="0">
<link>
</link>
<roadMark sOffset="0.0000000000000000e+00" type="broken" weight="standard" color="standard" width="1.2000000000000000e-01" laneChange="both" height="1.9999999552965164e-02">
<type name="broken" width="1.2000000000000000e-01">
<line length="4.0000000000000000e+00" space="8.0000000000000000e+00" tOffset="0.0000000000000000e+00" sOffset="0.0000000000000000e+00" rule="caution" width="1.2000000000000000e-01"/>
</type>
</roadMark>
</lane>
</center>
<right>
<lane id="-1" type="driving" level="false">
<link>
<predecessor id="-1"/>
</link>
<border sOffset="0.0000000000000000e+00" a="-3.5699999999999998e+00" b="-0.0000000000000000e+00" c="-0.0000000000000000e+00" d="-0.0000000000000000e+00"/>
<roadMark sOffset="0.0000000000000000e+00" type="broken" weight="standard" color="standard" width="1.2000000000000000e-01" laneChange="both" height="1.9999999552965164e-02">
<type name="broken" width="1.2000000000000000e-01">
<line length="4.0000000000000000e+00" space="8.0000000000000000e+00" tOffset="0.0000000000000000e+00" sOffset="0.0000000000000000e+00" rule="caution" width="1.2000000000000000e-01"/>
</type>
</roadMark>
</lane>
<lane id="-2" type="driving" level="false">
<link>
</link>
<border sOffset="0.0000000000000000e+00" a="-3.5699999999999998e+00" b="-0.0000000000000000e+00" c="-2.6774999999999993e-02" d="8.9249999999999985e-04"/>
<border sOffset="2.0000000000000000e+01" a="-7.1399999999999997e+00" b="-0.0000000000000000e+00" c="-0.0000000000000000e+00" d="-0.0000000000000000e+00"/>
<roadMark sOffset="0.0000000000000000e+00" type="solid" weight="standard" color="standard" width="1.2000000000000000e-01" laneChange="none" height="1.9999999552965164e-02">
<type name="solid" width="1.2000000000000000e-01">
<line length="0.0000000000000000e+00" space="0.0000000000000000e+00" tOffset="0.0000000000000000e+00" sOffset="0.0000000000000000e+00" rule="no passing" width="1.2000000000000000e-01"/>
</type>
</roadMark>
</lane>
</right>
</laneSection>
</lanes>
<objects>
</objects>
<signals>
</signals>
<surface>
</surface>
</road>
</OpenDRIVE>
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
<?xml version="1.0" standalone="yes"?>
<OpenDRIVE>
<header revMajor="1" revMinor="8" name="" version="1.00" date="Mon Oct 28 14:01:57 2019" north="0.0000000000000000e+00" south="0.0000000000000000e+00" east="0.0000000000000000e+00" west="0.0000000000000000e+00">
</header>
<road rule="RHT" name="" length="1.0000000000000000e+02" id="1" junction="-1">
<link>
</link>
<planView>
<geometry s="0.0000000000000000e+00" x="0.0000000000000000e+00" y="0.0000000000000000e+00" hdg="0.0000000000000000e+00" length="1.0000000000000000e+02">
<line/>
</geometry>
</planView>
<lateralProfile>
</lateralProfile>
<lanes>
<laneSection s="0.0000000000000000e+00">
<left>
<lane id="1" type="driving" level="false">
<link>
<successor id="1"/>
</link>
<border sOffset="0.0000000000000000e+00" a="3.5699999999999998e+00" b="0.0000000000000000e+00" c="0.0000000000000000e+00" d="0.0000000000000000e+00"/>
<roadMark sOffset="0.0000000000000000e+00" type="solid" weight="standard" color="standard" width="1.2000000000000000e-01" laneChange="none" height="1.9999999552965164e-02">
<type name="solid" width="1.2000000000000000e-01">
<line length="0.0000000000000000e+00" space="0.0000000000000000e+00" tOffset="0.0000000000000000e+00" sOffset="0.0000000000000000e+00" rule="no passing" width="1.2000000000000000e-01"/>
</type>
</roadMark>
</lane>
</left>
<center>
<lane id="0">
<link>
</link>
<roadMark sOffset="0.0000000000000000e+00" type="broken" weight="standard" color="standard" width="1.2000000000000000e-01" laneChange="both" height="1.9999999552965164e-02">
<type name="broken" width="1.2000000000000000e-01">
<line length="4.0000000000000000e+00" space="8.0000000000000000e+00" tOffset="0.0000000000000000e+00" sOffset="0.0000000000000000e+00" rule="caution" width="1.2000000000000000e-01"/>
</type>
</roadMark>
</lane>
</center>
<right>
<lane id="-1" type="driving" level="false">
<link>
<successor id="-1"/>
</link>
<border sOffset="0.0000000000000000e+00" a="-3.5699999999999998e+00" b="-0.0000000000000000e+00" c="-0.0000000000000000e+00" d="-0.0000000000000000e+00"/>
<roadMark sOffset="0.0000000000000000e+00" type="solid" weight="standard" color="standard" width="1.2000000000000000e-01" laneChange="none" height="1.9999999552965164e-02">
<type name="solid" width="1.2000000000000000e-01">
<line length="0.0000000000000000e+00" space="0.0000000000000000e+00" tOffset="0.0000000000000000e+00" sOffset="0.0000000000000000e+00" rule="no passing" width="1.2000000000000000e-01"/>
</type>
</roadMark>
</lane>
</right>
</laneSection>
<laneSection s="5.0000000000000000e+01">
<left>
<lane id="1" type="driving" level="false">
<link>
<predecessor id="1"/>
</link>
<border sOffset="0.0000000000000000e+00" a="3.5699999999999998e+00" b="0.0000000000000000e+00" c="0.0000000000000000e+00" d="0.0000000000000000e+00"/>
<roadMark sOffset="0.0000000000000000e+00" type="solid" weight="standard" color="standard" width="1.2000000000000000e-01" laneChange="none" height="1.9999999552965164e-02">
<type name="solid" width="1.2000000000000000e-01">
<line length="0.0000000000000000e+00" space="0.0000000000000000e+00" tOffset="0.0000000000000000e+00" sOffset="0.0000000000000000e+00" rule="no passing" width="1.2000000000000000e-01"/>
</type>
</roadMark>
</lane>
</left>
<center>
<lane id="0">
<link>
</link>
<roadMark sOffset="0.0000000000000000e+00" type="broken" weight="standard" color="standard" width="1.2000000000000000e-01" laneChange="both" height="1.9999999552965164e-02">
<type name="broken" width="1.2000000000000000e-01">
<line length="4.0000000000000000e+00" space="8.0000000000000000e+00" tOffset="0.0000000000000000e+00" sOffset="0.0000000000000000e+00" rule="caution" width="1.2000000000000000e-01"/>
</type>
</roadMark>
</lane>
</center>
<right>
<lane id="-1" type="driving" level="false">
<link>
<predecessor id="-1"/>
</link>
<border sOffset="0.0000000000000000e+00" a="-3.5699999999999998e+00" b="-0.0000000000000000e+00" c="-0.0000000000000000e+00" d="-0.0000000000000000e+00"/>
<roadMark sOffset="0.0000000000000000e+00" type="broken" weight="standard" color="standard" width="1.2000000000000000e-01" laneChange="both" height="1.9999999552965164e-02">
<type name="broken" width="1.2000000000000000e-01">
<line length="4.0000000000000000e+00" space="8.0000000000000000e+00" tOffset="0.0000000000000000e+00" sOffset="0.0000000000000000e+00" rule="caution" width="1.2000000000000000e-01"/>
</type>
</roadMark>
</lane>
<lane id="-2" type="driving" level="false">
<link>
</link>
<border sOffset="0.0000000000000000e+00" a="-3.5699999999999998e+00" b="-0.0000000000000000e+00" c="-2.6774999999999993e-02" d="8.9249999999999985e-04"/>
<border sOffset="2.0000000000000000e+01" a="-7.1399999999999997e+00" b="-0.0000000000000000e+00" c="-0.0000000000000000e+00" d="-0.0000000000000000e+00"/>
<roadMark sOffset="0.0000000000000000e+00" type="solid" weight="standard" color="standard" width="1.2000000000000000e-01" laneChange="none" height="1.9999999552965164e-02">
<type name="solid" width="1.2000000000000000e-01">
<line length="0.0000000000000000e+00" space="0.0000000000000000e+00" tOffset="0.0000000000000000e+00" sOffset="0.0000000000000000e+00" rule="no passing" width="1.2000000000000000e-01"/>
</type>
</roadMark>
</lane>
</right>
</laneSection>
</lanes>
<objects>
</objects>
<signals>
</signals>
<surface>
</surface>
</road>
</OpenDRIVE>
Loading

0 comments on commit 8ffb846

Please sign in to comment.