Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
simulator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chenhao Ma
simulator
Commits
d6a79082
Commit
d6a79082
authored
5 years ago
by
Qiang Lu
Committed by
Martins Mozeiko
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Combine code for LinkSegments in OpenDRIVE map exporter
parent
929f6c89
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Assets/Scripts/Editor/OpenDriveMapExporter.cs
+534
-1
534 additions, 1 deletion
Assets/Scripts/Editor/OpenDriveMapExporter.cs
Assets/Scripts/Map/MapLane.cs
+9
-5
9 additions, 5 deletions
Assets/Scripts/Map/MapLane.cs
Assets/Scripts/Map/MapLine.cs
+3
-5
3 additions, 5 deletions
Assets/Scripts/Map/MapLine.cs
with
546 additions
and
11 deletions
Assets/Scripts/Editor/OpenDriveMapExporter.cs
+
534
−
1
View file @
d6a79082
This diff is collapsed.
Click to expand it.
Assets/Scripts/Map/MapLane.cs
+
9
−
5
View file @
d6a79082
...
...
@@ -11,7 +11,13 @@ using HD = apollo.hdmap;
namespace
Simulator.Map
{
public
class
MapLane
:
MapDataPoints
public
interface
IMapLaneLineCommon
<
T
>
where
T
:
IMapLaneLineCommon
<
T
>
{
List
<
T
>
befores
{
get
;
set
;
}
List
<
T
>
afters
{
get
;
set
;
}
}
public
class
MapLane
:
MapDataPoints
,
IMapLaneLineCommon
<
MapLane
>
{
public
bool
displayLane
=
false
;
public
bool
isSelfReverseLane
=
false
;
...
...
@@ -19,10 +25,8 @@ namespace Simulator.Map
public
float
displayLaneWidth
=
3.7f
;
// apollo default lane width
[
System
.
NonSerialized
]
public
List
<
MapLane
>
befores
=
new
List
<
MapLane
>();
[
System
.
NonSerialized
]
public
List
<
MapLane
>
afters
=
new
List
<
MapLane
>();
public
List
<
MapLane
>
befores
{
get
;
set
;
}
=
new
List
<
MapLane
>();
public
List
<
MapLane
>
afters
{
get
;
set
;
}
=
new
List
<
MapLane
>();
[
System
.
NonSerialized
]
public
string
id
=
null
;
// TODO move to mapdata?
...
...
This diff is collapsed.
Click to expand it.
Assets/Scripts/Map/MapLine.cs
+
3
−
5
View file @
d6a79082
...
...
@@ -12,7 +12,7 @@ using Simulator.Map;
namespace
Simulator.Map
{
public
class
MapLine
:
MapDataPoints
public
class
MapLine
:
MapDataPoints
,
IMapLaneLineCommon
<
MapLine
>
{
public
LineType
lineType
;
...
...
@@ -20,10 +20,8 @@ namespace Simulator.Map
public
MapSign
stopSign
;
public
SignalLightStateType
currentState
=
SignalLightStateType
.
Yellow
;
[
System
.
NonSerialized
]
public
List
<
MapLine
>
befores
=
new
List
<
MapLine
>();
[
System
.
NonSerialized
]
public
List
<
MapLine
>
afters
=
new
List
<
MapLine
>();
public
List
<
MapLine
>
befores
{
get
;
set
;
}
=
new
List
<
MapLine
>();
public
List
<
MapLine
>
afters
{
get
;
set
;
}
=
new
List
<
MapLine
>();
[
System
.
NonSerialized
]
public
List
<
MapSignal
>
signals
=
new
List
<
MapSignal
>();
[
System
.
NonSerialized
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment