Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OUTDATED Verse-library
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AutonomyCourse_ECEIllinois
OUTDATED Verse-library
Commits
e836e1b0
Commit
e836e1b0
authored
2 years ago
by
keyis2
Browse files
Options
Downloads
Patches
Plain Diff
pkg issue fixed
parent
230cb58d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+2
-1
2 additions, 1 deletion
.gitignore
demo/demo1.py
+11
-9
11 additions, 9 deletions
demo/demo1.py
demo/demo2.py
+1
-1
1 addition, 1 deletion
demo/demo2.py
setup.py
+4
-3
4 additions, 3 deletions
setup.py
with
18 additions
and
14 deletions
.gitignore
+
2
−
1
View file @
e836e1b0
...
...
@@ -5,4 +5,5 @@ __pycache__/
venv/
.DS_Store
**.egg-info/
.VSCodeCounter/
\ No newline at end of file
.VSCodeCounter/
dist/dryvr_plus_plus-0.1-py3.8.egg
This diff is collapsed.
Click to expand it.
demo/demo1.py
+
11
−
9
View file @
e836e1b0
...
...
@@ -3,7 +3,7 @@ from dryvr_plus_plus.scene_verifier.scenario.scenario import Scenario
from
dryvr_plus_plus.example.example_map.simple_map2
import
SimpleMap2
,
SimpleMap3
,
SimpleMap5
,
SimpleMap6
from
dryvr_plus_plus.plotter.plotter2D
import
*
from
dryvr_plus_plus.example.example_sensor.fake_sensor
import
FakeSensor2
import
plotly.graph_objects
as
go
import
matplotlib.pyplot
as
plt
import
numpy
as
np
from
enum
import
Enum
,
auto
...
...
@@ -55,7 +55,7 @@ if __name__ == "__main__":
(
VehicleMode
.
Normal
,
LaneMode
.
Lane1
),
]
)
# res_list = scenario.simulate_multi(10,1)
# res_list = scenario.simulate_multi(10,
1)
# # traces = scenario.verify(10)
# fig = plt.figure(2)
...
...
@@ -63,16 +63,18 @@ if __name__ == "__main__":
# # fig = plot_reachtube_tree(traces, 'car1', 0, [1], 'b', fig, (1000,-1000), (1000,-1000))
# # fig = plot_reachtube_tree(traces, 'car2', 0, [1], 'r', fig)
# for traces in res_list:
# # fig = plot_simulation_tree(traces, 'car1', 0, [1], 'b', fig, (1000,-1000), (1000,-1000))
# # fig = plot_simulation_tree(traces, 'car2', 0, [1], 'r', fig)
# generate_simulation_anime(traces, tmp_map, fig)
# fig = plot_simulation_tree(
# traces, 'car1', 1, [2], 'b', fig, (1000, -1000), (1000, -1000))
# fig = plot_simulation_tree(traces, 'car2', 1, [2], 'r', fig)
# # generate_simulation_anime(traces, tmp_map, fig)
# plt.show()
traces
=
scenario
.
simulate
(
10
)
fig
=
go
.
Figure
()
fig
=
plotly_map
(
tmp_map
,
'
g
'
,
fig
)
fig
=
plot_simulation_tree
(
traces
,
'
car1
'
,
0
,
[
1
],
'
b
'
,
fig
,
(
1000
,
-
1000
),
(
1000
,
-
1000
))
fig
=
plot_simulation_tree
(
traces
,
'
car2
'
,
0
,
[
1
],
'
r
'
,
fig
)
# fig = plotly_map(tmp_map, 'g', fig)
# fig = plotly_simulation_tree(
# traces, 'car1', 0, [1], 'b', fig, (1000, -1000), (1000, -1000))
# fig = plotly_simulation_tree(traces, 'car2', 0, [1], 'r', fig)
fig
=
plotly_simulation_anime
(
traces
,
tmp_map
,
fig
)
fig
.
show
()
This diff is collapsed.
Click to expand it.
demo/demo2.py
+
1
−
1
View file @
e836e1b0
...
...
@@ -3,7 +3,7 @@ from dryvr_plus_plus.scene_verifier.scenario.scenario import Scenario
from
dryvr_plus_plus.example.example_map.simple_map2
import
SimpleMap2
,
SimpleMap3
,
SimpleMap5
,
SimpleMap6
from
dryvr_plus_plus.plotter.plotter2D
import
*
from
dryvr_plus_plus.example.example_sensor.fake_sensor
import
FakeSensor2
import
plotly.graph_objects
as
go
import
matplotlib.pyplot
as
plt
import
numpy
as
np
from
enum
import
Enum
,
auto
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
4
−
3
View file @
e836e1b0
#!/usr/bin/env python3
from
setuptools
import
setup
from
setuptools
import
setup
,
find_packages
setup
(
name
=
'
dryvr_plus_plus
'
,
...
...
@@ -9,7 +9,7 @@ setup(
maintainer
=
'
Yangge Li, Katherine Braught, Haoqing Zhu
'
,
maintainer_email
=
'
{li213, braught2, haoqing3}@illinois.edu
'
,
license
=
'
Apache-2.0
'
,
packages
=
setuptools
.
find_packages
(
exclude
=
[
"
tests
"
,
"
demo
"
]),
packages
=
find_packages
(
exclude
=
[
"
tests
"
,
"
demo
"
]),
python_requires
=
'
>=3.8
'
,
install_requires
=
[
"
numpy~=1.22.1
"
,
...
...
@@ -24,6 +24,7 @@ setup(
"
treelib~=1.6.1
"
,
"
z3-solver~=4.8.17.0
"
,
"
igraph~=0.9.10
"
,
"
plotly~=5.8.0
"
],
classifiers
=
[
'
Development Status :: 2 - Pre-Alpha
'
,
...
...
@@ -32,4 +33,4 @@ setup(
'
License :: OSI Approved :: Apache License 2.0
'
,
'
Programming Language :: Python :: 3.8
'
,
]
)
\ No newline at end of file
)
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