Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
V
vadere
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
110
Issues
110
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
3
Merge Requests
3
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vadere
vadere
Commits
6e4f58ea
Commit
6e4f58ea
authored
Jun 15, 2020
by
Benedikt Kleinmeier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated "Tools/Converters/geojson2vadere/geojson2vadere.py"
parent
9c467b36
Pipeline
#272683
passed with stages
in 140 minutes and 26 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
10 deletions
+19
-10
Tools/Converters/geojson2vadere/geojson2vadere.py
Tools/Converters/geojson2vadere/geojson2vadere.py
+1
-5
Tools/Converters/geojson2vadere/vadere_topography.template
Tools/Converters/geojson2vadere/vadere_topography.template
+18
-5
No files found.
Tools/Converters/geojson2vadere/geojson2vadere.py
View file @
6e4f58ea
...
...
@@ -12,10 +12,6 @@
#
# 4. Insert output into "topography" tab of Vadere.
#
# Watch out: before running this script, install its dependencies using pip:
#
# pip install -r requirements.txt
#
# Example GeoJSON file:
#
# {
...
...
@@ -164,7 +160,7 @@ def create_vadere_obstacle_from_vertices(vertices):
return
vadere_obstacle_as_string
def
create_vadere_topography_with_obstacles
(
obstacles
,
width
,
height
):
with
open
(
"vadere_topography
_template.txt
"
,
"r"
)
as
template_file
:
with
open
(
"vadere_topography
.template
"
,
"r"
)
as
template_file
:
vadere_topography_template
=
template_file
.
read
()
vadere_topography_string
=
Template
(
vadere_topography_template
).
substitute
(
obstacles
=
obstacles
,
width
=
width
,
height
=
height
)
...
...
Tools/Converters/geojson2vadere/vadere_topography
_template.txt
→
Tools/Converters/geojson2vadere/vadere_topography
.template
View file @
6e4f58ea
...
...
@@ -7,31 +7,44 @@
"height" : $height
},
"boundingBoxWidth" : 0.5,
"bounded" : true
"bounded" : true,
"referenceCoordinateSystem" : null
},
"obstacles" : [ $obstacles ],
"measurementAreas" : [ ],
"stairs" : [ ],
"targets" : [ ],
"targetChangers" : [ ],
"absorbingAreas" : [ ],
"sources" : [ ],
"dynamicElements" : [ ],
"attributesPedestrian" : {
"radius" : 0.
195
,
"radius" : 0.
2
,
"densityDependentSpeed" : false,
"speedDistributionMean" : 1.34,
"speedDistributionStandardDeviation" : 0.26,
"minimumSpeed" : 0.5,
"maximumSpeed" : 2.2,
"acceleration" : 2.0
"acceleration" : 2.0,
"footstepHistorySize" : 4,
"searchRadius" : 1.0,
"walkingDirectionCalculation" : "BY_TARGET_CENTER",
"walkingDirectionSameIfAngleLessOrEqual" : 45.0
},
"teleporter" : null,
"attributesCar" : {
"id" : -1,
"radius" : 0.
195
,
"radius" : 0.
2
,
"densityDependentSpeed" : false,
"speedDistributionMean" : 1.34,
"speedDistributionStandardDeviation" : 0.26,
"minimumSpeed" : 0.5,
"maximumSpeed" : 2.2,
"acceleration" : 2.0,
"footstepHistorySize" : 4,
"searchRadius" : 1.0,
"walkingDirectionCalculation" : "BY_TARGET_CENTER",
"walkingDirectionSameIfAngleLessOrEqual" : 45.0,
"length" : 4.5,
"width" : 1.7,
"direction" : {
...
...
@@ -39,4 +52,4 @@
"y" : 0.0
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment