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
b6acbd36
Commit
b6acbd36
authored
2 years ago
by
Sayan Mitra
Browse files
Options
Downloads
Patches
Plain Diff
Fixed testdpp with set_map, previously using add_map
parent
b4ff64e9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/testdpp.py
+5
-4
5 additions, 4 deletions
tests/testdpp.py
with
5 additions
and
4 deletions
tests/testdpp.py
+
5
−
4
View file @
b6acbd36
...
...
@@ -47,7 +47,7 @@ def controller(ego:State):
return
output_vehicle_mode
,
output_lane_mode
from
verse.
example
.example_agent.car_agent
import
CarAgent
from
verse.
agents
.example_agent.car_agent
import
CarAgent
from
verse.scenario.scenario
import
Scenario
from
verse.map.example_map.simple_map
import
SimpleMap2
...
...
@@ -55,11 +55,12 @@ from verse.map.example_map.simple_map import SimpleMap2
class
TestSimulatorMethods
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
scenario
=
Scenario
()
self
.
car
=
CarAgent
(
'
ego
'
,
file_name
=
'
example_controller
1
.py
'
)
self
.
car2
=
CarAgent
(
'
other
'
,
file_name
=
'
example_controller
1
.py
'
)
self
.
car
=
CarAgent
(
'
ego
'
,
file_name
=
'
../demo/tacas2023/exp2/
example_controller
5
.py
'
)
self
.
car2
=
CarAgent
(
'
other
'
,
file_name
=
'
../demo/tacas2023/exp2/
example_controller
5
.py
'
)
self
.
scenario
.
add_agent
(
self
.
car
)
self
.
scenario
.
add_agent
(
self
.
car2
)
self
.
scenario
.
add_map
(
SimpleMap2
())
tmp_map
=
SimpleMap2
()
self
.
scenario
.
set_map
(
tmp_map
)
# self.scenario.set_sensor(FakeSensor1())
# self.scenario.set_init(
# [[0, 3, 0, 0.5]],
...
...
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