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
c568ebff
Commit
c568ebff
authored
2 years ago
by
sayanmitracode
Browse files
Options
Downloads
Patches
Plain Diff
sd
parent
6a2f7527
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
demo/F16/F16_waypoint_scene.py
+16
-2
16 additions, 2 deletions
demo/F16/F16_waypoint_scene.py
with
16 additions
and
2 deletions
demo/F16/F16_waypoint_scene.py
+
16
−
2
View file @
c568ebff
...
...
@@ -65,10 +65,24 @@ class State:
def
__init__
(
self
,
vt
,
alpha
,
beta
,
phi
,
theta
,
psi
,
P
,
Q
,
R
,
pn
,
pe
,
alt
,
power
,
mode
:
F16Mode
):
pass
def
controller
(
ego
:
State
,
others
:
State
):
'''
Computes the possible mode transitions
For now this is an empty controller function.
Coming soon. Waypoint transitions. Platooning.
'''
output
=
copy
.
deepcopy
(
ego
)
return
output
def
main
():
'
main function
'
'''
The main function defines and simulates a scene.
Defining and using a scenario involves the following 5 easy steps:
1. creating a basic scenario object with Scenario()
2. defining the agents that will populate the object, here we have two ball agents
3. adding the agents to the scenario using .add_agent()
4. initializing the agents for this scenario.
Note that agents are only initialized *in* a scenario, not individually outside a scenario
5. genetating the simulation traces or computing the reachable states
'''
F16waypointScene
=
Scenario
()
### Initial Conditions ###
power
=
9
# engine power level (0-10)
...
...
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