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
4e4584bc
Commit
4e4584bc
authored
2 years ago
by
li213
Browse files
Options
Downloads
Patches
Plain Diff
small tweak on the examples
parent
825699a6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!21
Arch2023 merged
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
demo/tacas2023/exp4/noisy_sensor.py
+2
-2
2 additions, 2 deletions
demo/tacas2023/exp4/noisy_sensor.py
verse/analysis/verifier.py
+3
-0
3 additions, 0 deletions
verse/analysis/verifier.py
verse/map/example_map/map_tacas.py
+12
-0
12 additions, 0 deletions
verse/map/example_map/map_tacas.py
with
17 additions
and
2 deletions
demo/tacas2023/exp4/noisy_sensor.py
+
2
−
2
View file @
4e4584bc
...
@@ -7,8 +7,8 @@ class NoisyVehicleSensor(BaseSensor):
...
@@ -7,8 +7,8 @@ class NoisyVehicleSensor(BaseSensor):
self
.
noise_x
=
noise_x
self
.
noise_x
=
noise_x
self
.
noise_y
=
noise_y
self
.
noise_y
=
noise_y
def
sense
(
self
,
scenario
,
agent
,
state_dict
,
track_map
):
def
sense
(
self
,
agent
,
state_dict
,
track_map
):
cont
,
disc
,
len_dict
=
super
().
sense
(
scenario
,
agent
,
state_dict
,
track_map
)
cont
,
disc
,
len_dict
=
super
().
sense
(
agent
,
state_dict
,
track_map
)
tmp
=
np
.
array
(
list
(
state_dict
.
values
())[
0
][
0
])
tmp
=
np
.
array
(
list
(
state_dict
.
values
())[
0
][
0
])
if
tmp
.
ndim
<
2
:
if
tmp
.
ndim
<
2
:
return
cont
,
disc
,
len_dict
return
cont
,
disc
,
len_dict
...
...
This diff is collapsed.
Click to expand it.
verse/analysis/verifier.py
+
3
−
0
View file @
4e4584bc
...
@@ -433,6 +433,9 @@ class Verifier:
...
@@ -433,6 +433,9 @@ class Verifier:
past_runs
,
past_runs
,
params
=
{},
params
=
{},
):
):
if
(
max_height
==
None
):
max_height
=
float
(
'
inf
'
)
root
=
AnalysisTreeNode
(
root
=
AnalysisTreeNode
(
trace
=
{},
trace
=
{},
init
=
{},
init
=
{},
...
...
This diff is collapsed.
Click to expand it.
verse/map/example_map/map_tacas.py
+
12
−
0
View file @
4e4584bc
...
@@ -254,9 +254,21 @@ class M5(LaneMap_3d):
...
@@ -254,9 +254,21 @@ class M5(LaneMap_3d):
}
}
def
h
(
self
,
lane_idx
:
str
,
agent_mode_src
:
str
,
agent_mode_dest
:
str
)
->
str
:
def
h
(
self
,
lane_idx
:
str
,
agent_mode_src
:
str
,
agent_mode_dest
:
str
)
->
str
:
if
not
isinstance
(
lane_idx
,
str
):
lane_idx
=
lane_idx
.
name
if
not
isinstance
(
agent_mode_src
,
str
):
agent_mode_src
=
agent_mode_src
.
name
if
not
isinstance
(
agent_mode_dest
,
str
):
agent_mode_dest
=
agent_mode_dest
.
name
return
self
.
h_dict
[(
lane_idx
,
agent_mode_src
,
agent_mode_dest
)]
return
self
.
h_dict
[(
lane_idx
,
agent_mode_src
,
agent_mode_dest
)]
def
h_exist
(
self
,
lane_idx
:
str
,
agent_mode_src
:
str
,
agent_mode_dest
:
str
)
->
bool
:
def
h_exist
(
self
,
lane_idx
:
str
,
agent_mode_src
:
str
,
agent_mode_dest
:
str
)
->
bool
:
if
not
isinstance
(
lane_idx
,
str
):
lane_idx
=
lane_idx
.
name
if
not
isinstance
(
agent_mode_src
,
str
):
agent_mode_src
=
agent_mode_src
.
name
if
not
isinstance
(
agent_mode_dest
,
str
):
agent_mode_dest
=
agent_mode_dest
.
name
if
(
lane_idx
,
agent_mode_src
,
agent_mode_dest
)
in
self
.
h_dict
:
if
(
lane_idx
,
agent_mode_src
,
agent_mode_dest
)
in
self
.
h_dict
:
return
True
return
True
else
:
else
:
...
...
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